# DTR Questionnaire Package Input Parameters - Da Vinci - Documentation Templates and Rules v2.2.0

## Resource Profile: DTR Questionnaire Package Input Parameters 

 
The Parameters profile used to define the inputs of the [$questionnaire-package](OperationDefinition-questionnaire-package.md) operation (also see ['Retrieving Questionnaire Packages'](specification.md#retrieving-questionnaire-packages)).
 If both orders and a context id are present, then the context id can be used to link to additional information retrieved during CRD and to expedite re-processing of which Questionnaires are needed. §prof-1^dtr-server^exchange:However, the system should check that the passed orders are the same as was processed at CRD time before presuming that the questionnaires needed will be the same and if the orders have changed, or there's a possibility that the rules governing which Questionnaires are needed might have changed, the system **SHOULD** re-check to determine the needed Questionnaires.§ If specific Questionnaires are requested as part of the DTR invocation, such additional checking is not expected. 

**Usages:**

* Examples for this Profile: [Parameters/QuestionnairePackageInputParamsExample](Parameters-QuestionnairePackageInputParamsExample.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/hl7.fhir.us.davinci-dtr|current/StructureDefinition/dtr-qpackage-input-parameters)

### Formal Views of Profile Content

 [Description Differentials, Snapshots, and other representations](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](../StructureDefinition-dtr-qpackage-input-parameters.csv), [Excel](../StructureDefinition-dtr-qpackage-input-parameters.xlsx), [Schematron](../StructureDefinition-dtr-qpackage-input-parameters.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "dtr-qpackage-input-parameters",
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "cds"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 2,
    "_valueInteger" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/us/davinci-dtr/ImplementationGuide/hl7.fhir.us.davinci-dtr"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use",
    "_valueCode" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/us/davinci-dtr/ImplementationGuide/hl7.fhir.us.davinci-dtr"
      }]
    }
  }],
  "url" : "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-qpackage-input-parameters",
  "version" : "2.2.0",
  "name" : "DTRQuestionnairePackageInputParameters",
  "title" : "DTR Questionnaire Package Input Parameters",
  "status" : "active",
  "date" : "2026-03-27T15:13:55+00:00",
  "publisher" : "HL7 International / Clinical Decision Support",
  "contact" : [{
    "name" : "HL7 International / Clinical Decision Support",
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/dss"
    }]
  }],
  "description" : "The Parameters profile used to define the inputs of the [$questionnaire-package](OperationDefinition-questionnaire-package.html) operation (also see ['Retrieving Questionnaire Packages'](specification.html#retrieving-questionnaire-packages)).  \nIf both orders and a context id are present, then the context id can be used to link to additional information retrieved during CRD and to expedite re-processing of which Questionnaires are needed.  §prof-1^dtr-server^exchange:However, the system should check that the passed orders are the same as was processed at CRD time before presuming that the questionnaires needed will be the same and if the orders have changed, or there's a possibility that the rules governing which Questionnaires are needed might have changed, the system **SHOULD** re-check to determine the needed Questionnaires.§  If specific Questionnaires are requested as part of the DTR invocation, such additional checking is not expected.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "US"
    }]
  }],
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "v2",
    "uri" : "http://hl7.org/v2",
    "name" : "HL7 v2 Mapping"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Parameters",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Parameters",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Parameters",
      "path" : "Parameters",
      "constraint" : [{
        "key" : "dtr-1",
        "severity" : "error",
        "human" : "At least one of 'order', 'questionnaire' and 'context' SHALL be present",
        "expression" : "parameter.exists(name='order' or name='questionnaire' or name='context')",
        "source" : "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-qpackage-input-parameters|2.2.0"
      }]
    },
    {
      "id" : "Parameters.parameter",
      "path" : "Parameters.parameter",
      "slicing" : {
        "discriminator" : [{
          "type" : "pattern",
          "path" : "name"
        }],
        "description" : "Slice based on $this pattern",
        "rules" : "open"
      },
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:coverage",
      "path" : "Parameters.parameter",
      "sliceName" : "coverage",
      "min" : 1,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:coverage.name",
      "path" : "Parameters.parameter.name",
      "patternString" : "coverage"
    },
    {
      "id" : "Parameters.parameter:coverage.resource",
      "path" : "Parameters.parameter.resource",
      "min" : 1,
      "type" : [{
        "code" : "Coverage",
        "profile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-coverage|2.2.1"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:order",
      "path" : "Parameters.parameter",
      "sliceName" : "order",
      "min" : 0,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:order.name",
      "path" : "Parameters.parameter.name",
      "patternString" : "order"
    },
    {
      "id" : "Parameters.parameter:order.resource",
      "path" : "Parameters.parameter.resource",
      "short" : "One or more Order resource instances, e.g., DeviceRequest, ServiceRequest, MedicationRequest, ... Encounter, Appointment, or prior-auth Claim, etc.",
      "min" : 1,
      "type" : [{
        "code" : "Appointment",
        "profile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-appointment-base|2.2.1"]
      },
      {
        "code" : "Encounter",
        "profile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-encounter|2.2.1"]
      },
      {
        "code" : "CommunicationRequest",
        "profile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-communicationrequest|2.2.1"]
      },
      {
        "code" : "DeviceRequest",
        "profile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-devicerequest|2.2.1"]
      },
      {
        "code" : "MedicationRequest",
        "profile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-medicationrequest|2.2.1"]
      },
      {
        "code" : "NutritionOrder",
        "profile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-nutritionorder|2.2.1"]
      },
      {
        "code" : "ServiceRequest",
        "profile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-servicerequest|2.2.1"]
      },
      {
        "code" : "SupplyRequest"
      },
      {
        "code" : "VisionPrescription",
        "profile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-visionprescription|2.2.1"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:questionnaire",
      "path" : "Parameters.parameter",
      "sliceName" : "questionnaire",
      "min" : 0,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:questionnaire.name",
      "path" : "Parameters.parameter.name",
      "patternString" : "questionnaire"
    },
    {
      "id" : "Parameters.parameter:questionnaire.value[x]",
      "path" : "Parameters.parameter.value[x]",
      "min" : 1,
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-base-questionnaire"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:context",
      "path" : "Parameters.parameter",
      "sliceName" : "context",
      "short" : "CRD, CDex, or PAS-provided context",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:context.name",
      "path" : "Parameters.parameter.name",
      "patternString" : "context"
    },
    {
      "id" : "Parameters.parameter:context.value[x]",
      "path" : "Parameters.parameter.value[x]",
      "min" : 1,
      "type" : [{
        "code" : "string"
      }],
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:changedsince",
      "path" : "Parameters.parameter",
      "sliceName" : "changedsince",
      "short" : "When the Questionnaire package was last retrieved",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Parameters.parameter:changedsince.name",
      "path" : "Parameters.parameter.name",
      "patternString" : "changedsince"
    },
    {
      "id" : "Parameters.parameter:changedsince.value[x]",
      "path" : "Parameters.parameter.value[x]",
      "min" : 1,
      "type" : [{
        "code" : "instant"
      }],
      "mustSupport" : true
    }]
  }
}

```
