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
"Only root-level fields with a primitive value within the context object are eligible to be used as prefetch tokens. For example, {{context.medication.id}} is not a valid prefetch token because it attempts to access the id field of the medication field."
The prefetch specified in CDS Hooks Discovery response returned from the Davinci CRD Reference Implementation is not following the above prefetch token guidance. Specifically, the following prefetch tokens are not "root-level fields with a primitive value": context.draftOrders.ServiceRequest.id, context.medications.MedicationRequest.id, and context.draftOrders.DeviceRequest.id
Recommend refactoring prefetch to request the Patient and Practitioner resources by themselves. Since these are draft orders they may not be persisted and even able to be accessed with a FHIR search which the current prefetch is dependent on.
According to the CDS Hooks specification (https://cds-hooks.hl7.org/2.0/#prefetch-tokens),
"Only root-level fields with a primitive value within the context object are eligible to be used as prefetch tokens. For example, {{context.medication.id}} is not a valid prefetch token because it attempts to access the id field of the medication field."
The prefetch specified in CDS Hooks Discovery response returned from the Davinci CRD Reference Implementation is not following the above prefetch token guidance. Specifically, the following prefetch tokens are not "root-level fields with a primitive value":
context.draftOrders.ServiceRequest.id
,context.medications.MedicationRequest.id
, andcontext.draftOrders.DeviceRequest.id
Prefetch excerpt:
Recommend refactoring prefetch to request the Patient and Practitioner resources by themselves. Since these are draft orders they may not be persisted and even able to be accessed with a FHIR search which the current prefetch is dependent on.
The text was updated successfully, but these errors were encountered: