FHIR Chat · docs / Issue #410 Clarification on example prefetch template · cds hooks/github

Stream: cds hooks/github

Topic: docs / Issue #410 Clarification on example prefetch template


view this post on Zulip 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?

view this post on Zulip Github Notifications (Nov 19 2018 at 18:29):

mattvarghese commented on Issue #410

Now with the old /user moved to context/userId, there is still a problem with this example.
context/userId is of the form Practitioner/{id}

So this line
"u": "Practitioner/{{context.userId}}"
Becomes
"u": "Practitioner/Practitioner/{id}"

I would say the context should remove userId and have a field practitionerId which is just the ID. _Alternatively, we can remove the Practitioner prefix from userId, but now we have an ID, which is or a type that is not directly obvious and therefore tacky._

view this post on Zulip Github Notifications (Dec 21 2018 at 17:01):

isaacvetter closed Issue #410


Last updated: Apr 12 2022 at 19:14 UTC