FHIR Chat · Clarification on sending requests · implementers

Stream: implementers

Topic: Clarification on sending requests


view this post on Zulip Michael Avendano (May 08 2019 at 15:33):

I'm currently trying to send a POST request to my api for a CDS-Hooks implementation, but I'm confused on the context and the prefetch fields of the request. My goal is just to send the practioner's email as well as the patient's mrn. I'm currently sending:
{
"Hook": "patient-view",
"HookInstance": "1234",
"Context": {
"email": "test@test.com",
"mrn": "9999999"
}
}
So my questions are:
Does the prefetch field work by using data in the context? Does the context field get its values from the prefetch? or are they both prepopulated
How can I check if the ContactType in the practitioner field is type email before getting the value?
What form should my post request look like in addition to what I have?

Any help is appreciated, thank you!


Last updated: Apr 12 2022 at 19:14 UTC