Stream: dotnet
Topic: search Patient using official and secondary identifiers
Santosh Jami (Aug 01 2017 at 00:00):
I am using SPARK FHIR DSTU2 version. I need to search for patient using official and secondary identifiers. There is a patient resource in mongo db, it has identifier.0.value=EMR.454545, identifier.0.use=secondary, identifier.0.value=Test.1234, identifier.0.use=official
How do I search this using FHIR client? Am getting exceptions when I use the following search:
var bundleFromPatientSearch = fhirClient.Search<Hl7.Fhir.Model.Patient>(new string[] { "identifier.0.value=EMR.454545"});
var bundleFromPatientSearch = fhirClient.Search<Hl7.Fhir.Model.Patient>(new string[] { "identifier.0.value:exact=EMR.454545", "identifier.1.value:exact=SAFE.11111111"});
I am able to search by name, but my requirement is to search by the identifiers I posted above. Appreciate your help
I need to apply similar search to DiagnosticReport as well, so this will clear me multiple blocks
Yunwei Wang (Aug 03 2017 at 18:50):
var bundleFromPatientSearch = fhirClient.Search<Hl7.Fhir.Model.Patient>(new string[] { "identifier=EMR.454545"});
Last updated: Apr 12 2022 at 19:14 UTC