A Coverage Requirements Discovery request can be technically valid and still return weak guidance if the hook lacks the right context. HL7 Da Vinci CRD v2.2.1 uses CDS Hooks prefetch so a client can send information the payer service routinely needs, with further FHIR queries available when appropriate. The implementation challenge is selecting the Coverage and order details that belong to this action, honoring the service's current discovery configuration, and making missing data visible rather than silently treating it as a negative coverage answer.

Build the context around the hook and service

CRD identifies Patient, relevant Coverage, a request resource when it is not already in hook context, and potentially the authoring or performing clinician, organization, location, Medication, or Device as useful related resources. Which of these matters depends on the hook, resource type, and payer service. An appointment-book request has different references from an order-sign request. Map the actual event first, then resolve only the related resources needed for the service's declared prefetch queries.

The standard prefetch examples span multiple hooks and resource types; a given payer need not request that entire set. CRD says clients must inspect the CDS Hooks discovery endpoint for the exact prefetch keys and queries. Do not hard-code example key names or assume a fixed order for query filters. For an automated configuration, the guide recommends rediscovery at least daily and again after a hook invocation error. Save the configuration version or retrieval time used for each test so a changed payer declaration is diagnosable.

  • Identify the hook, request resource, and payer service before resolving prefetch.
  • Read the payer's discovered prefetch definition rather than copying sample JSON.
  • Test a configuration change and an error-triggered rediscovery path.

Select one Coverage relevant to the action

A search for active Coverage can return more than one record. The CRD foundation says prefetch must contain a single Coverage instance relevant to the request or encounter. For multiple active coverages, the CRD guide directs the client to select the one most likely to be primary and solicit coverage information for that payer. Other Coverage records may be exposed through the client's FHIR API, but they do not belong together in the prefetch for that request.

This is a workflow decision that needs test cases, not a first-result database shortcut. Check the coverage linked to the order or encounter, the service date, the payer associated with the CRD endpoint, and any local primary-coverage indication. If different items in one order action have different likely primary coverages, the guide allows separate calls for the pertinent service groups or one call using the most broadly applicable Coverage. Record which path was chosen so returned guidance can be interpreted against the correct service and payer.

  • Verify the selected Coverage belongs to the patient and intended service context.
  • Test two active plans and an item group with differing primary coverage.
  • Keep the selected payer visible beside returned coverage guidance.

Keep data retrieval proportional to the question

CRD recommends prefetch for information expected to be needed on every invocation. Data needed only for particular medications or services should instead be queried when needed using the provided token. The client must supply an access token that lets the CRD server retrieve additional patient data and limit its scopes as narrowly as feasible for the declared data requirements. Treat prefetch and follow-up query access as one design review: the first request should be useful without becoming a blanket transfer of unrelated chart data.

When the payer cannot obtain a record or the record lacks a desired field, preserve that distinction. CRD says servers should provide whatever coverage requirements they can from available information; a missing fact may lead to a request for documentation or a human follow-up, not a clean authorization or coverage determination. Surface an unavailable-data state and the affected resource to the team that can correct or review it.

Test the response against the context sent

Run the same order through cases with complete context, missing performer, missing location, stale Coverage, and a payer configuration update. Inspect both the request and returned cards. For multi-item hooks, verify that staff can tell which service a card concerns and that a changed Coverage selection does not leave an earlier card attached to the new case. These checks turn prefetch from a transport detail into a reliable part of authorization triage.

  • Log the hook, selected Coverage, prefetch key set, and response identifier for review.
  • Confirm sensitive data is limited to what the payer service needs.
  • Mark uncertain guidance for review instead of assigning an approval state.

Primary references