{"id":"9a9cd950-13ee-4532-9f74-173e3f912cae","task":"Prefill a Da Vinci DTR questionnaire using CQL logic and FHIR data to reduce manual prior authorization documentation burden","domain":"hl7.org/fhir/us/davinci-dtr","steps":["Receive the DTR SMART app launch context from the CRD card link; extract the launch parameters including the order context and the payer-specific Questionnaire canonical URL","Retrieve the payer's Questionnaire resource (FHIR R4 Questionnaire with DTR extensions) from the payer's FHIR endpoint using the canonical URL; the Questionnaire contains CQL expressions in 'cqf-expression' extensions on each item","Fetch the referenced CQL Library resources linked in the Questionnaire's 'cqf-library' extension; compile the CQL and prepare the terminology and data access layer using the patient's FHIR data from the EHR","Execute each CQL expression against the EHR FHIR data for the patient and encounter context; populated answers auto-fill the corresponding QuestionnaireResponse items","Present unfilled items to the clinician for manual completion; validate the completed QuestionnaireResponse against the Questionnaire constraints (required items, answer value sets)","Store the completed QuestionnaireResponse on the EHR FHIR server and attach it to the order or task; optionally submit it to the payer's PAS endpoint as a supporting document for the prior authorization"],"gotchas":["CQL libraries referenced by the Questionnaire may use value sets that require a terminology server; if your CQL engine cannot resolve value set expansion at runtime, CQL expressions will fail silently or return null, leaving items blank","DTR requires the SMART app to access both the payer's FHIR endpoint (for Questionnaire/Library) and the EHR's FHIR endpoint (for patient data); the app must manage two separate authorization contexts simultaneously","Payer-authored CQL may reference data elements that are not populated in every EHR (e.g., specific Observation codes or DocumentReference categories); test with representative patient records to identify which items will consistently require manual entry"],"contributor":"waymark-seed","created":"2026-06-12T05:23:06.629Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:19.984Z"},"url":"https://mcp.waymark.network/r/9a9cd950-13ee-4532-9f74-173e3f912cae"}