Visit the HL7 website
Visit the FHIR website

Primary Care

0.1.0-dft-preBallot   Canada flag
  • Index
  • Home
  • Business Context
    • Architectural Considerations
    • Use Cases
    • Future Enhancements
    • Consolidation Methodology
  • Technical Context
    • Conformance Guidance
    • Mappings
  • FHIR Artifacts
    • FHIR Artifacts
    • Actors
    • Profiles
    • Extensions
    • Search
    • Data Types
    • Capability Statement
    • Terminology
    • Examples
    • Packages
  • Change Log
    1. Index
    2. FHIR Artifacts
    3. Profiles
    4. QuestionnaireResponse

dft-preBallot - This is the first draft of the P-Care IG. For a full list of available versions, see the Directory of published versions

QuestionnaireResponse

Links

Profile

questionnaire-response

Derived from

http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse

Examples

Questionnaire Response Example 1, Questionnaire Response Example 2, Questionnaire Response Example 3

Description

A structured set of questions and their answers.

References to this resource

PCareServiceRequest

Resource Content

  • Tree view
  • Overview
  • XML
  • JSON
PCareQuestionnaireResponse (QuestionnaireResponse)CQuestionnaireResponseElement id
QuestionnaireResponse
Short description

A structured set of questions and their answers

Alternate names

Form, QuestionnaireAnswers

Definition

A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to.

Comments

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.

Data type

QuestionnaireResponse

Constraints
  • dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
    contained.contained.empty()
  • dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
    contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
  • dom-3: 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
    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()
  • dom-6: A resource should have narrative for robust management
    text.`div`.exists()
  • dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
    contained.meta.security.empty()
  • pcare-qrs-3: Nested items containing answers must have distinct linkId values for ON:eForms compatibility.
    (QuestionnaireResponse | repeat(answer | item)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()
  • pcare-qrs-4: QuestionnaireResponse.subject should be present for ON:eForms compatibility.
    subject.exists()
Mappings
  • rim: Entity. Role, or Act
  • workflow: Event
  • rim: Observation[moodCode=EVN]
idΣ0..1id
There are no (further) constraints on this element
Element id
QuestionnaireResponse.id
Short description

Logical id of this artifact

Definition

The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.

Comments

The only time that a resource does not have an id is when it is being submitted to the server using a create operation.

Data type

id

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
metaO Σ0..1MetaElement id
QuestionnaireResponse.meta
Short description

Metadata about the resource

Definition

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.

Data type

Meta

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
versionIdΣ0..1id
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.versionId
Short description

Version specific identifier

Definition

The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.

Comments

The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.

Data type

id

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
lastUpdatedΣ0..1instant
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.lastUpdated
Short description

When the resource version last changed

Definition

When the resource last changed - e.g. when the version changed.

Comments

This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a read interaction.

Data type

instant

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
sourceΣ0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.source
Short description

Identifies where the resource comes from

Definition

A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.

Comments

In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used.

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.

Data type

uri

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
profileO Σ0..*canonical(StructureDefinition)Element id
QuestionnaireResponse.meta.profile
Short description

Profiles this resource claims to conform to

Definition

A list of profiles (references to StructureDefinition resources) that this resource claims to conform to. The URL is a reference to StructureDefinition.url.

Comments

Implementers should be aware that some Canadian jurisdictions require vendors to use meta.profile to declare which FHIR profile(s) and version(s) the resource conforms to.

Data type

canonical(StructureDefinition)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
securityΣ0..*CodingBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.security
Short description

Security Labels applied to this resource

Definition

Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.

Comments

The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.

Data type

Coding

Binding

Security Labels from the Healthcare Privacy and Security Classification System.

AllSecurityLabels (extensible)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
  • rim: CV
  • orim: fhir:Coding rdfs:subClassOf dt:CDCoding
tagΣ0..*Coding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.tag
Short description

Tags applied to this resource

Definition

Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.

Comments

The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.

Data type

Coding

Binding

Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".

CommonTags (example)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
  • rim: CV
  • orim: fhir:Coding rdfs:subClassOf dt:CDCoding
implicitRulesΣ ?!0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.implicitRules
Short description

A set of rules under which this content was created

Definition

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.

Comments

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.

Data type

uri

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
languageO0..1codeBindingElement id
QuestionnaireResponse.language
Short description

Language of the resource content

Definition

The base language in which the resource is written.

Comments

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).

Data type

code

Binding

A human language.

CommonLanguages (preferred)

Binding extensions
MaxValueSetAllLanguages
Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Obligations
NameCodeDocumentationActor
pcareSHALL:persist
SHALL:no-error

P-Care server requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
text0..1Narrative
There are no (further) constraints on this element
Element id
QuestionnaireResponse.text
Short description

Text summary of the resource, for human interpretation

Alternate names

narrative, html, xhtml, display

Definition

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.

Comments

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.

Data type

Narrative

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
  • rim: Act.text?
contained0..*Resource
There are no (further) constraints on this element
Element id
QuestionnaireResponse.contained
Short description

Contained, inline Resources

Alternate names

inline resources, anonymous resources, contained resources

Definition

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.

Comments

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.

Data type

Resource

Mappings
  • rim: Entity. Role, or Act
  • rim: N/A
extensionC0..*ExtensionElement id
QuestionnaireResponse.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

May be used to represent additional information that is not part of the basic definition of the resource. 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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
adheresToC0..*Extension(canonical(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)Reference(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)uri)Element id
QuestionnaireResponse.extension:adheresTo
Short description

Follows rules from

Alternate names

extensions, user content

Definition

The action represented by this resource has been determined to satisfy the expectations established by the referenced Definition resource.

Comments

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 in the workflow extensions area for more guidance on this element.

Data type

Extension(canonical(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)Reference(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)uri)

Extension URL

AdheresTo

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
  • v2: Varies by domain
  • rim: .outboundRelationship[typeCode=DEFN].target
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..0Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
url1..1uriFixed Value
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.url
Short description

identifies the meaning of the extension

Definition

Source of the definition for the extension code - a logical name or a URL.

Comments

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.

Data type

uri

Fixed value
http://hl7.org/fhir/StructureDefinition/workflow-adheresTo
Mappings
  • rim: N/A
value[x]1..1Element id
QuestionnaireResponse.extension:adheresTo.value[x]
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Slicing

Unordered, Open, by $this(Type)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
valueUriuri
There are no (further) constraints on this element
Data type

uri

valueCanonical0..1canonical(ActivityDefinition | PlanDefinition)Element id
QuestionnaireResponse.extension:adheresTo.value[x]:valueCanonical
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

canonical(ActivityDefinition | PlanDefinition)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
valueReference0..1Reference(ActivityDefinition | PlanDefinition)Element id
QuestionnaireResponse.extension:adheresTo.value[x]:valueReference
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

Reference(ActivityDefinition | PlanDefinition)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
triggeredByC0..1Extension(canonical(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)Reference(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)uri)Element id
QuestionnaireResponse.extension:triggeredBy
Short description

Created because of following

Alternate names

extensions, user content

Definition

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.

Comments

See the notes in the workflow extensions area for more guidance on this element.

Data type

Extension(canonical(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)Reference(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)uri)

Extension URL

TriggeredBy

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
  • v2: Varies by domain
  • rim: .outboundRelationship[typeCode=DEFN].target
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..0Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
url1..1uriFixed Value
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.url
Short description

identifies the meaning of the extension

Definition

Source of the definition for the extension code - a logical name or a URL.

Comments

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.

Data type

uri

Fixed value
http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy
Mappings
  • rim: N/A
value[x]1..1Element id
QuestionnaireResponse.extension:triggeredBy.value[x]
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Slicing

Unordered, Open, by $this(Type)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
valueUriuri
There are no (further) constraints on this element
Data type

uri

valueCanonical0..1canonical(ActivityDefinition | PlanDefinition)Element id
QuestionnaireResponse.extension:triggeredBy.value[x]:valueCanonical
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

canonical(ActivityDefinition | PlanDefinition)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
valueReference0..1Reference(ActivityDefinition | PlanDefinition)Element id
QuestionnaireResponse.extension:triggeredBy.value[x]:valueReference
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

Reference(ActivityDefinition | PlanDefinition)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
signatureO C0..*Extension(Signature)Element id
QuestionnaireResponse.extension:signature
Short description

A signature attesting to the content

Alternate names

extensions, user content

Definition

Represents a wet or electronic signature for either the form overall or for the question or item it's associated with.

Comments

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.

Data type

Extension(Signature)

Extension URL

QRSignature

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
completionModeC0..1Extension(CodeableConcept)Element id
QuestionnaireResponse.extension:completionMode
Short description

E.g. Verbal, written, electronic

Alternate names

extensions, user content

Definition

Indicates how the individual completing the QuestionnaireResponse provided their responses.

Comments

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.

Data type

Extension(CodeableConcept)

Extension URL

QRCompletionMode

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
modifierExtension?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.modifierExtension
Short description

Extensions that cannot be ignored

Alternate names

extensions, user content

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
identifierO Σ0..1IdentifierElement id
QuestionnaireResponse.identifier
Short description

Unique id for this set of answers

Definition

A business identifier assigned to a particular completed (or partially completed) questionnaire.

Requirements

Used for tracking, registration and other business purposes.

Data type

Identifier

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
  • servd: Identifier
  • workflow: Event.identifier
  • w5: FiveWs.identifier
  • rim: .id
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
basedOnO Σ C0..*Reference(PCareServiceRequest | CarePlan)Element id
QuestionnaireResponse.basedOn
Short description

Request fulfilled by this QuestionnaireResponse

Alternate names

order

Definition

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.

Requirements

Supports traceability of responsibility for the action and allows linkage of an action to the recommendations acted upon.

Comments

References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.

Data type

Reference(PCareServiceRequest | CarePlan)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.basedOn
  • rim: .outboundRelationship[typeCode=FLFS].target
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
referenceO Σ C0..1stringElement id
QuestionnaireResponse.basedOn.reference
Short description

Literal reference, Relative, internal or absolute URL

Definition

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.

Comments

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.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1, ref-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
typeΣ0..1uriBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.type
Short description

Type the reference refers to (e.g. "Patient")

Definition

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).

Comments

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.

Data type

uri

Binding

Aa resource (or, for logical models, the URI of the logical model).

ResourceType (extensible)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
identifierO Σ0..1IdentifierElement id
QuestionnaireResponse.basedOn.identifier
Short description

Logical reference, when literal reference is not known

Definition

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.

Comments

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).

Data type

Identifier

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
  • servd: Identifier
  • rim: .identifier
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
useΣ ?!0..1codeBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.use
Short description

usual | official | temp | secondary | old (If known)

Definition

The purpose of this identifier.

Requirements

Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.

Comments

Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.

Data type

code

Binding

Identifies the purpose for this identifier, if known .

IdentifierUse (required)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: Role.code or implied by context
typeΣ0..1CodeableConceptBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.type
Short description

Description of identifier

Definition

A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.

Requirements

Allows users to make use of identifiers when the identifier system is not known.

Comments

This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.

Data type

CodeableConcept

Binding

A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

IdentifierTypeCodes (extensible)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • v2: CX.5
  • rim: Role.code or implied by context
systemO Σ0..1uriElement id
QuestionnaireResponse.basedOn.identifier.system
Short description

The namespace for the identifier value

Definition

Establishes the namespace for the value - that is, a URL that describes a set values that are unique.

Requirements

There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.

Comments

Identifier.system is always case sensitive.

Data type

uri

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
http://www.acme.com/identifiers/patient
Mappings
  • rim: n/a
  • v2: CX.4 / EI-2-4
  • rim: II.root or Role.id.root
  • servd: ./IdentifierType
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
valueO Σ0..1stringElement id
QuestionnaireResponse.basedOn.identifier.value
Short description

The value that is unique

Definition

The portion of the identifier typically relevant to the user and which is unique within the context of the system.

Comments

If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the Rendered Value extension. Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
123456
Mappings
  • rim: n/a
  • v2: CX.1 / EI.1
  • rim: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
  • servd: ./Value
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
periodΣ C0..1Period
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.period
Short description

Time period when id is/was valid for use

Definition

Time period during which identifier is/was valid for use.

Comments

A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times").

Period is not used for a duration (a measure of elapsed time). See Duration.

Data type

Period

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • per-1: If present, start SHALL have a lower value than end
    start.hasValue().not() or end.hasValue().not() or (start <= end)
Mappings
  • rim: n/a
  • v2: DR
  • rim: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
  • v2: CX.7 + CX.8
  • rim: Role.effectiveTime or implied by context
  • servd: ./StartDate and ./EndDate
assignerΣ C0..1Reference(Organization)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.assigner
Short description

Organization that issued id (may be just text)

Definition

Organization that issued/manages the identifier.

Comments

The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.

Data type

Reference(Organization)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • v2: CX.4 / (CX.4,CX.9,CX.10)
  • rim: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • servd: ./IdentifierIssuingAuthority
displayΣ0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.display
Short description

Text alternative for the resource

Definition

Plain text narrative that identifies the resource in addition to the resource reference.

Comments

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.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
partOfΣ C0..*Reference(Observation | Procedure)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.partOf
Short description

Part of this action

Definition

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.

Comments

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.

Data type

Reference(Observation | Procedure)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.partOf
  • rim: .inboundRelationship[typeCode=COMP].source[moodCode=EVN]
questionnaireO Σ0..1canonical(Questionnaire)Element id
QuestionnaireResponse.questionnaire
Short description

Form being answered

Alternate names

Form

Definition

The Questionnaire that defines and organizes the questions for which answers are being provided.

Requirements

Needed to allow editing of the questionnaire response in a manner that enforces the constraints of the original form.

Comments

If a QuestionnaireResponse references a Questionnaire, then the QuestionnaireResponse structure must be consistent with the Questionnaire (i.e. questions must be organized into the same groups, nested questions must still be nested, etc.).

Data type

canonical(Questionnaire)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Event.instantiates
  • rim: ./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
statusO Σ ?! C1..1codeBindingElement id
QuestionnaireResponse.status
Short description

in-progress | completed | amended | entered-in-error | stopped

Definition

The position of the questionnaire response within its overall lifecycle.

Requirements

The information on Questionnaire resources may possibly be gathered during multiple sessions and altered after considered being finished.

Comments

This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.

Data type

code

Binding

Lifecycle status of the questionnaire response.

QuestionnaireResponseStatus (required)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • pcare-qrs-1: QuestionnaireResponse.status is expected to equal 'completed' for CA:eReC and ON:eRec compatibility.
    $this = 'completed'
Mappings
  • rim: n/a
  • workflow: Event.status
  • w5: FiveWs.status
  • rim: .statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish "in-progress" from "published)
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
subjectO Σ C0..1Reference(Resource)Element id
QuestionnaireResponse.subject
Short description

The subject of the questions

Alternate names

Patient, Focus

Definition

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.

Requirements

Allows linking the answers to the individual the answers describe. May also affect access control.

Comments

When basedOn references a ServiceRequest, the QuestionnaireResponse subject SHALL be the same as the ServiceRequest subject. If the Questionnaire declares a subjectType, this reference must point to one of the listed resource types. If subject is omitted because the QuestionnaireResponse is not associated with a specific subject, include QuestionnaireResponse.identifier or ensure that the QuestionnaireResponse is referenced elsewhere (for example, Task.output or Composition.section.entry) to support tracking and retrieval.

Data type

Reference(Resource)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
  • pcare-qrs-5: QuestionnaireResponse.subject should reference a Patient for CA:eReC and ON:eRec compatibility.
    reference.empty() or type = 'Patient' or reference.matches('(^|.*/)Patient/[^/]+(/_history/[^/]+)?$') or (resolve() is Patient)
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.subject
  • w5: FiveWs.subject[x]
  • rim: .participation[typeCode=SBJ].role
  • w5: FiveWs.subject
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
referenceO Σ C0..1stringElement id
QuestionnaireResponse.subject.reference
Short description

Literal reference, Relative, internal or absolute URL

Definition

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.

Comments

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.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1, ref-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
typeΣ0..1uriBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.type
Short description

Type the reference refers to (e.g. "Patient")

Definition

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).

Comments

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.

Data type

uri

Binding

Aa resource (or, for logical models, the URI of the logical model).

ResourceType (extensible)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
identifierO Σ0..1IdentifierElement id
QuestionnaireResponse.subject.identifier
Short description

Logical reference, when literal reference is not known

Definition

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.

Comments

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).

Data type

Identifier

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
  • servd: Identifier
  • rim: .identifier
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
useΣ ?!0..1codeBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.use
Short description

usual | official | temp | secondary | old (If known)

Definition

The purpose of this identifier.

Requirements

Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.

Comments

Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.

Data type

code

Binding

Identifies the purpose for this identifier, if known .

IdentifierUse (required)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: Role.code or implied by context
typeΣ0..1CodeableConceptBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.type
Short description

Description of identifier

Definition

A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.

Requirements

Allows users to make use of identifiers when the identifier system is not known.

Comments

This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.

Data type

CodeableConcept

Binding

A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

IdentifierTypeCodes (extensible)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • v2: CX.5
  • rim: Role.code or implied by context
systemO Σ0..1uriElement id
QuestionnaireResponse.subject.identifier.system
Short description

The namespace for the identifier value

Definition

Establishes the namespace for the value - that is, a URL that describes a set values that are unique.

Requirements

There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.

Comments

Identifier.system is always case sensitive.

Data type

uri

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
http://www.acme.com/identifiers/patient
Mappings
  • rim: n/a
  • v2: CX.4 / EI-2-4
  • rim: II.root or Role.id.root
  • servd: ./IdentifierType
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
valueO Σ0..1stringElement id
QuestionnaireResponse.subject.identifier.value
Short description

The value that is unique

Definition

The portion of the identifier typically relevant to the user and which is unique within the context of the system.

Comments

If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the Rendered Value extension. Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
123456
Mappings
  • rim: n/a
  • v2: CX.1 / EI.1
  • rim: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
  • servd: ./Value
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
periodΣ C0..1Period
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.period
Short description

Time period when id is/was valid for use

Definition

Time period during which identifier is/was valid for use.

Comments

A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times").

Period is not used for a duration (a measure of elapsed time). See Duration.

Data type

Period

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • per-1: If present, start SHALL have a lower value than end
    start.hasValue().not() or end.hasValue().not() or (start <= end)
Mappings
  • rim: n/a
  • v2: DR
  • rim: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
  • v2: CX.7 + CX.8
  • rim: Role.effectiveTime or implied by context
  • servd: ./StartDate and ./EndDate
assignerΣ C0..1Reference(Organization)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.assigner
Short description

Organization that issued id (may be just text)

Definition

Organization that issued/manages the identifier.

Comments

The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.

Data type

Reference(Organization)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • v2: CX.4 / (CX.4,CX.9,CX.10)
  • rim: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • servd: ./IdentifierIssuingAuthority
displayΣ0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.display
Short description

Text alternative for the resource

Definition

Plain text narrative that identifies the resource in addition to the resource reference.

Comments

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.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
encounterΣ C0..1Reference(Encounter)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.encounter
Short description

Encounter created as part of

Definition

The Encounter during which this questionnaire response was created or to which the creation of this record is tightly associated.

Requirements

Provides context for the information that was captured. May also affect access control.

Comments

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.

Data type

Reference(Encounter)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.encounter
  • w5: FiveWs.context
  • rim: .inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]
authoredO Σ0..1dateTimeElement id
QuestionnaireResponse.authored
Short description

Date the answers were gathered

Alternate names

Date Created, Date published, Date Issued, Date updated

Definition

Identifies when this version of the answer set was created. Changes whenever the answers are updated.

Requirements

Clinicians need to be able to check the date that the information in the questionnaire was collected, to derive the context of the answers.

Comments

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.

Data type

dateTime

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Event.occurrence[x]
  • w5: FiveWs.recorded
  • rim: .participation[typeCode=AUT].time
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
authorO Σ C0..1Reference(PCarePractitionerRole | Device | Organization | Patient | Practitioner | RelatedPerson)Element id
QuestionnaireResponse.author
Short description

Person who received and recorded the answers

Alternate names

Laboratory, Service, Practitioner, Department, Company, Performer

Definition

Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.

Requirements

Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers.

Comments

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.

Data type

Reference(PCarePractitionerRole | Device | Organization | Patient | Practitioner | RelatedPerson)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.performer
  • w5: FiveWs.author
  • rim: .participation[typeCode=AUT].role
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
referenceO Σ C0..1stringElement id
QuestionnaireResponse.author.reference
Short description

Literal reference, Relative, internal or absolute URL

Definition

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.

Comments

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.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1, ref-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
typeΣ0..1uriBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.type
Short description

Type the reference refers to (e.g. "Patient")

Definition

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).

Comments

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.

Data type

uri

Binding

Aa resource (or, for logical models, the URI of the logical model).

ResourceType (extensible)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
identifierO Σ0..1IdentifierElement id
QuestionnaireResponse.author.identifier
Short description

Logical reference, when literal reference is not known

Definition

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.

Comments

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).

Data type

Identifier

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
  • servd: Identifier
  • rim: .identifier
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
useΣ ?!0..1codeBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.use
Short description

usual | official | temp | secondary | old (If known)

Definition

The purpose of this identifier.

Requirements

Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.

Comments

Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.

Data type

code

Binding

Identifies the purpose for this identifier, if known .

IdentifierUse (required)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: Role.code or implied by context
typeΣ0..1CodeableConceptBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.type
Short description

Description of identifier

Definition

A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.

Requirements

Allows users to make use of identifiers when the identifier system is not known.

Comments

This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.

Data type

CodeableConcept

Binding

A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

IdentifierTypeCodes (extensible)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • v2: CX.5
  • rim: Role.code or implied by context
systemO Σ0..1uriElement id
QuestionnaireResponse.author.identifier.system
Short description

The namespace for the identifier value

Definition

Establishes the namespace for the value - that is, a URL that describes a set values that are unique.

Requirements

There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.

Comments

Identifier.system is always case sensitive.

Data type

uri

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
http://www.acme.com/identifiers/patient
Mappings
  • rim: n/a
  • v2: CX.4 / EI-2-4
  • rim: II.root or Role.id.root
  • servd: ./IdentifierType
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
valueO Σ0..1stringElement id
QuestionnaireResponse.author.identifier.value
Short description

The value that is unique

Definition

The portion of the identifier typically relevant to the user and which is unique within the context of the system.

Comments

If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the Rendered Value extension. Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
123456
Mappings
  • rim: n/a
  • v2: CX.1 / EI.1
  • rim: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
  • servd: ./Value
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
periodΣ C0..1Period
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.period
Short description

Time period when id is/was valid for use

Definition

Time period during which identifier is/was valid for use.

Comments

A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times").

Period is not used for a duration (a measure of elapsed time). See Duration.

Data type

Period

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • per-1: If present, start SHALL have a lower value than end
    start.hasValue().not() or end.hasValue().not() or (start <= end)
Mappings
  • rim: n/a
  • v2: DR
  • rim: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
  • v2: CX.7 + CX.8
  • rim: Role.effectiveTime or implied by context
  • servd: ./StartDate and ./EndDate
assignerΣ C0..1Reference(Organization)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.assigner
Short description

Organization that issued id (may be just text)

Definition

Organization that issued/manages the identifier.

Comments

The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.

Data type

Reference(Organization)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • v2: CX.4 / (CX.4,CX.9,CX.10)
  • rim: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • servd: ./IdentifierIssuingAuthority
displayΣ0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.display
Short description

Text alternative for the resource

Definition

Plain text narrative that identifies the resource in addition to the resource reference.

Comments

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.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
sourceΣ C0..1Reference(Patient | Practitioner | PractitionerRole | RelatedPerson)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.source
Short description

The person who answered the questions

Definition

The person who answered the questions about the subject.

Requirements

When answering questions about a subject that is minor, incapable of answering or an animal, another human source may answer the questions.

Comments

If not specified, no inference can be made about who provided the data.

Data type

Reference(Patient | Practitioner | PractitionerRole | RelatedPerson)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • w5: FiveWs.source
  • rim: .participation[typeCode=INF].role
itemO C0..*BackboneElementElement id
QuestionnaireResponse.item
Short description

Groups and questions

Definition

A group or question item from the original questionnaire for which answers are provided.

Comments

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).

Data type

BackboneElement

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qrs-1: Nested item can't be beneath both item and answer
    (answer.exists() and item.exists()).not()
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*ExtensionElement id
QuestionnaireResponse.item.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
itemMediaO C0..1Extension(Attachment)Element id
QuestionnaireResponse.item.extension:itemMedia
Short description

Media to display

Alternate names

extensions, user content

Definition

Media to render/make available as an accompaniment to the question being asked

Comments

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.

Data type

Extension(Attachment)

Extension URL

ItemMedia

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
ItemSignatureO C0..*Extension(Signature)Element id
QuestionnaireResponse.item.extension:ItemSignature
Short description

A signature attesting to the content

Alternate names

extensions, user content

Definition

Represents a wet or electronic signature for either the form overall or for the question or item it's associated with.

Comments

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.

Data type

Extension(Signature)

Extension URL

QRSignature

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
modifierExtensionΣ ?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.modifierExtension
Short description

Extensions that cannot be ignored even if unrecognized

Alternate names

extensions, user content, modifiers

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
linkIdO1..1stringElement id
QuestionnaireResponse.item.linkId
Short description

Pointer to specific item from Questionnaire

Definition

The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.

Requirements

Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
definition0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.definition
Short description

ElementDefinition - details for the item

Definition

A reference to an ElementDefinition that provides the details for the item.

Requirements

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.

Comments

The ElementDefinition must be in a StructureDefinition, 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.

Data type

uri

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code
textO0..1stringElement id
QuestionnaireResponse.item.text
Short description

Name for group or question text

Definition

Text that is displayed above the contents of the group or as the text of the question being answered.

Requirements

Allows the questionnaire response to be read without access to the questionnaire.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .text
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
answerO0..*BackboneElementElement id
QuestionnaireResponse.item.answer
Short description

The response(s) to the question

Definition

The respondent's answer(s) to the question.

Comments

The value is nested because we cannot have a repeating structure that has variable type.

Data type

BackboneElement

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .value[type=LIST_ANY]
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*ExtensionElement id
QuestionnaireResponse.item.answer.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
itemAnswerMediaO C0..1Extension(Attachment)Element id
QuestionnaireResponse.item.answer.extension:itemAnswerMedia
Short description

Answer Media to display

Alternate names

extensions, user content

Definition

Media to render/make available as an accompaniment to a specific answer option

Comments

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.

Data type

Extension(Attachment)

Extension URL

ItemAnswerMedia

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
itemWeightO C0..1Extension(decimal)Element id
QuestionnaireResponse.item.answer.extension:itemWeight
Short description

Assigned Ordinal Value

Alternate names

extensions, user content

Definition

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. In questionnaires, this extension goes on answerOption where possible.

Comments

Scores are commonly encountered in various clinical assessment scales. Assigning a value to a concept should generally be done in a formal code system that defines the value, or in an applicable value set for the concept, but some concepts do not have a formal definition (or are not even represented as a concept formally, especially in Questionnaires, so this extension is allowed to appear ouside those preferred contexts. Scores may even be assigned arbitrarily during use (hence, on Coding). The value may be constrained to an integer in some contexts of use. Todo: Scoring algorithms may also be defined directly, but how this is done is not yet defined

For questionnaires, see additional guidance and examples in the SDC implementation guide.

Data type

Extension(decimal)

Extension URL

ItemWeight

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
modifierExtensionΣ ?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer.modifierExtension
Short description

Extensions that cannot be ignored even if unrecognized

Alternate names

extensions, user content, modifiers

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
value[x]O0..1Element id
QuestionnaireResponse.item.answer.value[x]
Short description

Single-valued answer to the question

Definition

The answer (or one of the answers) provided by the respondent to the question.

Requirements

Ability to retain a single-valued answer to a question.

Comments

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.

Binding

Code indicating the response provided for a question.

QuestionnaireAnswerCodes (example)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .item
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
valueAttachmentAttachment
There are no (further) constraints on this element
Data type

Attachment

valueBooleanboolean
There are no (further) constraints on this element
Data type

boolean

valueCodingCoding
There are no (further) constraints on this element
Data type

Coding

valueDatedate
There are no (further) constraints on this element
Data type

date

valueDateTimedateTime
There are no (further) constraints on this element
Data type

dateTime

valueDecimaldecimal
There are no (further) constraints on this element
Data type

decimal

valueIntegerinteger
There are no (further) constraints on this element
Data type

integer

valueQuantityQuantity
There are no (further) constraints on this element
Data type

Quantity

valueReferenceReference(Resource)
There are no (further) constraints on this element
Data type

Reference(Resource)

valueStringstring
There are no (further) constraints on this element
Data type

string

valueTimetime
There are no (further) constraints on this element
Data type

time

valueUriuri
There are no (further) constraints on this element
Data type

uri

itemO0..*see (item)Element id
QuestionnaireResponse.item.answer.item
Short description

Nested groups and questions

Definition

Nested groups and/or questions found within this particular answer.

Requirements

It is useful to have "sub-questions", questions which normally appear when certain answers are given and which collect additional details.

Mappings
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
itemO0..*BackboneElementElement id
QuestionnaireResponse.item.item
Short description

Nested questionnaire response items

Definition

Questions or sub-groups nested beneath a question or group.

Requirements

Reports can consist of complex nested groups.

Data type

BackboneElement

Mappings
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
modifierExtensionΣ ?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.modifierExtension
Short description

Extensions that cannot be ignored even if unrecognized

Alternate names

extensions, user content, modifiers

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
linkIdO1..1stringElement id
QuestionnaireResponse.item.item.linkId
Short description

Pointer to specific item from Questionnaire

Definition

The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.

Requirements

Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
definition0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.definition
Short description

ElementDefinition - details for the item

Definition

A reference to an ElementDefinition that provides the details for the item.

Requirements

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.

Comments

The ElementDefinition must be in a StructureDefinition, 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.

Data type

uri

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code
textO0..1stringElement id
QuestionnaireResponse.item.item.text
Short description

Name for group or question text

Definition

Text that is displayed above the contents of the group or as the text of the question being answered.

Requirements

Allows the questionnaire response to be read without access to the questionnaire.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .text
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
answerO0..*BackboneElementElement id
QuestionnaireResponse.item.item.answer
Short description

The response(s) to the question

Definition

The respondent's answer(s) to the question.

Comments

The value is nested because we cannot have a repeating structure that has variable type.

Data type

BackboneElement

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .value[type=LIST_ANY]
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
modifierExtensionΣ ?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer.modifierExtension
Short description

Extensions that cannot be ignored even if unrecognized

Alternate names

extensions, user content, modifiers

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
value[x]O0..1Element id
QuestionnaireResponse.item.item.answer.value[x]
Short description

Single-valued answer to the question

Definition

The answer (or one of the answers) provided by the respondent to the question.

Requirements

Ability to retain a single-valued answer to a question.

Comments

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.

Binding

Code indicating the response provided for a question.

QuestionnaireAnswerCodes (example)

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .item
Obligations
NameCodeDocumentationActor
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server
valueAttachmentAttachment
There are no (further) constraints on this element
Data type

Attachment

valueBooleanboolean
There are no (further) constraints on this element
Data type

boolean

valueCodingCoding
There are no (further) constraints on this element
Data type

Coding

valueDatedate
There are no (further) constraints on this element
Data type

date

valueDateTimedateTime
There are no (further) constraints on this element
Data type

dateTime

valueDecimaldecimal
There are no (further) constraints on this element
Data type

decimal

valueIntegerinteger
There are no (further) constraints on this element
Data type

integer

valueQuantityQuantity
There are no (further) constraints on this element
Data type

Quantity

valueReferenceReference(Resource)
There are no (further) constraints on this element
Data type

Reference(Resource)

valueStringstring
There are no (further) constraints on this element
Data type

string

valueTimetime
There are no (further) constraints on this element
Data type

time

valueUriuri
There are no (further) constraints on this element
Data type

uri

item0..*see (item)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer.item
Short description

Nested groups and questions

Definition

Nested groups and/or questions found within this particular answer.

Requirements

It is useful to have "sub-questions", questions which normally appear when certain answers are given and which collect additional details.

Mappings
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
item0..*see (item)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.item
Short description

Nested questionnaire response items

Definition

Questions or sub-groups nested beneath a question or group.

Requirements

Reports can consist of complex nested groups.

Mappings
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
PCareQuestionnaireResponse (QuestionnaireResponse)CQuestionnaireResponse
There are no (further) constraints on this element
Element id
QuestionnaireResponse
Short description

A structured set of questions and their answers

Alternate names

Form, QuestionnaireAnswers

Definition

A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to.

Comments

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.

Data type

QuestionnaireResponse

Constraints
  • dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
    contained.contained.empty()
  • dom-3: 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
    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()
  • dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
    contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
  • dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
    contained.meta.security.empty()
  • dom-6: A resource should have narrative for robust management
    text.`div`.exists()
  • pcare-qrs-3: Nested items containing answers must have distinct linkId values for ON:eForms compatibility.
    (QuestionnaireResponse | repeat(answer | item)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()
  • pcare-qrs-4: QuestionnaireResponse.subject should be present for ON:eForms compatibility.
    subject.exists()
Mappings
  • rim: Entity. Role, or Act
  • workflow: Event
  • rim: Observation[moodCode=EVN]
idΣ0..1id
There are no (further) constraints on this element
Element id
QuestionnaireResponse.id
Short description

Logical id of this artifact

Definition

The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.

Comments

The only time that a resource does not have an id is when it is being submitted to the server using a create operation.

Data type

id

metaO Σ0..1Meta
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta
Short description

Metadata about the resource

Definition

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.

Data type

Meta

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
versionIdΣ0..1id
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.versionId
Short description

Version specific identifier

Definition

The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.

Comments

The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.

Data type

id

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
lastUpdatedΣ0..1instant
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.lastUpdated
Short description

When the resource version last changed

Definition

When the resource last changed - e.g. when the version changed.

Comments

This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a read interaction.

Data type

instant

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
sourceΣ0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.source
Short description

Identifies where the resource comes from

Definition

A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.

Comments

In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used.

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.

Data type

uri

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
profileO Σ0..*canonical(StructureDefinition)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.profile
Short description

Profiles this resource claims to conform to

Definition

A list of profiles (references to StructureDefinition resources) that this resource claims to conform to. The URL is a reference to StructureDefinition.url.

Comments

Implementers should be aware that some Canadian jurisdictions require vendors to use meta.profile to declare which FHIR profile(s) and version(s) the resource conforms to.

Data type

canonical(StructureDefinition)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
securityΣ0..*CodingBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.security
Short description

Security Labels applied to this resource

Definition

Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.

Comments

The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.

Data type

Coding

Binding

Security Labels from the Healthcare Privacy and Security Classification System.

All Security Labels (extensible)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
tagΣ0..*Coding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.meta.tag
Short description

Tags applied to this resource

Definition

Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.

Comments

The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.

Data type

Coding

Binding

Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".

CommonTags (example)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
implicitRulesΣ ?!0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.implicitRules
Short description

A set of rules under which this content was created

Definition

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.

Comments

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.

Data type

uri

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
languageO0..1codeBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.language
Short description

Language of the resource content

Definition

The base language in which the resource is written.

Comments

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).

Data type

code

Binding

A human language.

CommonLanguages (preferred)

Binding extensions
MaxValueSetAllLanguages
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:persist
SHALL:no-error

P-Care server requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
text0..1Narrative
There are no (further) constraints on this element
Element id
QuestionnaireResponse.text
Short description

Text summary of the resource, for human interpretation

Alternate names

narrative, html, xhtml, display

Definition

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.

Comments

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.

Data type

Narrative

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: Act.text?
contained0..*Resource
There are no (further) constraints on this element
Element id
QuestionnaireResponse.contained
Short description

Contained, inline Resources

Alternate names

inline resources, anonymous resources, contained resources

Definition

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.

Comments

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.

Data type

Resource

Mappings
  • rim: N/A
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension
Short description

Extension

Definition

An Extension

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
adheresToC0..*Extension(canonical(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)Reference(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)uri)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo
Short description

Follows rules from

Definition

The action represented by this resource has been determined to satisfy the expectations established by the referenced Definition resource.

Comments

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 in the workflow extensions area for more guidance on this element.

Data type

Extension(canonical(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)Reference(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)uri)

Extension URL

AdheresTo

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • v2: Varies by domain
  • rim: .outboundRelationship[typeCode=DEFN].target
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..0Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.extension
Short description

Extension

Definition

An Extension

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
url1..1uriFixed Value
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.url
Short description

identifies the meaning of the extension

Definition

Source of the definition for the extension code - a logical name or a URL.

Comments

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.

Data type

uri

Fixed value
http://hl7.org/fhir/StructureDefinition/workflow-adheresTo
Mappings
  • rim: N/A
value[x]1..1
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.value[x]
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Slicing

Unordered, Closed, by $this(Type)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
valueCanonical0..1canonical(ActivityDefinition | PlanDefinition)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.value[x]:valueCanonical
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

canonical(ActivityDefinition | PlanDefinition)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
valueReference0..1Reference(ActivityDefinition | PlanDefinition)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.value[x]:valueReference
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

Reference(ActivityDefinition | PlanDefinition)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
valueUri0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:adheresTo.value[x]:valueUri
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

uri

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
triggeredByC0..1Extension(canonical(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)Reference(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)uri)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy
Short description

Created because of following

Definition

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.

Comments

See the notes in the workflow extensions area for more guidance on this element.

Data type

Extension(canonical(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)Reference(ActivityDefinition | Measure | ObservationDefinition | PlanDefinition | Questionnaire)uri)

Extension URL

TriggeredBy

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • v2: Varies by domain
  • rim: .outboundRelationship[typeCode=DEFN].target
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..0Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.extension
Short description

Extension

Definition

An Extension

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
url1..1uriFixed Value
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.url
Short description

identifies the meaning of the extension

Definition

Source of the definition for the extension code - a logical name or a URL.

Comments

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.

Data type

uri

Fixed value
http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy
Mappings
  • rim: N/A
value[x]1..1
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.value[x]
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Slicing

Unordered, Closed, by $this(Type)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
valueCanonical0..1canonical(ActivityDefinition | PlanDefinition)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.value[x]:valueCanonical
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

canonical(ActivityDefinition | PlanDefinition)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
valueReference0..1Reference(ActivityDefinition | PlanDefinition)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.value[x]:valueReference
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

Reference(ActivityDefinition | PlanDefinition)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
valueUri0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:triggeredBy.value[x]:valueUri
Short description

Value of extension

Definition

Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).

Data type

uri

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
signatureO C0..*Extension(Signature)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:signature
Short description

A signature attesting to the content

Definition

Represents a wet or electronic signature for either the form overall or for the question or item it's associated with.

Data type

Extension(Signature)

Extension URL

QRSignature

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
completionModeC0..1Extension(CodeableConcept)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.extension:completionMode
Short description

E.g. Verbal, written, electronic

Definition

Indicates how the individual completing the QuestionnaireResponse provided their responses.

Data type

Extension(CodeableConcept)

Extension URL

QRCompletionMode

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
modifierExtension?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.modifierExtension
Short description

Extensions that cannot be ignored

Alternate names

extensions, user content

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
identifierO Σ0..1Identifier
There are no (further) constraints on this element
Element id
QuestionnaireResponse.identifier
Short description

Unique id for this set of answers

Definition

A business identifier assigned to a particular completed (or partially completed) questionnaire.

Requirements

Used for tracking, registration and other business purposes.

Data type

Identifier

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • workflow: Event.identifier
  • w5: FiveWs.identifier
  • rim: .id
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
basedOnO Σ0..*Reference(PCareServiceRequest | CarePlan)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn
Short description

Request fulfilled by this QuestionnaireResponse

Alternate names

order

Definition

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.

Requirements

Supports traceability of responsibility for the action and allows linkage of an action to the recommendations acted upon.

Data type

Reference(PCareServiceRequest | CarePlan)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • workflow: Event.basedOn
  • rim: .outboundRelationship[typeCode=FLFS].target
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
referenceO Σ C0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.reference
Short description

Literal reference, Relative, internal or absolute URL

Definition

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.

Comments

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.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ref-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
typeΣ0..1uriBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.type
Short description

Type the reference refers to (e.g. "Patient")

Definition

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).

Comments

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.

Data type

uri

Binding

Aa resource (or, for logical models, the URI of the logical model).

ResourceType (extensible)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
identifierO Σ0..1Identifier
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier
Short description

Logical reference, when literal reference is not known

Definition

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.

Comments

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).

Data type

Identifier

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .identifier
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
useΣ ?!0..1codeBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.use
Short description

usual | official | temp | secondary | old (If known)

Definition

The purpose of this identifier.

Requirements

Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.

Comments

Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.

Data type

code

Binding

Identifies the purpose for this identifier, if known .

IdentifierUse (required)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: N/A
  • rim: Role.code or implied by context
typeΣ0..1CodeableConceptBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.type
Short description

Description of identifier

Definition

A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.

Requirements

Allows users to make use of identifiers when the identifier system is not known.

Comments

This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.

Data type

CodeableConcept

Binding

A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

Identifier Type Codes (extensible)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: CX.5
  • rim: Role.code or implied by context
systemO Σ0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.system
Short description

The namespace for the identifier value

Definition

Establishes the namespace for the value - that is, a URL that describes a set values that are unique.

Requirements

There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.

Comments

Identifier.system is always case sensitive.

