You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is the CDS Service's responsibility to check prefetched data against its template to determine what requests were satisfied (if any) and to manually retrieve any additional necessary data. If the CDS Service is unable to obtain required data because it cannot access the FHIR server and the request did not contain the necessary prefetch keys, the service SHALL respond with an HTTP 412 Precondition Failed status code.
However, the latest release of the cqf-ruler (v0.5.0) does not support partial prefetched data and assumes that if a prefetch is present, it is complete and will not attempt further retrieval.
The text was updated successfully, but these errors were encountered:
There are several factors to consider when implementing this functionality:
A prefetch item may be intentionally left blank for "exploratory" evaluation. For example, "what would happen if we did X with Patient Y?"
If we callback for data that was intentionally left null, we risk not performing the intended calculation
Data-requirements may be split into separate prefetch items if the url is too long
If a given data-requirement can be split across M prefetch statements, it's actually an error to only fill one of those.
Data-requirements are gathered and collapsed across the entire CQL library. Meaning "[Condition : X]" and "[Condition: Y]" may both end up as the same data-requirements
Therefore, one prefetch Item may correspond to N different retrieves.
It is not currently possible to link a prefetch item with a specific retrieve in the CQL
We need a way to record (or regenerate as needed) the full end-to-end CQL Retrieve to prefetch mapping so that the DataProvider can use that information to return the prefetched data or call back to the source FHIR server as required
If we callback for data that's already prefetched, we risk duplicates and therefore bad results
According to the Cds Hooks specification:
However, the latest release of the cqf-ruler (v0.5.0) does not support partial prefetched data and assumes that if a prefetch is present, it is complete and will not attempt further retrieval.
The text was updated successfully, but these errors were encountered: