smart-on-fhir / client-js

JavaScript client for FHIR
Other
290 stars 209 forks source link

ResolveReferences can't resolve some reference #131

Open yuliumitre opened 3 years ago

yuliumitre commented 3 years ago

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.

vlad-ignatov commented 2 years ago

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