Data type

uri

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
http://www.acme.com/identifiers/patient
Mappings
  • v2: CX.4 / EI-2-4
  • rim: II.root or Role.id.root
  • servd: ./IdentifierType
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
valueO Σ0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.value
Short description

The value that is unique

Definition

The portion of the identifier typically relevant to the user and which is unique within the context of the system.

Comments

If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the Rendered Value extension. Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
123456
Mappings
  • v2: CX.1 / EI.1
  • rim: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
  • servd: ./Value
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
periodΣ0..1Period
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.period
Short description

Time period when id is/was valid for use

Definition

Time period during which identifier is/was valid for use.

Data type

Period

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: CX.7 + CX.8
  • rim: Role.effectiveTime or implied by context
  • servd: ./StartDate and ./EndDate
assignerΣ0..1Reference(Organization)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.identifier.assigner
Short description

Organization that issued id (may be just text)

Definition

Organization that issued/manages the identifier.

Comments

The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.

Data type

Reference(Organization)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: CX.4 / (CX.4,CX.9,CX.10)
  • rim: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • servd: ./IdentifierIssuingAuthority
displayΣ0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.basedOn.display
Short description

Text alternative for the resource

Definition

Plain text narrative that identifies the resource in addition to the resource reference.

Comments

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.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
partOfΣ0..*Reference(Observation | Procedure)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.partOf
Short description

Part of this action

Definition

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.

Comments

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.

Data type

Reference(Observation | Procedure)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • workflow: Event.partOf
  • rim: .inboundRelationship[typeCode=COMP].source[moodCode=EVN]
questionnaireO Σ0..1canonical(Questionnaire)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.questionnaire
Short description

Form being answered

Alternate names

Form

Definition

The Questionnaire that defines and organizes the questions for which answers are being provided.

Requirements

Needed to allow editing of the questionnaire response in a manner that enforces the constraints of the original form.

Comments

If a QuestionnaireResponse references a Questionnaire, then the QuestionnaireResponse structure must be consistent with the Questionnaire (i.e. questions must be organized into the same groups, nested questions must still be nested, etc.).

Data type

canonical(Questionnaire)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • workflow: Event.instantiates
  • rim: ./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
statusO Σ ?! C1..1codeBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.status
Short description

in-progress | completed | amended | entered-in-error | stopped

Definition

The position of the questionnaire response within its overall lifecycle.

Requirements

The information on Questionnaire resources may possibly be gathered during multiple sessions and altered after considered being finished.

Comments

This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.

Data type

code

Binding

Lifecycle status of the questionnaire response.

QuestionnaireResponseStatus (required)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • pcare-qrs-1: QuestionnaireResponse.status is expected to equal 'completed' for CA:eReC and ON:eRec compatibility.
    $this = 'completed'
Mappings
  • workflow: Event.status
  • w5: FiveWs.status
  • rim: .statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish "in-progress" from "published)
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
subjectO Σ C0..1Reference(Resource)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject
Short description

The subject of the questions

Alternate names

Patient, Focus

Definition

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.

Requirements

Allows linking the answers to the individual the answers describe. May also affect access control.

Comments

When basedOn references a ServiceRequest, the QuestionnaireResponse subject SHALL be the same as the ServiceRequest subject. If the Questionnaire declares a subjectType, this reference must point to one of the listed resource types. If subject is omitted because the QuestionnaireResponse is not associated with a specific subject, include QuestionnaireResponse.identifier or ensure that the QuestionnaireResponse is referenced elsewhere (for example, Task.output or Composition.section.entry) to support tracking and retrieval.

Data type

Reference(Resource)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • pcare-qrs-5: QuestionnaireResponse.subject should reference a Patient for CA:eReC and ON:eRec compatibility.
    reference.empty() or type = 'Patient' or reference.matches('(^|.*/)Patient/[^/]+(/_history/[^/]+)?$') or (resolve() is Patient)
Mappings
  • workflow: Event.subject
  • w5: FiveWs.subject[x]
  • rim: .participation[typeCode=SBJ].role
  • w5: FiveWs.subject
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
referenceO Σ C0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.reference
Short description

Literal reference, Relative, internal or absolute URL

Definition

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.

Comments

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.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ref-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
typeΣ0..1uriBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.type
Short description

Type the reference refers to (e.g. "Patient")

Definition

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).

Comments

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.

Data type

uri

Binding

Aa resource (or, for logical models, the URI of the logical model).

ResourceType (extensible)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
identifierO Σ0..1Identifier
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier
Short description

Logical reference, when literal reference is not known

Definition

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.

Comments

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).

Data type

Identifier

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .identifier
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
useΣ ?!0..1codeBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.use
Short description

usual | official | temp | secondary | old (If known)

Definition

The purpose of this identifier.

Requirements

Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.

Comments

Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.

Data type

code

Binding

Identifies the purpose for this identifier, if known .

IdentifierUse (required)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: N/A
  • rim: Role.code or implied by context
typeΣ0..1CodeableConceptBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.type
Short description

Description of identifier

Definition

A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.

Requirements

Allows users to make use of identifiers when the identifier system is not known.

Comments

This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.

Data type

CodeableConcept

Binding

A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

Identifier Type Codes (extensible)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: CX.5
  • rim: Role.code or implied by context
systemO Σ0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.system
Short description

The namespace for the identifier value

Definition

Establishes the namespace for the value - that is, a URL that describes a set values that are unique.

Requirements

There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.

Comments

Identifier.system is always case sensitive.

Data type

uri

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
http://www.acme.com/identifiers/patient
Mappings
  • v2: CX.4 / EI-2-4
  • rim: II.root or Role.id.root
  • servd: ./IdentifierType
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
valueO Σ0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.value
Short description

The value that is unique

Definition

The portion of the identifier typically relevant to the user and which is unique within the context of the system.

Comments

If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the Rendered Value extension. Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
123456
Mappings
  • v2: CX.1 / EI.1
  • rim: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
  • servd: ./Value
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
periodΣ0..1Period
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.period
Short description

Time period when id is/was valid for use

Definition

Time period during which identifier is/was valid for use.

Data type

Period

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: CX.7 + CX.8
  • rim: Role.effectiveTime or implied by context
  • servd: ./StartDate and ./EndDate
assignerΣ0..1Reference(Organization)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.identifier.assigner
Short description

Organization that issued id (may be just text)

Definition

Organization that issued/manages the identifier.

Comments

The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.

Data type

Reference(Organization)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: CX.4 / (CX.4,CX.9,CX.10)
  • rim: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • servd: ./IdentifierIssuingAuthority
displayΣ0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.subject.display
Short description

Text alternative for the resource

Definition

Plain text narrative that identifies the resource in addition to the resource reference.

Comments

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.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
encounterΣ0..1Reference(Encounter)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.encounter
Short description

Encounter created as part of

Definition

The Encounter during which this questionnaire response was created or to which the creation of this record is tightly associated.

Requirements

Provides context for the information that was captured. May also affect access control.

Comments

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.

Data type

Reference(Encounter)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • workflow: Event.encounter
  • w5: FiveWs.context
  • rim: .inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]
authoredO Σ0..1dateTime
There are no (further) constraints on this element
Element id
QuestionnaireResponse.authored
Short description

Date the answers were gathered

Alternate names

Date Created, Date published, Date Issued, Date updated

Definition

Identifies when this version of the answer set was created. Changes whenever the answers are updated.

Requirements

Clinicians need to be able to check the date that the information in the questionnaire was collected, to derive the context of the answers.

Comments

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.

Data type

dateTime

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • workflow: Event.occurrence[x]
  • w5: FiveWs.recorded
  • rim: .participation[typeCode=AUT].time
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
authorO Σ0..1Reference(PCarePractitionerRole | Device | Organization | Patient | Practitioner | RelatedPerson)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author
Short description

Person who received and recorded the answers

Alternate names

Laboratory, Service, Practitioner, Department, Company, Performer

Definition

Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.

Requirements

Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers.

Comments

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.

Data type

Reference(PCarePractitionerRole | Device | Organization | Patient | Practitioner | RelatedPerson)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • workflow: Event.performer
  • w5: FiveWs.author
  • rim: .participation[typeCode=AUT].role
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
referenceO Σ C0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.reference
Short description

Literal reference, Relative, internal or absolute URL

Definition

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.

Comments

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.

Data type

string

Conditions

The cardinality or value of this element may be affected by these constraints: ref-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
typeΣ0..1uriBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.type
Short description

Type the reference refers to (e.g. "Patient")

Definition

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).

Comments

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.

Data type

uri

Binding

Aa resource (or, for logical models, the URI of the logical model).

ResourceType (extensible)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
identifierO Σ0..1Identifier
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier
Short description

Logical reference, when literal reference is not known

Definition

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.

Comments

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).

Data type

Identifier

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .identifier
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
useΣ ?!0..1codeBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.use
Short description

usual | official | temp | secondary | old (If known)

Definition

The purpose of this identifier.

Requirements

Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.

Comments

Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.

Data type

code

Binding

Identifies the purpose for this identifier, if known .

IdentifierUse (required)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: N/A
  • rim: Role.code or implied by context
typeΣ0..1CodeableConceptBinding
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.type
Short description

Description of identifier

Definition

A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.

Requirements

Allows users to make use of identifiers when the identifier system is not known.

Comments

This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.

Data type

CodeableConcept

Binding

A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

Identifier Type Codes (extensible)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: CX.5
  • rim: Role.code or implied by context
systemO Σ0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.system
Short description

The namespace for the identifier value

Definition

Establishes the namespace for the value - that is, a URL that describes a set values that are unique.

Requirements

There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.

Comments

Identifier.system is always case sensitive.

Data type

uri

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
http://www.acme.com/identifiers/patient
Mappings
  • v2: CX.4 / EI-2-4
  • rim: II.root or Role.id.root
  • servd: ./IdentifierType
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
valueO Σ0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.value
Short description

The value that is unique

Definition

The portion of the identifier typically relevant to the user and which is unique within the context of the system.

Comments

If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the Rendered Value extension. Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Examples
General
123456
Mappings
  • v2: CX.1 / EI.1
  • rim: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
  • servd: ./Value
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
periodΣ0..1Period
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.period
Short description

Time period when id is/was valid for use

Definition

Time period during which identifier is/was valid for use.

Data type

Period

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: CX.7 + CX.8
  • rim: Role.effectiveTime or implied by context
  • servd: ./StartDate and ./EndDate
assignerΣ0..1Reference(Organization)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.identifier.assigner
Short description

Organization that issued id (may be just text)

Definition

Organization that issued/manages the identifier.

Comments

The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.

Data type

Reference(Organization)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: CX.4 / (CX.4,CX.9,CX.10)
  • rim: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • servd: ./IdentifierIssuingAuthority
displayΣ0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.author.display
Short description

Text alternative for the resource

Definition

Plain text narrative that identifies the resource in addition to the resource reference.

Comments

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.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: N/A
sourceΣ0..1Reference(Patient | Practitioner | PractitionerRole | RelatedPerson)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.source
Short description

The person who answered the questions

Definition

The person who answered the questions about the subject.

Requirements

When answering questions about a subject that is minor, incapable of answering or an animal, another human source may answer the questions.

Comments

If not specified, no inference can be made about who provided the data.

Data type

Reference(Patient | Practitioner | PractitionerRole | RelatedPerson)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • w5: FiveWs.source
  • rim: .participation[typeCode=INF].role
itemO C0..*BackboneElement
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item
Short description

Groups and questions

Definition

A group or question item from the original questionnaire for which answers are provided.

Comments

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).

Data type

BackboneElement

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qrs-1: Nested item can't be beneath both item and answer
    (answer.exists() and item.exists()).not()
Mappings
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.extension
Short description

Extension

Definition

An Extension

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
itemMediaO C0..1Extension(Attachment)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.extension:itemMedia
Short description

Media to display

Definition

Media to render/make available as an accompaniment to the question being asked

Data type

Extension(Attachment)

Extension URL

ItemMedia

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
ItemSignatureO C0..*Extension(Signature)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.extension:ItemSignature
Short description

A signature attesting to the content

Definition

Represents a wet or electronic signature for either the form overall or for the question or item it's associated with.

Data type

Extension(Signature)

Extension URL

QRSignature

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
modifierExtensionΣ ?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.modifierExtension
Short description

Extensions that cannot be ignored even if unrecognized

Alternate names

extensions, user content, modifiers

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
linkIdO1..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.linkId
Short description

Pointer to specific item from Questionnaire

Definition

The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.

Requirements

Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
definition0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.definition
Short description

ElementDefinition - details for the item

Definition

A reference to an ElementDefinition that provides the details for the item.

Requirements

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.

Comments

The ElementDefinition must be in a StructureDefinition, 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.

Data type

uri

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code
textO0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.text
Short description

Name for group or question text

Definition

Text that is displayed above the contents of the group or as the text of the question being answered.

Requirements

Allows the questionnaire response to be read without access to the questionnaire.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .text
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
answerO0..*BackboneElement
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer
Short description

The response(s) to the question

Definition

The respondent's answer(s) to the question.

Comments

The value is nested because we cannot have a repeating structure that has variable type.

Data type

BackboneElement

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .value[type=LIST_ANY]
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer.extension
Short description

Extension

Definition

An Extension

Data type

Extension

Slicing

Unordered, Open, by url(Value)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
itemAnswerMediaO C0..1Extension(Attachment)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer.extension:itemAnswerMedia
Short description

Answer Media to display

Definition

Media to render/make available as an accompaniment to a specific answer option

Data type

Extension(Attachment)

Extension URL

ItemAnswerMedia

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
itemWeightO C0..1Extension(decimal)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer.extension:itemWeight
Short description

Assigned Ordinal Value

Definition

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. In questionnaires, this extension goes on answerOption where possible.

Comments

Scores are commonly encountered in various clinical assessment scales. Assigning a value to a concept should generally be done in a formal code system that defines the value, or in an applicable value set for the concept, but some concepts do not have a formal definition (or are not even represented as a concept formally, especially in Questionnaires, so this extension is allowed to appear ouside those preferred contexts. Scores may even be assigned arbitrarily during use (hence, on Coding). The value may be constrained to an integer in some contexts of use. Todo: Scoring algorithms may also be defined directly, but how this is done is not yet defined

For questionnaires, see additional guidance and examples in the SDC implementation guide.

Data type

Extension(decimal)

Extension URL

ItemWeight

Conditions

The cardinality or value of this element may be affected by these constraints: ele-1

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
modifierExtensionΣ ?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer.modifierExtension
Short description

Extensions that cannot be ignored even if unrecognized

Alternate names

extensions, user content, modifiers

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
value[x]O0..1
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer.value[x]
Short description

Single-valued answer to the question

Definition

The answer (or one of the answers) provided by the respondent to the question.

Requirements

Ability to retain a single-valued answer to a question.

Comments

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.

Binding

Code indicating the response provided for a question.

QuestionnaireAnswerCodes (example)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .item
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
valueAttachmentAttachment
There are no (further) constraints on this element
Data type

Attachment

valueBooleanboolean
There are no (further) constraints on this element
Data type

boolean

valueCodingCoding
There are no (further) constraints on this element
Data type

Coding

valueDatedate
There are no (further) constraints on this element
Data type

date

valueDateTimedateTime
There are no (further) constraints on this element
Data type

dateTime

valueDecimaldecimal
There are no (further) constraints on this element
Data type

decimal

valueIntegerinteger
There are no (further) constraints on this element
Data type

integer

valueQuantityQuantity
There are no (further) constraints on this element
Data type

Quantity

valueReferenceReference(Resource)
There are no (further) constraints on this element
Data type

Reference(Resource)

valueStringstring
There are no (further) constraints on this element
Data type

string

valueTimetime
There are no (further) constraints on this element
Data type

time

valueUriuri
There are no (further) constraints on this element
Data type

uri

itemO0..*see (item)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.answer.item
Short description

Nested groups and questions

Definition

Nested groups and/or questions found within this particular answer.

Requirements

It is useful to have "sub-questions", questions which normally appear when certain answers are given and which collect additional details.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
itemO0..*BackboneElement
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item
Short description

Nested questionnaire response items

Definition

Questions or sub-groups nested beneath a question or group.

Requirements

Reports can consist of complex nested groups.

Data type

BackboneElement

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHALL:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
modifierExtensionΣ ?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.modifierExtension
Short description

Extensions that cannot be ignored even if unrecognized

Alternate names

extensions, user content, modifiers

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
linkIdO1..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.linkId
Short description

Pointer to specific item from Questionnaire

Definition

The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.

Requirements

Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
definition0..1uri
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.definition
Short description

ElementDefinition - details for the item

Definition

A reference to an ElementDefinition that provides the details for the item.

Requirements

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.

Comments

The ElementDefinition must be in a StructureDefinition, 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.

Data type

uri

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code
textO0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.text
Short description

Name for group or question text

Definition

Text that is displayed above the contents of the group or as the text of the question being answered.

Requirements

Allows the questionnaire response to be read without access to the questionnaire.

Data type

string

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .text
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
answerO0..*BackboneElement
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer
Short description

The response(s) to the question

Definition

The respondent's answer(s) to the question.

Comments

The value is nested because we cannot have a repeating structure that has variable type.

Data type

BackboneElement

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .value[type=LIST_ANY]
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
id0..1string
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer.id
Short description

Unique id for inter-element referencing

Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Data type

string

Mappings
  • rim: n/a
extensionC0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer.extension
Short description

Additional content defined by implementations

Alternate names

extensions, user content

Definition

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.

Comments

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.

Data type

Extension

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
modifierExtensionΣ ?! C0..*Extension
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer.modifierExtension
Short description

Extensions that cannot be ignored even if unrecognized

Alternate names

extensions, user content, modifiers

Definition

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).

Requirements

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.

Comments

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.

Data type

Extension

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
value[x]O0..1
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer.value[x]
Short description

Single-valued answer to the question

Definition

The answer (or one of the answers) provided by the respondent to the question.

Requirements

Ability to retain a single-valued answer to a question.

Comments

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.

Binding

Code indicating the response provided for a question.

QuestionnaireAnswerCodes (example)

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .item
Obligations
NameCodeDocumentationActorHttp://hl7.org/fhir/tools/StructureDefinition/snapshot-source
pcareSHALL:populate
SHOULD:persist
SHALL:no-error

P-Care server population, persistence, and acceptance requirements for this element.

http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverhttp://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0
valueAttachmentAttachment
There are no (further) constraints on this element
Data type

Attachment

valueBooleanboolean
There are no (further) constraints on this element
Data type

boolean

valueCodingCoding
There are no (further) constraints on this element
Data type

Coding

valueDatedate
There are no (further) constraints on this element
Data type

date

valueDateTimedateTime
There are no (further) constraints on this element
Data type

dateTime

valueDecimaldecimal
There are no (further) constraints on this element
Data type

decimal

valueIntegerinteger
There are no (further) constraints on this element
Data type

integer

valueQuantityQuantity
There are no (further) constraints on this element
Data type

Quantity

valueReferenceReference(Resource)
There are no (further) constraints on this element
Data type

Reference(Resource)

valueStringstring
There are no (further) constraints on this element
Data type

string

valueTimetime
There are no (further) constraints on this element
Data type

time

valueUriuri
There are no (further) constraints on this element
Data type

uri

item0..*see (item)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.answer.item
Short description

Nested groups and questions

Definition

Nested groups and/or questions found within this particular answer.

Requirements

It is useful to have "sub-questions", questions which normally appear when certain answers are given and which collect additional details.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
item0..*see (item)
There are no (further) constraints on this element
Element id
QuestionnaireResponse.item.item.item
Short description

Nested questionnaire response items

Definition

Questions or sub-groups nested beneath a question or group.

Requirements

Reports can consist of complex nested groups.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="questionnaire-response" />
<text>
<status value="extensions" />
--- We have skipped the narrative for better readability of the resource ---
</text>
<url value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response" />
<version value="0.1.0" />
<name value="PCareQuestionnaireResponse" />
<title value="P-Care Questionnaire Response" />
<status value="draft" />
<date value="2026-10-19T22:14:59+00:00" />
<publisher value="Infoway" />
<description value="A structured set of questions and their answers." />
<fhirVersion value="4.0.1" />
<mapping>
<identity value="workflow" />
<uri value="http://hl7.org/fhir/workflow" />
<name value="Workflow Pattern" />
</mapping>
<mapping>
<identity value="rim" />
<uri value="http://hl7.org/v3" />
<name value="RIM Mapping" />
</mapping>
<mapping>
<identity value="w5" />
<uri value="http://hl7.org/fhir/fivews" />
<name value="FiveWs Pattern Mapping" />
</mapping>
<kind value="resource" />
<abstract value="false" />
<type value="QuestionnaireResponse" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
<derivation value="constraint" />
<snapshot>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
<valueString value="4.0.1" />
</extension>
<element id="QuestionnaireResponse">
<path value="QuestionnaireResponse" />
<short value="A structured set of questions and their answers" />
<definition value="A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to." />
<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." />
<alias value="Form" />
<alias value="QuestionnaireAnswers" />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse" />
<min value="0" />
<max value="*" />
</base>
<constraint>
<key value="dom-2" />
<severity value="error" />
<human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources" />
<expression value="contained.contained.empty()" />
<xpath value="not(parent::f:contained and f:contained)" />
<source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
</constraint>
<constraint>
<key value="dom-3" />
<severity value="error" />
<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" />
<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()" />
<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='#'])]))" />
<source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
</constraint>
<constraint>
<key value="dom-4" />
<severity value="error" />
<human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" />
<expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" />
<xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" />
<source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
</constraint>
<constraint>
<key value="dom-5" />
<severity value="error" />
<human value="If a resource is contained in another resource, it SHALL NOT have a security label" />
<expression value="contained.meta.security.empty()" />
<xpath value="not(exists(f:contained/*/f:meta/f:security))" />
<source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
</constraint>
<constraint>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
<valueBoolean value="true" />
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
<valueMarkdown 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." />
</extension>
<key value="dom-6" />
<severity value="warning" />
<human value="A resource should have narrative for robust management" />
<expression value="text.`div`.exists()" />
<xpath value="exists(f:text/h:div)" />
<source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
</constraint>
<constraint>
<key value="pcare-qrs-3" />
<severity value="error" />
<human value="Nested items containing answers must have distinct linkId values for ON:eForms compatibility." />
<expression value="(QuestionnaireResponse | repeat(answer | item)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()" />
<source value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response" />
</constraint>
<constraint>
<key value="pcare-qrs-4" />
<severity value="warning" />
<human value="QuestionnaireResponse.subject should be present for ON:eForms compatibility." />
<expression value="subject.exists()" />
<source value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="Entity. Role, or Act" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="Event" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Observation[moodCode=EVN]" />
</mapping>
</element>
<element id="QuestionnaireResponse.id">
<path value="QuestionnaireResponse.id" />
<short value="Logical id of this artifact" />
<definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Resource.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="id" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="true" />
</element>
<element id="QuestionnaireResponse.meta">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.meta" />
<short value="Metadata about the resource" />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Resource.meta" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Meta" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
</element>
<element id="QuestionnaireResponse.meta.id">
<path value="QuestionnaireResponse.meta.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.meta.extension">
<path value="QuestionnaireResponse.meta.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional content defined by implementations" />
<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." />
<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." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.meta.versionId">
<path value="QuestionnaireResponse.meta.versionId" />
<short value="Version specific identifier" />
<definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted." />
<comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes." />
<min value="0" />
<max value="1" />
<base>
<path value="Meta.versionId" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="id" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
</element>
<element id="QuestionnaireResponse.meta.lastUpdated">
<path value="QuestionnaireResponse.meta.lastUpdated" />
<short value="When the resource version last changed" />
<definition value="When the resource last changed - e.g. when the version changed." />
<comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction." />
<min value="0" />
<max value="1" />
<base>
<path value="Meta.lastUpdated" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="instant" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
</element>
<element id="QuestionnaireResponse.meta.source">
<path value="QuestionnaireResponse.meta.source" />
<short value="Identifies where the resource comes from" />
<definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc." />
<comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL." />
<min value="0" />
<max value="1" />
<base>
<path value="Meta.source" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
</element>
<element id="QuestionnaireResponse.meta.profile">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.meta.profile" />
<short value="Profiles this resource claims to conform to" />
<definition value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)." />
<comment value="Implementers should be aware that some Canadian jurisdictions require vendors to use meta.profile to declare which FHIR profile(s) and version(s) the resource conforms to." />
<min value="0" />
<max value="*" />
<base>
<path value="Meta.profile" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="canonical" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
</element>
<element id="QuestionnaireResponse.meta.security">
<path value="QuestionnaireResponse.meta.security" />
<short value="Security Labels applied to this resource" />
<definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure." />
<comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored." />
<min value="0" />
<max value="*" />
<base>
<path value="Meta.security" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Coding" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SecurityLabels" />
</extension>
<strength value="extensible" />
<description value="Security Labels from the Healthcare Privacy and Security Classification System." />
<valueSet value="http://hl7.org/fhir/ValueSet/security-labels|4.0.1" />
</binding>
</element>
<element id="QuestionnaireResponse.meta.tag">
<path value="QuestionnaireResponse.meta.tag" />
<short value="Tags applied to this resource" />
<definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource." />
<comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored." />
<min value="0" />
<max value="*" />
<base>
<path value="Meta.tag" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Coding" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="Tags" />
</extension>
<strength value="example" />
<description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"." />
<valueSet value="http://hl7.org/fhir/ValueSet/common-tags|4.0.1" />
</binding>
</element>
<element id="QuestionnaireResponse.implicitRules">
<path value="QuestionnaireResponse.implicitRules" />
<short value="A set of rules under which this content was created" />
<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." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Resource.implicitRules" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="true" />
<isModifierReason 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" />
<isSummary value="true" />
</element>
<element id="QuestionnaireResponse.language">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.language" />
<short value="Language of the resource content" />
<definition value="The base language in which the resource is written." />
<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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Resource.language" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
<valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages" />
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="Language" />
</extension>
<strength value="preferred" />
<description value="A human language." />
<valueSet value="http://hl7.org/fhir/ValueSet/languages|4.0.1" />
</binding>
</element>
<element id="QuestionnaireResponse.text">
<path value="QuestionnaireResponse.text" />
<short value="Text summary of the resource, for human interpretation" />
<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." />
<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." />
<alias value="narrative" />
<alias value="html" />
<alias value="xhtml" />
<alias value="display" />
<min value="0" />
<max value="1" />
<base>
<path value="DomainResource.text" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Narrative" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="Act.text?" />
</mapping>
</element>
<element id="QuestionnaireResponse.contained">
<path value="QuestionnaireResponse.contained" />
<short value="Contained, inline Resources" />
<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." />
<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." />
<alias value="inline resources" />
<alias value="anonymous resources" />
<alias value="contained resources" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.contained" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Resource" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension">
<path value="QuestionnaireResponse.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
<short value="Extension" />
<definition value="An Extension" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.extension:adheresTo">
<path value="QuestionnaireResponse.extension" />
<sliceName value="adheresTo" />
<short value="Follows rules from" />
<definition value="The action represented by this resource has been determined to satisfy the expectations established by the referenced Definition resource." />
<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.\n\nAlso see the [notes](workflow-extensions.html#instantiation) in the workflow extensions area for more guidance on this element." />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/workflow-adheresTo|5.3.0" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="v2" />
<map value="Varies by domain" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=DEFN].target" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:adheresTo.id">
<path value="QuestionnaireResponse.extension.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:adheresTo.extension">
<path value="QuestionnaireResponse.extension.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Extension" />
<definition value="An Extension" />
<min value="0" />
<max value="0" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.extension:adheresTo.url">
<path value="QuestionnaireResponse.extension.url" />
<representation value="xmlAttr" />
<short value="identifies the meaning of the extension" />
<definition value="Source of the definition for the extension code - a logical name or a URL." />
<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." />
<min value="1" />
<max value="1" />
<base>
<path value="Extension.url" />
<min value="1" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="uri" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<fixedUri value="http://hl7.org/fhir/StructureDefinition/workflow-adheresTo" />
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:adheresTo.value[x]">
<path value="QuestionnaireResponse.extension.value[x]" />
<slicing>
<discriminator>
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="closed" />
</slicing>
<short value="Value of extension" />
<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)." />
<min value="1" />
<max value="1" />
<base>
<path value="Extension.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="canonical" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Measure" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ObservationDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Measure" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ObservationDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" />
</type>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:adheresTo.value[x]:valueCanonical">
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueCanonical" />
<short value="Value of extension" />
<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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Extension.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="canonical" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:adheresTo.value[x]:valueReference">
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueReference" />
<short value="Value of extension" />
<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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Extension.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:adheresTo.value[x]:valueUri">
<extension url="http://hl7.org/fhir/tools/StructureDefinition/implied-type-slice">
<valueBoolean value="true" />
</extension>
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueUri" />
<short value="Value of extension" />
<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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Extension.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy">
<path value="QuestionnaireResponse.extension" />
<sliceName value="triggeredBy" />
<short value="Created because of following" />
<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." />
<comment value="See the [notes](workflow-extensions.html#instantiation) in the workflow extensions area for more guidance on this element." />
<min value="0" />
<max value="1" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy|5.3.0" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="v2" />
<map value="Varies by domain" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=DEFN].target" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.id">
<path value="QuestionnaireResponse.extension.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.extension">
<path value="QuestionnaireResponse.extension.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Extension" />
<definition value="An Extension" />
<min value="0" />
<max value="0" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.url">
<path value="QuestionnaireResponse.extension.url" />
<representation value="xmlAttr" />
<short value="identifies the meaning of the extension" />
<definition value="Source of the definition for the extension code - a logical name or a URL." />
<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." />
<min value="1" />
<max value="1" />
<base>
<path value="Extension.url" />
<min value="1" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="uri" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<fixedUri value="http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy" />
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.value[x]">
<path value="QuestionnaireResponse.extension.value[x]" />
<slicing>
<discriminator>
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="closed" />
</slicing>
<short value="Value of extension" />
<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)." />
<min value="1" />
<max value="1" />
<base>
<path value="Extension.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="canonical" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Measure" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ObservationDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Measure" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ObservationDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" />
</type>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.value[x]:valueCanonical">
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueCanonical" />
<short value="Value of extension" />
<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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Extension.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="canonical" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.value[x]:valueReference">
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueReference" />
<short value="Value of extension" />
<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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Extension.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.value[x]:valueUri">
<extension url="http://hl7.org/fhir/tools/StructureDefinition/implied-type-slice">
<valueBoolean value="true" />
</extension>
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueUri" />
<short value="Value of extension" />
<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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Extension.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.extension:signature">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.extension" />
<sliceName value="signature" />
<short value="A signature attesting to the content" />
<definition value="Represents a wet or electronic signature for either the form overall or for the question or item it's associated with." />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.extension:completionMode">
<path value="QuestionnaireResponse.extension" />
<sliceName value="completionMode" />
<short value="E.g. Verbal, written, electronic" />
<definition value="Indicates how the individual completing the QuestionnaireResponse provided their responses." />
<min value="0" />
<max value="1" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/questionnaireresponse-completionMode|5.3.0" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.modifierExtension">
<path value="QuestionnaireResponse.modifierExtension" />
<short value="Extensions that cannot be ignored" />
<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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
<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." />
<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)." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.modifierExtension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="true" />
<isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.identifier">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.identifier" />
<short value="Unique id for this set of answers" />
<definition value="A business identifier assigned to a particular completed (or partially completed) questionnaire." />
<requirements value="Used for tracking, registration and other business purposes." />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.identifier" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Identifier" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="workflow" />
<map value="Event.identifier" />
</mapping>
<mapping>
<identity value="w5" />
<map value="FiveWs.identifier" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".id" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn" />
<short value="Request fulfilled by this QuestionnaireResponse" />
<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." />
<requirements value="Supports traceability of responsibility for the action and allows linkage of an action to the recommendations acted upon." />
<alias value="order" />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse.basedOn" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/service-request" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="workflow" />
<map value="Event.basedOn" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=FLFS].target" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.id">
<path value="QuestionnaireResponse.basedOn.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.extension">
<path value="QuestionnaireResponse.basedOn.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional content defined by implementations" />
<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." />
<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." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.reference">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn.reference" />
<short value="Literal reference, Relative, internal or absolute URL" />
<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." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.reference" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ref-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.type">
<path value="QuestionnaireResponse.basedOn.type" />
<short value="Type the reference refers to (e.g. "Patient")" />
<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.\n\nThe 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)." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.type" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="FHIRResourceTypeExt" />
</extension>
<strength value="extensible" />
<description value="Aa resource (or, for logical models, the URI of the logical model)." />
<valueSet value="http://hl7.org/fhir/ValueSet/resource-types|4.0.1" />
</binding>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.identifier">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn.identifier" />
<short value="Logical reference, when literal reference is not known" />
<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." />
<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. \n\nWhen 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\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference 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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.identifier" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Identifier" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value=".identifier" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.identifier.id">
<path value="QuestionnaireResponse.basedOn.identifier.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.identifier.extension">
<path value="QuestionnaireResponse.basedOn.identifier.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional content defined by implementations" />
<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." />
<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." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.identifier.use">
<path value="QuestionnaireResponse.basedOn.identifier.use" />
<short value="usual | official | temp | secondary | old (If known)" />
<definition value="The purpose of this identifier." />
<comment value="Applications can assume that an identifier is permanent unless it explicitly says that it is temporary." />
<requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.use" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="true" />
<isModifierReason value="This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one." />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierUse" />
</extension>
<strength value="required" />
<description value="Identifies the purpose for this identifier, if known ." />
<valueSet value="http://hl7.org/fhir/ValueSet/identifier-use|4.0.1" />
</binding>
<mapping>
<identity value="v2" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.code or implied by context" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.identifier.type">
<path value="QuestionnaireResponse.basedOn.identifier.type" />
<short value="Description of identifier" />
<definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." />
<comment value="This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type." />
<requirements value="Allows users to make use of identifiers when the identifier system is not known." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.type" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierType" />
</extension>
<strength value="extensible" />
<description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." />
<valueSet value="http://hl7.org/fhir/ValueSet/identifier-type|4.0.1" />
</binding>
<mapping>
<identity value="v2" />
<map value="CX.5" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.code or implied by context" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.identifier.system">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn.identifier.system" />
<short value="The namespace for the identifier value" />
<definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
<comment value="Identifier.system is always case sensitive." />
<requirements value="There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.system" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<example>
<label value="General" />
<valueUri value="http://www.acme.com/identifiers/patient" />
</example>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.4 / EI-2-4" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.root or Role.id.root" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./IdentifierType" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.identifier.value">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn.identifier.value" />
<short value="The value that is unique" />
<definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
<comment value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.value" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<example>
<label value="General" />
<valueString value="123456" />
</example>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.1 / EI.1" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./Value" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.identifier.period">
<path value="QuestionnaireResponse.basedOn.identifier.period" />
<short value="Time period when id is/was valid for use" />
<definition value="Time period during which identifier is/was valid for use." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.period" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Period" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.7 + CX.8" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.effectiveTime or implied by context" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./StartDate and ./EndDate" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.identifier.assigner">
<path value="QuestionnaireResponse.basedOn.identifier.assigner" />
<short value="Organization that issued id (may be just text)" />
<definition value="Organization that issued/manages the identifier." />
<comment value="The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.assigner" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.4 / (CX.4,CX.9,CX.10)" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./IdentifierIssuingAuthority" />
</mapping>
</element>
<element id="QuestionnaireResponse.basedOn.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true" />
</extension>
<path value="QuestionnaireResponse.basedOn.display" />
<short value="Text alternative for the resource" />
<definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.display" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.partOf">
<path value="QuestionnaireResponse.partOf" />
<short value="Part of this action" />
<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." />
<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." />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse.partOf" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation|4.0.1" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="workflow" />
<map value="Event.partOf" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" />
</mapping>
</element>
<element id="QuestionnaireResponse.questionnaire">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.questionnaire" />
<short value="Form being answered" />
<definition value="The Questionnaire that defines and organizes the questions for which answers are being provided." />
<comment value="If a QuestionnaireResponse references a Questionnaire, then the QuestionnaireResponse structure must be consistent with the Questionnaire (i.e. questions must be organized into the same groups, nested questions must still be nested, etc.)." />
<requirements value="Needed to allow editing of the questionnaire response in a manner that enforces the constraints of the original form." />
<alias value="Form" />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.questionnaire" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="canonical" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="workflow" />
<map value="Event.instantiates" />
</mapping>
<mapping>
<identity value="rim" />
<map value="./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]" />
</mapping>
</element>
<element id="QuestionnaireResponse.status">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.status" />
<short value="in-progress | completed | amended | entered-in-error | stopped" />
<definition value="The position of the questionnaire response within its overall lifecycle." />
<comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
<requirements value="The information on Questionnaire resources may possibly be gathered during multiple sessions and altered after considered being finished." />
<min value="1" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.status" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="pcare-qrs-1" />
<severity value="warning" />
<human value="QuestionnaireResponse.status is expected to equal 'completed' for CA:eReC and ON:eRec compatibility." />
<expression value="$this = 'completed'" />
<source value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response" />
</constraint>
<isModifier value="true" />
<isModifierReason 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" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="QuestionnaireResponseStatus" />
</extension>
<strength value="required" />
<description value="Lifecycle status of the questionnaire response." />
<valueSet value="http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1" />
</binding>
<mapping>
<identity value="workflow" />
<map value="Event.status" />
</mapping>
<mapping>
<identity value="w5" />
<map value="FiveWs.status" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish "in-progress" from "published)" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject" />
<short value="The subject of the questions" />
<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." />
<comment value="When basedOn references a ServiceRequest, the QuestionnaireResponse subject SHALL be the same as the ServiceRequest subject. If the Questionnaire declares a subjectType, this reference must point to one of the listed resource types. If subject is omitted because the QuestionnaireResponse is not associated with a specific subject, include QuestionnaireResponse.identifier or ensure that the QuestionnaireResponse is referenced elsewhere (for example, Task.output or Composition.section.entry) to support tracking and retrieval." />
<requirements value="Allows linking the answers to the individual the answers describe. May also affect access control." />
<alias value="Patient" />
<alias value="Focus" />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.subject" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="pcare-qrs-5" />
<severity value="warning" />
<human value="QuestionnaireResponse.subject should reference a Patient for CA:eReC and ON:eRec compatibility." />
<expression value="reference.empty() or type = 'Patient' or reference.matches('(^|.*/)Patient/[^/]+(/_history/[^/]+)?$') or (resolve() is Patient)" />
<source value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="workflow" />
<map value="Event.subject" />
</mapping>
<mapping>
<identity value="w5" />
<map value="FiveWs.subject[x]" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".participation[typeCode=SBJ].role" />
</mapping>
<mapping>
<identity value="w5" />
<map value="FiveWs.subject" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.id">
<path value="QuestionnaireResponse.subject.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.extension">
<path value="QuestionnaireResponse.subject.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional content defined by implementations" />
<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." />
<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." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.reference">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject.reference" />
<short value="Literal reference, Relative, internal or absolute URL" />
<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." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.reference" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ref-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.type">
<path value="QuestionnaireResponse.subject.type" />
<short value="Type the reference refers to (e.g. "Patient")" />
<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.\n\nThe 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)." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.type" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="FHIRResourceTypeExt" />
</extension>
<strength value="extensible" />
<description value="Aa resource (or, for logical models, the URI of the logical model)." />
<valueSet value="http://hl7.org/fhir/ValueSet/resource-types|4.0.1" />
</binding>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.identifier">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject.identifier" />
<short value="Logical reference, when literal reference is not known" />
<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." />
<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. \n\nWhen 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\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference 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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.identifier" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Identifier" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value=".identifier" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.identifier.id">
<path value="QuestionnaireResponse.subject.identifier.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.identifier.extension">
<path value="QuestionnaireResponse.subject.identifier.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional content defined by implementations" />
<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." />
<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." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.identifier.use">
<path value="QuestionnaireResponse.subject.identifier.use" />
<short value="usual | official | temp | secondary | old (If known)" />
<definition value="The purpose of this identifier." />
<comment value="Applications can assume that an identifier is permanent unless it explicitly says that it is temporary." />
<requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.use" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="true" />
<isModifierReason value="This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one." />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierUse" />
</extension>
<strength value="required" />
<description value="Identifies the purpose for this identifier, if known ." />
<valueSet value="http://hl7.org/fhir/ValueSet/identifier-use|4.0.1" />
</binding>
<mapping>
<identity value="v2" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.code or implied by context" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.identifier.type">
<path value="QuestionnaireResponse.subject.identifier.type" />
<short value="Description of identifier" />
<definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." />
<comment value="This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type." />
<requirements value="Allows users to make use of identifiers when the identifier system is not known." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.type" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierType" />
</extension>
<strength value="extensible" />
<description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." />
<valueSet value="http://hl7.org/fhir/ValueSet/identifier-type|4.0.1" />
</binding>
<mapping>
<identity value="v2" />
<map value="CX.5" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.code or implied by context" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.identifier.system">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject.identifier.system" />
<short value="The namespace for the identifier value" />
<definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
<comment value="Identifier.system is always case sensitive." />
<requirements value="There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.system" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<example>
<label value="General" />
<valueUri value="http://www.acme.com/identifiers/patient" />
</example>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.4 / EI-2-4" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.root or Role.id.root" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./IdentifierType" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.identifier.value">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject.identifier.value" />
<short value="The value that is unique" />
<definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
<comment value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.value" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<example>
<label value="General" />
<valueString value="123456" />
</example>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.1 / EI.1" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./Value" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.identifier.period">
<path value="QuestionnaireResponse.subject.identifier.period" />
<short value="Time period when id is/was valid for use" />
<definition value="Time period during which identifier is/was valid for use." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.period" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Period" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.7 + CX.8" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.effectiveTime or implied by context" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./StartDate and ./EndDate" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.identifier.assigner">
<path value="QuestionnaireResponse.subject.identifier.assigner" />
<short value="Organization that issued id (may be just text)" />
<definition value="Organization that issued/manages the identifier." />
<comment value="The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.assigner" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.4 / (CX.4,CX.9,CX.10)" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./IdentifierIssuingAuthority" />
</mapping>
</element>
<element id="QuestionnaireResponse.subject.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true" />
</extension>
<path value="QuestionnaireResponse.subject.display" />
<short value="Text alternative for the resource" />
<definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.display" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.encounter">
<path value="QuestionnaireResponse.encounter" />
<short value="Encounter created as part of" />
<definition value="The Encounter during which this questionnaire response was created or to which the creation of this record is tightly associated." />
<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." />
<requirements value="Provides context for the information that was captured. May also affect access control." />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.encounter" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="workflow" />
<map value="Event.encounter" />
</mapping>
<mapping>
<identity value="w5" />
<map value="FiveWs.context" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]" />
</mapping>
</element>
<element id="QuestionnaireResponse.authored">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.authored" />
<short value="Date the answers were gathered" />
<definition value="Identifies when this version of the answer set was created. Changes whenever the answers are updated." />
<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.\n\nThis element is optional to allow for systems that might not know the value, however it SHOULD be populated if possible." />
<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." />
<alias value="Date Created" />
<alias value="Date published" />
<alias value="Date Issued" />
<alias value="Date updated" />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.authored" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="dateTime" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="workflow" />
<map value="Event.occurrence[x]" />
</mapping>
<mapping>
<identity value="w5" />
<map value="FiveWs.recorded" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".participation[typeCode=AUT].time" />
</mapping>
</element>
<element id="QuestionnaireResponse.author">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.author" />
<short value="Person who received and recorded the answers" />
<definition value="**Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.**" />
<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." />
<requirements value="Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers." />
<alias value="Laboratory" />
<alias value="Service" />
<alias value="Practitioner" />
<alias value="Department" />
<alias value="Company" />
<alias value="Performer" />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.author" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/practitioner-role" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="workflow" />
<map value="Event.performer" />
</mapping>
<mapping>
<identity value="w5" />
<map value="FiveWs.author" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".participation[typeCode=AUT].role" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.id">
<path value="QuestionnaireResponse.author.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.extension">
<path value="QuestionnaireResponse.author.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional content defined by implementations" />
<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." />
<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." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.reference">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.author.reference" />
<short value="Literal reference, Relative, internal or absolute URL" />
<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." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.reference" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ref-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.type">
<path value="QuestionnaireResponse.author.type" />
<short value="Type the reference refers to (e.g. "Patient")" />
<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.\n\nThe 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)." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.type" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="FHIRResourceTypeExt" />
</extension>
<strength value="extensible" />
<description value="Aa resource (or, for logical models, the URI of the logical model)." />
<valueSet value="http://hl7.org/fhir/ValueSet/resource-types|4.0.1" />
</binding>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.identifier">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.author.identifier" />
<short value="Logical reference, when literal reference is not known" />
<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." />
<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. \n\nWhen 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\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference 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)." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.identifier" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Identifier" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value=".identifier" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.identifier.id">
<path value="QuestionnaireResponse.author.identifier.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.identifier.extension">
<path value="QuestionnaireResponse.author.identifier.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional content defined by implementations" />
<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." />
<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." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.identifier.use">
<path value="QuestionnaireResponse.author.identifier.use" />
<short value="usual | official | temp | secondary | old (If known)" />
<definition value="The purpose of this identifier." />
<comment value="Applications can assume that an identifier is permanent unless it explicitly says that it is temporary." />
<requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.use" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="true" />
<isModifierReason value="This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one." />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierUse" />
</extension>
<strength value="required" />
<description value="Identifies the purpose for this identifier, if known ." />
<valueSet value="http://hl7.org/fhir/ValueSet/identifier-use|4.0.1" />
</binding>
<mapping>
<identity value="v2" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.code or implied by context" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.identifier.type">
<path value="QuestionnaireResponse.author.identifier.type" />
<short value="Description of identifier" />
<definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." />
<comment value="This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type." />
<requirements value="Allows users to make use of identifiers when the identifier system is not known." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.type" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierType" />
</extension>
<strength value="extensible" />
<description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." />
<valueSet value="http://hl7.org/fhir/ValueSet/identifier-type|4.0.1" />
</binding>
<mapping>
<identity value="v2" />
<map value="CX.5" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.code or implied by context" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.identifier.system">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.author.identifier.system" />
<short value="The namespace for the identifier value" />
<definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
<comment value="Identifier.system is always case sensitive." />
<requirements value="There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.system" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<example>
<label value="General" />
<valueUri value="http://www.acme.com/identifiers/patient" />
</example>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.4 / EI-2-4" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.root or Role.id.root" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./IdentifierType" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.identifier.value">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.author.identifier.value" />
<short value="The value that is unique" />
<definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
<comment value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.value" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<example>
<label value="General" />
<valueString value="123456" />
</example>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.1 / EI.1" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./Value" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.identifier.period">
<path value="QuestionnaireResponse.author.identifier.period" />
<short value="Time period when id is/was valid for use" />
<definition value="Time period during which identifier is/was valid for use." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.period" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Period" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.7 + CX.8" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.effectiveTime or implied by context" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./StartDate and ./EndDate" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.identifier.assigner">
<path value="QuestionnaireResponse.author.identifier.assigner" />
<short value="Organization that issued id (may be just text)" />
<definition value="Organization that issued/manages the identifier." />
<comment value="The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.assigner" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="v2" />
<map value="CX.4 / (CX.4,CX.9,CX.10)" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./IdentifierIssuingAuthority" />
</mapping>
</element>
<element id="QuestionnaireResponse.author.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true" />
</extension>
<path value="QuestionnaireResponse.author.display" />
<short value="Text alternative for the resource" />
<definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.display" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.source">
<path value="QuestionnaireResponse.source" />
<short value="The person who answered the questions" />
<definition value="The person who answered the questions about the subject." />
<comment value="If not specified, no inference can be made about who provided the data." />
<requirements value="When answering questions about a subject that is minor, incapable of answering or an animal, another human source may answer the questions." />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.source" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="true" />
<mapping>
<identity value="w5" />
<map value="FiveWs.source" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".participation[typeCode=INF].role" />
</mapping>
</element>
<element id="QuestionnaireResponse.item">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item" />
<short value="Groups and questions" />
<definition value="A group or question item from the original questionnaire for which answers are provided." />
<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)." />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse.item" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="BackboneElement" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="qrs-1" />
<severity value="error" />
<human value="Nested item can't be beneath both item and answer" />
<expression value="(answer.exists() and item.exists()).not()" />
<xpath value="not(exists(f:answer) and exists(f:item))" />
<source value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.id">
<path value="QuestionnaireResponse.item.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.extension">
<path value="QuestionnaireResponse.item.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
<short value="Extension" />
<definition value="An Extension" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.item.extension:itemMedia">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.extension" />
<sliceName value="itemMedia" />
<short value="Media to display" />
<definition value="Media to render/make available as an accompaniment to the question being asked" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemMedia" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.item.extension:ItemSignature">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.extension" />
<sliceName value="ItemSignature" />
<short value="A signature attesting to the content" />
<definition value="Represents a wet or electronic signature for either the form overall or for the question or item it's associated with." />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.item.modifierExtension">
<path value="QuestionnaireResponse.item.modifierExtension" />
<short value="Extensions that cannot be ignored even if unrecognized" />
<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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
<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." />
<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)." />
<alias value="extensions" />
<alias value="user content" />
<alias value="modifiers" />
<min value="0" />
<max value="*" />
<base>
<path value="BackboneElement.modifierExtension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="true" />
<isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.linkId">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.linkId" />
<short value="Pointer to specific item from Questionnaire" />
<definition value="The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource." />
<requirements value="Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier." />
<min value="1" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.item.linkId" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.definition">
<path value="QuestionnaireResponse.item.definition" />
<short value="ElementDefinition - details for the item" />
<definition value="A reference to an [ElementDefinition](http://hl7.org/fhir/R4/elementdefinition.html) that provides the details for the item." />
<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].\n\nThere is no need for this element if the item pointed to by the linkId has a definition listed." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.item.definition" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.text">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.text" />
<short value="Name for group or question text" />
<definition value="Text that is displayed above the contents of the group or as the text of the question being answered." />
<requirements value="Allows the questionnaire response to be read without access to the questionnaire." />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.item.text" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".text" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.answer">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer" />
<short value="The response(s) to the question" />
<definition value="The respondent's answer(s) to the question." />
<comment value="The value is nested because we cannot have a repeating structure that has variable type." />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse.item.answer" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="BackboneElement" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".value[type=LIST_ANY]" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.answer.id">
<path value="QuestionnaireResponse.item.answer.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.answer.extension">
<path value="QuestionnaireResponse.item.answer.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
<short value="Extension" />
<definition value="An Extension" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.item.answer.extension:itemAnswerMedia">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer.extension" />
<sliceName value="itemAnswerMedia" />
<short value="Answer Media to display" />
<definition value="Media to render/make available as an accompaniment to a specific answer option" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemAnswerMedia" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.item.answer.extension:itemWeight">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer.extension" />
<sliceName value="itemWeight" />
<short value="Assigned Ordinal Value" />
<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." />
<comment value="Scores are commonly encountered in various clinical assessment scales. Assigning a value to a concept should generally be done in a formal code system that defines the value, or in an applicable value set for the concept, but some concepts do not have a formal definition (or are not even represented as a concept formally, especially in [Questionnaires](questionnaire.html), \nso this extension is allowed to appear ouside those preferred contexts. Scores may even be assigned arbitrarily during use (hence, on Coding). The value may be constrained to an integer in some contexts of use. Todo: Scoring algorithms may also be defined directly, but how this is done is not yet defined\n\nFor questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/2025Jan/behavior.html#itemWeight)." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/itemWeight|5.3.0" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
</element>
<element id="QuestionnaireResponse.item.answer.modifierExtension">
<path value="QuestionnaireResponse.item.answer.modifierExtension" />
<short value="Extensions that cannot be ignored even if unrecognized" />
<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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
<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." />
<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)." />
<alias value="extensions" />
<alias value="user content" />
<alias value="modifiers" />
<min value="0" />
<max value="*" />
<base>
<path value="BackboneElement.modifierExtension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="true" />
<isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.answer.value[x]">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer.value[x]" />
<short value="Single-valued answer to the question" />
<definition value="The answer (or one of the answers) provided by the respondent to the question." />
<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." />
<requirements value="Ability to retain a single-valued answer to a question." />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.item.answer.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="boolean" />
</type>
<type>
<code value="decimal" />
</type>
<type>
<code value="integer" />
</type>
<type>
<code value="date" />
</type>
<type>
<code value="dateTime" />
</type>
<type>
<code value="time" />
</type>
<type>
<code value="string" />
</type>
<type>
<code value="uri" />
</type>
<type>
<code value="Attachment" />
</type>
<type>
<code value="Coding" />
</type>
<type>
<code value="Quantity" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="QuestionnaireAnswer" />
</extension>
<strength value="example" />
<description value="Code indicating the response provided for a question." />
<valueSet value="http://hl7.org/fhir/ValueSet/questionnaire-answers|4.0.1" />
</binding>
<mapping>
<identity value="rim" />
<map value=".item" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.answer.item">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer.item" />
<short value="Nested groups and questions" />
<definition value="Nested groups and/or questions found within this particular answer." />
<requirements value="It is useful to have "sub-questions", questions which normally appear when certain answers are given and which collect additional details." />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse.item.answer.item" />
<min value="0" />
<max value="*" />
</base>
<contentReference value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse#QuestionnaireResponse.item" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item" />
<short value="Nested questionnaire response items" />
<definition value="Questions or sub-groups nested beneath a question or group." />
<requirements value="Reports can consist of complex nested groups." />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse.item.item" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="BackboneElement" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.id">
<path value="QuestionnaireResponse.item.item.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.extension">
<path value="QuestionnaireResponse.item.item.extension" />
<short value="Additional content defined by implementations" />
<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." />
<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." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.modifierExtension">
<path value="QuestionnaireResponse.item.item.modifierExtension" />
<short value="Extensions that cannot be ignored even if unrecognized" />
<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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
<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." />
<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)." />
<alias value="extensions" />
<alias value="user content" />
<alias value="modifiers" />
<min value="0" />
<max value="*" />
<base>
<path value="BackboneElement.modifierExtension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="true" />
<isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.linkId">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item.linkId" />
<short value="Pointer to specific item from Questionnaire" />
<definition value="The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource." />
<requirements value="Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier." />
<min value="1" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.item.linkId" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.definition">
<path value="QuestionnaireResponse.item.item.definition" />
<short value="ElementDefinition - details for the item" />
<definition value="A reference to an [ElementDefinition](http://hl7.org/fhir/R4/elementdefinition.html) that provides the details for the item." />
<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].\n\nThere is no need for this element if the item pointed to by the linkId has a definition listed." />
<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." />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.item.definition" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.text">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item.text" />
<short value="Name for group or question text" />
<definition value="Text that is displayed above the contents of the group or as the text of the question being answered." />
<requirements value="Allows the questionnaire response to be read without access to the questionnaire." />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.item.text" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".text" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.answer">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item.answer" />
<short value="The response(s) to the question" />
<definition value="The respondent's answer(s) to the question." />
<comment value="The value is nested because we cannot have a repeating structure that has variable type." />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse.item.answer" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="BackboneElement" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".value[type=LIST_ANY]" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.answer.id">
<path value="QuestionnaireResponse.item.item.answer.id" />
<representation value="xmlAttr" />
<short value="Unique id for inter-element referencing" />
<definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string" />
</extension>
<code value="http://hl7.org/fhirpath/System.String" />
</type>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.answer.extension">
<path value="QuestionnaireResponse.item.item.answer.extension" />
<short value="Additional content defined by implementations" />
<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." />
<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." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.answer.modifierExtension">
<path value="QuestionnaireResponse.item.item.answer.modifierExtension" />
<short value="Extensions that cannot be ignored even if unrecognized" />
<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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
<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." />
<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)." />
<alias value="extensions" />
<alias value="user content" />
<alias value="modifiers" />
<min value="0" />
<max value="*" />
<base>
<path value="BackboneElement.modifierExtension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
<source value="http://hl7.org/fhir/StructureDefinition/Extension" />
</constraint>
<isModifier value="true" />
<isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.answer.value[x]">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item.answer.value[x]" />
<short value="Single-valued answer to the question" />
<definition value="The answer (or one of the answers) provided by the respondent to the question." />
<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." />
<requirements value="Ability to retain a single-valued answer to a question." />
<min value="0" />
<max value="1" />
<base>
<path value="QuestionnaireResponse.item.answer.value[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="boolean" />
</type>
<type>
<code value="decimal" />
</type>
<type>
<code value="integer" />
</type>
<type>
<code value="date" />
</type>
<type>
<code value="dateTime" />
</type>
<type>
<code value="time" />
</type>
<type>
<code value="string" />
</type>
<type>
<code value="uri" />
</type>
<type>
<code value="Attachment" />
</type>
<type>
<code value="Coding" />
</type>
<type>
<code value="Quantity" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" />
</type>
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="QuestionnaireAnswer" />
</extension>
<strength value="example" />
<description value="Code indicating the response provided for a question." />
<valueSet value="http://hl7.org/fhir/ValueSet/questionnaire-answers|4.0.1" />
</binding>
<mapping>
<identity value="rim" />
<map value=".item" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.answer.item">
<path value="QuestionnaireResponse.item.item.answer.item" />
<short value="Nested groups and questions" />
<definition value="Nested groups and/or questions found within this particular answer." />
<requirements value="It is useful to have "sub-questions", questions which normally appear when certain answers are given and which collect additional details." />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse.item.answer.item" />
<min value="0" />
<max value="*" />
</base>
<contentReference value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse#QuestionnaireResponse.item" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]" />
</mapping>
</element>
<element id="QuestionnaireResponse.item.item.item">
<path value="QuestionnaireResponse.item.item.item" />
<short value="Nested questionnaire response items" />
<definition value="Questions or sub-groups nested beneath a question or group." />
<requirements value="Reports can consist of complex nested groups." />
<min value="0" />
<max value="*" />
<base>
<path value="QuestionnaireResponse.item.item" />
<min value="0" />
<max value="*" />
</base>
<contentReference value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse#QuestionnaireResponse.item" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() or (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
<source value="http://hl7.org/fhir/StructureDefinition/Element" />
</constraint>
<isModifier value="false" />
<isSummary value="false" />
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]" />
</mapping>
</element>
</snapshot>
<differential>
<element id="QuestionnaireResponse">
<path value="QuestionnaireResponse" />
<constraint>
<key value="pcare-qrs-3" />
<severity value="error" />
<human value="Nested items containing answers must have distinct linkId values for ON:eForms compatibility." />
<expression value="(QuestionnaireResponse | repeat(answer | item)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()" />
<source value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response" />
</constraint>
<constraint>
<key value="pcare-qrs-4" />
<severity value="warning" />
<human value="QuestionnaireResponse.subject should be present for ON:eForms compatibility." />
<expression value="subject.exists()" />
<source value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response" />
</constraint>
</element>
<element id="QuestionnaireResponse.meta">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.meta" />
</element>
<element id="QuestionnaireResponse.meta.profile">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.meta.profile" />
<comment value="Implementers should be aware that some Canadian jurisdictions require vendors to use meta.profile to declare which FHIR profile(s) and version(s) the resource conforms to." />
</element>
<element id="QuestionnaireResponse.language">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.language" />
</element>
<element id="QuestionnaireResponse.extension">
<path value="QuestionnaireResponse.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="QuestionnaireResponse.extension:adheresTo">
<path value="QuestionnaireResponse.extension" />
<sliceName value="adheresTo" />
<min value="0" />
<max value="*" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/workflow-adheresTo|5.3.0" />
</type>
</element>
<element id="QuestionnaireResponse.extension:adheresTo.value[x]">
<path value="QuestionnaireResponse.extension.value[x]" />
<slicing>
<discriminator>
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="QuestionnaireResponse.extension:adheresTo.value[x]:valueCanonical">
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueCanonical" />
<min value="0" />
<max value="1" />
<type>
<code value="canonical" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
</type>
</element>
<element id="QuestionnaireResponse.extension:adheresTo.value[x]:valueReference">
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueReference" />
<min value="0" />
<max value="1" />
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
</type>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy">
<path value="QuestionnaireResponse.extension" />
<sliceName value="triggeredBy" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy|5.3.0" />
</type>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.value[x]">
<path value="QuestionnaireResponse.extension.value[x]" />
<slicing>
<discriminator>
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.value[x]:valueCanonical">
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueCanonical" />
<min value="0" />
<max value="1" />
<type>
<code value="canonical" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
</type>
</element>
<element id="QuestionnaireResponse.extension:triggeredBy.value[x]:valueReference">
<path value="QuestionnaireResponse.extension.value[x]" />
<sliceName value="valueReference" />
<min value="0" />
<max value="1" />
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
</type>
</element>
<element id="QuestionnaireResponse.extension:signature">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.extension" />
<sliceName value="signature" />
<min value="0" />
<max value="*" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0" />
</type>
</element>
<element id="QuestionnaireResponse.extension:completionMode">
<path value="QuestionnaireResponse.extension" />
<sliceName value="completionMode" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/questionnaireresponse-completionMode|5.3.0" />
</type>
</element>
<element id="QuestionnaireResponse.identifier">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.identifier" />
</element>
<element id="QuestionnaireResponse.basedOn">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn" />
<type>
<code value="Reference" />
<targetProfile value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/service-request" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
</type>
</element>
<element id="QuestionnaireResponse.basedOn.reference">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn.reference" />
</element>
<element id="QuestionnaireResponse.basedOn.identifier">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn.identifier" />
</element>
<element id="QuestionnaireResponse.basedOn.identifier.system">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn.identifier.system" />
</element>
<element id="QuestionnaireResponse.basedOn.identifier.value">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.basedOn.identifier.value" />
</element>
<element id="QuestionnaireResponse.questionnaire">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.questionnaire" />
</element>
<element id="QuestionnaireResponse.status">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.status" />
<constraint>
<key value="pcare-qrs-1" />
<severity value="warning" />
<human value="QuestionnaireResponse.status is expected to equal 'completed' for CA:eReC and ON:eRec compatibility." />
<expression value="$this = 'completed'" />
<source value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response" />
</constraint>
</element>
<element id="QuestionnaireResponse.subject">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject" />
<comment value="When basedOn references a ServiceRequest, the QuestionnaireResponse subject SHALL be the same as the ServiceRequest subject. If the Questionnaire declares a subjectType, this reference must point to one of the listed resource types. If subject is omitted because the QuestionnaireResponse is not associated with a specific subject, include QuestionnaireResponse.identifier or ensure that the QuestionnaireResponse is referenced elsewhere (for example, Task.output or Composition.section.entry) to support tracking and retrieval." />
<constraint>
<key value="pcare-qrs-5" />
<severity value="warning" />
<human value="QuestionnaireResponse.subject should reference a Patient for CA:eReC and ON:eRec compatibility." />
<expression value="reference.empty() or type = 'Patient' or reference.matches('(^|.*/)Patient/[^/]+(/_history/[^/]+)?$') or (resolve() is Patient)" />
<source value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response" />
</constraint>
</element>
<element id="QuestionnaireResponse.subject.reference">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject.reference" />
</element>
<element id="QuestionnaireResponse.subject.identifier">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject.identifier" />
</element>
<element id="QuestionnaireResponse.subject.identifier.system">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject.identifier.system" />
</element>
<element id="QuestionnaireResponse.subject.identifier.value">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.subject.identifier.value" />
</element>
<element id="QuestionnaireResponse.authored">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.authored" />
<definition value="Identifies when this version of the answer set was created. Changes whenever the answers are updated." />
</element>
<element id="QuestionnaireResponse.author">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.author" />
<definition value="**Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.**" />
<type>
<code value="Reference" />
<targetProfile value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/practitioner-role" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
</type>
</element>
<element id="QuestionnaireResponse.author.reference">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.author.reference" />
</element>
<element id="QuestionnaireResponse.author.identifier">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.author.identifier" />
</element>
<element id="QuestionnaireResponse.author.identifier.system">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.author.identifier.system" />
</element>
<element id="QuestionnaireResponse.author.identifier.value">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.author.identifier.value" />
</element>
<element id="QuestionnaireResponse.item">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item" />
</element>
<element id="QuestionnaireResponse.item.extension">
<path value="QuestionnaireResponse.item.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="QuestionnaireResponse.item.extension:itemMedia">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.extension" />
<sliceName value="itemMedia" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemMedia" />
</type>
</element>
<element id="QuestionnaireResponse.item.extension:ItemSignature">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.extension" />
<sliceName value="ItemSignature" />
<min value="0" />
<max value="*" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0" />
</type>
</element>
<element id="QuestionnaireResponse.item.linkId">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.linkId" />
</element>
<element id="QuestionnaireResponse.item.text">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.text" />
</element>
<element id="QuestionnaireResponse.item.answer">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer" />
</element>
<element id="QuestionnaireResponse.item.answer.extension">
<path value="QuestionnaireResponse.item.answer.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="QuestionnaireResponse.item.answer.extension:itemAnswerMedia">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer.extension" />
<sliceName value="itemAnswerMedia" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemAnswerMedia" />
</type>
</element>
<element id="QuestionnaireResponse.item.answer.extension:itemWeight">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer.extension" />
<sliceName value="itemWeight" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/itemWeight|5.3.0" />
</type>
</element>
<element id="QuestionnaireResponse.item.answer.value[x]">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer.value[x]" />
</element>
<element id="QuestionnaireResponse.item.answer.item">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.answer.item" />
</element>
<element id="QuestionnaireResponse.item.item">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHALL:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item" />
<type>
<code value="BackboneElement" />
</type>
</element>
<element id="QuestionnaireResponse.item.item.linkId">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item.linkId" />
</element>
<element id="QuestionnaireResponse.item.item.text">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item.text" />
</element>
<element id="QuestionnaireResponse.item.item.answer">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item.answer" />
</element>
<element id="QuestionnaireResponse.item.item.answer.value[x]">
<extension url="http://hl7.org/fhir/StructureDefinition/obligation">
<extension url="name">
<valueString value="pcare" />
</extension>
<extension url="code">
<valueCode value="SHALL:populate" />
</extension>
<extension url="code">
<valueCode value="SHOULD:persist" />
</extension>
<extension url="code">
<valueCode value="SHALL:no-error" />
</extension>
<extension url="documentation">
<valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
</extension>
<extension url="actor">
<valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
</extension>
</extension>
<path value="QuestionnaireResponse.item.item.answer.value[x]" />
</element>
</differential>
</StructureDefinition>
{
"resourceType": "StructureDefinition",
"id": "questionnaire-response",
"text": {
"status": "extensions",
--- We have skipped the narrative for better readability of the resource ---
},
"url": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response",
"version": "0.1.0",
"name": "PCareQuestionnaireResponse",
"title": "P-Care Questionnaire Response",
"status": "draft",
"date": "2026-10-19T22:14:59+00:00",
"publisher": "Infoway",
"description": "A structured set of questions and their answers.",
"fhirVersion": "4.0.1",
"mapping": [
{
"identity": "workflow",
"uri": "http://hl7.org/fhir/workflow",
"name": "Workflow Pattern"
},
{
"identity": "rim",
"uri": "http://hl7.org/v3",
"name": "RIM Mapping"
},
{
"identity": "w5",
"uri": "http://hl7.org/fhir/fivews",
"name": "FiveWs Pattern Mapping"
}
],
"kind": "resource",
"abstract": false,
"type": "QuestionnaireResponse",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
"derivation": "constraint",
"snapshot": {
"extension": [
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
"valueString": "4.0.1"
}
],
"element": [
{
"id": "QuestionnaireResponse",
"path": "QuestionnaireResponse",
"short": "A structured set of questions and their answers",
"definition": "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to.",
"comment": "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.",
"alias": [
"Form",
"QuestionnaireAnswers"
],
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse",
"min": 0,
"max": "*"
},
"constraint": [
{
"key": "dom-2",
"severity": "error",
"human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
"expression": "contained.contained.empty()",
"xpath": "not(parent::f:contained and f:contained)",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
},
{
"key": "dom-3",
"severity": "error",
"human": "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",
"expression": "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()",
"xpath": "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='#'])]))",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
},
{
"key": "dom-4",
"severity": "error",
"human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
"expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
"xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
},
{
"key": "dom-5",
"severity": "error",
"human": "If a resource is contained in another resource, it SHALL NOT have a security label",
"expression": "contained.meta.security.empty()",
"xpath": "not(exists(f:contained/*/f:meta/f:security))",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
"valueBoolean": true
},
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
"valueMarkdown": "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."
}
],
"key": "dom-6",
"severity": "warning",
"human": "A resource should have narrative for robust management",
"expression": "text.`div`.exists()",
"xpath": "exists(f:text/h:div)",
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
},
{
"key": "pcare-qrs-3",
"severity": "error",
"human": "Nested items containing answers must have distinct linkId values for ON:eForms compatibility.",
"expression": "(QuestionnaireResponse | repeat(answer | item)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()",
"source": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response"
},
{
"key": "pcare-qrs-4",
"severity": "warning",
"human": "QuestionnaireResponse.subject should be present for ON:eForms compatibility.",
"expression": "subject.exists()",
"source": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "Entity. Role, or Act"
},
{
"identity": "workflow",
"map": "Event"
},
{
"identity": "rim",
"map": "Observation[moodCode=EVN]"
}
]
},
{
"id": "QuestionnaireResponse.id",
"path": "QuestionnaireResponse.id",
"short": "Logical id of this artifact",
"definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
"comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
"min": 0,
"max": "1",
"base": {
"path": "Resource.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "id"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": true
},
{
"id": "QuestionnaireResponse.meta",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.meta",
"short": "Metadata about the resource",
"definition": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Resource.meta",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Meta"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true
},
{
"id": "QuestionnaireResponse.meta.id",
"path": "QuestionnaireResponse.meta.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.meta.extension",
"path": "QuestionnaireResponse.meta.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Additional content defined by implementations",
"definition": "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.",
"comment": "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.",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.meta.versionId",
"path": "QuestionnaireResponse.meta.versionId",
"short": "Version specific identifier",
"definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
"comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
"min": 0,
"max": "1",
"base": {
"path": "Meta.versionId",
"min": 0,
"max": "1"
},
"type": [
{
"code": "id"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true
},
{
"id": "QuestionnaireResponse.meta.lastUpdated",
"path": "QuestionnaireResponse.meta.lastUpdated",
"short": "When the resource version last changed",
"definition": "When the resource last changed - e.g. when the version changed.",
"comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction.",
"min": 0,
"max": "1",
"base": {
"path": "Meta.lastUpdated",
"min": 0,
"max": "1"
},
"type": [
{
"code": "instant"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true
},
{
"id": "QuestionnaireResponse.meta.source",
"path": "QuestionnaireResponse.meta.source",
"short": "Identifies where the resource comes from",
"definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
"comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
"min": 0,
"max": "1",
"base": {
"path": "Meta.source",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true
},
{
"id": "QuestionnaireResponse.meta.profile",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.meta.profile",
"short": "Profiles this resource claims to conform to",
"definition": "A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url).",
"comment": "Implementers should be aware that some Canadian jurisdictions require vendors to use meta.profile to declare which FHIR profile(s) and version(s) the resource conforms to.",
"min": 0,
"max": "*",
"base": {
"path": "Meta.profile",
"min": 0,
"max": "*"
},
"type": [
{
"code": "canonical",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/StructureDefinition|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true
},
{
"id": "QuestionnaireResponse.meta.security",
"path": "QuestionnaireResponse.meta.security",
"short": "Security Labels applied to this resource",
"definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
"comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
"min": 0,
"max": "*",
"base": {
"path": "Meta.security",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Coding"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "SecurityLabels"
}
],
"strength": "extensible",
"description": "Security Labels from the Healthcare Privacy and Security Classification System.",
"valueSet": "http://hl7.org/fhir/ValueSet/security-labels|4.0.1"
}
},
{
"id": "QuestionnaireResponse.meta.tag",
"path": "QuestionnaireResponse.meta.tag",
"short": "Tags applied to this resource",
"definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
"comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
"min": 0,
"max": "*",
"base": {
"path": "Meta.tag",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Coding"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "Tags"
}
],
"strength": "example",
"description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
"valueSet": "http://hl7.org/fhir/ValueSet/common-tags|4.0.1"
}
},
{
"id": "QuestionnaireResponse.implicitRules",
"path": "QuestionnaireResponse.implicitRules",
"short": "A set of rules under which this content was created",
"definition": "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.",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Resource.implicitRules",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": true,
"isModifierReason": "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",
"isSummary": true
},
{
"id": "QuestionnaireResponse.language",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.language",
"short": "Language of the resource content",
"definition": "The base language in which the resource is written.",
"comment": "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).",
"min": 0,
"max": "1",
"base": {
"path": "Resource.language",
"min": 0,
"max": "1"
},
"type": [
{
"code": "code"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
"valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "Language"
}
],
"strength": "preferred",
"description": "A human language.",
"valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1"
}
},
{
"id": "QuestionnaireResponse.text",
"path": "QuestionnaireResponse.text",
"short": "Text summary of the resource, for human interpretation",
"definition": "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.",
"comment": "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.",
"alias": [
"narrative",
"html",
"xhtml",
"display"
],
"min": 0,
"max": "1",
"base": {
"path": "DomainResource.text",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Narrative"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "Act.text?"
}
]
},
{
"id": "QuestionnaireResponse.contained",
"path": "QuestionnaireResponse.contained",
"short": "Contained, inline Resources",
"definition": "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.",
"comment": "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.",
"alias": [
"inline resources",
"anonymous resources",
"contained resources"
],
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.contained",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Resource"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension",
"path": "QuestionnaireResponse.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.extension:adheresTo",
"path": "QuestionnaireResponse.extension",
"sliceName": "adheresTo",
"short": "Follows rules from",
"definition": "The action represented by this resource has been determined to satisfy the expectations established by the referenced Definition resource.",
"comment": "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.\n\nAlso see the [notes](workflow-extensions.html#instantiation) in the workflow extensions area for more guidance on this element.",
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/workflow-adheresTo|5.3.0"
]
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "v2",
"map": "Varies by domain"
},
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=DEFN].target"
}
]
},
{
"id": "QuestionnaireResponse.extension:adheresTo.id",
"path": "QuestionnaireResponse.extension.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.extension:adheresTo.extension",
"path": "QuestionnaireResponse.extension.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "0",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.extension:adheresTo.url",
"path": "QuestionnaireResponse.extension.url",
"representation": [
"xmlAttr"
],
"short": "identifies the meaning of the extension",
"definition": "Source of the definition for the extension code - a logical name or a URL.",
"comment": "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.",
"min": 1,
"max": "1",
"base": {
"path": "Extension.url",
"min": 1,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "uri"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"fixedUri": "http://hl7.org/fhir/StructureDefinition/workflow-adheresTo",
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:adheresTo.value[x]",
"path": "QuestionnaireResponse.extension.value[x]",
"slicing": {
"discriminator": [
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "closed"
},
"short": "Value of extension",
"definition": "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).",
"min": 1,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "canonical",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/Measure",
"http://hl7.org/fhir/StructureDefinition/ObservationDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition",
"http://hl7.org/fhir/StructureDefinition/Questionnaire"
]
},
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/Measure",
"http://hl7.org/fhir/StructureDefinition/ObservationDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition",
"http://hl7.org/fhir/StructureDefinition/Questionnaire"
]
},
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:adheresTo.value[x]:valueCanonical",
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueCanonical",
"short": "Value of extension",
"definition": "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).",
"min": 0,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "canonical",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:adheresTo.value[x]:valueReference",
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueReference",
"short": "Value of extension",
"definition": "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).",
"min": 0,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:adheresTo.value[x]:valueUri",
"extension": [
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/implied-type-slice",
"valueBoolean": true
}
],
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueUri",
"short": "Value of extension",
"definition": "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).",
"min": 0,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy",
"path": "QuestionnaireResponse.extension",
"sliceName": "triggeredBy",
"short": "Created because of following",
"definition": "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.",
"comment": "See the [notes](workflow-extensions.html#instantiation) in the workflow extensions area for more guidance on this element.",
"min": 0,
"max": "1",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy|5.3.0"
]
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "v2",
"map": "Varies by domain"
},
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=DEFN].target"
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.id",
"path": "QuestionnaireResponse.extension.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.extension",
"path": "QuestionnaireResponse.extension.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "0",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.url",
"path": "QuestionnaireResponse.extension.url",
"representation": [
"xmlAttr"
],
"short": "identifies the meaning of the extension",
"definition": "Source of the definition for the extension code - a logical name or a URL.",
"comment": "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.",
"min": 1,
"max": "1",
"base": {
"path": "Extension.url",
"min": 1,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "uri"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"fixedUri": "http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy",
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.value[x]",
"path": "QuestionnaireResponse.extension.value[x]",
"slicing": {
"discriminator": [
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "closed"
},
"short": "Value of extension",
"definition": "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).",
"min": 1,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "canonical",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/Measure",
"http://hl7.org/fhir/StructureDefinition/ObservationDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition",
"http://hl7.org/fhir/StructureDefinition/Questionnaire"
]
},
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/Measure",
"http://hl7.org/fhir/StructureDefinition/ObservationDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition",
"http://hl7.org/fhir/StructureDefinition/Questionnaire"
]
},
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.value[x]:valueCanonical",
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueCanonical",
"short": "Value of extension",
"definition": "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).",
"min": 0,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "canonical",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.value[x]:valueReference",
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueReference",
"short": "Value of extension",
"definition": "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).",
"min": 0,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.value[x]:valueUri",
"extension": [
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/implied-type-slice",
"valueBoolean": true
}
],
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueUri",
"short": "Value of extension",
"definition": "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).",
"min": 0,
"max": "1",
"base": {
"path": "Extension.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.extension:signature",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.extension",
"sliceName": "signature",
"short": "A signature attesting to the content",
"definition": "Represents a wet or electronic signature for either the form overall or for the question or item it's associated with.",
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0"
]
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.extension:completionMode",
"path": "QuestionnaireResponse.extension",
"sliceName": "completionMode",
"short": "E.g. Verbal, written, electronic",
"definition": "Indicates how the individual completing the QuestionnaireResponse provided their responses.",
"min": 0,
"max": "1",
"base": {
"path": "DomainResource.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/questionnaireresponse-completionMode|5.3.0"
]
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.modifierExtension",
"path": "QuestionnaireResponse.modifierExtension",
"short": "Extensions that cannot be ignored",
"definition": "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"comment": "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.",
"requirements": "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).",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "DomainResource.modifierExtension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": true,
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.identifier",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.identifier",
"short": "Unique id for this set of answers",
"definition": "A business identifier assigned to a particular completed (or partially completed) questionnaire.",
"requirements": "Used for tracking, registration and other business purposes.",
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.identifier",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Identifier"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "workflow",
"map": "Event.identifier"
},
{
"identity": "w5",
"map": "FiveWs.identifier"
},
{
"identity": "rim",
"map": ".id"
}
]
},
{
"id": "QuestionnaireResponse.basedOn",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn",
"short": "Request fulfilled by this QuestionnaireResponse",
"definition": "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.",
"requirements": "Supports traceability of responsibility for the action and allows linkage of an action to the recommendations acted upon.",
"alias": [
"order"
],
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse.basedOn",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/service-request",
"http://hl7.org/fhir/StructureDefinition/CarePlan"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "workflow",
"map": "Event.basedOn"
},
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=FLFS].target"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.id",
"path": "QuestionnaireResponse.basedOn.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.extension",
"path": "QuestionnaireResponse.basedOn.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Additional content defined by implementations",
"definition": "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.",
"comment": "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.",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.reference",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn.reference",
"short": "Literal reference, Relative, internal or absolute URL",
"definition": "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.",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.reference",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"condition": [
"ref-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.type",
"path": "QuestionnaireResponse.basedOn.type",
"short": "Type the reference refers to (e.g. \"Patient\")",
"definition": "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.\n\nThe 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).",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.type",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "FHIRResourceTypeExt"
}
],
"strength": "extensible",
"description": "Aa resource (or, for logical models, the URI of the logical model).",
"valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
},
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.identifier",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn.identifier",
"short": "Logical reference, when literal reference is not known",
"definition": "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.",
"comment": "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. \n\nWhen 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\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference 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).",
"min": 0,
"max": "1",
"base": {
"path": "Reference.identifier",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Identifier"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".identifier"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.identifier.id",
"path": "QuestionnaireResponse.basedOn.identifier.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.identifier.extension",
"path": "QuestionnaireResponse.basedOn.identifier.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Additional content defined by implementations",
"definition": "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.",
"comment": "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.",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.identifier.use",
"path": "QuestionnaireResponse.basedOn.identifier.use",
"short": "usual | official | temp | secondary | old (If known)",
"definition": "The purpose of this identifier.",
"comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
"requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.use",
"min": 0,
"max": "1"
},
"type": [
{
"code": "code"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": true,
"isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "IdentifierUse"
}
],
"strength": "required",
"description": "Identifies the purpose for this identifier, if known .",
"valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
},
"mapping": [
{
"identity": "v2",
"map": "N/A"
},
{
"identity": "rim",
"map": "Role.code or implied by context"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.identifier.type",
"path": "QuestionnaireResponse.basedOn.identifier.type",
"short": "Description of identifier",
"definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
"comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
"requirements": "Allows users to make use of identifiers when the identifier system is not known.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.type",
"min": 0,
"max": "1"
},
"type": [
{
"code": "CodeableConcept"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "IdentifierType"
}
],
"strength": "extensible",
"description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
"valueSet": "http://hl7.org/fhir/ValueSet/identifier-type|4.0.1"
},
"mapping": [
{
"identity": "v2",
"map": "CX.5"
},
{
"identity": "rim",
"map": "Role.code or implied by context"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.identifier.system",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn.identifier.system",
"short": "The namespace for the identifier value",
"definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
"comment": "Identifier.system is always case sensitive.",
"requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.system",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"example": [
{
"label": "General",
"valueUri": "http://www.acme.com/identifiers/patient"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.4 / EI-2-4"
},
{
"identity": "rim",
"map": "II.root or Role.id.root"
},
{
"identity": "servd",
"map": "./IdentifierType"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.identifier.value",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn.identifier.value",
"short": "The value that is unique",
"definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
"comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.value",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"example": [
{
"label": "General",
"valueString": "123456"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.1 / EI.1"
},
{
"identity": "rim",
"map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
},
{
"identity": "servd",
"map": "./Value"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.identifier.period",
"path": "QuestionnaireResponse.basedOn.identifier.period",
"short": "Time period when id is/was valid for use",
"definition": "Time period during which identifier is/was valid for use.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.period",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Period"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.7 + CX.8"
},
{
"identity": "rim",
"map": "Role.effectiveTime or implied by context"
},
{
"identity": "servd",
"map": "./StartDate and ./EndDate"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.identifier.assigner",
"path": "QuestionnaireResponse.basedOn.identifier.assigner",
"short": "Organization that issued id (may be just text)",
"definition": "Organization that issued/manages the identifier.",
"comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.assigner",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.4 / (CX.4,CX.9,CX.10)"
},
{
"identity": "rim",
"map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
},
{
"identity": "servd",
"map": "./IdentifierIssuingAuthority"
}
]
},
{
"id": "QuestionnaireResponse.basedOn.display",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
}
],
"path": "QuestionnaireResponse.basedOn.display",
"short": "Text alternative for the resource",
"definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.display",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.partOf",
"path": "QuestionnaireResponse.partOf",
"short": "Part of this action",
"definition": "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.",
"comment": "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.",
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse.partOf",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Observation|4.0.1",
"http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "workflow",
"map": "Event.partOf"
},
{
"identity": "rim",
"map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
}
]
},
{
"id": "QuestionnaireResponse.questionnaire",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.questionnaire",
"short": "Form being answered",
"definition": "The Questionnaire that defines and organizes the questions for which answers are being provided.",
"comment": "If a QuestionnaireResponse references a Questionnaire, then the QuestionnaireResponse structure must be consistent with the Questionnaire (i.e. questions must be organized into the same groups, nested questions must still be nested, etc.).",
"requirements": "Needed to allow editing of the questionnaire response in a manner that enforces the constraints of the original form.",
"alias": [
"Form"
],
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.questionnaire",
"min": 0,
"max": "1"
},
"type": [
{
"code": "canonical",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Questionnaire|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "workflow",
"map": "Event.instantiates"
},
{
"identity": "rim",
"map": "./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]"
}
]
},
{
"id": "QuestionnaireResponse.status",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.status",
"short": "in-progress | completed | amended | entered-in-error | stopped",
"definition": "The position of the questionnaire response within its overall lifecycle.",
"comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
"requirements": "The information on Questionnaire resources may possibly be gathered during multiple sessions and altered after considered being finished.",
"min": 1,
"max": "1",
"base": {
"path": "QuestionnaireResponse.status",
"min": 1,
"max": "1"
},
"type": [
{
"code": "code"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "pcare-qrs-1",
"severity": "warning",
"human": "QuestionnaireResponse.status is expected to equal 'completed' for CA:eReC and ON:eRec compatibility.",
"expression": "$this = 'completed'",
"source": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response"
}
],
"isModifier": true,
"isModifierReason": "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",
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "QuestionnaireResponseStatus"
}
],
"strength": "required",
"description": "Lifecycle status of the questionnaire response.",
"valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1"
},
"mapping": [
{
"identity": "workflow",
"map": "Event.status"
},
{
"identity": "w5",
"map": "FiveWs.status"
},
{
"identity": "rim",
"map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in-progress\" from \"published)"
}
]
},
{
"id": "QuestionnaireResponse.subject",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject",
"short": "The subject of the questions",
"definition": "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.",
"comment": "When basedOn references a ServiceRequest, the QuestionnaireResponse subject SHALL be the same as the ServiceRequest subject. If the Questionnaire declares a subjectType, this reference must point to one of the listed resource types. If subject is omitted because the QuestionnaireResponse is not associated with a specific subject, include QuestionnaireResponse.identifier or ensure that the QuestionnaireResponse is referenced elsewhere (for example, Task.output or Composition.section.entry) to support tracking and retrieval.",
"requirements": "Allows linking the answers to the individual the answers describe. May also affect access control.",
"alias": [
"Patient",
"Focus"
],
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.subject",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "pcare-qrs-5",
"severity": "warning",
"human": "QuestionnaireResponse.subject should reference a Patient for CA:eReC and ON:eRec compatibility.",
"expression": "reference.empty() or type = 'Patient' or reference.matches('(^|.*/)Patient/[^/]+(/_history/[^/]+)?$') or (resolve() is Patient)",
"source": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "workflow",
"map": "Event.subject"
},
{
"identity": "w5",
"map": "FiveWs.subject[x]"
},
{
"identity": "rim",
"map": ".participation[typeCode=SBJ].role"
},
{
"identity": "w5",
"map": "FiveWs.subject"
}
]
},
{
"id": "QuestionnaireResponse.subject.id",
"path": "QuestionnaireResponse.subject.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.subject.extension",
"path": "QuestionnaireResponse.subject.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Additional content defined by implementations",
"definition": "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.",
"comment": "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.",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.subject.reference",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject.reference",
"short": "Literal reference, Relative, internal or absolute URL",
"definition": "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.",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.reference",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"condition": [
"ref-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.subject.type",
"path": "QuestionnaireResponse.subject.type",
"short": "Type the reference refers to (e.g. \"Patient\")",
"definition": "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.\n\nThe 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).",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.type",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "FHIRResourceTypeExt"
}
],
"strength": "extensible",
"description": "Aa resource (or, for logical models, the URI of the logical model).",
"valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
},
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.subject.identifier",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject.identifier",
"short": "Logical reference, when literal reference is not known",
"definition": "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.",
"comment": "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. \n\nWhen 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\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference 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).",
"min": 0,
"max": "1",
"base": {
"path": "Reference.identifier",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Identifier"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".identifier"
}
]
},
{
"id": "QuestionnaireResponse.subject.identifier.id",
"path": "QuestionnaireResponse.subject.identifier.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.subject.identifier.extension",
"path": "QuestionnaireResponse.subject.identifier.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Additional content defined by implementations",
"definition": "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.",
"comment": "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.",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.subject.identifier.use",
"path": "QuestionnaireResponse.subject.identifier.use",
"short": "usual | official | temp | secondary | old (If known)",
"definition": "The purpose of this identifier.",
"comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
"requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.use",
"min": 0,
"max": "1"
},
"type": [
{
"code": "code"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": true,
"isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "IdentifierUse"
}
],
"strength": "required",
"description": "Identifies the purpose for this identifier, if known .",
"valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
},
"mapping": [
{
"identity": "v2",
"map": "N/A"
},
{
"identity": "rim",
"map": "Role.code or implied by context"
}
]
},
{
"id": "QuestionnaireResponse.subject.identifier.type",
"path": "QuestionnaireResponse.subject.identifier.type",
"short": "Description of identifier",
"definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
"comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
"requirements": "Allows users to make use of identifiers when the identifier system is not known.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.type",
"min": 0,
"max": "1"
},
"type": [
{
"code": "CodeableConcept"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "IdentifierType"
}
],
"strength": "extensible",
"description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
"valueSet": "http://hl7.org/fhir/ValueSet/identifier-type|4.0.1"
},
"mapping": [
{
"identity": "v2",
"map": "CX.5"
},
{
"identity": "rim",
"map": "Role.code or implied by context"
}
]
},
{
"id": "QuestionnaireResponse.subject.identifier.system",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject.identifier.system",
"short": "The namespace for the identifier value",
"definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
"comment": "Identifier.system is always case sensitive.",
"requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.system",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"example": [
{
"label": "General",
"valueUri": "http://www.acme.com/identifiers/patient"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.4 / EI-2-4"
},
{
"identity": "rim",
"map": "II.root or Role.id.root"
},
{
"identity": "servd",
"map": "./IdentifierType"
}
]
},
{
"id": "QuestionnaireResponse.subject.identifier.value",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject.identifier.value",
"short": "The value that is unique",
"definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
"comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.value",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"example": [
{
"label": "General",
"valueString": "123456"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.1 / EI.1"
},
{
"identity": "rim",
"map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
},
{
"identity": "servd",
"map": "./Value"
}
]
},
{
"id": "QuestionnaireResponse.subject.identifier.period",
"path": "QuestionnaireResponse.subject.identifier.period",
"short": "Time period when id is/was valid for use",
"definition": "Time period during which identifier is/was valid for use.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.period",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Period"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.7 + CX.8"
},
{
"identity": "rim",
"map": "Role.effectiveTime or implied by context"
},
{
"identity": "servd",
"map": "./StartDate and ./EndDate"
}
]
},
{
"id": "QuestionnaireResponse.subject.identifier.assigner",
"path": "QuestionnaireResponse.subject.identifier.assigner",
"short": "Organization that issued id (may be just text)",
"definition": "Organization that issued/manages the identifier.",
"comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.assigner",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.4 / (CX.4,CX.9,CX.10)"
},
{
"identity": "rim",
"map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
},
{
"identity": "servd",
"map": "./IdentifierIssuingAuthority"
}
]
},
{
"id": "QuestionnaireResponse.subject.display",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
}
],
"path": "QuestionnaireResponse.subject.display",
"short": "Text alternative for the resource",
"definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.display",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.encounter",
"path": "QuestionnaireResponse.encounter",
"short": "Encounter created as part of",
"definition": "The Encounter during which this questionnaire response was created or to which the creation of this record is tightly associated.",
"comment": "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.",
"requirements": "Provides context for the information that was captured. May also affect access control.",
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.encounter",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "workflow",
"map": "Event.encounter"
},
{
"identity": "w5",
"map": "FiveWs.context"
},
{
"identity": "rim",
"map": ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"
}
]
},
{
"id": "QuestionnaireResponse.authored",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.authored",
"short": "Date the answers were gathered",
"definition": "Identifies when this version of the answer set was created. Changes whenever the answers are updated.",
"comment": "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.\n\nThis element is optional to allow for systems that might not know the value, however it SHOULD be populated if possible.",
"requirements": "Clinicians need to be able to check the date that the information in the questionnaire was collected, to derive the context of the answers.",
"alias": [
"Date Created",
"Date published",
"Date Issued",
"Date updated"
],
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.authored",
"min": 0,
"max": "1"
},
"type": [
{
"code": "dateTime"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "workflow",
"map": "Event.occurrence[x]"
},
{
"identity": "w5",
"map": "FiveWs.recorded"
},
{
"identity": "rim",
"map": ".participation[typeCode=AUT].time"
}
]
},
{
"id": "QuestionnaireResponse.author",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author",
"short": "Person who received and recorded the answers",
"definition": "**Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.**",
"comment": "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.",
"requirements": "Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers.",
"alias": [
"Laboratory",
"Service",
"Practitioner",
"Department",
"Company",
"Performer"
],
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.author",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/practitioner-role",
"http://hl7.org/fhir/StructureDefinition/Patient",
"http://hl7.org/fhir/StructureDefinition/Device",
"http://hl7.org/fhir/StructureDefinition/Practitioner",
"http://hl7.org/fhir/StructureDefinition/RelatedPerson",
"http://hl7.org/fhir/StructureDefinition/Organization"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "workflow",
"map": "Event.performer"
},
{
"identity": "w5",
"map": "FiveWs.author"
},
{
"identity": "rim",
"map": ".participation[typeCode=AUT].role"
}
]
},
{
"id": "QuestionnaireResponse.author.id",
"path": "QuestionnaireResponse.author.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.author.extension",
"path": "QuestionnaireResponse.author.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Additional content defined by implementations",
"definition": "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.",
"comment": "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.",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.author.reference",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author.reference",
"short": "Literal reference, Relative, internal or absolute URL",
"definition": "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.",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.reference",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"condition": [
"ref-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.author.type",
"path": "QuestionnaireResponse.author.type",
"short": "Type the reference refers to (e.g. \"Patient\")",
"definition": "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.\n\nThe 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).",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.type",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "FHIRResourceTypeExt"
}
],
"strength": "extensible",
"description": "Aa resource (or, for logical models, the URI of the logical model).",
"valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
},
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.author.identifier",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author.identifier",
"short": "Logical reference, when literal reference is not known",
"definition": "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.",
"comment": "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. \n\nWhen 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\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference 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).",
"min": 0,
"max": "1",
"base": {
"path": "Reference.identifier",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Identifier"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": ".identifier"
}
]
},
{
"id": "QuestionnaireResponse.author.identifier.id",
"path": "QuestionnaireResponse.author.identifier.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.author.identifier.extension",
"path": "QuestionnaireResponse.author.identifier.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"description": "Extensions are always sliced by (at least) url",
"rules": "open"
},
"short": "Additional content defined by implementations",
"definition": "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.",
"comment": "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.",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.author.identifier.use",
"path": "QuestionnaireResponse.author.identifier.use",
"short": "usual | official | temp | secondary | old (If known)",
"definition": "The purpose of this identifier.",
"comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
"requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.use",
"min": 0,
"max": "1"
},
"type": [
{
"code": "code"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": true,
"isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "IdentifierUse"
}
],
"strength": "required",
"description": "Identifies the purpose for this identifier, if known .",
"valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
},
"mapping": [
{
"identity": "v2",
"map": "N/A"
},
{
"identity": "rim",
"map": "Role.code or implied by context"
}
]
},
{
"id": "QuestionnaireResponse.author.identifier.type",
"path": "QuestionnaireResponse.author.identifier.type",
"short": "Description of identifier",
"definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
"comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
"requirements": "Allows users to make use of identifiers when the identifier system is not known.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.type",
"min": 0,
"max": "1"
},
"type": [
{
"code": "CodeableConcept"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "IdentifierType"
}
],
"strength": "extensible",
"description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
"valueSet": "http://hl7.org/fhir/ValueSet/identifier-type|4.0.1"
},
"mapping": [
{
"identity": "v2",
"map": "CX.5"
},
{
"identity": "rim",
"map": "Role.code or implied by context"
}
]
},
{
"id": "QuestionnaireResponse.author.identifier.system",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author.identifier.system",
"short": "The namespace for the identifier value",
"definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
"comment": "Identifier.system is always case sensitive.",
"requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.system",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"example": [
{
"label": "General",
"valueUri": "http://www.acme.com/identifiers/patient"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.4 / EI-2-4"
},
{
"identity": "rim",
"map": "II.root or Role.id.root"
},
{
"identity": "servd",
"map": "./IdentifierType"
}
]
},
{
"id": "QuestionnaireResponse.author.identifier.value",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author.identifier.value",
"short": "The value that is unique",
"definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
"comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.value",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"example": [
{
"label": "General",
"valueString": "123456"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.1 / EI.1"
},
{
"identity": "rim",
"map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
},
{
"identity": "servd",
"map": "./Value"
}
]
},
{
"id": "QuestionnaireResponse.author.identifier.period",
"path": "QuestionnaireResponse.author.identifier.period",
"short": "Time period when id is/was valid for use",
"definition": "Time period during which identifier is/was valid for use.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.period",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Period"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.7 + CX.8"
},
{
"identity": "rim",
"map": "Role.effectiveTime or implied by context"
},
{
"identity": "servd",
"map": "./StartDate and ./EndDate"
}
]
},
{
"id": "QuestionnaireResponse.author.identifier.assigner",
"path": "QuestionnaireResponse.author.identifier.assigner",
"short": "Organization that issued id (may be just text)",
"definition": "Organization that issued/manages the identifier.",
"comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
"min": 0,
"max": "1",
"base": {
"path": "Identifier.assigner",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "v2",
"map": "CX.4 / (CX.4,CX.9,CX.10)"
},
{
"identity": "rim",
"map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
},
{
"identity": "servd",
"map": "./IdentifierIssuingAuthority"
}
]
},
{
"id": "QuestionnaireResponse.author.display",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
}
],
"path": "QuestionnaireResponse.author.display",
"short": "Text alternative for the resource",
"definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
"comment": "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.",
"min": 0,
"max": "1",
"base": {
"path": "Reference.display",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.source",
"path": "QuestionnaireResponse.source",
"short": "The person who answered the questions",
"definition": "The person who answered the questions about the subject.",
"comment": "If not specified, no inference can be made about who provided the data.",
"requirements": "When answering questions about a subject that is minor, incapable of answering or an animal, another human source may answer the questions.",
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.source",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Patient|4.0.1",
"http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1",
"http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1",
"http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": true,
"mapping": [
{
"identity": "w5",
"map": "FiveWs.source"
},
{
"identity": "rim",
"map": ".participation[typeCode=INF].role"
}
]
},
{
"id": "QuestionnaireResponse.item",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item",
"short": "Groups and questions",
"definition": "A group or question item from the original questionnaire for which answers are provided.",
"comment": "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).",
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse.item",
"min": 0,
"max": "*"
},
"type": [
{
"code": "BackboneElement"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "qrs-1",
"severity": "error",
"human": "Nested item can't be beneath both item and answer",
"expression": "(answer.exists() and item.exists()).not()",
"xpath": "not(exists(f:answer) and exists(f:item))",
"source": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
}
]
},
{
"id": "QuestionnaireResponse.item.id",
"path": "QuestionnaireResponse.item.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.item.extension",
"path": "QuestionnaireResponse.item.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.item.extension:itemMedia",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.extension",
"sliceName": "itemMedia",
"short": "Media to display",
"definition": "Media to render/make available as an accompaniment to the question being asked",
"min": 0,
"max": "1",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemMedia"
]
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.item.extension:ItemSignature",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.extension",
"sliceName": "ItemSignature",
"short": "A signature attesting to the content",
"definition": "Represents a wet or electronic signature for either the form overall or for the question or item it's associated with.",
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0"
]
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.item.modifierExtension",
"path": "QuestionnaireResponse.item.modifierExtension",
"short": "Extensions that cannot be ignored even if unrecognized",
"definition": "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"comment": "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.",
"requirements": "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).",
"alias": [
"extensions",
"user content",
"modifiers"
],
"min": 0,
"max": "*",
"base": {
"path": "BackboneElement.modifierExtension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": true,
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.item.linkId",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.linkId",
"short": "Pointer to specific item from Questionnaire",
"definition": "The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.",
"requirements": "Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier.",
"min": 1,
"max": "1",
"base": {
"path": "QuestionnaireResponse.item.linkId",
"min": 1,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id"
}
]
},
{
"id": "QuestionnaireResponse.item.definition",
"path": "QuestionnaireResponse.item.definition",
"short": "ElementDefinition - details for the item",
"definition": "A reference to an [ElementDefinition](http://hl7.org/fhir/R4/elementdefinition.html) that provides the details for the item.",
"comment": "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].\n\nThere is no need for this element if the item pointed to by the linkId has a definition listed.",
"requirements": "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.",
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.item.definition",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code"
}
]
},
{
"id": "QuestionnaireResponse.item.text",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.text",
"short": "Name for group or question text",
"definition": "Text that is displayed above the contents of the group or as the text of the question being answered.",
"requirements": "Allows the questionnaire response to be read without access to the questionnaire.",
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.item.text",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".text"
}
]
},
{
"id": "QuestionnaireResponse.item.answer",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer",
"short": "The response(s) to the question",
"definition": "The respondent's answer(s) to the question.",
"comment": "The value is nested because we cannot have a repeating structure that has variable type.",
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse.item.answer",
"min": 0,
"max": "*"
},
"type": [
{
"code": "BackboneElement"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".value[type=LIST_ANY]"
}
]
},
{
"id": "QuestionnaireResponse.item.answer.id",
"path": "QuestionnaireResponse.item.answer.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.item.answer.extension",
"path": "QuestionnaireResponse.item.answer.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
},
"short": "Extension",
"definition": "An Extension",
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.item.answer.extension:itemAnswerMedia",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer.extension",
"sliceName": "itemAnswerMedia",
"short": "Answer Media to display",
"definition": "Media to render/make available as an accompaniment to a specific answer option",
"min": 0,
"max": "1",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemAnswerMedia"
]
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.item.answer.extension:itemWeight",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer.extension",
"sliceName": "itemWeight",
"short": "Assigned Ordinal Value",
"definition": "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.",
"comment": "Scores are commonly encountered in various clinical assessment scales. Assigning a value to a concept should generally be done in a formal code system that defines the value, or in an applicable value set for the concept, but some concepts do not have a formal definition (or are not even represented as a concept formally, especially in [Questionnaires](questionnaire.html), \nso this extension is allowed to appear ouside those preferred contexts. Scores may even be assigned arbitrarily during use (hence, on Coding). The value may be constrained to an integer in some contexts of use. Todo: Scoring algorithms may also be defined directly, but how this is done is not yet defined\n\nFor questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/2025Jan/behavior.html#itemWeight).",
"min": 0,
"max": "1",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/itemWeight|5.3.0"
]
}
],
"condition": [
"ele-1"
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false
},
{
"id": "QuestionnaireResponse.item.answer.modifierExtension",
"path": "QuestionnaireResponse.item.answer.modifierExtension",
"short": "Extensions that cannot be ignored even if unrecognized",
"definition": "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"comment": "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.",
"requirements": "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).",
"alias": [
"extensions",
"user content",
"modifiers"
],
"min": 0,
"max": "*",
"base": {
"path": "BackboneElement.modifierExtension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": true,
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.item.answer.value[x]",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer.value[x]",
"short": "Single-valued answer to the question",
"definition": "The answer (or one of the answers) provided by the respondent to the question.",
"comment": "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.",
"requirements": "Ability to retain a single-valued answer to a question.",
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.item.answer.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "boolean"
},
{
"code": "decimal"
},
{
"code": "integer"
},
{
"code": "date"
},
{
"code": "dateTime"
},
{
"code": "time"
},
{
"code": "string"
},
{
"code": "uri"
},
{
"code": "Attachment"
},
{
"code": "Coding"
},
{
"code": "Quantity"
},
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "QuestionnaireAnswer"
}
],
"strength": "example",
"description": "Code indicating the response provided for a question.",
"valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers|4.0.1"
},
"mapping": [
{
"identity": "rim",
"map": ".item"
}
]
},
{
"id": "QuestionnaireResponse.item.answer.item",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer.item",
"short": "Nested groups and questions",
"definition": "Nested groups and/or questions found within this particular answer.",
"requirements": "It is useful to have \"sub-questions\", questions which normally appear when certain answers are given and which collect additional details.",
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse.item.answer.item",
"min": 0,
"max": "*"
},
"contentReference": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse#QuestionnaireResponse.item",
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
}
]
},
{
"id": "QuestionnaireResponse.item.item",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item",
"short": "Nested questionnaire response items",
"definition": "Questions or sub-groups nested beneath a question or group.",
"requirements": "Reports can consist of complex nested groups.",
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse.item.item",
"min": 0,
"max": "*"
},
"type": [
{
"code": "BackboneElement"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
}
]
},
{
"id": "QuestionnaireResponse.item.item.id",
"path": "QuestionnaireResponse.item.item.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.item.item.extension",
"path": "QuestionnaireResponse.item.item.extension",
"short": "Additional content defined by implementations",
"definition": "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.",
"comment": "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.",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.item.item.modifierExtension",
"path": "QuestionnaireResponse.item.item.modifierExtension",
"short": "Extensions that cannot be ignored even if unrecognized",
"definition": "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"comment": "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.",
"requirements": "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).",
"alias": [
"extensions",
"user content",
"modifiers"
],
"min": 0,
"max": "*",
"base": {
"path": "BackboneElement.modifierExtension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": true,
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.item.item.linkId",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item.linkId",
"short": "Pointer to specific item from Questionnaire",
"definition": "The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.",
"requirements": "Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier.",
"min": 1,
"max": "1",
"base": {
"path": "QuestionnaireResponse.item.linkId",
"min": 1,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id"
}
]
},
{
"id": "QuestionnaireResponse.item.item.definition",
"path": "QuestionnaireResponse.item.item.definition",
"short": "ElementDefinition - details for the item",
"definition": "A reference to an [ElementDefinition](http://hl7.org/fhir/R4/elementdefinition.html) that provides the details for the item.",
"comment": "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].\n\nThere is no need for this element if the item pointed to by the linkId has a definition listed.",
"requirements": "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.",
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.item.definition",
"min": 0,
"max": "1"
},
"type": [
{
"code": "uri"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code"
}
]
},
{
"id": "QuestionnaireResponse.item.item.text",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item.text",
"short": "Name for group or question text",
"definition": "Text that is displayed above the contents of the group or as the text of the question being answered.",
"requirements": "Allows the questionnaire response to be read without access to the questionnaire.",
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.item.text",
"min": 0,
"max": "1"
},
"type": [
{
"code": "string"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".text"
}
]
},
{
"id": "QuestionnaireResponse.item.item.answer",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item.answer",
"short": "The response(s) to the question",
"definition": "The respondent's answer(s) to the question.",
"comment": "The value is nested because we cannot have a repeating structure that has variable type.",
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse.item.answer",
"min": 0,
"max": "*"
},
"type": [
{
"code": "BackboneElement"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".value[type=LIST_ANY]"
}
]
},
{
"id": "QuestionnaireResponse.item.item.answer.id",
"path": "QuestionnaireResponse.item.item.answer.id",
"representation": [
"xmlAttr"
],
"short": "Unique id for inter-element referencing",
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"min": 0,
"max": "1",
"base": {
"path": "Element.id",
"min": 0,
"max": "1"
},
"type": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
}
],
"code": "http://hl7.org/fhirpath/System.String"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.item.item.answer.extension",
"path": "QuestionnaireResponse.item.item.answer.extension",
"short": "Additional content defined by implementations",
"definition": "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.",
"comment": "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.",
"alias": [
"extensions",
"user content"
],
"min": 0,
"max": "*",
"base": {
"path": "Element.extension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": "n/a"
}
]
},
{
"id": "QuestionnaireResponse.item.item.answer.modifierExtension",
"path": "QuestionnaireResponse.item.item.answer.modifierExtension",
"short": "Extensions that cannot be ignored even if unrecognized",
"definition": "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"comment": "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.",
"requirements": "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).",
"alias": [
"extensions",
"user content",
"modifiers"
],
"min": 0,
"max": "*",
"base": {
"path": "BackboneElement.modifierExtension",
"min": 0,
"max": "*"
},
"type": [
{
"code": "Extension"
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
},
{
"key": "ext-1",
"severity": "error",
"human": "Must have either extensions or value[x], not both",
"expression": "extension.exists() != value.exists()",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
}
],
"isModifier": true,
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
"isSummary": true,
"mapping": [
{
"identity": "rim",
"map": "N/A"
}
]
},
{
"id": "QuestionnaireResponse.item.item.answer.value[x]",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
},
{
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response|0.1.0"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item.answer.value[x]",
"short": "Single-valued answer to the question",
"definition": "The answer (or one of the answers) provided by the respondent to the question.",
"comment": "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.",
"requirements": "Ability to retain a single-valued answer to a question.",
"min": 0,
"max": "1",
"base": {
"path": "QuestionnaireResponse.item.answer.value[x]",
"min": 0,
"max": "1"
},
"type": [
{
"code": "boolean"
},
{
"code": "decimal"
},
{
"code": "integer"
},
{
"code": "date"
},
{
"code": "dateTime"
},
{
"code": "time"
},
{
"code": "string"
},
{
"code": "uri"
},
{
"code": "Attachment"
},
{
"code": "Coding"
},
{
"code": "Quantity"
},
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"
]
}
],
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "QuestionnaireAnswer"
}
],
"strength": "example",
"description": "Code indicating the response provided for a question.",
"valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers|4.0.1"
},
"mapping": [
{
"identity": "rim",
"map": ".item"
}
]
},
{
"id": "QuestionnaireResponse.item.item.answer.item",
"path": "QuestionnaireResponse.item.item.answer.item",
"short": "Nested groups and questions",
"definition": "Nested groups and/or questions found within this particular answer.",
"requirements": "It is useful to have \"sub-questions\", questions which normally appear when certain answers are given and which collect additional details.",
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse.item.answer.item",
"min": 0,
"max": "*"
},
"contentReference": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse#QuestionnaireResponse.item",
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
}
]
},
{
"id": "QuestionnaireResponse.item.item.item",
"path": "QuestionnaireResponse.item.item.item",
"short": "Nested questionnaire response items",
"definition": "Questions or sub-groups nested beneath a question or group.",
"requirements": "Reports can consist of complex nested groups.",
"min": 0,
"max": "*",
"base": {
"path": "QuestionnaireResponse.item.item",
"min": 0,
"max": "*"
},
"contentReference": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse#QuestionnaireResponse.item",
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element"
}
],
"isModifier": false,
"isSummary": false,
"mapping": [
{
"identity": "rim",
"map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
}
]
}
]
},
"differential": {
"element": [
{
"id": "QuestionnaireResponse",
"path": "QuestionnaireResponse",
"constraint": [
{
"key": "pcare-qrs-3",
"severity": "error",
"human": "Nested items containing answers must have distinct linkId values for ON:eForms compatibility.",
"expression": "(QuestionnaireResponse | repeat(answer | item)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()",
"source": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response"
},
{
"key": "pcare-qrs-4",
"severity": "warning",
"human": "QuestionnaireResponse.subject should be present for ON:eForms compatibility.",
"expression": "subject.exists()",
"source": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response"
}
]
},
{
"id": "QuestionnaireResponse.meta",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.meta"
},
{
"id": "QuestionnaireResponse.meta.profile",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.meta.profile",
"comment": "Implementers should be aware that some Canadian jurisdictions require vendors to use meta.profile to declare which FHIR profile(s) and version(s) the resource conforms to."
},
{
"id": "QuestionnaireResponse.language",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.language"
},
{
"id": "QuestionnaireResponse.extension",
"path": "QuestionnaireResponse.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "QuestionnaireResponse.extension:adheresTo",
"path": "QuestionnaireResponse.extension",
"sliceName": "adheresTo",
"min": 0,
"max": "*",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/workflow-adheresTo|5.3.0"
]
}
]
},
{
"id": "QuestionnaireResponse.extension:adheresTo.value[x]",
"path": "QuestionnaireResponse.extension.value[x]",
"slicing": {
"discriminator": [
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "QuestionnaireResponse.extension:adheresTo.value[x]:valueCanonical",
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueCanonical",
"min": 0,
"max": "1",
"type": [
{
"code": "canonical",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition"
]
}
]
},
{
"id": "QuestionnaireResponse.extension:adheresTo.value[x]:valueReference",
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueReference",
"min": 0,
"max": "1",
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition"
]
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy",
"path": "QuestionnaireResponse.extension",
"sliceName": "triggeredBy",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/workflow-triggeredBy|5.3.0"
]
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.value[x]",
"path": "QuestionnaireResponse.extension.value[x]",
"slicing": {
"discriminator": [
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.value[x]:valueCanonical",
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueCanonical",
"min": 0,
"max": "1",
"type": [
{
"code": "canonical",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition"
]
}
]
},
{
"id": "QuestionnaireResponse.extension:triggeredBy.value[x]:valueReference",
"path": "QuestionnaireResponse.extension.value[x]",
"sliceName": "valueReference",
"min": 0,
"max": "1",
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
"http://hl7.org/fhir/StructureDefinition/PlanDefinition"
]
}
]
},
{
"id": "QuestionnaireResponse.extension:signature",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.extension",
"sliceName": "signature",
"min": 0,
"max": "*",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0"
]
}
]
},
{
"id": "QuestionnaireResponse.extension:completionMode",
"path": "QuestionnaireResponse.extension",
"sliceName": "completionMode",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/questionnaireresponse-completionMode|5.3.0"
]
}
]
},
{
"id": "QuestionnaireResponse.identifier",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.identifier"
},
{
"id": "QuestionnaireResponse.basedOn",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn",
"type": [
{
"code": "Reference",
"targetProfile": [
"http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/service-request",
"http://hl7.org/fhir/StructureDefinition/CarePlan"
]
}
]
},
{
"id": "QuestionnaireResponse.basedOn.reference",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn.reference"
},
{
"id": "QuestionnaireResponse.basedOn.identifier",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn.identifier"
},
{
"id": "QuestionnaireResponse.basedOn.identifier.system",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn.identifier.system"
},
{
"id": "QuestionnaireResponse.basedOn.identifier.value",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.basedOn.identifier.value"
},
{
"id": "QuestionnaireResponse.questionnaire",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.questionnaire"
},
{
"id": "QuestionnaireResponse.status",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.status",
"constraint": [
{
"key": "pcare-qrs-1",
"severity": "warning",
"human": "QuestionnaireResponse.status is expected to equal 'completed' for CA:eReC and ON:eRec compatibility.",
"expression": "$this = 'completed'",
"source": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response"
}
]
},
{
"id": "QuestionnaireResponse.subject",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject",
"comment": "When basedOn references a ServiceRequest, the QuestionnaireResponse subject SHALL be the same as the ServiceRequest subject. If the Questionnaire declares a subjectType, this reference must point to one of the listed resource types. If subject is omitted because the QuestionnaireResponse is not associated with a specific subject, include QuestionnaireResponse.identifier or ensure that the QuestionnaireResponse is referenced elsewhere (for example, Task.output or Composition.section.entry) to support tracking and retrieval.",
"constraint": [
{
"key": "pcare-qrs-5",
"severity": "warning",
"human": "QuestionnaireResponse.subject should reference a Patient for CA:eReC and ON:eRec compatibility.",
"expression": "reference.empty() or type = 'Patient' or reference.matches('(^|.*/)Patient/[^/]+(/_history/[^/]+)?$') or (resolve() is Patient)",
"source": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/questionnaire-response"
}
]
},
{
"id": "QuestionnaireResponse.subject.reference",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject.reference"
},
{
"id": "QuestionnaireResponse.subject.identifier",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject.identifier"
},
{
"id": "QuestionnaireResponse.subject.identifier.system",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject.identifier.system"
},
{
"id": "QuestionnaireResponse.subject.identifier.value",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.subject.identifier.value"
},
{
"id": "QuestionnaireResponse.authored",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.authored",
"definition": "Identifies when this version of the answer set was created. Changes whenever the answers are updated."
},
{
"id": "QuestionnaireResponse.author",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author",
"definition": "**Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.**",
"type": [
{
"code": "Reference",
"targetProfile": [
"http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/practitioner-role",
"http://hl7.org/fhir/StructureDefinition/Patient",
"http://hl7.org/fhir/StructureDefinition/Device",
"http://hl7.org/fhir/StructureDefinition/Practitioner",
"http://hl7.org/fhir/StructureDefinition/RelatedPerson",
"http://hl7.org/fhir/StructureDefinition/Organization"
]
}
]
},
{
"id": "QuestionnaireResponse.author.reference",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author.reference"
},
{
"id": "QuestionnaireResponse.author.identifier",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author.identifier"
},
{
"id": "QuestionnaireResponse.author.identifier.system",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author.identifier.system"
},
{
"id": "QuestionnaireResponse.author.identifier.value",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.author.identifier.value"
},
{
"id": "QuestionnaireResponse.item",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item"
},
{
"id": "QuestionnaireResponse.item.extension",
"path": "QuestionnaireResponse.item.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "QuestionnaireResponse.item.extension:itemMedia",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.extension",
"sliceName": "itemMedia",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemMedia"
]
}
]
},
{
"id": "QuestionnaireResponse.item.extension:ItemSignature",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.extension",
"sliceName": "ItemSignature",
"min": 0,
"max": "*",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/questionnaireresponse-signature|5.3.0"
]
}
]
},
{
"id": "QuestionnaireResponse.item.linkId",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.linkId"
},
{
"id": "QuestionnaireResponse.item.text",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.text"
},
{
"id": "QuestionnaireResponse.item.answer",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer"
},
{
"id": "QuestionnaireResponse.item.answer.extension",
"path": "QuestionnaireResponse.item.answer.extension",
"slicing": {
"discriminator": [
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "QuestionnaireResponse.item.answer.extension:itemAnswerMedia",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer.extension",
"sliceName": "itemAnswerMedia",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemAnswerMedia"
]
}
]
},
{
"id": "QuestionnaireResponse.item.answer.extension:itemWeight",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer.extension",
"sliceName": "itemWeight",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/itemWeight|5.3.0"
]
}
]
},
{
"id": "QuestionnaireResponse.item.answer.value[x]",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer.value[x]"
},
{
"id": "QuestionnaireResponse.item.answer.item",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.answer.item"
},
{
"id": "QuestionnaireResponse.item.item",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHALL:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item",
"type": [
{
"code": "BackboneElement"
}
]
},
{
"id": "QuestionnaireResponse.item.item.linkId",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item.linkId"
},
{
"id": "QuestionnaireResponse.item.item.text",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item.text"
},
{
"id": "QuestionnaireResponse.item.item.answer",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item.answer"
},
{
"id": "QuestionnaireResponse.item.item.answer.value[x]",
"extension": [
{
"extension": [
{
"url": "name",
"valueString": "pcare"
},
{
"url": "code",
"valueCode": "SHALL:populate"
},
{
"url": "code",
"valueCode": "SHOULD:persist"
},
{
"url": "code",
"valueCode": "SHALL:no-error"
},
{
"url": "documentation",
"valueMarkdown": "P-Care server population, persistence, and acceptance requirements for this element."
},
{
"url": "actor",
"valueCanonical": "http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server"
}
],
"url": "http://hl7.org/fhir/StructureDefinition/obligation"
}
],
"path": "QuestionnaireResponse.item.item.answer.value[x]"
}
]
}
}

Constraints

PathIdGradeDetailsExpression
QuestionnaireResponsepcare-qrs-3errorNested items containing answers must have distinct linkId values for ON:eForms compatibility.(QuestionnaireResponse | repeat(answer | item)).select(item.where(answer.value.exists()).linkId.isDistinct()).allTrue()
QuestionnaireResponsepcare-qrs-4warningQuestionnaireResponse.subject should be present for ON:eForms compatibility.subject.exists()
QuestionnaireResponse.statuspcare-qrs-1warningQuestionnaireResponse.status is expected to equal 'completed' for CA:eReC and ON:eRec compatibility.$this = 'completed'
QuestionnaireResponse.subjectpcare-qrs-5warningQuestionnaireResponse.subject should reference a Patient for CA:eReC and ON:eRec compatibility.reference.empty() or type = 'Patient' or reference.matches('(^|.*/)Patient/[^/]+(/_history/[^/]+)?$') or (resolve() is Patient)

Obligations

ElementActorCode
authorhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
author.identifierhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
author.identifier.systemhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
author.identifier.valuehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
author.referencehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
authoredhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
basedOnhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
basedOn.identifierhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
basedOn.identifier.systemhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
basedOn.identifier.valuehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
basedOn.referencehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
extension:signaturehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
identifierhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
itemhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.answerhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.answer.extension:itemAnswerMediahttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.answer.extension:itemWeighthttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.answer.itemhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.answer.value[x]http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.extension:itemMediahttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.extension:ItemSignaturehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.itemhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.item.answerhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
item.item.answer.value[x]http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
item.item.linkIdhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
item.item.texthttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
item.linkIdhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
item.texthttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
languagehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:persist, SHALL:no-error
metahttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
meta.profilehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
questionnairehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
statushttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
subjecthttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHALL:persist, SHALL:no-error
subject.identifierhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
subject.identifier.systemhttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
subject.identifier.valuehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error
subject.referencehttp://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-serverSHALL:populate, SHOULD:persist, SHALL:no-error

Terminology bindings (Differential)

Terminology bindings (Snapshot)

PathConformanceValueSet
QuestionnaireResponse.meta.securityextensiblehttp://hl7.org/fhir/ValueSet/security-labels|4.0.1
QuestionnaireResponse.meta.tagexamplehttp://hl7.org/fhir/ValueSet/common-tags|4.0.1
QuestionnaireResponse.languagepreferredhttp://hl7.org/fhir/ValueSet/languages|4.0.1
QuestionnaireResponse.basedOn.typeextensiblehttp://hl7.org/fhir/ValueSet/resource-types|4.0.1
QuestionnaireResponse.basedOn.identifier.userequiredhttp://hl7.org/fhir/ValueSet/identifier-use|4.0.1
QuestionnaireResponse.basedOn.identifier.typeextensiblehttp://hl7.org/fhir/ValueSet/identifier-type|4.0.1
QuestionnaireResponse.statusrequiredhttp://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1
QuestionnaireResponse.subject.typeextensiblehttp://hl7.org/fhir/ValueSet/resource-types|4.0.1
QuestionnaireResponse.subject.identifier.userequiredhttp://hl7.org/fhir/ValueSet/identifier-use|4.0.1
QuestionnaireResponse.subject.identifier.typeextensiblehttp://hl7.org/fhir/ValueSet/identifier-type|4.0.1
QuestionnaireResponse.author.typeextensiblehttp://hl7.org/fhir/ValueSet/resource-types|4.0.1
QuestionnaireResponse.author.identifier.userequiredhttp://hl7.org/fhir/ValueSet/identifier-use|4.0.1
QuestionnaireResponse.author.identifier.typeextensiblehttp://hl7.org/fhir/ValueSet/identifier-type|4.0.1
QuestionnaireResponse.item.answer.value[x]examplehttp://hl7.org/fhir/ValueSet/questionnaire-answers|4.0.1
QuestionnaireResponse.item.item.answer.value[x]examplehttp://hl7.org/fhir/ValueSet/questionnaire-answers|4.0.1

Additional Terminology Bindings Only

IG © based on FHIR R4 | template version 2.5.1 | Package package:ca.infoway.io.pcare@0.1.0-dft-preballot
Copyright © 2026 Canada Health Infoway. All rights reserved. Terms of Use & License Agreements. Privacy Policy.
HL7® and FHIR® are the registered trademarks of Health Level Seven International