Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/prior-auth/dtr/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# DTR

Da Vinci Documentation Templates and Rules. DTR uses FHIR Questionnaire (with CQL-driven prefill and skip logic) to collect the clinical documentation a payer needs to decide a prior authorization.
Da Vinci Documentation Templates and Rules. DTR uses FHIR Questionnaire (with FHIRPath-driven prefill and skip logic) to collect the clinical documentation a payer needs to decide a prior authorization.

Payerbox supports two implementation paths.

| Page | Use case |
|---|---|
| [Aidbox as Questionnaire storage](aidbox-questionnaire-package.md) | Server-side packaging of Questionnaire and ValueSet bundles for client-side rendering |
| [DTR SMART App](dtr-smart-app.md) | EHR-launched SMART on FHIR app that renders the questionnaire and runs CQL client-side |
| [DTR SMART App](dtr-smart-app.md) | EHR-launched SMART on FHIR app that renders the questionnaire and prefills it client-side |

CQL execution happens on the client (the DTR SMART app or another DTR-aware client), not on Aidbox. Aidbox stores Questionnaire, ValueSet, and Library resources; [`$questionnaire-package`](../../api-reference/operations/questionnaire-package.md) returns a Bundle of the Questionnaire with its expanded ValueSets — referenced CQL Libraries are not currently included in the bundle.
Prefill runs on the client (the DTR SMART app or another DTR-aware client), not on Aidbox: the questionnaire's FHIRPath `initialExpression`s are evaluated client-side (SDC `$populate`), with no CQL engine. Aidbox stores the Questionnaire and ValueSet resources; [`$questionnaire-package`](../../api-reference/operations/questionnaire-package.md) returns a Bundle of the Questionnaire with its expanded ValueSets.

Both paths produce a QuestionnaireResponse that becomes input to [PAS](../pas.md).
4 changes: 2 additions & 2 deletions docs/prior-auth/dtr/aidbox-questionnaire-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Accept: application/fhir+json
|---|---|---|
| Who renders the questionnaire | The client (EHR, third-party DTR app) | Payerbox-shipped SMART app |
| Launch mechanism | Direct API call | EHR SMART on FHIR launch |
| CQL execution | Client-side, by the DTR client | Client-side, inside the SMART app |
| Prefill execution | Client-side, by the DTR client | Client-side, inside the SMART app |

The operation is implemented as a subset of Da Vinci DTR STU 2.0.1; most notably, **CQL Libraries referenced by the Questionnaire are not bundled** — the rendering client must resolve them. Full parameter list, limitations, and examples: [`$questionnaire-package`](../../api-reference/operations/questionnaire-package.md).
The operation is implemented as a subset of Da Vinci DTR STU 2.0.1: it bundles the Questionnaire and its expanded ValueSets, and prefill uses the questionnaire's FHIRPath `initialExpression`s (no CQL). Full parameter list, limitations, and examples: [`$questionnaire-package`](../../api-reference/operations/questionnaire-package.md).

The QuestionnaireResponse produced by either path becomes the input to [PAS](../pas.md).
Loading