Adaptive Exchange Replay
Recorded exchange · no operation is invoked · zero network
An adaptive DTR Questionnaire does not hand you its questions. The client calls $next-question and the payer decides what to ask next, per patient, per order. This walks a committed four-turn transcript so you can see the branch happen — and see why counting the items of an adaptive form is a question static analysis has to refuse.
Why these questions now: Nothing is known yet — the payer opens on qualification, not equipment.
Request — Parameters
{
"resourceType": "Parameters",
"parameter": [
{
"name": "questionnaire",
"valueCanonical": "https://payer.example.org/fhir/Questionnaire/home-oxygen-adaptive|1.0.0"
},
{
"name": "subject",
"valueReference": {
"reference": "Patient/synthetic-adult-copd"
}
},
{
"name": "questionnaire-response",
"resource": {
"resourceType": "QuestionnaireResponse",
"questionnaire": "https://payer.example.org/fhir/Questionnaire/home-oxygen-adaptive|1.0.0",
"status": "in-progress",
"subject": {
"reference": "Patient/synthetic-adult-copd"
}
}
}
]
}Response — Questionnaire
{
"resourceType": "Questionnaire",
"id": "home-oxygen-adaptive-turn-1",
"meta": {
"profile": [
"http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt"
]
},
"url": "https://payer.example.org/fhir/Questionnaire/home-oxygen-adaptive",
"version": "1.0.0",
"name": "HomeOxygenTherapyAdaptive",
"title": "Home Oxygen Therapy (adaptive)",
"status": "active",
"subjectType": [
"Patient"
],
"contained": [
{
"resourceType": "QuestionnaireResponse",
"id": "qr",
"questionnaire": "https://payer.example.org/fhir/Questionnaire/home-oxygen-adaptive|1.0.0",
"status": "in-progress",
"subject": {
"reference": "Patient/synthetic-adult-copd"
}
}
],
"item": [
{
"linkId": "q-diagnosis",
"text": "Which qualifying diagnosis supports this request?",
"type": "choice",
"required": true,
"answerValueSet": "https://payer.example.org/fhir/ValueSet/copd-diagnoses"
},
{
"linkId": "q-on-oxygen",
"text": "Is the patient currently receiving supplemental oxygen at home?",
"type": "boolean",
"required": true
}
]
}Questions asked so far (2)
The set only ever grows. Items already seen are muted; items new to this turn are highlighted — that accumulation is what a static item tree cannot show you.
q-diagnosis· choice · required — Which qualifying diagnosis supports this request? · new this turnq-on-oxygen· boolean · required — Is the patient currently receiving supplemental oxygen at home? · new this turn
Why static analysis refuses to count this form
The Questionnaire above is https://payer.example.org/fhir/Questionnaire/home-oxygen-adaptive — the same resource the workbench reports as REFUSED rather than reporting zero questions. Both statements are true at once: the payload declares no items, and a payer would have served nine across four turns. That is the gap a number would have hidden. Load it in the workbench to see the refusal itself.
Authored synthetic transcript. No operation was invoked, no payer was contacted, and no network request produced any file here. The next question in each turn was written, not computed.