Da Vinci - Documentation Templates and Rules
2.2.0-ballot - STU 2.2 - Ballot United States of America flag

This page is part of the Documentation Templates and Rules (v2.2.0-ballot: STU 2.2 Ballot) based on FHIR (HL7® FHIR® Standard) R4. This version is a pre-release. The current official version is 2.1.0. For a full list of available versions, see the Directory of published versions

: $next-question Output Parameters Example - JSON Representation

Raw json | Download

{
  "resourceType" : "Parameters",
  "id" : "NextQuestionOutputParamsExample",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-next-question-output-parameters"
    ]
  },
  "parameter" : [
    {
      "name" : "questionnaire-response-out",
      "resource" : {
        "resourceType" : "QuestionnaireResponse",
        "id" : "home-o2-adaptive-questionnaireresponse",
        "meta" : {
          "profile" : [
            🔗 "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse-adapt"
          ]
        },
        "contained" : [
          {
            "resourceType" : "Questionnaire",
            "id" : "home-o2-adaptive-questionnaire",
            "meta" : {
              "profile" : [
                🔗 "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt"
              ]
            },
            "text" : {
              "status" : "generated",
              "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Example adaptive questionnaire contained in a QuestionnaireResposne</div>"
            },
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-questionnaireAdaptive",
                "valueUrl" : "http://example.com/fhir/R4"
              }
            ],
            "url" : "http://example.com/fhir/questionnaire",
            "version" : "0.1.0",
            "name" : "HomeOxygenTherapyAdaptiveQuestionnaire",
            "title" : "Adaptive Home Oxygen Therapy Order Template",
            "derivedFrom" : [
              🔗 "http://hl7.org/fhir/us/davinci-dtr/dtr-questionnaire"
            ],
            "status" : "draft",
            "subjectType" : [
              "Patient"
            ],
            "date" : "2020-01-16T00:00:00+00:00",
            "publisher" : "Da Vinci DTR",
            "contact" : [
              {
                "name" : "Example Author"
              }
            ],
            "item" : [
              {
                "linkId" : "1",
                "text" : "Relevant Patient Diagnoses (conditions that might be expected to improve with oxygen therapy)",
                "type" : "text",
                "required" : true
              },
              {
                "linkId" : "2",
                "text" : "Order Reason",
                "type" : "choice",
                "required" : true,
                "answerOption" : [
                  {
                    "valueCoding" : {
                      "system" : "http://example.org",
                      "code" : "1",
                      "display" : "Initial or original order for certification"
                    }
                  },
                  {
                    "valueCoding" : {
                      "system" : "http://example.org",
                      "code" : "2",
                      "display" : "Change in status"
                    }
                  },
                  {
                    "valueCoding" : {
                      "system" : "http://example.org",
                      "code" : "3",
                      "display" : "Revision or change in equipment"
                    }
                  },
                  {
                    "valueCoding" : {
                      "system" : "http://example.org",
                      "code" : "4",
                      "display" : "Replacement"
                    }
                  }
                ]
              }
            ]
          }
        ],
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/qr-coverage",
            "valueReference" : {
              🔗 "reference" : "Coverage/CoverageExample"
            }
          },
          {
            "url" : "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/intendedUse",
            "valueCodeableConcept" : {
              "coding" : [
                {
                  "system" : "http://hl7.org/fhir/us/davinci-crd/CodeSystem/temp",
                  "code" : "withorder",
                  "display" : "Include with order"
                }
              ]
            }
          },
          {
            "url" : "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/qr-context",
            "valueReference" : {
              🔗 "reference" : "ServiceRequest/ServiceRequestExample"
            }
          }
        ],
        "questionnaire" : "#home-o2-adaptive-questionnaire",
        "status" : "completed",
        "subject" : {
          🔗 "reference" : "Patient/examplepatient",
          "display" : "Vlad"
        },
        "authored" : "2022-01-26T20:36:57.544Z",
        "item" : [
          {
            "linkId" : "1",
            "text" : "Relevant Patient Diagnoses (conditions that might be expected to improve with oxygen therapy)",
            "answer" : [
              {
                "extension" : [
                  {
                    "extension" : [
                      {
                        "url" : "source",
                        "valueCode" : "auto"
                      }
                    ],
                    "url" : "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/information-origin"
                  }
                ],
                "valueString" : "diagnosis"
              }
            ]
          },
          {
            "linkId" : "2",
            "text" : "Order Reason",
            "answer" : [
              {
                "extension" : [
                  {
                    "extension" : [
                      {
                        "url" : "source",
                        "valueCode" : "auto"
                      }
                    ],
                    "url" : "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/information-origin"
                  }
                ],
                "valueCoding" : {
                  "system" : "http://example.org",
                  "code" : "4",
                  "display" : "Replacement"
                }
              }
            ]
          }
        ]
      }
    }
  ]
}