cds-hooks / docs

CDS Hooks website & specification
http://cds-hooks.org
Apache License 2.0
165 stars 62 forks source link

Added support for enhanced prefetch - and clarified prefetch expectat… #612

Open lmckenzi opened 2 years ago

lmckenzi commented 2 years ago

…ions in general.

Specifically intended to address #377 and provide support for referencing information related to data in "in-memory" orders

hstrasbe commented 11 months ago

As we discussed at today's CDS WG meeting, we need to be able to support a request for something like all BP Observations from the last 10 days.

As currently proposed we could retrieve the last 10 BP Observations using: "bloodPressures": "Observation?patient={{context.patient}}&code=85354-9|http%xx/loinc.org&_sort=-date&_count=10"

However, there does not seem to be a way to request all BP Observations from the last 10 days using a prefetch template.

lmckenzi commented 11 months ago

One option would be to use x-fhir-query, though that's a bigger lift than what's proposed here. We could possibly also subset x-fhir-query?