diff --git a/api/src/main/java/org/openmrs/module/clientregistry/api/impl/FhirCRPatientServiceImpl.java b/api/src/main/java/org/openmrs/module/clientregistry/api/impl/FhirCRPatientServiceImpl.java index 05fe40d..c8f64ac 100644 --- a/api/src/main/java/org/openmrs/module/clientregistry/api/impl/FhirCRPatientServiceImpl.java +++ b/api/src/main/java/org/openmrs/module/clientregistry/api/impl/FhirCRPatientServiceImpl.java @@ -36,7 +36,7 @@ public List getCRPatients(String sourceIdentifier, String sourceIdentif Parameters betterCrRequest = fhirClient .operation() - .onInstance(String.format("%s|%s", sourceIdentifierSystem, sourceIdentifier)) + .onType(FhirConstants.PATIENT) .named(FhirCRConstants.IHE_PIX_OPERATION) .withNoParameters(Parameters.class) .execute();