Skip to content

Commit 7169175

Browse files
committed
#314: Clarified prefetch behavior for multiple services attached to the same hook
1 parent e3f51fd commit 7169175

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/specification/1.0.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,15 @@ The prefetch tokens defined by this `example-hook` would be `{{context.patientId
199199
An EHR MAY choose to honor some or all of the desired prefetch templates, and is free to choose the most appropriate source for these data. For example:
200200

201201
- The EHR MAY have some of the desired prefetched data already in memory, thereby removing the need for any network call
202-
- The EHR MAY compute an efficient set of prefetch templates from multiple CDS Services, thereby reducing the number of network calls to a minimum
202+
- The EHR MAY compute an efficient set of prefetch templates from multiple CDS Services, thereby reducing the number of calls to a minimum
203203
- The EHR MAY satisfy some of the desired prefetched templates via some internal service or even its own FHIR server.
204204

205205
The EHR SHALL deny access if the requested resource is outside the user's authorized scope.
206206

207207
Regardless of how the EHR satisfies the prefetch templates (if at all), the prefetched data given to the CDS Service MUST be equivalent to the data the CDS Service would receive if it were making its own call to the EHR FHIR server using the parameterized prefetch template.
208208

209+
> Note that this means that CDS services will receive only the information they have requested and are authorized to receive. Prefetch data for other services registered to the same hook MUST NOT be provided.
210+
209211
The resulting response, which MUST be rendered in a single page — no "next page" links allowed — is passed along to the CDS Service using the `prefetch` parameter (see below for a complete example).
210212

211213
> Note that the reason prefetch results are not allowed to include next page links is that if the prefetched data contains just a single page of data, the CDS Service has no means to retrieve the subsequent pages of data. Consider, for example, a CDS Hooks implementation that does not expose a FHIR server.

0 commit comments

Comments
 (0)