client-js icon indicating copy to clipboard operation
client-js copied to clipboard

ResolveReferences can't resolve some reference

Open yuliumitre opened this issue 4 years ago • 1 comments
trafficstars

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.

yuliumitre avatar Jul 26 '21 20:07 yuliumitre

Can you post the JSON response from the MedicationDispense/${medicationDispense.id} request (or a link to it if its an open server)?

vlad-ignatov avatar Aug 10 '22 11:08 vlad-ignatov