Stream: implementers
Topic: CDS Hooks
Venu Shankar (Nov 05 2017 at 20:03):
Hello - I am a student at GaTech and as part of my course I am trying to implement a CDS Hook. This CDS Hook is supposed to query an external service and show some results. However I keep on getting "connection refused" error. I know the external service is up cause I can query it outside of CDS Hook. I am using the sandbox code from https://github.com/cds-hooks/sandbox
Any pointers on what might be going on? Or if somebody has faced this issue before.
TIA
Kevin Shekleton (Nov 07 2017 at 20:46):
Hi @Venu Shankar - we have a #cds-hooks stream where you can ask all of your CDS Hooks questions. Perhaps you could post some error logs from your server to help provide more context?
Michael Avendano (May 08 2019 at 15:42):
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!
Ahmed Mohamed (Sep 10 2019 at 05:43):
Hi,
I have a question re: implementing CDS hooks, my question is about how to make the calls to the CDS system to invoke the hook
will my EHR application be responsible on invoking the hook when needed, or this is something that should happen on the FHIR server automatically. and in that case what will the response from FHIR to the EHR look like, will it have the resources + CDS cards ?
Grahame Grieve (Sep 10 2019 at 06:22):
EHR system invokes the hooks. Suggest that further discussion happen on #cds hooks
Ahmed Mohamed (Sep 11 2019 at 05:30):
Thanks @Grahame Grieve
I am reading through the topics there.
Last updated: Apr 12 2022 at 19:14 UTC