PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.us.davinci@dtr-2.0.1
    http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse
description: Enforces DTR requirements on a completed or partially completed QuestionnaireResponse, including allowing the response to be linked to the relevant order, coverage, etc. and enforcing constraints applicable to the DTR context.
package_name: rs/hl7.fhir.us.davinci
derivation: constraint
name: DTRQuestionnaireResponse
type: QuestionnaireResponse
elements:
  extension:
    array: true
    min: 3
    index: 0
    slicing:
      slices:
        signature:
          match: {}
          schema: {mustSupport: true, index: 1}
        context:
          match: {}
          schema: {type: Extension, short: 'Identifies the orders, coverages, and or other resources associated with the specified QuestionnaireResponse. The QuestionnaireResponse SHALL have at least one context that refers to a patient Coverage AND at least one context that refers to a Request resource or Encounter', url: 'http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/qr-context', index: 2}
          min: 2
          _required: true
        intendedUse:
          match: {}
          schema: {type: Extension, short: Indicates how the EHR is to use the information with respect to the associated orders/records., url: 'http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/intendedUse', index: 3}
          min: 1
  basedOn: {index: 4}
  partOf: {index: 5}
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient']
    index: 6
  author:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole']
    index: 7
  item:
    index: 8
    extensions:
      ItemSignature: {url: null, mustSupport: true, index: 9}
    elements:
      extension:
        mustSupport: true
        index: 9
        slicing:
          slices:
            ItemSignature:
              match: {}
              schema: {mustSupport: true, index: 9}
      answer:
        extensions:
          itemAnswerMedia: {url: null, mustSupport: true, index: 11}
          ordinalValue: {url: null, mustSupport: true, index: 12}
          origin: {url: 'http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/information-origin', min: 1, max: 1, type: Extension, mustSupport: true, index: 13}
        elements:
          extension:
            index: 10
            slicing:
              slices:
                itemAnswerMedia:
                  match: {}
                  schema: {mustSupport: true, index: 11}
                ordinalValue:
                  match: {}
                  schema: {mustSupport: true, index: 12}
                origin:
                  match: {}
                  schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/information-origin', index: 13}
                  min: 1
                  max: 1
        required: [extension]
package_version: dtr-2.0.1
extensions:
  signature: {url: null, mustSupport: true, index: 1}
  context: {url: 'http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/qr-context', min: 2, _required: true, type: Extension, short: 'Identifies the orders, coverages, and or other resources associated with the specified QuestionnaireResponse. The QuestionnaireResponse SHALL have at least one context that refers to a patient Coverage AND at least one context that refers to a Request resource or Encounter', index: 2}
  intendedUse: {url: 'http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/intendedUse', min: 1, type: Extension, short: Indicates how the EHR is to use the information with respect to the associated orders/records., index: 3}
class: profile
kind: resource
url: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse
base: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse
version: 2.0.1
required: [item, subject]