Stream: implementers
Topic: FHIR Medication Request
Lital Inghel (Oct 25 2021 at 13:26):
what is the difference between these two:
1-GET /MedicationRequest?patient=[id]&_include=MedicationRequest:medication
2-GET [base]/MedicationRequest?[parameter=value]&_include=MedicationRequest:medication
And also
since we do not use medication resource in medication request, we use codeableconcept,
and since it says:
A server SHALL be capable of returning all medications for a patient using one of or both:
GET /MedicationRequest?patient=[id]
GET /MedicationRequest?patient=[id]&_include=MedicationRequest:medication
(http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html#medicationrequest)
I wasn't sure if _include is a must to support (assuming we support the first query-GET /MedicationRequest?patient=[id]).
Daniel Venton (Oct 25 2021 at 15:05):
Lital Inghel said:
what is the difference between these two:
1-GET /MedicationRequest?patient=[id]&_include=MedicationRequest:medication
2-GET [base]/MedicationRequest?[parameter=value]&_include=MedicationRequest:medication
To me 1) means get all medicationRequestss for a given patient, include any referenced Medication resources
2) means get all medicationRequests for ALL patients (with some other filter) include any referenced Medication resources
since we do not use medication resource in medication request, we use codeableconcept,
and since it says:
A server SHALL be capable of returning all medications for a patient using one of or both:
GET /MedicationRequest?patient=[id]
GET /MedicationRequest?patient=[id]&_include=MedicationRequest:medication
(http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html#medicationrequest)I wasn't sure if _include is a must to support (assuming we support the first query-GET /MedicationRequest?patient=[id]).
If your medicationRequests don't reference Medication resources, then the _include=MedicationRequest:medication is a zero-sum operation. The same result is returned with or without it.
I would think that as long as your server doesn't die when the user specifies it, then you are compliant. "You returned all of the referenced Medication resources, of which there were 0."
Jose Costa Teixeira (Oct 25 2021 at 15:46):
Lital Inghel said:
since we do not use medication resource in medication request, we use codeableconcept,
and since it says:
A server SHALL be capable of returning all medications for a patient using one of or both:
GET /MedicationRequest?patient=[id]
GET /MedicationRequest?patient=[id]&_include=MedicationRequest:medication
I think this should be clarified in the us core spec
Last updated: Apr 12 2022 at 19:14 UTC