Stream: cds hooks/github
Topic: docs / Issue #410 Clarification on example prefetch template
Github Notifications (Aug 27 2018 at 02:50):
xMECian opened Issue #410
The spec says that the user field in the POST request to a CDS Service would be of the format FHIR resourceType+id, in that case if the service wants the EHR to prefetch user information, the template should really be
prefetch: { user: '{{user}}' }
as such the example given here is wrong?
Github Notifications (Nov 19 2018 at 18:29):
mattvarghese commented on Issue #410
Now with the old
/user
moved tocontext/userId
, there is still a problem with this example.
context/userId
is of the formPractitioner/{id}
So this line
"u": "Practitioner/{{context.userId}}"
Becomes
"u": "Practitioner/Practitioner/{id}"
I would say the context should remove
userId
and have a fieldpractitionerId
which is just the ID. _Alternatively, we can remove thePractitioner
prefix fromuserId
, but now we have an ID, which is or a type that is not directly obvious and therefore tacky._
Github Notifications (Dec 21 2018 at 17:01):
isaacvetter closed Issue #410
Last updated: Apr 12 2022 at 19:14 UTC