Stream: hapi
Topic: Search with code:in query
Christopher Schuler (May 30 2018 at 17:02):
I am trying to perform searches using HAPI's criteria builders (IQuery) and can't figure out how to specify the in valueset operation.
As an example, how would I recreate the following URL using criteria builders?
<base>/MedicationRequest?patient=example-rec-04-long-acting-opioid-no-prefetch&code:in=http://hl7.org/fhir/ig/opioid-cds/ValueSet/opioids-abused-in-ambulatory-care
So far I have this:
IQuery<IBaseBundle> search = fhirClient.search().forResource(resource).where(new TokenClientParam(patientParam).exactly().identifier(patientId)).and(???);
I ran across the following, which looks promising:
new TokenParam(null, valueSetId).setModifier(TokenParamModifier.IN)
I am not sure how to use that with IQuery though...
Any ideas?
Last updated: Apr 12 2022 at 19:14 UTC