Implement the Da Vinci DTR (Documentation Templates and Rules) workflow by launching a SMART app from within an EHR CDS Hook card, prefilling a FHIR Questionnaire using CQL logic against EHR data, and submitting the completed QuestionnaireResponse
Receive the DTR SMART App Launch link from a CDS Hooks CRD card response and launch the DTR app within the EHR frame, passing the SMART launch context including patient, encounter, and order references
Retrieve the payer-provided FHIR Questionnaire and associated Library resources (containing CQL logic) from the payer's FHIR endpoint using the questionnaire URL included in the launch context
Execute the CQL expressions in the Library resource against the EHR's FHIR API to auto-populate Questionnaire items whose CQL expressions evaluate to values available in the EHR, reducing manual data entry
Render the partially populated Questionnaire to the clinician, highlighting items that require manual input because the CQL expression returned null or the data was not found in the EHR
Submit the completed QuestionnaireResponse to both the EHR (for documentation) and the payer's FHIR endpoint as part of the prior authorization or coverage determination workflow, and store the coverage determination result
Known gotchas
CQL execution in the browser requires a CQL engine running in the DTR app; the engine must support the FHIR Model and all referenced terminology value sets must be accessible at runtime, which adds significant dependency complexity
Payer Questionnaires may reference value sets that are not available on the EHR's terminology server; the DTR app must either bundle required value sets or fetch them from a separate terminology service
QuestionnaireResponse adaptive forms (where later questions depend on earlier answers) require the DTR app to support adaptive questionnaire rendering; flat questionnaire implementations break when encountering enableWhen conditions
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp