us-quality-core-questionnaireresponse
type: StructureDefinition
node role: treeRoot
resource.id:
  value: us-quality-core-questionnaireresponse
resource.language:
  value: en
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Generated Narrative: StructureDefinition us-quality-core-questionnaireresponse Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> QuestionnaireResponse 0..* USCoreQuestionnaireResponseProfile(9.0.0) US Core Profile based on SDC QuestionnaireResponse #xD; questionnaire 1..1 canonical(SDC Base Questionnaire) (USCDI+ Quality) Form being answered #xD; subject 1..1 Reference(US Quality Core Patient) The subject of the questions #xD; authored 1..1 dateTime (USCDI+ Quality) Date the answers were gathered #xD; author 0..1 Reference(US Quality Core Practitioner | US Quality Core Organization | US Quality Core Patient | US Quality Core PractitionerRole | US Core Device Profile(9.0.0) | US Quality Core RelatedPerson) (USCDI+ Quality) Person who received and recorded the answers #xD; item #xD; answer 0..* BackboneElement (USCDI+ Quality) The response(s) to the question #xD; value[x] 0..1 (USCDI+ Quality) Single-valued answer to the question #xD; valueDate date #xD; <span title="Base StructureDefinition for dateTime Type: A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates.">valueDateTime dateTime #xD; valueDecimal decimal #xD; valueInteger integer #xD; valueString string #xD; valueCoding Coding #xD; valueQuantity Quantity #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  extension.value code:
    value: cqi
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  extension.value integer:
    value: 4
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      extension.value canonical:
        value: http://hl7.org/fhir/us/quality-core/ImplementationGuide/hl7.fhir.us.quality-core
        link: http://hl7.org/fhir/us/quality-core/ImplementationGuide/hl7.fhir.us.quality-core
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  extension.value code:
    value: trial-use
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      extension.value canonical:
        value: http://hl7.org/fhir/us/quality-core/ImplementationGuide/hl7.fhir.us.quality-core
        link: http://hl7.org/fhir/us/quality-core/ImplementationGuide/hl7.fhir.us.quality-core
structure definition.url:
  value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-questionnaireresponse
structure definition.identifier:
  index: -1
  identifier.system:
    value: urn:ietf:rfc:3986
  identifier.value:
    value: urn:oid:2.16.840.1.113883.4.642.40.78.42.45
structure definition.version:
  value: 1.0.0-ballot
structure definition.name:
  value: USQualityCoreQuestionnaireResponse
structure definition.title:
  value: US Quality Core QuestionnaireResponse
structure definition.status:
  value: active
structure definition.date:
  value: 2026-06-30
structure definition.publisher:
  value: HL7 International / Clinical Quality Information
structure definition.contact:
  index: -1
  contact detail.name:
    value: HL7 International / Clinical Quality Information
  contact detail.telecom:
    index: -1
    contact point.system:
      value: url
    contact point.value:
      value: http://www.hl7.org/Special/committees/cqi
structure definition.contact:
  index: -1
  contact detail.name:
    value: Clinical Quality Information WG
  contact detail.telecom:
    index: -1
    contact point.system:
      value: url
    contact point.value:
      value: http://www.hl7.org/Special/committees/cqi
structure definition.description:
  value: The US Quality Core QuestionnaireResponse Profile is based upon the US Core QuestionnaireResponse Profile and sets minimum expectations for the QuestionnaireResponse resource to record, search, and fetch retrieve captures the responses to form/survey and defines the core set of elements and extensions for quality rule and measure authors.
structure definition.jurisdiction:
  index: -1
  codeable concept.coding:
    index: -1
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: US
structure definition.copyright:
  value: Used by permission of HL7 International, all rights reserved Creative Commons License
structure definition.fhir version:
  value: 4.0.1
structure definition.mapping:
  index: -1
  structure definition.mapping.identity:
    value: workflow
  structure definition.mapping.uri:
    value: http://hl7.org/fhir/workflow
  structure definition.mapping.name:
    value: Workflow Pattern
structure definition.mapping:
  index: -1
  structure definition.mapping.identity:
    value: rim
  structure definition.mapping.uri:
    value: http://hl7.org/v3
  structure definition.mapping.name:
    value: RIM Mapping
structure definition.mapping:
  index: -1
  structure definition.mapping.identity:
    value: w5
  structure definition.mapping.uri:
    value: http://hl7.org/fhir/fivews
  structure definition.mapping.name:
    value: FiveWs Pattern Mapping
structure definition.kind:
  value: resource
structure definition.abstract:
  value: false
structure definition.type:
  value: QuestionnaireResponse
structure definition.base definition:
  value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-questionnaireresponse|9.0.0
  link: 9.0
  link: .0
structure definition.derivation:
  value: constraint
structure definition.snapshot:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    extension.value string:
      value: 9.0.0
  structure definition.snapshot.element:
    index: -1
    element.id:
      value: QuestionnaireResponse
    element definition.path:
      value: QuestionnaireResponse
    element definition.short:
      value: US Core Profile based on SDC QuestionnaireResponse
    element definition.definition:
      value: Sets expectations for supported capabilities for questionnaire responses for SDC-conformant systems.
    element definition.comment:
      value: The QuestionnaireResponse contains enough information about the questions asked and their organization that it can be interpreted somewhat independently from the Questionnaire it is based on. I.e. You don't need access to the Questionnaire in order to extract basic information from a QuestionnaireResponse.
    element definition.alias:
      value: Form
      index: -1
    element definition.alias:
      value: QuestionnaireAnswers
      index: -1
    element definition.alias:
      value: Form Data
      index: -1
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: QuestionnaireResponse
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.constraint:
      index: -1
      element definition.constraint.key:
        value: dom-2
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      element definition.constraint.expression:
        value: contained.contained.empty()
      element definition.constraint.xpath:
        value: not(parent::f:contained and f:contained)
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    element definition.constraint:
      index: -1
      element definition.constraint.key:
        value: dom-3
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      element definition.constraint.expression:
        value: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      element definition.constraint.xpath:
        value: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    element definition.constraint:
      index: -1

value: dom-4

value: error

value: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated

value: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()

value: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))

index: -1
element definition.constraint.key:
  value: dom-5
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: If a resource is contained in another resource, it SHALL NOT have a security label
element definition.constraint.expression:
  value: contained.meta.security.empty()
element definition.constraint.xpath:
  value: not(exists(f:contained/*/f:meta/f:security))
element definition.constraint.source:
  value: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

index: -1
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
  extension.value boolean:
    value: true
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation
  extension.value markdown:
    value: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.
element definition.constraint.key:
  value: dom-6
element definition.constraint.severity:
  value: warning
element definition.constraint.human:
  value: A resource should have narrative for robust management
element definition.constraint.expression:
  value: text.`div`.exists()
element definition.constraint.xpath:
  value: exists(f:text/h:div)
element definition.constraint.source:
  value: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

index: -1
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
  extension.value boolean:
    value: true
element definition.constraint.key:
  value: sdcqr-1
element definition.constraint.severity:
  value: warning
element definition.constraint.human:
  value: Subject SHOULD be present (searching is difficult without subject). Almost all QuestionnaireResponses should be with respect to some sort of subject.
element definition.constraint.expression:
  value: subject.exists()
element definition.constraint.xpath:
  value: exists(f:subject)
element definition.constraint.source:
  value: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponsecommon
  link: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponsecommon

index: -1
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
  extension.value boolean:
    value: true
element definition.constraint.key:
  value: sdcqr-2
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: When repeats=true for a group, it'll be represented with multiple items with the same linkId in the QuestionnaireResponse. For a question, it'll be represented by a single item with that linkId with multiple answers.
element definition.constraint.expression:
  value: (QuestionnaireResponse|repeat(answer|item)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()
element definition.constraint.xpath:
  value: not(exists(for $item in descendant::f:item[f:answer] return $item/preceding-sibling::f:item[f:linkId/@value=$item/f:linkId/@value]))
element definition.constraint.source:
  value: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponsecommon
  link: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponsecommon

index: -1
element definition.constraint.key:
  value: sdcqr-3
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: Can either have source or source extension, but not both
element definition.constraint.expression:
  value: source.count() + extension.where(url='http://hl7.org/fhir/5.0/StructureDefinition/extension-QuestionnaireResponse.source').count() <=1
element definition.constraint.xpath:
  value: count(f:source | f:extension[@url='http://hl7.org/fhir/5.0/StructureDefinition/extension-QuestionnaireResponse.source']) <= 1
element definition.constraint.source:
  value: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponsecommon
  link: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponsecommon

value: false

value: false

index: -1
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: Entity. Role, or Act

index: -1
element definition.mapping.identity:
  value: workflow
element definition.mapping.map:
  value: Event

index: -1
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: Observation[moodCode=EVN]

index: -1
element.id:
  value: QuestionnaireResponse.id
element definition.path:
  value: QuestionnaireResponse.id
element definition.short:
  value: Logical id of this artifact
element definition.definition:
  value: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
element definition.comment:
  value: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: id
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: true

index: -1
element.id:
  value: QuestionnaireResponse.meta
element definition.path:
  value: QuestionnaireResponse.meta
element definition.short:
  value: Metadata about the resource
element definition.definition:
  value: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.meta
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Meta
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true

index: -1
element.id:
  value: QuestionnaireResponse.implicitRules
element definition.path:
  value: QuestionnaireResponse.implicitRules
element definition.short:
  value: A set of rules under which this content was created
element definition.definition:
  value: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
element definition.comment:
  value: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.implicitRules
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: uri
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
element definition.is summary:
  value: true

index: -1
element.id:
  value: QuestionnaireResponse.language
element definition.path:
  value: QuestionnaireResponse.language
element definition.short:
  value: Language of the resource content
element definition.definition:
  value: The base language in which the resource is written.
element definition.comment:
  value: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.language
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    extension.value canonical:
      value: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: Language
  element definition.binding.strength:
    value: preferred
  element definition.binding.description:
    value: A human language.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/languages|4.0.1
    link: 4.0
    link: .1

index: -1
element.id:
  value: QuestionnaireResponse.text
element definition.path:
  value: QuestionnaireResponse.text
element definition.short:
  value: Text summary of the resource, for human interpretation
element definition.definition:
  value: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
element definition.comment:
  value: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
element definition.alias:
  value: narrative
  index: -1
element definition.alias:
  value: html
  index: -1
element definition.alias:
  value: xhtml
  index: -1
element definition.alias:
  value: display
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Narrative
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Act.text?

index: -1
element.id:
  value: QuestionnaireResponse.contained
element definition.path:
  value: QuestionnaireResponse.contained
element definition.short:
  value: Contained, inline Resources
element definition.definition:
  value: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
element definition.comment:
  value: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
element definition.alias:
  value: inline resources
  index: -1
element definition.alias:
  value: anonymous resources
  index: -1
element definition.alias:
  value: contained resources
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.contained
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Resource
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.extension
element definition.path:
  value: QuestionnaireResponse.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.ordered:
    value: false
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Extension
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.extension:adheresTo
element definition.path:
  value: QuestionnaireResponse.extension
element definition.slice name:
  value: adheresTo
element definition.short:
  value: Follows rules from
element definition.definition:
  value: The action represented by this resource has been determined to satisfy the expectations established by the referenced Definition resource.
element definition.comment:
  value: If changes are made to this event record, the determination must be made whether, with the change, the action still complies with the referenced Definition. Revisions may result in adheresTo assertions being removed, or - if the system has an algorithm for determining which targets are appropriate - being added. Adherence may be asserted after the fact. It is possible for a Request or Event to adhere to a Definition even if the author/performer of the action was not aware of the Definition at the time the action was taken/requested. Also see the [notes](http://hl7.org/fhir/R4/workflow-extensions.html#instantiation) in the workflow extensions area for more guidance on this element.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/workflow-adheresTo|5.3.0-ballot-tc1
    index: -1
    link: 5.3
    link: .0
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: Varies by domain
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=DEFN].target

index: -1
element.id:
  value: QuestionnaireResponse.extension:adheresTo.id
element definition.path:
  value: QuestionnaireResponse.extension.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: QuestionnaireResponse.extension:adheresTo.extension
element definition.path:
  value: QuestionnaireResponse.extension.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Extension
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.extension:adheresTo.url
element definition.path:
  value: QuestionnaireResponse.extension.url
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: identifies the meaning of the extension
element definition.definition:
  value: Source of the definition for the extension code - a logical name or a URL.
element definition.comment:
  value: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Extension.url
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: uri
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.fixed uri:
  value: http://hl7.org/fhir/StructureDefinition/workflow-adheresTo
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.extension:adheresTo.value[x]
element definition.path:
  value: QuestionnaireResponse.extension.value[x]
element definition.short:
  value: Value of extension
element definition.definition:
  value: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Extension.value[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: canonical
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PlanDefinition
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/PlanDefinition
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PlanDefinition
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/PlanDefinition
element definition.type:
  index: -1
  element definition.type.code:
    value: uri
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.extension:triggeredBy
element definition.path:
  value: QuestionnaireResponse.extension
element definition.slice name:
  value: triggeredBy
element definition.short:
  value: Created because of following
element definition.definition:
  value: This resource came into being as a result of expectations set in the referenced Definition resource. I.e. This resource represents a 'step' dictated within the protocol/order set/etc.
element definition.comment:
  value: See the [notes](http://hl7.org/fhir/R4/workflow-extensions.html#instantiation) in the workflow extensions area for more guidance on this element.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy|5.3.0-ballot-tc1
    index: -1
    link: 5.3
    link: .0
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: Varies by domain
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=DEFN].target

index: -1
element.id:
  value: QuestionnaireResponse.extension:triggeredBy.id
element definition.path:
  value: QuestionnaireResponse.extension.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: QuestionnaireResponse.extension:triggeredBy.extension
element definition.path:
  value: QuestionnaireResponse.extension.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Extension
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.extension:triggeredBy.url
element definition.path:
  value: QuestionnaireResponse.extension.url
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: identifies the meaning of the extension
element definition.definition:
  value: Source of the definition for the extension code - a logical name or a URL.
element definition.comment:
  value: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Extension.url
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: uri
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.fixed uri:
  value: http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.extension:triggeredBy.value[x]
element definition.path:
  value: QuestionnaireResponse.extension.value[x]
element definition.short:
  value: Value of extension
element definition.definition:
  value: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Extension.value[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: canonical
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PlanDefinition
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/PlanDefinition
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PlanDefinition
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/PlanDefinition
element definition.type:
  index: -1
  element definition.type.code:
    value: uri
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.extension:signature
element definition.path:
  value: QuestionnaireResponse.extension
element definition.slice name:
  value: signature
element definition.short:
  value: A signature attesting to the content
element definition.definition:
  value: Represents a wet or electronic signature for either the form overall or for the question or item it's associated with.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0-ballot-tc1
    index: -1
    link: 5.3
    link: .0
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.extension:completionMode
element definition.path:
  value: QuestionnaireResponse.extension
element definition.slice name:
  value: completionMode
element definition.short:
  value: E.g. Verbal, written, electronic
element definition.definition:
  value: Indicates how the individual completing the QuestionnaireResponse provided their responses.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/questionnaireresponse-completionMode|5.3.0-ballot-tc1
    index: -1
    link: 5.3
    link: .0
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.modifierExtension
element definition.path:
  value: QuestionnaireResponse.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.identifier
element definition.path:
  value: QuestionnaireResponse.identifier
element definition.short:
  value: Unique id for this set of answers
element definition.definition:
  value: A business identifier assigned to a particular completed (or partially completed) questionnaire.
element definition.requirements:
  value: Used for tracking, registration and other business purposes.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.identifier
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Identifier
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.identifier
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.identifier
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .id

index: -1
element.id:
  value: QuestionnaireResponse.basedOn
element definition.path:
  value: QuestionnaireResponse.basedOn
element definition.short:
  value: Request fulfilled by this QuestionnaireResponse
element definition.definition:
  value: The order, proposal or plan that is fulfilled in whole or in part by this QuestionnaireResponse. For example, a ServiceRequest seeking an intake assessment or a decision support recommendation to assess for post-partum depression.
element definition.requirements:
  value: Supports traceability of responsibility for the action and allows linkage of an action to the recommendations acted upon.
element definition.alias:
  value: order
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.basedOn
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.basedOn
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=FLFS].target

index: -1
element.id:
  value: QuestionnaireResponse.partOf
element definition.path:
  value: QuestionnaireResponse.partOf
element definition.short:
  value: Part of this action
element definition.definition:
  value: A procedure or observation that this questionnaire was performed as part of the execution of. For example, the surgery a checklist was executed as part of.
element definition.comment:
  value: Composition of questionnaire responses will be handled by the parent questionnaire having answers that reference the child questionnaire. For relationships to referrals, and other types of requests, use basedOn.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.partOf
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Observation|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.partOf
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=COMP].source[moodCode=EVN]

index: -1
element.id:
  value: QuestionnaireResponse.questionnaire
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: QuestionnaireResponse.questionnaire
element definition.short:
  value: (USCDI+ Quality) Form being answered
element definition.definition:
  value: The Questionnaire that defines and organizes the questions for which answers are being provided.
element definition.comment:
  value: For SDC, this SHALL be the version-specific URL of the form as hosted on the Form Manager.
element definition.requirements:
  value: Needed to allow editing of the questionnaire response in a manner that enforces the constraints of the original form.
element definition.alias:
  value: Form
  index: -1
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.questionnaire
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: canonical
  element definition.type.target profile:
    value: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire
    index: -1
    link: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.instantiates
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]

index: -1
element.id:
  value: QuestionnaireResponse.questionnaire.id
element definition.path:
  value: QuestionnaireResponse.questionnaire.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.questionnaire.extension
element definition.path:
  value: QuestionnaireResponse.questionnaire.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.ordered:
    value: false
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Extension
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.questionnaire.extension:questionnaireDisplay
element definition.path:
  value: QuestionnaireResponse.questionnaire.extension
element definition.slice name:
  value: questionnaireDisplay
element definition.short:
  value: Display name for canonical reference
element definition.definition:
  value: The title or other name to display when referencing a resource by canonical URL.
element definition.comment:
  value: This SHALL be the title of the Questionnaire at the time the QuestionnaireResponse was originally authored.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/display|5.3.0-ballot-tc1
    index: -1
    link: 5.3
    link: .0
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.questionnaire.extension:url
element definition.path:
  value: QuestionnaireResponse.questionnaire.extension
element definition.slice name:
  value: url
element definition.short:
  value: The location where a non-FHIR questionnaire/survey form can be found.
element definition.definition:
  value: This extension is used when the survey,form, or questionnaire which is being anwered is not a FHIR [Questionnaire](https://www.hl7.org/fhir/questionnaire.html), otherwise the [canonical url](https://www.hl7.org/fhir/questionnaire.html#canonical) for the FHIR Questionnaire is used.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-extension-questionnaire-uri
    index: -1
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-extension-questionnaire-uri
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.questionnaire.value
element definition.path:
  value: QuestionnaireResponse.questionnaire.value
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Primitive value for canonical
element definition.definition:
  value: Primitive value for canonical
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: uri.value
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/regex
    extension.value string:
      value: \S*
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.status
element definition.path:
  value: QuestionnaireResponse.status
element definition.short:
  value: in-progress | completed | amended | entered-in-error | stopped
element definition.definition:
  value: The position of the questionnaire response within its overall lifecycle.
element definition.comment:
  value: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
element definition.requirements:
  value: The information on Questionnaire resources may possibly be gathered during multiple sessions and altered after considered being finished.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.status
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: QuestionnaireResponseStatus
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: Lifecycle status of the questionnaire response.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.status
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.status
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish "in-progress" from "published)

index: -1
element.id:
  value: QuestionnaireResponse.subject
element definition.path:
  value: QuestionnaireResponse.subject
element definition.short:
  value: The subject of the questions
element definition.definition:
  value: The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information.
element definition.requirements:
  value: Allows linking the answers to the individual the answers describe. May also affect access control.
element definition.alias:
  value: Patient
  index: -1
element definition.alias:
  value: Focus
  index: -1
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.subject
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.subject
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.subject[x]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=SBJ].role
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.subject

index: -1
element.id:
  value: QuestionnaireResponse.encounter
element definition.path:
  value: QuestionnaireResponse.encounter
element definition.short:
  value: Encounter created as part of
element definition.definition:
  value: The Encounter during which this questionnaire response was created or to which the creation of this record is tightly associated.
element definition.comment:
  value: This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. A questionnaire that was initiated during an encounter but not fully completed during the encounter would still generally be associated with the encounter.
element definition.requirements:
  value: Provides context for the information that was captured. May also affect access control.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.encounter
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.encounter
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.context
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]

index: -1
element.id:
  value: QuestionnaireResponse.authored
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: QuestionnaireResponse.authored
element definition.short:
  value: (USCDI+ Quality) Date the answers were gathered
element definition.definition:
  value: Identifies when this version of the answer set was created. Changes whenever the answers are updated.
element definition.comment:
  value: May be different from the lastUpdateTime of the resource itself, because that reflects when the data was known to the server, not when the data was captured. This element is optional to allow for systems that might not know the value, however it SHOULD be populated if possible.
element definition.requirements:
  value: Clinicians need to be able to check the date that the information in the questionnaire was collected, to derive the context of the answers.
element definition.alias:
  value: Date Created
  index: -1
element definition.alias:
  value: Date published
  index: -1
element definition.alias:
  value: Date Issued
  index: -1
element definition.alias:
  value: Date updated
  index: -1
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.authored
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: dateTime
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.occurrence[x]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.recorded
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=AUT].time

index: -1
element.id:
  value: QuestionnaireResponse.author
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: QuestionnaireResponse.author
element definition.short:
  value: (USCDI+ Quality) Person who received and recorded the answers
element definition.definition:
  value: Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.
element definition.comment:
  value: Mapping a subject's answers to multiple choice options and determining what to put in the textual answer is a matter of interpretation. Authoring by device would indicate that some portion of the questionnaire had been auto-populated.
element definition.requirements:
  value: Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers.
element definition.alias:
  value: Laboratory
  index: -1
element definition.alias:
  value: Service
  index: -1
element definition.alias:
  value: Practitioner
  index: -1
element definition.alias:
  value: Department
  index: -1
element definition.alias:
  value: Company
  index: -1
element definition.alias:
  value: Performer
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.author
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-organization
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-organization
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-device|9.0.0
    index: -1
    link: 9.0
    link: .0
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-relatedperson
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-relatedperson
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.performer
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.author
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=AUT].role

index: -1
element.id:
  value: QuestionnaireResponse.source
element definition.path:
  value: QuestionnaireResponse.source
element definition.short:
  value: The person who answered the questions
element definition.definition:
  value: The person who answered the questions about the subject.
element definition.comment:
  value: If not specified, no inference can be made about who provided the data.
element definition.requirements:
  value: When answering questions about a subject that is minor, incapable of answering or an animal, another human source may answer the questions.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.source
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Patient|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.source
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=INF].role

index: -1
element.id:
  value: QuestionnaireResponse.source.id
element definition.path:
  value: QuestionnaireResponse.source.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: QuestionnaireResponse.source.extension
element definition.path:
  value: QuestionnaireResponse.source.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: QuestionnaireResponse.source.extension:r5Source
element definition.path:
  value: QuestionnaireResponse.source.extension
element definition.slice name:
  value: r5Source
element definition.short:
  value: Alternative reference (target type is wrong)
element definition.definition:
  value: Used when the target of the reference has a type that is not allowed by the definition of the element. In general, this should only arise when wrangling between versions using cross-version extensions.
element definition.comment:
  value: Given that a reference SHALL have a display or reference, using this extension implies that there's a display present.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/alternate-reference|5.3.0-ballot-tc1
    index: -1
    link: 5.3
    link: .0
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.source.extension:r5Source.id
element definition.path:
  value: QuestionnaireResponse.source.extension.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: QuestionnaireResponse.source.extension:r5Source.extension
element definition.path:
  value: QuestionnaireResponse.source.extension.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Extension
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.source.extension:r5Source.url
element definition.path:
  value: QuestionnaireResponse.source.extension.url
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: identifies the meaning of the extension
element definition.definition:
  value: Source of the definition for the extension code - a logical name or a URL.
element definition.comment:
  value: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Extension.url
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: uri
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.fixed uri:
  value: http://hl7.org/fhir/StructureDefinition/alternate-reference
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.source.extension:r5Source.value[x]
element definition.path:
  value: QuestionnaireResponse.source.extension.value[x]
element definition.short:
  value: Value of extension
element definition.definition:
  value: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Extension.value[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Device
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/Device
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Organization
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/Organization
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.source.reference
element definition.path:
  value: QuestionnaireResponse.source.reference
element definition.short:
  value: Literal reference, Relative, internal or absolute URL
element definition.definition:
  value: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
element definition.comment:
  value: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.reference
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: string
element definition.condition:
  value: ref-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.source.type
element definition.path:
  value: QuestionnaireResponse.source.type
element definition.short:
  value: Type the reference refers to (e.g. "Patient")
element definition.definition:
  value: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
element definition.comment:
  value: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: uri
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: FHIRResourceTypeExt
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: Aa resource (or, for logical models, the URI of the logical model).
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/resource-types|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.source.identifier
element definition.path:
  value: QuestionnaireResponse.source.identifier
element definition.short:
  value: Logical reference, when literal reference is not known
element definition.definition:
  value: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
element definition.comment:
  value: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.identifier
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Identifier
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .identifier

index: -1
element.id:
  value: QuestionnaireResponse.source.display
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: QuestionnaireResponse.source.display
element definition.short:
  value: Text alternative for the resource
element definition.definition:
  value: Plain text narrative that identifies the resource in addition to the resource reference.
element definition.comment:
  value: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.display
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: string
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.item
element definition.path:
  value: QuestionnaireResponse.item
element definition.short:
  value: Groups and questions
element definition.definition:
  value: A group or question item from the original questionnaire for which answers are provided.
element definition.comment:
  value: Groups cannot have answers and therefore must nest directly within item. When dealing with questions, nesting must occur within each answer because some questions may have multiple answers (and the nesting occurs for each answer).
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.item
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: qrs-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Nested item can't be beneath both item and answer
  element definition.constraint.expression:
    value: (answer.exists() and item.exists()).not()
  element definition.constraint.xpath:
    value: not(exists(f:answer) and exists(f:item))
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
    link: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: qrs-2
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Repeated answers are combined in the answers array of a single item
  element definition.constraint.expression:
    value: repeat(answer|item).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()
  element definition.constraint.xpath:
    value: true()
  element definition.constraint.source:
    value: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponsecommon
    link: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponsecommon
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]

index: -1
element.id:
  value: QuestionnaireResponse.item.id
element definition.path:
  value: QuestionnaireResponse.item.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: QuestionnaireResponse.item.extension
element definition.path:
  value: QuestionnaireResponse.item.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.ordered:
    value: false
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Extension
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.item.extension:itemMedia
element definition.path:
  value: QuestionnaireResponse.item.extension
element definition.slice name:
  value: itemMedia
element definition.short:
  value: Media to display
element definition.definition:
  value: Media to render/make available as an accompaniment to the question being asked
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemMedia
    index: -1
    link: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemMedia
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.item.extension:ItemSignature
element definition.path:
  value: QuestionnaireResponse.item.extension
element definition.slice name:
  value: ItemSignature
element definition.short:
  value: A signature attesting to the content
element definition.definition:
  value: Represents a wet or electronic signature for either the form overall or for the question or item it's associated with.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0-ballot-tc1
    index: -1
    link: 5.3
    link: .0
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.item.modifierExtension
element definition.path:
  value: QuestionnaireResponse.item.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.alias:
  value: modifiers
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.item.linkId
element definition.path:
  value: QuestionnaireResponse.item.linkId
element definition.short:
  value: Pointer to specific item from Questionnaire
element definition.definition:
  value: The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.
element definition.requirements:
  value: Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.item.linkId
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: string
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id

index: -1
element.id:
  value: QuestionnaireResponse.item.definition
element definition.path:
  value: QuestionnaireResponse.item.definition
element definition.short:
  value: ElementDefinition - details for the item
element definition.definition:
  value: A reference to an [ElementDefinition](http://hl7.org/fhir/R4/elementdefinition.html) that provides the details for the item.
element definition.comment:
  value: The ElementDefinition must be in a [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#), and must have a fragment identifier that identifies the specific data element by its id (Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. There is no need for this element if the item pointed to by the linkId has a definition listed.
element definition.requirements:
  value: A common pattern is to define a set of data elements, and then build multiple different questionnaires for different circumstances to gather the data. This element provides traceability to the common definition.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.item.definition
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: uri
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code

index: -1
element.id:
  value: QuestionnaireResponse.item.text
element definition.path:
  value: QuestionnaireResponse.item.text
element definition.short:
  value: Name for group or question text
element definition.definition:
  value: Text that is displayed above the contents of the group or as the text of the question being answered.
element definition.requirements:
  value: Allows the questionnaire response to be read without access to the questionnaire.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.item.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: string
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .text

index: -1
element.id:
  value: QuestionnaireResponse.item.answer
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: QuestionnaireResponse.item.answer
element definition.short:
  value: (USCDI+ Quality) The response(s) to the question
element definition.definition:
  value: The respondent's answer(s) to the question.
element definition.comment:
  value: The value is nested because we cannot have a repeating structure that has variable type.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.item.answer
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .value[type=LIST_ANY]

index: -1
element.id:
  value: QuestionnaireResponse.item.answer.id
element definition.path:
  value: QuestionnaireResponse.item.answer.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: QuestionnaireResponse.item.answer.extension
element definition.path:
  value: QuestionnaireResponse.item.answer.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.ordered:
    value: false
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Extension
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.item.answer.extension:itemAnswerMedia
element definition.path:
  value: QuestionnaireResponse.item.answer.extension
element definition.slice name:
  value: itemAnswerMedia
element definition.short:
  value: Answer Media to display
element definition.definition:
  value: Media to render/make available as an accompaniment to a specific answer option
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemAnswerMedia
    index: -1
    link: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemAnswerMedia
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.item.answer.extension:itemWeight
element definition.path:
  value: QuestionnaireResponse.item.answer.extension
element definition.slice name:
  value: itemWeight
element definition.short:
  value: Assigned Ordinal Value
element definition.definition:
  value: A numeric value that allows the comparison (less than, greater than) or other numerical manipulation of a concept (e.g. Adding up components of a score). Scores are usually a whole number, but occasionally decimals are encountered in scores. In the CodeSystem and ValueSet resources, the item weight is represented using the [itemWeight property](http://hl7.org/fhir/R4/codesystem-concept-properties.html#concept-properties-itemWeight). In questionnaires, this extension goes on answerOption where possible.
element definition.comment:
  value: Inclusion of weights in QRs can increase performance when calculating based on weights.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/itemWeight|5.3.0-ballot-tc1
    index: -1
    link: 5.3
    link: .0
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: QuestionnaireResponse.item.answer.modifierExtension
element definition.path:
  value: QuestionnaireResponse.item.answer.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.alias:
  value: modifiers
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: QuestionnaireResponse.item.answer.value[x]
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: QuestionnaireResponse.item.answer.value[x]
element definition.short:
  value: (USCDI+ Quality) Single-valued answer to the question
element definition.definition:
  value: The answer (or one of the answers) provided by the respondent to the question.
element definition.comment:
  value: More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type. Additional complex types can be introduced through extensions. Must match the datatype specified by Questionnaire.item.type in the corresponding Questionnaire.
element definition.requirements:
  value: Ability to retain a single-valued answer to a question.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.item.answer.value[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: date
element definition.type:
  index: -1
  element definition.type.code:
    value: dateTime
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    extension.value boolean:
      value: true
  element definition.type.code:
    value: decimal
element definition.type:
  index: -1
  element definition.type.code:
    value: integer
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    extension.value boolean:
      value: true
  element definition.type.code:
    value: string
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    extension.value boolean:
      value: true
  element definition.type.code:
    value: Coding
element definition.type:
  index: -1
  element definition.type.code:
    value: Quantity
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: QuestionnaireAnswer
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: Code indicating the response provided for a question.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/questionnaire-answers|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .item

index: -1
element.id:
  value: QuestionnaireResponse.item.answer.item
element definition.path:
  value: QuestionnaireResponse.item.answer.item
element definition.short:
  value: Nested groups and questions
element definition.definition:
  value: Nested groups and/or questions found within this particular answer.
element definition.requirements:
  value: It is useful to have "sub-questions", questions which normally appear when certain answers are given and which collect additional details.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.item.answer.item
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.content reference:
  value: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse#QuestionnaireResponse.item
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]

index: -1
element.id:
  value: QuestionnaireResponse.item.item
element definition.path:
  value: QuestionnaireResponse.item.item
element definition.short:
  value: Nested questionnaire response items
element definition.definition:
  value: Questions or sub-groups nested beneath a question or group.
element definition.requirements:
  value: Reports can consist of complex nested groups.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: QuestionnaireResponse.item.item
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.content reference:
  value: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse#QuestionnaireResponse.item
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]

structure definition.differential.element:
  index: -1
  element.id:
    value: QuestionnaireResponse
  element definition.path:
    value: QuestionnaireResponse
structure definition.differential.element:
  index: -1
  element.id:
    value: QuestionnaireResponse.questionnaire
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
    extension.value boolean:
      value: true
  element definition.path:
    value: QuestionnaireResponse.questionnaire
  element definition.short:
    value: (USCDI+ Quality) Form being answered
structure definition.differential.element:
  index: -1
  element.id:
    value: QuestionnaireResponse.subject
  element definition.path:
    value: QuestionnaireResponse.subject
  element definition.type:
    index: -1
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
      index: -1
      link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
structure definition.differential.element:
  index: -1
  element.id:
    value: QuestionnaireResponse.authored
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
    extension.value boolean:
      value: true
  element definition.path:
    value: QuestionnaireResponse.authored
  element definition.short:
    value: (USCDI+ Quality) Date the answers were gathered
structure definition.differential.element:
  index: -1
  element.id:
    value: QuestionnaireResponse.author
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
    extension.value boolean:
      value: true
  element definition.path:
    value: QuestionnaireResponse.author
  element definition.short:
    value: (USCDI+ Quality) Person who received and recorded the answers
  element definition.type:
    index: -1
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
      index: -1
      link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
    element definition.type.target profile:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-organization
      index: -1
      link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-organization
    element definition.type.target profile:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
      index: -1
      link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
    element definition.type.target profile:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
      index: -1
      link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
    element definition.type.target profile:
      value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-device|9.0.0
      index: -1
      link: 9.0
      link: .0
    element definition.type.target profile:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-relatedperson
      index: -1
      link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-relatedperson
structure definition.differential.element:
  index: -1
  element.id:
    value: QuestionnaireResponse.item.answer
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
    extension.value boolean:
      value: true
  element definition.path:
    value: QuestionnaireResponse.item.answer
  element definition.short:
    value: (USCDI+ Quality) The response(s) to the question
structure definition.differential.element:
  index: -1
  element.id:
    value: QuestionnaireResponse.item.answer.value[x]
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
    extension.value boolean:
      value: true
  element definition.path:
    value: QuestionnaireResponse.item.answer.value[x]
  element definition.short:
    value: (USCDI+ Quality) Single-valued answer to the question
  element definition.type:
    index: -1
    element definition.type.code:
      value: date
  element definition.type:
    index: -1
    element definition.type.code:
      value: dateTime
  element definition.type:
    index: -1
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
      extension.value boolean:
        value: true
    element definition.type.code:
      value: decimal
  element definition.type:
    index: -1
    element definition.type.code:
      value: integer
  element definition.type:
    index: -1
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
      extension.value boolean:
        value: true
    element definition.type.code:
      value: string
  element definition.type:
    index: -1
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
      extension.value boolean:
        value: true
    element definition.type.code:
      value: Coding
  element definition.type:
    index: -1
    element definition.type.code:
      value: Quantity