client-js
client-js copied to clipboard
ResolveReferences can't resolve some reference
I am trying to send a request via client to resolve two references for MedicationDispense
client
.request(MedicationDispense/${medicationDispense.id}, {
resolveReferences: ["performer.0.actor", "authorizingPrescription.0"],
graph: false,
flat: true,
})
The result comes back only with the "performer" reference. I debug into the client code, the function resolveRef(), the obj doesn't have "authorizingPrescription". However, using FHIR HAPI API, it has been confirmed that the MedicationDispense in the EHR contains "authorizingPrescription". I am wondering if this is an issue of the fhirclient? Thanks in advance.
Can you post the JSON response from the MedicationDispense/${medicationDispense.id} request (or a link to it if its an open server)?