I am trying to find a way to introduce a search method for a Patient Resource as follows using Hapi Fhir for CCRI
https:/x/y/z/domain/Patient?_query=ongoingAdmission&Identifier=34567.
It may be in the standard HAPI, ccri has a different data model.
However if your familiar with Hibernate, extending ccri would be possible. https://hibernate.org/
You would need to alter the patient provider and put in a Hibernate query in the patient Dao.
Thank you, I have issue with defining the search method in the PatientProvider not the back end.
@Search
public Bundle getBundleByPatient(/* the query Parameter */) {
read the _query parameter here and handle it.
}
what type of parameter I should define here ?
apologies I didn’t clearly explain the issue I am facing ?
@Search(queryName=“namedQuery1”)
public List searchByNamedQuery(@RequiredParam(name=“someparam”) StringParam theSomeParam) {
List retVal = new ArrayList();
// …populate…
return retVal;
}