FHIR Module Question

Application Name: Reference Application Version Number: 2.1.4

Question: I’m currently using the FHIR module add-on and whenever I try to use the Observation endpoint with the subject parameter using the patient ID as the value, I always get an empty result. I want to ask what patient ID the documentation is referring to. Thanks!

can you give an example of the full url that you use??

http://localhost:8080/openmrs/ws/fhir/Observation?subject:Patient={{patient id}}

I want to ask what the patient id should be; should it be the patient id found in the OpenMRS system?

that url is wrongly constructed.

it should be


subject and patient are supposed to be two different params

cc @dkayiwa . what exactly should the patient param take in here ??

Try something like this where subject is the patient uuid: https://demo.openmrs.org/openmrs/ws/fhir/Observation?subject=41d874f3-1d34-4e69-863c-cdac025d00ba

1 Like

thanks @dkayiwa. what of the patient param its self, what is it supposed to take in ??

Where did you get that parameter from?

1 Like

it is documented in the swagger doc for the observation fhir resource

Have you tried the patient’s UUID? Internal IDs (e.g., patient.id) should never be exposed by web services, since they are not guaranteed to be unique or permanent.

1 Like

Thanks @burke. does that mean both the patient and subject params take in the patient uuid ??