-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patient-view: encounter access #502
Comments
Hey @bvdh , This distinction in the spec is between Generally, it is draft resources supplied via What this really means is that if a prefetch template references a FHIR resource that is only "in memory", the CDS client shouldn't honor it. @bvdh - what do you think? |
Add to the patient-view documentation a note that the encounter referenced by the encounterId context field is expected to be available via the FHIR Server (if an endpoint is used) or via prefetch if no endpoint is provided. However, the specification does not explicitly require this behavior and implementations should be aware that integrations may not fully support this expectation. |
Per wg call conversation: Ultimately, the hooks that we've created thus far distinguish between mere FHIR ids in context and full draft resources in context. This distinction implies that the mere FHIR ids are available for query (either through the FHIR server, or through a prefetch template); and that full resources sent in context may not be available for query.
|
The patient-view context provide an optional field
encounter
that provides the encounter.id of the current Encounter.The current specification states in the section "Prefetch Template" (From https://cds-hooks.org/specification/1.0/#hook-maturity-model ):
So a prefetch query using the id from the
encounter
field returns the Encounter. A query to the FHIR Server will return the same Resource.Other parts of this specification indicate that it is expected that some information is present in the CDS-Client memory and has not yet been persisted to the FHIR-Server, see section "FHIR resources in context" (https://cds-hooks.org/specification/1.0/#hook-maturity-model):
The results in the question: wow does one retrieve the current Encounter, if stored in memory?
Does this mean that a CDS Server must make sure the Encounter resource (and other data in-memory) is accessible from the FHIR-server?
The text was updated successfully, but these errors were encountered: