NOTE that this implementation guide is under construction.

SHCQuestionnaire

Introduction

This page describes the FHIR profile SHCQuestionnaire which contains information about a health certificate form with defined fields and questions intended to be filled in with information about the certificate subject. The page includes profile overview (the structure of the certificate form content) and examples.

Overview

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
textC0..1Narrative
containedC0..*Resource
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
urlS Σ C1..1uri
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ1..1uri
valueS Σ C1..1string
periodΣ C0..1Period
assignerΣ C0..1Reference(Organization)
versionS Σ1..1string
versionAlgorithmCodingCoding
versionAlgorithmStringstring
nameΣ C0..1string
titleS Σ1..1string
derivedFromΣ0..*canonical(Questionnaire)
statusS Σ ?! C1..1codeBinding
experimentalΣ0..1boolean
subjectTypeS Σ1..1codeBinding
dateΣ0..1dateTime
publisherΣ1..1string
contactΣ0..*ContactDetail
descriptionS Σ1..1markdown
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ0..1uri
versionΣ0..1string
codeΣ C1..1codeFixed Value
displayΣ C0..1string
userSelectedΣ0..1boolean
valueQuantityQuantity
valueRangeRange
valueReferenceReference(Group | HealthcareService | InsurancePlan | Location | Organization | PlanDefinition | ResearchStudy)
id0..1string
extensionC0..*Extension
textS Σ1..1string
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ0..1uriFixed Value
versionΣ0..1string
codeS Σ C1..1codeFixed Value
displayΣ C0..1string
userSelectedΣ0..1boolean
valueQuantityQuantity
valueRangeRange
valueReferenceReference(Group | HealthcareService | InsurancePlan | Location | Organization | PlanDefinition | ResearchStudy)
id0..1string
extensionC0..*Extension
codingΣ C0..0Coding
textS Σ1..1string
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ0..1uriFixed Value
versionΣ0..1string
codeS Σ C1..1codeFixed Value
displayΣ C0..1string
userSelectedΣ0..1boolean
valueQuantityQuantity
valueRangeRange
valueReferenceReference(Group | HealthcareService | InsurancePlan | Location | Organization | PlanDefinition | ResearchStudy)
id0..1string
extensionC0..*Extension
textS Σ1..1string
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ C1..1codeFixed Value
displayΣ C0..1string
userSelectedΣ0..1boolean
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ0..1uri
versionΣ0..1string
codeS Σ C1..1code
displayΣ C0..1string
userSelectedΣ0..1boolean
textΣ0..1string
jurisdictionΣ0..*CodeableConceptBinding
purpose0..1markdown
copyright0..1markdown
copyrightLabel0..1string
approvalDateS0..1date
lastReviewDate0..1date
id0..1string
extensionC0..*Extension
startS Σ C1..1dateTime
endS Σ C0..1dateTime
codeΣ C0..*Coding
id0..1string
shcSublabelExtensionC0..1Extension(markdown)
modifierExtensionΣ ?! C0..*Extension
linkIdC1..1string
definition0..1uri
codeC0..*Coding
prefix0..1string
text0..1string
typeC1..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
question1..1string
operatorC1..1codeBinding
answerBooleanboolean
answerCodingCoding
answerDatedate
answerDateTimedateTime
answerDecimaldecimal
answerIntegerinteger
answerQuantityQuantity
answerReferenceReference(Resource)
answerStringstring
answerTimetime
enableBehaviorC0..1codeBinding
disabledDisplay0..1codeBinding
requiredC0..1boolean
repeatsC0..1boolean
readOnlyC0..1boolean
maxLengthC0..1integer
answerConstraintC0..1codeBinding
answerValueSetC0..1canonical(ValueSet)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
valueCodingCoding
valueDatedate
valueIntegerinteger
valueReferenceReference(Resource)
valueStringstring
valueTimetime
initialSelected0..1boolean
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
valueAttachmentAttachment
valueBooleanboolean
valueCodingCoding
valueDatedate
valueDateTimedateTime
valueDecimaldecimal
valueIntegerinteger
valueQuantityQuantity
valueReferenceReference(Resource)
valueStringstring
valueTimetime
valueUriuri
item0..*see (item)
id0..1string
itemControlS C0..1Extension(CodeableConcept)
modifierExtensionΣ ?! C0..*Extension
linkIdS C1..1string
definitionS0..1uri
codeC0..*Coding
prefixS0..1string
id0..1string
markdownC0..1Extension(markdown)
value0..1System.String
typeS C1..1codeBindingFixed Value
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
questionS1..1string
operatorS C1..1codeBinding
answerReferenceReference(Resource)
answerIntegerS C0..1integer
answerQuantityS C0..1Quantity
answerDateTimeS C0..1dateTime
answerTimeS C0..1time
answerStringS C0..1string
answerCodingS C0..1Coding
answerDecimalS C0..1decimal
answerBooleanS C0..1boolean
answerDateS C0..1date
enableBehaviorC0..1codeBinding
disabledDisplay0..1codeBinding
requiredS C1..1boolean
repeatsC0..1boolean
readOnlyC0..1boolean
maxLengthC0..1integer
answerConstraintC0..1codeBinding
answerValueSetC0..1canonical(ValueSet)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
valueCodingCoding
valueDatedate
valueIntegerinteger
valueReferenceReference(Resource)
valueStringstring
valueTimetime
initialSelected0..1boolean
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
valueAttachmentAttachment
valueBooleanboolean
valueCodingCoding
valueDatedate
valueDateTimedateTime
valueDecimaldecimal
valueIntegerinteger
valueQuantityQuantity
valueReferenceReference(Resource)
valueStringstring
valueTimetime
valueUriuri
item0..*see (item)
id0..1string
itemControlS C0..1Extension(CodeableConcept)
modifierExtensionΣ ?! C0..*Extension
linkIdS C1..1string
definitionS0..1uri
codeC0..*Coding
prefixS0..1string
id0..1string
markdownC0..1Extension(markdown)
value0..1System.String
typeS C1..1codeBindingFixed Value
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
questionS1..1string
operatorS C1..1codeBinding
answerReferenceReference(Resource)
answerIntegerS C0..1integer
answerQuantityS C0..1Quantity
answerDateTimeS C0..1dateTime
answerTimeS C0..1time
answerStringS C0..1string
answerCodingS C0..1Coding
answerDecimalS C0..1decimal
answerBooleanS C0..1boolean
answerDateS C0..1date
enableBehaviorC0..1codeBinding
disabledDisplay0..1codeBinding
requiredS C1..1boolean
repeatsC0..1boolean
readOnlyC0..1boolean
maxLengthC0..1integer
answerConstraintC0..1codeBinding
answerValueSetC0..1canonical(ValueSet)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
valueCodingCoding
valueDatedate
valueIntegerinteger
valueReferenceReference(Resource)
valueStringstring
valueTimetime
initialSelected0..1boolean
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
valueAttachmentAttachment
valueBooleanboolean
valueCodingCoding
valueDatedate
valueDateTimedateTime
valueDecimaldecimal
valueIntegerinteger
valueQuantityQuantity
valueReferenceReference(Resource)
valueStringstring
valueTimetime
valueUriuri
item0..*see (item)
id0..1string
itemControlS C0..1Extension(CodeableConcept)
modifierExtensionΣ ?! C0..*Extension
linkIdS C1..1string
definitionS0..1uri
codeC0..*Coding
prefixS0..1string
id0..1string
markdownC0..1Extension(markdown)
value0..1System.String
typeS C1..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
questionS1..1string
operatorS C1..1codeBinding
answerReferenceReference(Resource)
answerIntegerS C0..1integer
answerQuantityS C0..1Quantity
answerDateTimeS C0..1dateTime
answerTimeS C0..1time
answerStringS C0..1string
answerCodingS C0..1Coding
answerDecimalS C0..1decimal
answerBooleanS C0..1boolean
answerDateS C0..1date
enableBehaviorC0..1codeBinding
disabledDisplay0..1codeBinding
requiredS C1..1boolean
repeatsC0..1boolean
readOnlyC0..1boolean
maxLengthC0..1integer
answerConstraintC0..1codeBinding
answerValueSetS C0..1canonical(ValueSet)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
valueReferenceReference(Resource)
valueTimeS0..1time
valueDateS0..1date
valueIntegerS0..1integer
valueCodingS0..1Coding
valueStringS0..1string
initialSelected0..1boolean
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
valueAttachmentAttachment
valueBooleanboolean
valueCodingCoding
valueDatedate
valueDateTimedateTime
valueDecimaldecimal
valueIntegerinteger
valueQuantityQuantity
valueReferenceReference(Resource)
valueStringstring
valueTimetime
valueUriuri
item0..*see (item)
Questionnaire
ShortA structured set of questions
Definition

A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.

Cardinality0..*
AliasForm, CRF, Survey
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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(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()
  • cnl-0: Name should be usable as an identifier for the module by machine processing applications such as code generation
    name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')
  • que-2: The link ids for groups and questions must be unique within the questionnaire
    descendants().linkId.isDistinct()
Mappings
  • rim: n/a
  • rim: Entity. Role, or Act
  • rim: Entity, Role, or Act
  • workflow: Definition
  • w5: infrastructure.information
  • rim: Observation[moodCode=DEF]
Questionnaire.id
ShortLogical 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.

Cardinality0..1
Typeid
SummaryTrue
Comments

Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.

Questionnaire.meta
ShortMetadata 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.

Cardinality0..1
TypeMeta
SummaryTrue
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
Questionnaire.implicitRules
ShortA 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.

Cardinality0..1
Typeuri
ModifierTrue
SummaryTrue
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 its narrative along with other profiles, value sets, etc.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Questionnaire.language
ShortLanguage of the resource content
Definition

The base language in which the resource is written.

Cardinality0..1
Typecode
Binding

IETF language tag for a human language

AllLanguages (required)

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

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Questionnaire.text
ShortText 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.

Cardinality0..1
TypeNarrative
Aliasnarrative, html, xhtml, display
Comments

Contained resources do not have a 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.

ConditionsThe cardinality or value of this element may be affected by these constraints: dom-6
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?
Questionnaire.contained
ShortContained, inline Resources
Definition

These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.

Cardinality0..*
TypeResource
Aliasinline resources, anonymous resources, contained resources
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.

ConditionsThe cardinality or value of this element may be affected by these constraints: dom-2, dom-4, dom-3, dom-5
Mappings
  • rim: n/a
  • rim: Entity. Role, or Act
  • rim: N/A
Questionnaire.extension
ShortAdditional content defined by implementations
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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.url
ShortUnique URI identifying the questionnaire
Definition

An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.

Cardinality1..1
Typeuri
Must SupportTrue
SummaryTrue
Requirements

Allows the questionnaire to be referenced by a single globally unique identifier.

This is the id that will be used to link a QuestionnaireResponse to the Questionnaire the response is for.

Comments

Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred. Multiple instances may share the same URL if they have a distinct version.

The determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author. Considerations for making this decision are found in Technical and Business Versions.

In some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the meta.source element to indicate where the current master source of the resource can be found.

The name of the referenced questionnaire can be conveyed using the http://hl7.org/fhir/StructureDefinition/display extension.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cnl-1: URL should not contain | or # - these characters make processing canonical references problematic
    exists() implies matches('^[^|# ]+$')
Mappings
  • rim: n/a
  • workflow: Definition.url
  • w5: FiveWs.identifier
  • rim: .identifier[scope=BUSN;reliability=ISS]
  • SHCQuestionnaireToSHCIntygsformularLogical: uri
Questionnaire.identifier
ShortThe identifier assigned by the issuing body
Definition

A formal identifier that is used to identify this questionnaire when it is represented in other formats, or referenced in a specification, model, design or an instance.

Cardinality1..*
TypeIdentifier
Must SupportTrue
SummaryTrue
Requirements

Allows externally provided and/or usable business identifiers to be easily associated with the questionnaire.

Comments

Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this questionnaire outside of FHIR, where it is not possible to use the logical URI.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ident-1: Identifier with no value has limited utility. If communicating that an identifier value has been suppressed or missing, the value element SHOULD be present with an extension indicating the missing semantic - e.g. data-absent-reason
    value.exists()
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: Definition.identifier
  • w5: FiveWs.identifier
  • rim: .identifier
  • objimpl: no-gen-base
  • SHCQuestionnaireToSHCIntygsformularLogical: intygsformularid
Questionnaire.identifier.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.identifier.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.identifier.use
Shortusual | official | temp | secondary | old (If known)
Definition

The purpose of this identifier.

Cardinality0..1
Typecode
Binding

Identifies the purpose for this identifier, if known .

IdentifierUse (required)

ModifierTrue
SummaryTrue
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.

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
Questionnaire.identifier.type
ShortDescription of identifier
Definition

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

Cardinality0..1
TypeCodeableConcept
Binding

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

IdentifierTypeCodes (extensible)

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

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
Questionnaire.identifier.system
ShortThe namespace for the identifier value
Definition

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

Cardinality1..1
Typeuri
Must SupportTrue
SummaryTrue
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.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
ExamplesGeneral
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
Questionnaire.identifier.value
ShortThe 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.

Cardinality1..1
Typestring
Must SupportTrue
SummaryTrue
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 http://hl7.org/fhir/StructureDefinition/rendered-value). 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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ident-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
ExamplesGeneral
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
Questionnaire.identifier.period
ShortTime period when id is/was valid for use
Definition

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

Cardinality0..1
TypePeriod
SummaryTrue
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.

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 or equal value than end
    start.hasValue().not() or end.hasValue().not() or (start.lowBoundary() <= end.highBoundary())
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
Questionnaire.identifier.assigner
ShortOrganization that issued id (may be just text)
Definition

Organization that issued/manages the identifier.

Cardinality0..1
TypeReference(Organization)
SummaryTrue
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.

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))
  • ref-2: At least one of reference, identifier and display SHALL be present (unless an extension is provided).
    reference.exists() or identifier.exists() or display.exists() or extension.exists()
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
Questionnaire.version
ShortVersion identifier set by the form’s issuer
Definition

The identifier that is used to identify this version of the questionnaire when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the questionnaire author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.

Cardinality1..1
Typestring
Must SupportTrue
SummaryTrue
Comments

There may be different questionnaires that have the same url but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the questionnaire with the format. The version SHOULD NOT contain a '#' - see Business Version.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.version
  • w5: FiveWs.version
  • rim: N/A (to add?)
  • SHCQuestionnaireToSHCIntygsformularLogical: version
Questionnaire.versionAlgorithm[x]
ShortHow to compare versions
Definition

Indicates the mechanism used to compare versions to determine which is more current.

Cardinality0..1
TypeCoding | string
Binding

VersionAlgorithm (extensible)

SummaryTrue
Comments

If set as a string, this is a FHIRPath expression that has two additional context variables passed in - %version1 and %version2 and will return a negative number if version1 is newer, a positive number if version2 and a 0 if the version ordering can't be successfully be determined.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.versionAlgorithm
Questionnaire.name
ShortName for this questionnaire (computer friendly)
Definition

A natural language name identifying the questionnaire. This name should be usable as an identifier for the module by machine processing applications such as code generation.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Supports code generation.

Comments

The name is not expected to be globally unique. The name should be a simple alphanumeric type no-whitespace name to ensure that it is machine-processing friendly.

ConditionsThe cardinality or value of this element may be affected by these constraints: cnl-0
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.name
  • rim: N/A
Questionnaire.title
ShortShort, descriptive, user-friendly title for the form
Definition

A short, descriptive, user-friendly title for the questionnaire.

Cardinality1..1
Typestring
Must SupportTrue
SummaryTrue
Comments

This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.title
  • rim: .title
  • SHCQuestionnaireToSHCIntygsformularLogical: intygsformularnamn
Questionnaire.derivedFrom
ShortBased on Questionnaire
Definition

The URL of a Questionnaire that this Questionnaire is based on.

Cardinality0..*
Typecanonical(Questionnaire)
SummaryTrue
Requirements

Allows a Questionnaire to be created based on another Questionnaire.

Comments

This element covers a broad range of relationships, from 'somewhat inspired by' to 'fully compliant with'. There is a standard extensionthat allows clearer differentiation between the specifics of the derivation relationship where this is needed - e.g. to determine substitutability and validation expectations - http://hl7.org/fhir/StructureDefinition/questionnaire-derivationType.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.derivedFromCanonical
  • rim: .outboundRelationship[typeCode=DRIV].target[classCode=OBS, moodCode=DEFN]
Questionnaire.status
ShortThe status of the form (e.g., draft, active)
Definition

The current state of this questionnaire.

Cardinality1..1
Typecode
Binding

The lifecycle status of an artifact.

PublicationStatus (required)

Must SupportTrue
ModifierTrue
SummaryTrue
Requirements

Enables tracking the lifecycle of the content and filtering of questionnaires that are appropriate for use versus not.

Comments

A nominal state-transition diagram can be found in the] documentation

Unknown does not represent 'other' - one of the defined statuses must apply. Unknown is used when the authoring system is not sure what the current status is.

See guidance around (not) making local changes to elements here.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-1a
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.status
  • w5: FiveWs.status
  • rim: .status
  • SHCQuestionnaireToSHCIntygsformularLogical: intygsformularstatus
Questionnaire.experimental
ShortFor testing purposes, not real usage
Definition

A Boolean value to indicate that this questionnaire is authored for testing purposes (or education/evaluation/marketing) and is not intended for genuine usage.

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

Enables experimental content to be developed following the same lifecycle that would be used for a production-level questionnaire.

Comments

Allows filtering of questionnaires that are appropriate for use versus not.

Meaning when missing

If absent, this resource is treated as though it is not experimental.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.experimental
  • w5: FiveWs.class
  • rim: N/A
Questionnaire.subjectType
ShortThe role the subject plays when the certificate is issued (e.g., customer, patient, donor, applicant)
Definition

The types of subjects that can be the subject of responses created for the questionnaire.

Cardinality1..1
Typecode
Binding

One of the resource types defined as part of this version of FHIR.

http://electronichealth.se/fhir/shc/ValueSet/shc-extended-subject-types (required)

Must SupportTrue
SummaryTrue
Requirements

Allows enforcing that a QuestionnaireResponse only has a .subject element of the appropriate type.

Comments

If none are specified, then the subject is unlimited.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.subject[x]
  • rim: .outboundRelationship[typeCode=META].target[classCode=OBS, moodCode=DEFN, isCriterion=true].participation.role.classCode
  • w5: FiveWs.who
  • SHCQuestionnaireToSHCIntygsformularLogical: typAvIntygsperson
Questionnaire.date
ShortDate last changed
Definition

The date (and optionally time) when the questionnaire was last significantly changed. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the questionnaire changes.

Cardinality0..1
TypedateTime
SummaryTrue
AliasRevision Date
Comments

The date is often not tracked until the resource is published, but may be present on draft content. Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the questionnaire. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.

See guidance around (not) making local changes to elements here.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.date
  • w5: FiveWs.recorded
  • rim: .participation[typeCode=AUT].time
Questionnaire.publisher
ShortName of the publisher/steward (organization or individual)
Definition

The name of the organization or individual responsible for the release and ongoing maintenance of the questionnaire.

Cardinality1..1
Typestring
SummaryTrue
Requirements

Helps establish the "authority/credibility" of the questionnaire. May also allow for contact.

Comments

Usually an organization but may be an individual. The publisher (or steward) of the questionnaire is the organization or individual primarily responsible for the maintenance and upkeep of the questionnaire. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the questionnaire. This item SHOULD be populated unless the information is available from context.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.publisher
  • w5: FiveWs.author
  • rim: .participation[typeCode=AUT].role
Questionnaire.contact
ShortContact details for the publisher
Definition

Contact details to assist a user in finding and communicating with the publisher.

Cardinality0..*
TypeContactDetail
SummaryTrue
Comments

May be a web site, an email address, a telephone number, etc.

See guidance around (not) making local changes to elements here.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.contact
  • rim: .participation[typeCode=CALLBCK].role
Questionnaire.description
ShortSimple, user-friendly description of the form
Definition

A free text natural language description of the questionnaire from a consumer's perspective.

Cardinality1..1
Typemarkdown
Must SupportTrue
SummaryTrue
Comments

This description can be used to capture details such as comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the questionnaire as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context. (E.g. the language of the questionnaire is presumed to be the predominant language in the place the questionnaire was created).

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.description
  • rim: .text
  • SHCQuestionnaireToSHCIntygsformularLogical: intygsbeskrivning
Questionnaire.useContext
ShortThe context that the content is intended to support
Definition

The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate questionnaires.

Cardinality3..*
TypeUsageContext
Must SupportTrue
SummaryTrue
Requirements

Assist in searching for appropriate content.

Comments

When multiple useContexts are specified, there is no expectation that all or even any of the contexts apply.

Slicing

Unordered, Open, by code.code(Value)

Slice on useContext based on the code value

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.useContext
  • rim: N/A (to add?)
Questionnaire.useContext:category
ShortCode for the grouping of questionnaires (e.g., Legal, Care, Health, Sickness)
Definition

The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate questionnaires.

Cardinality1..1
TypeUsageContext
Must SupportTrue
SummaryTrue
Requirements

Assist in searching for appropriate content.

Comments

When multiple useContexts are specified, there is no expectation that all or even any of the contexts apply.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.useContext
  • rim: N/A (to add?)
  • SHCQuestionnaireToSHCIntygsformularLogical: intygskategori
Questionnaire.useContext:category.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:category.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:category.code
ShortType of context being specified
Definition

A code that identifies the type of context being specified by this usage context.

Cardinality1..1
TypeCoding
Binding

A code that specifies a type of context being specified by a usage context.

http://terminology.hl7.org/ValueSet/usage-context-type (extensible)

Must SupportTrue
SummaryTrue
Comments

Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
Questionnaire.useContext:category.code.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:category.code.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:category.code.system
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality0..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should be an absolute reference to some definition that establishes the system clearly and unambiguously.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Questionnaire.useContext:category.code.version
ShortVersion of the system - if relevant
Definition

The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.

Cardinality0..1
Typestring
SummaryTrue
Comments

Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Questionnaire.useContext:category.code.code
ShortSymbol in syntax defined by the system
Definition

A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).

Cardinality1..1
Typecode
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
topic
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Questionnaire.useContext:category.code.display
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Questionnaire.useContext:category.code.userSelected
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.

Comments

Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]
Questionnaire.useContext:category.value[x]
ShortValue that defines the context
Definition

A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

Cardinality1..1
TypeCodeableConcept | Quantity | Range | Reference(Group | HealthcareService | InsurancePlan | Location | Organization | PlanDefinition | ResearchStudy)
Binding

A code that defines the specific value for the context being specified.

ContextOfUseValueSet (example)

SummaryTrue
Slicing

Unordered, Open, 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
Questionnaire.useContext:category.value[x]:valueCodeableConcept
ShortValue that defines the context
Definition

A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

Cardinality1..1
TypeCodeableConcept
Binding

A code that defines the specific value for the context being specified.

ContextOfUseValueSet (example)

Must SupportTrue
SummaryTrue
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Questionnaire.useContext:category.value[x]:valueCodeableConcept.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:category.value[x]:valueCodeableConcept.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding
ShortCode defined by a terminology system
Definition

A reference to a code defined by a terminology system.

Cardinality0..0
TypeCoding
Must SupportTrue
SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.system
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality0..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should be an absolute reference to some definition that establishes the system clearly and unambiguously.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.version
ShortVersion of the system - if relevant
Definition

The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.

Cardinality0..1
Typestring
SummaryTrue
Comments

Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.code
ShortSymbol in syntax defined by the system
Definition

A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).

Cardinality0..1
Typecode
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.display
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.userSelected
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.

Comments

Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]
Questionnaire.useContext:category.value[x]:valueCodeableConcept.text
ShortPlain text representation of the concept
Definition

A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.

Cardinality1..1
Typestring
Must SupportTrue
SummaryTrue
Requirements

The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.

Comments

Very often the text is the same as a displayName of one of the codings.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.9. But note many systems use C*E.2 for this
  • rim: ./originalText[mediaType/code="text/plain"]/data
  • orim: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText
Questionnaire.useContext:purpose
ShortText description of the purpose for which this certificate is issued
Definition

The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate questionnaires.

Cardinality1..1
TypeUsageContext
Must SupportTrue
SummaryTrue
Requirements

Assist in searching for appropriate content.

Comments

When multiple useContexts are specified, there is no expectation that all or even any of the contexts apply.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.useContext
  • rim: N/A (to add?)
  • SHCQuestionnaireToSHCIntygsformularLogical: intygsandamal
Questionnaire.useContext:purpose.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:purpose.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:purpose.code
ShortType of context being specified
Definition

A code that identifies the type of context being specified by this usage context.

Cardinality1..1
TypeCoding
Binding

A code that specifies a type of context being specified by a usage context.

http://terminology.hl7.org/ValueSet/usage-context-type (extensible)

Must SupportTrue
SummaryTrue
Comments

Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
Questionnaire.useContext:purpose.code.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:purpose.code.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:purpose.code.system
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality0..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should be an absolute reference to some definition that establishes the system clearly and unambiguously.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
https://electronichealth.se/shc/CodeSystem/questionnaire-usage-context-type
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Questionnaire.useContext:purpose.code.version
ShortVersion of the system - if relevant
Definition

The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.

Cardinality0..1
Typestring
SummaryTrue
Comments

Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Questionnaire.useContext:purpose.code.code
ShortSymbol in syntax defined by the system
Definition

A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).

Cardinality1..1
Typecode
Must SupportTrue
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
purpose
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Questionnaire.useContext:purpose.code.display
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Questionnaire.useContext:purpose.code.userSelected
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.

Comments

Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]
Questionnaire.useContext:purpose.value[x]
ShortValue that defines the context
Definition

A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

Cardinality1..1
TypeCodeableConcept | Quantity | Range | Reference(Group | HealthcareService | InsurancePlan | Location | Organization | PlanDefinition | ResearchStudy)
Binding

A code that defines the specific value for the context being specified.

ContextOfUseValueSet (example)

SummaryTrue
Slicing

Unordered, Open, 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
Questionnaire.useContext:purpose.value[x]:valueCodeableConcept
ShortValue that defines the context
Definition

A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

Cardinality1..1
TypeCodeableConcept
Binding

A code that defines the specific value for the context being specified.

ContextOfUseValueSet (example)

Must SupportTrue
SummaryTrue
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Questionnaire.useContext:purpose.value[x]:valueCodeableConcept.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:purpose.value[x]:valueCodeableConcept.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:purpose.value[x]:valueCodeableConcept.coding
ShortCode defined by a terminology system
Definition

A reference to a code defined by a terminology system.

Cardinality0..0
TypeCoding
SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
Questionnaire.useContext:purpose.value[x]:valueCodeableConcept.text
ShortPlain text representation of the concept
Definition

A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.

Cardinality1..1
Typestring
Must SupportTrue
SummaryTrue
Requirements

The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.

Comments

Very often the text is the same as a displayName of one of the codings.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.9. But note many systems use C*E.2 for this
  • rim: ./originalText[mediaType/code="text/plain"]/data
  • orim: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText
Questionnaire.useContext:legislation
ShortThe legislation on which the questionnaire is based
Definition

The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate questionnaires.

Cardinality1..1
TypeUsageContext
Must SupportTrue
SummaryTrue
Requirements

Assist in searching for appropriate content.

Comments

When multiple useContexts are specified, there is no expectation that all or even any of the contexts apply.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.useContext
  • rim: N/A (to add?)
  • SHCQuestionnaireToSHCIntygsformularLogical: laghanvisning
Questionnaire.useContext:legislation.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:legislation.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:legislation.code
ShortType of context being specified
Definition

A code that identifies the type of context being specified by this usage context.

Cardinality1..1
TypeCoding
Binding

A code that specifies a type of context being specified by a usage context.

http://terminology.hl7.org/ValueSet/usage-context-type (extensible)

Must SupportTrue
SummaryTrue
Comments

Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
Questionnaire.useContext:legislation.code.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:legislation.code.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:legislation.code.system
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality0..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should be an absolute reference to some definition that establishes the system clearly and unambiguously.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
https://electronichealth.se/shc/CodeSystem/questionnaire-usage-context-type
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Questionnaire.useContext:legislation.code.version
ShortVersion of the system - if relevant
Definition

The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.

Cardinality0..1
Typestring
SummaryTrue
Comments

Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Questionnaire.useContext:legislation.code.code
ShortSymbol in syntax defined by the system
Definition

A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).

Cardinality1..1
Typecode
Must SupportTrue
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
legislation
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Questionnaire.useContext:legislation.code.display
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Questionnaire.useContext:legislation.code.userSelected
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.

Comments

Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]
Questionnaire.useContext:legislation.value[x]
ShortValue that defines the context
Definition

A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

Cardinality1..1
TypeCodeableConcept | Quantity | Range | Reference(Group | HealthcareService | InsurancePlan | Location | Organization | PlanDefinition | ResearchStudy)
Binding

A code that defines the specific value for the context being specified.

ContextOfUseValueSet (example)

SummaryTrue
Slicing

Unordered, Open, 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
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept
ShortValue that defines the context
Definition

A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

Cardinality1..1
TypeCodeableConcept
Binding

A code that defines the specific value for the context being specified.

ContextOfUseValueSet (example)

Must SupportTrue
SummaryTrue
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding
ShortCode defined by a terminology system
Definition

A reference to a code defined by a terminology system.

Cardinality0..0
TypeCoding
SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.system
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality0..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should be an absolute reference to some definition that establishes the system clearly and unambiguously.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.version
ShortVersion of the system - if relevant
Definition

The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.

Cardinality0..1
Typestring
SummaryTrue
Comments

Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.code
ShortSymbol in syntax defined by the system
Definition

A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).

Cardinality0..1
Typecode
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.display
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.userSelected
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.

Comments

Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]
Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.text
ShortPlain text representation of the concept
Definition

A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.

Cardinality1..1
Typestring
Must SupportTrue
SummaryTrue
Requirements

The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.

Comments

Very often the text is the same as a displayName of one of the codings.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.9. But note many systems use C*E.2 for this
  • rim: ./originalText[mediaType/code="text/plain"]/data
  • orim: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText
Questionnaire.useContext:subjectType
ShortThe context that the content is intended to support
Definition

The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate questionnaires.

Cardinality1..1
TypeUsageContext
Must SupportTrue
SummaryTrue
Requirements

Assist in searching for appropriate content.

Comments

When multiple useContexts are specified, there is no expectation that all or even any of the contexts apply.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.useContext
  • rim: N/A (to add?)
Questionnaire.useContext:subjectType.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:subjectType.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:subjectType.code
ShortType of context being specified
Definition

A code that identifies the type of context being specified by this usage context.

Cardinality1..1
TypeCoding
Binding

A code that specifies a type of context being specified by a usage context.

http://terminology.hl7.org/ValueSet/usage-context-type (extensible)

SummaryTrue
Comments

Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
Questionnaire.useContext:subjectType.code.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:subjectType.code.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:subjectType.code.system
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality1..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should be an absolute reference to some definition that establishes the system clearly and unambiguously.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
https://electronichealth.se/shc/CodeSystem/questionnaire-usage-context-type
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Questionnaire.useContext:subjectType.code.version
ShortVersion of the system - if relevant
Definition

The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.

Cardinality0..1
Typestring
SummaryTrue
Comments

Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Questionnaire.useContext:subjectType.code.code
ShortSymbol in syntax defined by the system
Definition

A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).

Cardinality1..1
Typecode
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
subjectType
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Questionnaire.useContext:subjectType.code.display
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Questionnaire.useContext:subjectType.code.userSelected
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.

Comments

Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]
Questionnaire.useContext:subjectType.value[x]
ShortValue that defines the context
Definition

A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

Cardinality1..1
TypeCodeableConcept
Binding

A code that defines the specific value for the context being specified.

ContextOfUseValueSet (example)

SummaryTrue
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Questionnaire.useContext:subjectType.value[x].id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:subjectType.value[x].extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:subjectType.value[x].coding
ShortCode defined by a terminology system
Definition

A reference to a code defined by a terminology system.

Cardinality1..1
TypeCoding
Binding

http://electronichealth.se/fhir/shc/ValueSet/shc-extended-subject-types (required)

SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
Questionnaire.useContext:subjectType.value[x].coding.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.useContext:subjectType.value[x].coding.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.useContext:subjectType.value[x].coding.system
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality0..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should be an absolute reference to some definition that establishes the system clearly and unambiguously.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Questionnaire.useContext:subjectType.value[x].coding.version
ShortVersion of the system - if relevant
Definition

The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.

Cardinality0..1
Typestring
SummaryTrue
Comments

Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Questionnaire.useContext:subjectType.value[x].coding.code
ShortSymbol in syntax defined by the system
Definition

A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).

Cardinality1..1
Typecode
Must SupportTrue
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Questionnaire.useContext:subjectType.value[x].coding.display
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: cod-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Questionnaire.useContext:subjectType.value[x].coding.userSelected
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.

Comments

Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]
Questionnaire.useContext:subjectType.value[x].text
ShortPlain text representation of the concept
Definition

A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.

Cardinality0..1
Typestring
SummaryTrue
Requirements

The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.

Comments

Very often the text is the same as a displayName of one of the codings.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.9. But note many systems use C*E.2 for this
  • rim: ./originalText[mediaType/code="text/plain"]/data
  • orim: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText
Questionnaire.jurisdiction
ShortIntended jurisdiction for questionnaire (if applicable)
Definition

A legal or geographic region in which the questionnaire is intended to be used.

Cardinality0..*
TypeCodeableConcept
Binding

Countries and regions within which this artifact is targeted for use.

JurisdictionValueSet (extensible)

SummaryTrue
Comments

It may be possible for the questionnaire to be used in jurisdictions other than those for which it was originally designed or intended.

DEPRECATION NOTE: For consistency, implementations are encouraged to migrate to using the new 'jurisdiction' code in the useContext element. (I.e. useContext.code indicating http://terminology.hl7.org/CodeSystem/usage-context-type#jurisdiction and useContext.valueCodeableConcept indicating the jurisdiction.)

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
  • workflow: Definition.jurisdiction
  • rim: N/A (to add?)
Questionnaire.purpose
ShortWhy this questionnaire is defined
Definition

Explanation of why this questionnaire is needed and why it has been designed as it has.

Cardinality0..1
Typemarkdown
Comments

This element does not describe the usage of the questionnaire. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this questionnaire.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.purpose
  • w5: FiveWs.why[x]
  • rim: .reasonCode.text
  • objimpl: no-gen-base
Questionnaire.copyright
ShortUse and/or publishing restrictions
Definition

A copyright statement relating to the questionnaire and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the questionnaire.

Cardinality0..1
Typemarkdown
AliasLicense, Restrictions
Requirements

Consumers of the questionnaire must be able to determine any legal restrictions on the use of the artifact and/or its content.

Comments

Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.copyright
  • rim: N/A (to add?)
  • objimpl: no-gen-base
Questionnaire.copyrightLabel
ShortCopyright holder and year(s)
Definition

A short string (<50 characters), suitable for inclusion in a page footer that identifies the copyright holder, effective period, and optionally whether rights are resctricted. (e.g. 'All rights reserved', 'Some rights reserved').

Cardinality0..1
Typestring
Requirements

Defines the content expected to be rendered in all representations of the artifact.

Comments

The (c) symbol should NOT be included in this string. It will be added by software when rendering the notation. Full details about licensing, restrictions, warrantees, etc. goes in the more general 'copyright' element.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.copyrightLabel
Questionnaire.approvalDate
ShortThe time when the form was published
Definition

The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.

Cardinality0..1
Typedate
Must SupportTrue
Comments

The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.

See guidance around (not) making local changes to elements here.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.approvalDate
  • rim: .outboundRelationship[typeCode="SUBJ"].act[classCode=CACT;moodCode=EVN;code="approval"].effectiveTime
  • objimpl: no-gen-base
  • SHCQuestionnaireToSHCIntygsformularLogical: publiceringstidpunkt
Questionnaire.lastReviewDate
ShortWhen the questionnaire was last reviewed by the publisher
Definition

The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.

Cardinality0..1
Typedate
Requirements

Gives a sense of how "current" the content is. Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.

Comments

If specified, this date follows the original approval date.

See guidance around (not) making local changes to elements here.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Definition.lastReviewDate
  • rim: .outboundRelationship[typeCode="SUBJ"; subsetCode="RECENT"].act[classCode=CACT;moodCode=EVN;code="review"].effectiveTime
  • objimpl: no-gen-base
Questionnaire.effectivePeriod
ShortThe period during which the form is valid
Definition

The period during which the questionnaire content was or is planned to be in active use.

Cardinality1..1
TypePeriod
Must SupportTrue
SummaryTrue
Requirements

Allows establishing a transition before a resource comes into effect and also allows for a sunsetting process when new versions of the questionnaire are or are expected to be used instead.

Comments

The effective period for a questionnaire determines when the content is applicable for usage and is independent of publication and review dates. For example, a questionnaire intended to be used for the year 2016 might be published in 2015.

See guidance around (not) making local changes to elements here.

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 or equal value than end
    start.hasValue().not() or end.hasValue().not() or (start.lowBoundary() <= end.highBoundary())
Mappings
  • rim: n/a
  • v2: DR
  • rim: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
  • workflow: Definition.effectivePeriod
  • rim: N/A (to add?)
  • objimpl: no-gen-base
  • SHCQuestionnaireToSHCIntygsformularLogical: giltighetsperiod
Questionnaire.effectivePeriod.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.effectivePeriod.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.effectivePeriod.start
ShortStarting time with inclusive boundary
Definition

The start of the period. The boundary is inclusive.

Cardinality1..1
TypedateTime
Must SupportTrue
SummaryTrue
Comments

If the low element is missing, the meaning is that the low boundary is not known.

ConditionsThe cardinality or value of this element may be affected by these constraints: per-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: DR.1
  • rim: ./low
Questionnaire.effectivePeriod.end
ShortEnd time with inclusive boundary, if not ongoing
Definition

The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.

Cardinality0..1
TypedateTime
Must SupportTrue
SummaryTrue
Comments

The end value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03.

Meaning when missing

If the end of the period is missing, it means that the period is ongoing

ConditionsThe cardinality or value of this element may be affected by these constraints: per-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: DR.2
  • rim: ./high
Questionnaire.code
ShortConcept that represents the overall questionnaire
Definition

An identifier for this collection of questions in a particular terminology such as LOINC.

Cardinality0..*
TypeCoding
Binding

Codes for questionnaires, groups and individual questions.

QuestionnaireQuestionCodes (example)

SummaryTrue
Requirements

Allows linking of the complete Questionnaire resources to formal terminologies. It's common for "panels" of questions to be identified by a code.

Comments

Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
  • workflow: Definition.code
  • rim: .code
Questionnaire.item
ShortQuestions and sections within the Questionnaire
Definition

A particular question, question grouping or display text that is part of the questionnaire.

Cardinality0..*
TypeBackboneElement
Must SupportTrue
Comments

The content of the questionnaire is constructed from an ordered, hierarchical collection of items.

Slicing

Unordered, Open, by type(Value)

Slice on item based on the type value

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-9: Read-only can't be specified for "display" items
    type!='display' or readOnly.empty()
  • que-8: Initial values can't be specified for groups or display items
    (type!='group' and type!='display') or initial.empty()
  • que-6: Required and repeat aren't permitted for display items
    type!='display' or (required.empty() and repeats.empty())
  • que-5: Only coding, decimal, integer, date, dateTime, time, string or quantity items can have answerOption or answerValueSet
    (type='coding' or type = 'decimal' or type = 'integer' or type = 'date' or type = 'dateTime' or type = 'time' or type = 'string' or type = 'quantity') or (answerValueSet.empty() and answerOption.empty())
  • que-4: A question cannot have both answerOption and answerValueSet
    answerOption.empty() or answerValueSet.empty()
  • que-3: Display items cannot have a "code" asserted
    type!='display' or code.empty()
  • que-1c: Display items cannot have child items
    type='display' implies item.empty()
  • que-1a: Group items must have nested items when Questionanire is complete
    (type='group' and %resource.status='complete') implies item.empty().not()
  • que-1b: Groups should have items
    type='group' implies item.empty().not()
  • que-10: Maximum length can only be declared for simple question types
    (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url')) or answerConstraint='optionOrString' or maxLength.empty()
  • que-13: Can only have multiple initial values for repeating items
    repeats=true or initial.count() <= 1
  • que-14: Can only have answerConstraint if answerOption or answerValueSet are present. (This is a warning because extensions may serve the same purpose)
    answerConstraint.exists() implies answerOption.exists() or answerValueSet.exists()
  • que-11: If one or more answerOption is present, initial cannot be present. Use answerOption.initialSelected instead
    answerOption.empty() or initial.empty()
  • que-12: If there are more than one enableWhen, enableBehavior must be specified
    enableWhen.count() > 1 implies enableBehavior.exists()
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]
Questionnaire.item.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item.extension:shcSublabelExtension
ShortOptional Extensions Element
Definition

Optional Extension Element - found in all resources.

Cardinality0..1
TypeExtension(markdown)
Aliasextensions, user content
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.

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
Questionnaire.item.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item.linkId
ShortUnique id for item in questionnaire
Definition

An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.

Cardinality1..1
Typestring
Requirements

QuestionnaireResponse does not require omitted items to be included and may have some items that repeat, so linkage based on position alone is not sufficient.

Comments

This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning. GUIDs or sequential numbers are appropriate here.

LinkIds can have whitespaces and slashes by design. Tooling should not rely on linkIds being valid XHTML element IDs, and should not directly embed them as such

ConditionsThe cardinality or value of this element may be affected by these constraints: que-2
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-15: Link ids should be 255 characters or less
    $this.length() <= 255
Mappings
  • rim: n/a
  • rim: .id
Questionnaire.item.definition
ShortElementDefinition - details for the item
Definition

This element is a URI that refers to an ElementDefinition or to an ObservationDefinition that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below.

Cardinality0..1
Typeuri
Requirements

A common pattern is to define a set of data elements and then build multiple questionnaires for different circumstances to gather the data. This element provides traceability to the common definition and allows the content for the question to come from the underlying definition.

Comments

The uri refers to an ElementDefinition in a StructureDefinition or to an ObservationDefinition and always starts with the canonical URL for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id Element.id. E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition.

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=INST].target[classCode=OBS, moodCode=DEF]
Questionnaire.item.code
ShortCorresponding concept for this item in a terminology
Definition

A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).

Cardinality0..*
TypeCoding
Binding

Codes for questionnaires, groups and individual questions.

QuestionnaireQuestionCodes (example)

Requirements

Allows linking of groups of questions to formal terminologies.

Comments

The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-3
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
  • rim: .code
Questionnaire.item.prefix
ShortE.g. "1(a)", "2.5.3"
Definition

A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.

Cardinality0..1
Typestring
Aliaslabel
Requirements

Separating the label from the question text allows improved rendering. Also, instructions will often refer to specific prefixes, so there's a need for the questionnaire design to have control over what labels are used.

Comments

These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed. Typically, these won't be used for "display" items, though such use is not prohibited. Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: Not supported
Questionnaire.item.text
ShortPrimary text for the item
Definition

The name of a section, the text of a question or text content for a display item.

Cardinality0..1
Typestring
Comments

When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading. Group item instructions should be included as a display type item within the group.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .text
Questionnaire.item.type
Shortgroup | display | boolean | decimal | integer | date | dateTime +
Definition

The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.).

Cardinality1..1
Typecode
Binding

Distinguishes groups from questions and display text and indicates data type for questions.

QuestionnaireItemType (required)

Requirements

Defines the format in which the user is to be prompted for the answer.

Comments

Additional constraints on the type of answer can be conveyed by extensions. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-9, que-8, que-6, que-5, que-3, que-10, que-1a, que-1b, que-1c
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 - MIF rather than RIM level
Questionnaire.item.enableWhen
ShortOnly allow data when
Definition

A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.

Cardinality0..*
TypeBackboneElement
ModifierTrue
Requirements

Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history. Also allows conditional display of instructions or groups of questions.

Comments

If multiple repetitions of this extension are present, the interpretation is driven by enableBehavior (either all repetitions must evaluate to true for this item to be enabled, or only one must evaluate to true for the item to be enabled). If the enableWhen.question has multiple answers, the condition evaluates to true if any of the answers for the referenced item match the enableWhen condition. This element is a modifier because if enableWhen is present for an item, "required" is ignored unless one of the enableWhen conditions is met. When an item is disabled, all of its descendants are disabled, regardless of what their own enableWhen logic might evaluate to. If enableWhen logic depends on an item that is disabled, the logic should proceed as though the item is not valued - even if a default value or other value might be retained in memory in the event of the item being re-enabled. In some cases, the comparison between the indicated answer and the specified value may differ only by precision. For example, the enableWhen might be Q1 > 1970, but the answer to Q1 is 1970-10-15. There is not a clear answer as to whether 1970-10-15 should be considered 'greater' than 1970, given that it is an imprecise value. In these indeterminate situations, the form filler has the option of refusing to render the form. If the form is displayed, items where enableWhen is indeterminate SHOULD be treated as enabled with a warning indicating that the questionnaire logic was faulty and it is possible that the item should not be enabled. Questionnaires SHOULD be designed to take into account challenges around varying precision to minimize non-deterministic situations by setting constraints around expected precision, etc.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-12
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-7: If the operator is 'exists', the value must be a boolean
    operator = 'exists' implies (answer is boolean)
Mappings
  • rim: n/a
  • rim: N/A - MIF rather than RIM level
Questionnaire.item.enableWhen.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item.enableWhen.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item.enableWhen.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item.enableWhen.question
ShortThe linkId of question that determines whether item is enabled/disabled
Definition

The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.

Cardinality1..1
Typestring
Comments

If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the "ancestor" axis and then the "preceding" axis and then the "following" axis. If there are multiple items with the same linkId and all are equadistant (e.g. a question references a question that appears in a separate repeating group), that is an error. (Consider using the enableWhenExpression extension to define logic to handle such a situation.)

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 - MIF rather than RIM level
Questionnaire.item.enableWhen.operator
Shortexists | = | != | > | < | >= | <=
Definition

Specifies the criteria by which the question is enabled.

Cardinality1..1
Typecode
Binding

The criteria by which a question is enabled.

QuestionnaireItemOperator (required)

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item.enableWhen.answer[x]
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality1..1
Typeboolean | Coding | date | dateTime | decimal | integer | Quantity | Reference(Resource) | string | time
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item.enableBehavior
Shortall | any
Definition

Controls how multiple enableWhen values are interpreted - whether all or any must be true.

Cardinality0..1
Typecode
Binding

Controls how multiple enableWhen values are interpreted - whether all or any must be true.

EnableWhenBehavior (required)

Comments

This element must be specified if more than one enableWhen value is provided.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-12
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 - MIF rather than RIM level
Questionnaire.item.disabledDisplay
Shorthidden | protected
Definition

Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.

Cardinality0..1
Typecode
Binding

Defines how disabled elements should be rendered

QuestionnaireItemDisabledDisplay (required)

Comments

If not specified, rendering behavior is up to the client. This element is only meaningful if enableWhen or an equivalent extension is present

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 - MIF rather than RIM level
Questionnaire.item.required
ShortWhether the item must be included in data results
Definition

An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.

Cardinality0..1
Typeboolean
Comments

If the required item is a question, it must have a direct answer (i.e. an answer to the question itself, not merely answers to child questions) in order for the QuestionnaireResponse to be complete. If the required item is a group, it must have at least one descendant question which has an answer Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true. It also only has meaning if the parent element is present. If a non-required 'group' item contains a 'required' question item, it's completely fine to omit the group (because it's not required) despite it having a required child. Similarly, if an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one descendant item with a populated answer). The value for 'required' may come from the ElementDefinition referred to by .definition.

Meaning when missing

Items are assumed not to be required unless explicitly specified, though extensions may impose additional expectations

ConditionsThe cardinality or value of this element may be affected by these constraints: que-6
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 - MIF rather than RIM level
Questionnaire.item.repeats
ShortWhether the item may repeat
Definition

An indication, if true, that a QuestionnaireResponse for this item may include multiple answers associated with a single instance of this item (for question-type items) or multiple repetitions of the item (for group-type items).

Cardinality0..1
Typeboolean
Requirements

Items may be used to create set of (related) questions that can be repeated to give multiple answers to such a set.

Comments

If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse. When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. "repeat the question") or to simply allow entry/selection of multiple answers for the question (repeat the answers). Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.

The resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.

The value may come from the ElementDefinition referred to by .definition. When repeats=true for a group, it'll be represented with multiple items with the same linkId in the QuestionnaireResponse. For a question, it'll be represented by a single item with that linkId with multiple answers.

Meaning when missing

Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value

ConditionsThe cardinality or value of this element may be affected by these constraints: que-6, que-13
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 - MIF rather than RIM level
Questionnaire.item.readOnly
ShortDon't allow human editing
Definition

An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.

Cardinality0..1
Typeboolean
Requirements

Allows certain information to be phrased (and rendered) as a question and an answer, while keeping users from changing it. May also be useful for preventing changes to pre-populated portions of a questionnaire, for calculated values, etc.

Comments

If specified on a 'group', then all items beneath the specified group are read only. For questions, this only marks the answer associated with the specific item read only. Descendant questions are not impacted. The value of readOnly elements can be established by asserting extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-9
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 - MIF rather than RIM level
Questionnaire.item.maxLength
ShortNo more than these many characters
Definition

The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.

Cardinality0..1
Typeinteger
Comments

For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-10
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: N/A - MIF rather than RIM level
Questionnaire.item.answerConstraint
ShortoptionsOnly | optionsOrType | optionsOrString
Definition

For items that have a defined set of allowed answers (via answerOption or answerValueSet), indicates whether values other than those specified can be selected.

Cardinality0..1
Typecode
Binding

Indicates differnt modes for restricting values when options or valueset are specified

QuestionnaireAnswerConstraint (required)

Requirements

Introduces the ability for questions to have 'other' answers

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

Meaning when missing

If not specified, answerConstraint is presumed to be 'optionsOnly'

ConditionsThe cardinality or value of this element may be affected by these constraints: que-10, que-14
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 - MIF rather than RIM level
Questionnaire.item.answerValueSet
ShortValueSet containing permitted answers
Definition

A reference to a value set containing a list of values representing permitted answers for a question.

Cardinality0..1
Typecanonical(ValueSet)
Comments

LOINC defines many useful value sets for questionnaire responses. See LOINC Answer Lists. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-5, que-4, que-14
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 - MIF rather than RIM level
Questionnaire.item.answerOption
ShortPermitted answer
Definition

One of the permitted answers for the question.

Cardinality0..*
TypeBackboneElement
Comments

This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-5, que-4, que-11, que-14
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 - MIF rather than RIM level
Questionnaire.item.answerOption.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item.answerOption.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item.answerOption.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item.answerOption.value[x]
ShortAnswer value
Definition

A potential answer that's allowed as the answer to this question.

Cardinality1..1
TypeCoding | date | integer | Reference(Resource) | string | time
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Comments

The data type of the value must agree with the item.type.

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 - MIF rather than RIM level
Questionnaire.item.answerOption.initialSelected
ShortWhether option is selected by default
Definition

Indicates whether the answer value is selected when the list of possible answers is initially shown.

Cardinality0..1
Typeboolean
Meaning when missing

Only selected items explicitly marked to be selected

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 - MIF rather than RIM level
Questionnaire.item.initial
ShortInitial value(s) when item is first rendered
Definition

One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.

Cardinality0..*
TypeBackboneElement
Requirements

In some workflows, having defaults saves time.

Comments

The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created. Note that initial values can influence results. The data type of initial.answer[x] must agree with the item.type, and only repeating items can have more then one initial value.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-8, que-13, que-11
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 - MIF rather than RIM level
Questionnaire.item.initial.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item.initial.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item.initial.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item.initial.value[x]
ShortActual value for initializing the question
Definition

The actual value to for an initial answer.

Cardinality1..1
TypeAttachment | boolean | Coding | date | dateTime | decimal | integer | Quantity | Reference(Resource) | string | time | uri
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Comments

The type of the initial value must be consistent with the type of the item.

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 - MIF rather than RIM level
Questionnaire.item.item
ShortNested questionnaire items
Definition

Text, questions and other groups to be nested beneath a question or group.

Cardinality0..*
Typesee (item)
Requirements

Reports can consist of complex nested groups.

Comments

There is no specified limit to the depth of nesting. However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.

Mappings
  • rim: .outboundRelationship[typeCode=COMP].target
Questionnaire.item:section
ShortQuestions and sections within the Questionnaire
Definition

A particular question, question grouping or display text that is part of the questionnaire.

Cardinality0..*
TypeBackboneElement
Must SupportTrue
Comments

The content of the questionnaire is constructed from an ordered, hierarchical collection of items.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-9: Read-only can't be specified for "display" items
    type!='display' or readOnly.empty()
  • que-8: Initial values can't be specified for groups or display items
    (type!='group' and type!='display') or initial.empty()
  • que-6: Required and repeat aren't permitted for display items
    type!='display' or (required.empty() and repeats.empty())
  • que-5: Only coding, decimal, integer, date, dateTime, time, string or quantity items can have answerOption or answerValueSet
    (type='coding' or type = 'decimal' or type = 'integer' or type = 'date' or type = 'dateTime' or type = 'time' or type = 'string' or type = 'quantity') or (answerValueSet.empty() and answerOption.empty())
  • que-4: A question cannot have both answerOption and answerValueSet
    answerOption.empty() or answerValueSet.empty()
  • que-3: Display items cannot have a "code" asserted
    type!='display' or code.empty()
  • que-1c: Display items cannot have child items
    type='display' implies item.empty()
  • que-1a: Group items must have nested items when Questionanire is complete
    (type='group' and %resource.status='complete') implies item.empty().not()
  • que-1b: Groups should have items
    type='group' implies item.empty().not()
  • que-10: Maximum length can only be declared for simple question types
    (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url')) or answerConstraint='optionOrString' or maxLength.empty()
  • que-13: Can only have multiple initial values for repeating items
    repeats=true or initial.count() <= 1
  • que-14: Can only have answerConstraint if answerOption or answerValueSet are present. (This is a warning because extensions may serve the same purpose)
    answerConstraint.exists() implies answerOption.exists() or answerValueSet.exists()
  • que-11: If one or more answerOption is present, initial cannot be present. Use answerOption.initialSelected instead
    answerOption.empty() or initial.empty()
  • que-12: If there are more than one enableWhen, enableBehavior must be specified
    enableWhen.count() > 1 implies enableBehavior.exists()
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]
  • SHCQuestionnaireToSHCIntygsformularLogical: bestarAv(SektionLogical)
Questionnaire.item:section.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:section.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:section.extension:itemControl
ShortE.g. Fly-over, Table, Checkbox, Combo-box, Lookup, etc.
Definition

The type of data entry control or structure that should be used to render the item.

Cardinality0..1
TypeExtension(CodeableConcept)
Must SupportTrue
Aliasextensions, user content
Comments

Different controls may be appropriate for different item types. It is up to the system rendering a questionnaire as to what controls it will support and for which data types. See additional guidance and examples in the SDC implementation guide.

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
  • SHCQuestionnaireToSHCIntygsformularLogical: utformning
Questionnaire.item:section.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:section.linkId
ShortUnique id for item in questionnaire
Definition

An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.

Cardinality1..1
Typestring
Must SupportTrue
Requirements

QuestionnaireResponse does not require omitted items to be included and may have some items that repeat, so linkage based on position alone is not sufficient.

Comments

This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning. GUIDs or sequential numbers are appropriate here.

LinkIds can have whitespaces and slashes by design. Tooling should not rely on linkIds being valid XHTML element IDs, and should not directly embed them as such

ConditionsThe cardinality or value of this element may be affected by these constraints: que-2
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-15: Link ids should be 255 characters or less
    $this.length() <= 255
Mappings
  • rim: n/a
  • rim: .id
  • SHCQuestionnaireToSHCIntygsformularLogical: lankId
Questionnaire.item:section.definition
ShortElementDefinition - details for the item
Definition

This element is a URI that refers to an ElementDefinition or to an ObservationDefinition that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below.

Cardinality0..1
Typeuri
Must SupportTrue
Requirements

A common pattern is to define a set of data elements and then build multiple questionnaires for different circumstances to gather the data. This element provides traceability to the common definition and allows the content for the question to come from the underlying definition.

Comments

The uri refers to an ElementDefinition in a StructureDefinition or to an ObservationDefinition and always starts with the canonical URL for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id Element.id. E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition.

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=INST].target[classCode=OBS, moodCode=DEF]
  • SHCQuestionnaireToSHCIntygsformularLogical: definition
Questionnaire.item:section.code
ShortCorresponding concept for this item in a terminology
Definition

A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).

Cardinality0..*
TypeCoding
Binding

Codes for questionnaires, groups and individual questions.

QuestionnaireQuestionCodes (example)

Requirements

Allows linking of groups of questions to formal terminologies.

Comments

The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-3
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
  • rim: .code
Questionnaire.item:section.prefix
ShortE.g. "1(a)", "2.5.3"
Definition

A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.

Cardinality0..1
Typestring
Must SupportTrue
Aliaslabel
Requirements

Separating the label from the question text allows improved rendering. Also, instructions will often refer to specific prefixes, so there's a need for the questionnaire design to have control over what labels are used.

Comments

These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed. Typically, these won't be used for "display" items, though such use is not prohibited. Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: Not supported
  • SHCQuestionnaireToSHCIntygsformularLogical: prefix
Questionnaire.item:section.text
ShortPrimary text for the item
Definition

The name of a section, the text of a question or text content for a display item.

Cardinality1..1
Typestring
Must SupportTrue
Comments

When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading. Group item instructions should be included as a display type item within the group.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .text
  • SHCQuestionnaireToSHCIntygsformularLogical: text
Questionnaire.item:section.text.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:section.text.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:section.text.extension:markdown
ShortString equivalent with markdown
Definition

This is an equivalent of the string on which the extension is sent, but includes additional markdown (see documentation about markdown. Note that using HTML xhtml can allow for greater precision of display.

Cardinality0..1
TypeExtension(markdown)
Aliasextensions, user content
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.

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
  • rim: ED can be markdown content
Questionnaire.item:section.text.value
ShortPrimitive value for string
Definition

Primitive value for string

Cardinality0..1
TypeSystem.String
Maximum string length1048576
Questionnaire.item:section.type
Shortgroup | display | boolean | decimal | integer | date | dateTime +
Definition

The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.).

Cardinality1..1
Typecode
Binding

Distinguishes groups from questions and display text and indicates data type for questions.

QuestionnaireItemType (required)

Must SupportTrue
Requirements

Defines the format in which the user is to be prompted for the answer.

Comments

Additional constraints on the type of answer can be conveyed by extensions. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-9, que-8, que-6, que-5, que-3, que-10, que-1a, que-1b, que-1c
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
group
Mappings
  • rim: n/a
  • rim: N/A - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: typ
Questionnaire.item:section.enableWhen
ShortOnly allow data when
Definition

A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.

Cardinality0..1
TypeBackboneElement
Must SupportTrue
ModifierTrue
Requirements

Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history. Also allows conditional display of instructions or groups of questions.

Comments

If multiple repetitions of this extension are present, the interpretation is driven by enableBehavior (either all repetitions must evaluate to true for this item to be enabled, or only one must evaluate to true for the item to be enabled). If the enableWhen.question has multiple answers, the condition evaluates to true if any of the answers for the referenced item match the enableWhen condition. This element is a modifier because if enableWhen is present for an item, "required" is ignored unless one of the enableWhen conditions is met. When an item is disabled, all of its descendants are disabled, regardless of what their own enableWhen logic might evaluate to. If enableWhen logic depends on an item that is disabled, the logic should proceed as though the item is not valued - even if a default value or other value might be retained in memory in the event of the item being re-enabled. In some cases, the comparison between the indicated answer and the specified value may differ only by precision. For example, the enableWhen might be Q1 > 1970, but the answer to Q1 is 1970-10-15. There is not a clear answer as to whether 1970-10-15 should be considered 'greater' than 1970, given that it is an imprecise value. In these indeterminate situations, the form filler has the option of refusing to render the form. If the form is displayed, items where enableWhen is indeterminate SHOULD be treated as enabled with a warning indicating that the questionnaire logic was faulty and it is possible that the item should not be enabled. Questionnaires SHOULD be designed to take into account challenges around varying precision to minimize non-deterministic situations by setting constraints around expected precision, etc.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-12
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-7: If the operator is 'exists', the value must be a boolean
    operator = 'exists' implies (answer is boolean)
Mappings
  • rim: n/a
  • rim: N/A - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: visasUnderVillkor(VisasNarLogical)
Questionnaire.item:section.enableWhen.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:section.enableWhen.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:section.enableWhen.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:section.enableWhen.question
ShortThe linkId of question that determines whether item is enabled/disabled
Definition

The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.

Cardinality1..1
Typestring
Must SupportTrue
Comments

If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the "ancestor" axis and then the "preceding" axis and then the "following" axis. If there are multiple items with the same linkId and all are equadistant (e.g. a question references a question that appears in a separate repeating group), that is an error. (Consider using the enableWhenExpression extension to define logic to handle such a situation.)

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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: fragelankId
Questionnaire.item:section.enableWhen.operator
Shortexists | = | != | > | < | >= | <=
Definition

Specifies the criteria by which the question is enabled.

Cardinality1..1
Typecode
Binding

The criteria by which a question is enabled.

QuestionnaireItemOperator (required)

Must SupportTrue
Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: logiskOperator
Questionnaire.item:section.enableWhen.answer[x]
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality1..1
Typeboolean | Coding | date | dateTime | decimal | integer | Quantity | Reference(Resource) | string | time
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
Slicing

Unordered, Open, by $this(Type)

ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: svar
Questionnaire.item:section.enableWhen.answer[x]:answerInteger
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typeinteger
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:section.enableWhen.answer[x]:answerQuantity
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
TypeQuantity
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:section.enableWhen.answer[x]:answerDateTime
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
TypedateTime
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:section.enableWhen.answer[x]:answerTime
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typetime
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:section.enableWhen.answer[x]:answerString
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typestring
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:section.enableWhen.answer[x]:answerCoding
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
TypeCoding
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:section.enableWhen.answer[x]:answerDecimal
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typedecimal
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:section.enableWhen.answer[x]:answerBoolean
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typeboolean
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:section.enableWhen.answer[x]:answerDate
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typedate
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:section.enableBehavior
Shortall | any
Definition

Controls how multiple enableWhen values are interpreted - whether all or any must be true.

Cardinality0..1
Typecode
Binding

Controls how multiple enableWhen values are interpreted - whether all or any must be true.

EnableWhenBehavior (required)

Comments

This element must be specified if more than one enableWhen value is provided.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-12
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 - MIF rather than RIM level
Questionnaire.item:section.disabledDisplay
Shorthidden | protected
Definition

Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.

Cardinality0..1
Typecode
Binding

Defines how disabled elements should be rendered

QuestionnaireItemDisabledDisplay (required)

Comments

If not specified, rendering behavior is up to the client. This element is only meaningful if enableWhen or an equivalent extension is present

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 - MIF rather than RIM level
Questionnaire.item:section.required
ShortWhether the item must be included in data results
Definition

An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.

Cardinality1..1
Typeboolean
Must SupportTrue
Comments

If the required item is a question, it must have a direct answer (i.e. an answer to the question itself, not merely answers to child questions) in order for the QuestionnaireResponse to be complete. If the required item is a group, it must have at least one descendant question which has an answer Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true. It also only has meaning if the parent element is present. If a non-required 'group' item contains a 'required' question item, it's completely fine to omit the group (because it's not required) despite it having a required child. Similarly, if an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one descendant item with a populated answer). The value for 'required' may come from the ElementDefinition referred to by .definition.

Meaning when missing

Items are assumed not to be required unless explicitly specified, though extensions may impose additional expectations

ConditionsThe cardinality or value of this element may be affected by these constraints: que-6
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: obligatorisk
Questionnaire.item:section.repeats
ShortWhether the item may repeat
Definition

An indication, if true, that a QuestionnaireResponse for this item may include multiple answers associated with a single instance of this item (for question-type items) or multiple repetitions of the item (for group-type items).

Cardinality0..1
Typeboolean
Requirements

Items may be used to create set of (related) questions that can be repeated to give multiple answers to such a set.

Comments

If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse. When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. "repeat the question") or to simply allow entry/selection of multiple answers for the question (repeat the answers). Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.

The resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.

The value may come from the ElementDefinition referred to by .definition. When repeats=true for a group, it'll be represented with multiple items with the same linkId in the QuestionnaireResponse. For a question, it'll be represented by a single item with that linkId with multiple answers.

Meaning when missing

Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value

ConditionsThe cardinality or value of this element may be affected by these constraints: que-6, que-13
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 - MIF rather than RIM level
Questionnaire.item:section.readOnly
ShortDon't allow human editing
Definition

An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.

Cardinality0..1
Typeboolean
Requirements

Allows certain information to be phrased (and rendered) as a question and an answer, while keeping users from changing it. May also be useful for preventing changes to pre-populated portions of a questionnaire, for calculated values, etc.

Comments

If specified on a 'group', then all items beneath the specified group are read only. For questions, this only marks the answer associated with the specific item read only. Descendant questions are not impacted. The value of readOnly elements can be established by asserting extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-9
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 - MIF rather than RIM level
Questionnaire.item:section.maxLength
ShortNo more than these many characters
Definition

The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.

Cardinality0..1
Typeinteger
Comments

For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-10
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: N/A - MIF rather than RIM level
Questionnaire.item:section.answerConstraint
ShortoptionsOnly | optionsOrType | optionsOrString
Definition

For items that have a defined set of allowed answers (via answerOption or answerValueSet), indicates whether values other than those specified can be selected.

Cardinality0..1
Typecode
Binding

Indicates differnt modes for restricting values when options or valueset are specified

QuestionnaireAnswerConstraint (required)

Requirements

Introduces the ability for questions to have 'other' answers

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

Meaning when missing

If not specified, answerConstraint is presumed to be 'optionsOnly'

ConditionsThe cardinality or value of this element may be affected by these constraints: que-10, que-14
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 - MIF rather than RIM level
Questionnaire.item:section.answerValueSet
ShortValueSet containing permitted answers
Definition

A reference to a value set containing a list of values representing permitted answers for a question.

Cardinality0..1
Typecanonical(ValueSet)
Comments

LOINC defines many useful value sets for questionnaire responses. See LOINC Answer Lists. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-5, que-4, que-14
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 - MIF rather than RIM level
Questionnaire.item:section.answerOption
ShortPermitted answer
Definition

One of the permitted answers for the question.

Cardinality0..*
TypeBackboneElement
Comments

This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-5, que-4, que-11, que-14
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 - MIF rather than RIM level
Questionnaire.item:section.answerOption.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:section.answerOption.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:section.answerOption.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:section.answerOption.value[x]
ShortAnswer value
Definition

A potential answer that's allowed as the answer to this question.

Cardinality1..1
TypeCoding | date | integer | Reference(Resource) | string | time
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Comments

The data type of the value must agree with the item.type.

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 - MIF rather than RIM level
Questionnaire.item:section.answerOption.initialSelected
ShortWhether option is selected by default
Definition

Indicates whether the answer value is selected when the list of possible answers is initially shown.

Cardinality0..1
Typeboolean
Meaning when missing

Only selected items explicitly marked to be selected

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 - MIF rather than RIM level
Questionnaire.item:section.initial
ShortInitial value(s) when item is first rendered
Definition

One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.

Cardinality0..*
TypeBackboneElement
Requirements

In some workflows, having defaults saves time.

Comments

The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created. Note that initial values can influence results. The data type of initial.answer[x] must agree with the item.type, and only repeating items can have more then one initial value.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-8, que-13, que-11
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 - MIF rather than RIM level
Questionnaire.item:section.initial.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:section.initial.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:section.initial.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:section.initial.value[x]
ShortActual value for initializing the question
Definition

The actual value to for an initial answer.

Cardinality1..1
TypeAttachment | boolean | Coding | date | dateTime | decimal | integer | Quantity | Reference(Resource) | string | time | uri
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Comments

The type of the initial value must be consistent with the type of the item.

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 - MIF rather than RIM level
Questionnaire.item:section.item
ShortNested questionnaire items
Definition

Text, questions and other groups to be nested beneath a question or group.

Cardinality0..*
Typesee (item)
Requirements

Reports can consist of complex nested groups.

Comments

There is no specified limit to the depth of nesting. However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.

Mappings
  • rim: .outboundRelationship[typeCode=COMP].target
Questionnaire.item:informationText
ShortQuestions and sections within the Questionnaire
Definition

A particular question, question grouping or display text that is part of the questionnaire.

Cardinality0..*
TypeBackboneElement
Must SupportTrue
Comments

The content of the questionnaire is constructed from an ordered, hierarchical collection of items.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-9: Read-only can't be specified for "display" items
    type!='display' or readOnly.empty()
  • que-8: Initial values can't be specified for groups or display items
    (type!='group' and type!='display') or initial.empty()
  • que-6: Required and repeat aren't permitted for display items
    type!='display' or (required.empty() and repeats.empty())
  • que-5: Only coding, decimal, integer, date, dateTime, time, string or quantity items can have answerOption or answerValueSet
    (type='coding' or type = 'decimal' or type = 'integer' or type = 'date' or type = 'dateTime' or type = 'time' or type = 'string' or type = 'quantity') or (answerValueSet.empty() and answerOption.empty())
  • que-4: A question cannot have both answerOption and answerValueSet
    answerOption.empty() or answerValueSet.empty()
  • que-3: Display items cannot have a "code" asserted
    type!='display' or code.empty()
  • que-1c: Display items cannot have child items
    type='display' implies item.empty()
  • que-1a: Group items must have nested items when Questionanire is complete
    (type='group' and %resource.status='complete') implies item.empty().not()
  • que-1b: Groups should have items
    type='group' implies item.empty().not()
  • que-10: Maximum length can only be declared for simple question types
    (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url')) or answerConstraint='optionOrString' or maxLength.empty()
  • que-13: Can only have multiple initial values for repeating items
    repeats=true or initial.count() <= 1
  • que-14: Can only have answerConstraint if answerOption or answerValueSet are present. (This is a warning because extensions may serve the same purpose)
    answerConstraint.exists() implies answerOption.exists() or answerValueSet.exists()
  • que-11: If one or more answerOption is present, initial cannot be present. Use answerOption.initialSelected instead
    answerOption.empty() or initial.empty()
  • que-12: If there are more than one enableWhen, enableBehavior must be specified
    enableWhen.count() > 1 implies enableBehavior.exists()
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]
  • SHCQuestionnaireToSHCIntygsformularLogical: bestarAv(InformationstextLogical)
Questionnaire.item:informationText.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:informationText.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:informationText.extension:itemControl
ShortE.g. Fly-over, Table, Checkbox, Combo-box, Lookup, etc.
Definition

The type of data entry control or structure that should be used to render the item.

Cardinality0..1
TypeExtension(CodeableConcept)
Must SupportTrue
Aliasextensions, user content
Comments

Different controls may be appropriate for different item types. It is up to the system rendering a questionnaire as to what controls it will support and for which data types. See additional guidance and examples in the SDC implementation guide.

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
  • SHCQuestionnaireToSHCIntygsformularLogical: utformning
Questionnaire.item:informationText.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:informationText.linkId
ShortUnique id for item in questionnaire
Definition

An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.

Cardinality1..1
Typestring
Must SupportTrue
Requirements

QuestionnaireResponse does not require omitted items to be included and may have some items that repeat, so linkage based on position alone is not sufficient.

Comments

This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning. GUIDs or sequential numbers are appropriate here.

LinkIds can have whitespaces and slashes by design. Tooling should not rely on linkIds being valid XHTML element IDs, and should not directly embed them as such

ConditionsThe cardinality or value of this element may be affected by these constraints: que-2
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-15: Link ids should be 255 characters or less
    $this.length() <= 255
Mappings
  • rim: n/a
  • rim: .id
  • SHCQuestionnaireToSHCIntygsformularLogical: lankId
Questionnaire.item:informationText.definition
ShortElementDefinition - details for the item
Definition

This element is a URI that refers to an ElementDefinition or to an ObservationDefinition that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below.

Cardinality0..1
Typeuri
Must SupportTrue
Requirements

A common pattern is to define a set of data elements and then build multiple questionnaires for different circumstances to gather the data. This element provides traceability to the common definition and allows the content for the question to come from the underlying definition.

Comments

The uri refers to an ElementDefinition in a StructureDefinition or to an ObservationDefinition and always starts with the canonical URL for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id Element.id. E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition.

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=INST].target[classCode=OBS, moodCode=DEF]
  • SHCQuestionnaireToSHCIntygsformularLogical: definition
Questionnaire.item:informationText.code
ShortCorresponding concept for this item in a terminology
Definition

A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).

Cardinality0..*
TypeCoding
Binding

Codes for questionnaires, groups and individual questions.

QuestionnaireQuestionCodes (example)

Requirements

Allows linking of groups of questions to formal terminologies.

Comments

The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-3
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
  • rim: .code
Questionnaire.item:informationText.prefix
ShortE.g. "1(a)", "2.5.3"
Definition

A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.

Cardinality0..1
Typestring
Must SupportTrue
Aliaslabel
Requirements

Separating the label from the question text allows improved rendering. Also, instructions will often refer to specific prefixes, so there's a need for the questionnaire design to have control over what labels are used.

Comments

These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed. Typically, these won't be used for "display" items, though such use is not prohibited. Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: Not supported
  • SHCQuestionnaireToSHCIntygsformularLogical: prefix
Questionnaire.item:informationText.text
ShortPrimary text for the item
Definition

The name of a section, the text of a question or text content for a display item.

Cardinality1..1
Typestring
Must SupportTrue
Comments

When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading. Group item instructions should be included as a display type item within the group.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .text
  • SHCQuestionnaireToSHCIntygsformularLogical: text
Questionnaire.item:informationText.text.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:informationText.text.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:informationText.text.extension:markdown
ShortString equivalent with markdown
Definition

This is an equivalent of the string on which the extension is sent, but includes additional markdown (see documentation about markdown. Note that using HTML xhtml can allow for greater precision of display.

Cardinality0..1
TypeExtension(markdown)
Aliasextensions, user content
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.

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
  • rim: ED can be markdown content
Questionnaire.item:informationText.text.value
ShortPrimitive value for string
Definition

Primitive value for string

Cardinality0..1
TypeSystem.String
Maximum string length1048576
Questionnaire.item:informationText.type
Shortgroup | display | boolean | decimal | integer | date | dateTime +
Definition

The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.).

Cardinality1..1
Typecode
Binding

Distinguishes groups from questions and display text and indicates data type for questions.

QuestionnaireItemType (required)

Must SupportTrue
Requirements

Defines the format in which the user is to be prompted for the answer.

Comments

Additional constraints on the type of answer can be conveyed by extensions. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-9, que-8, que-6, que-5, que-3, que-10, que-1a, que-1b, que-1c
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
display
Mappings
  • rim: n/a
  • rim: N/A - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: typ
Questionnaire.item:informationText.enableWhen
ShortOnly allow data when
Definition

A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.

Cardinality0..*
TypeBackboneElement
Must SupportTrue
ModifierTrue
Requirements

Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history. Also allows conditional display of instructions or groups of questions.

Comments

If multiple repetitions of this extension are present, the interpretation is driven by enableBehavior (either all repetitions must evaluate to true for this item to be enabled, or only one must evaluate to true for the item to be enabled). If the enableWhen.question has multiple answers, the condition evaluates to true if any of the answers for the referenced item match the enableWhen condition. This element is a modifier because if enableWhen is present for an item, "required" is ignored unless one of the enableWhen conditions is met. When an item is disabled, all of its descendants are disabled, regardless of what their own enableWhen logic might evaluate to. If enableWhen logic depends on an item that is disabled, the logic should proceed as though the item is not valued - even if a default value or other value might be retained in memory in the event of the item being re-enabled. In some cases, the comparison between the indicated answer and the specified value may differ only by precision. For example, the enableWhen might be Q1 > 1970, but the answer to Q1 is 1970-10-15. There is not a clear answer as to whether 1970-10-15 should be considered 'greater' than 1970, given that it is an imprecise value. In these indeterminate situations, the form filler has the option of refusing to render the form. If the form is displayed, items where enableWhen is indeterminate SHOULD be treated as enabled with a warning indicating that the questionnaire logic was faulty and it is possible that the item should not be enabled. Questionnaires SHOULD be designed to take into account challenges around varying precision to minimize non-deterministic situations by setting constraints around expected precision, etc.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-12
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-7: If the operator is 'exists', the value must be a boolean
    operator = 'exists' implies (answer is boolean)
Mappings
  • rim: n/a
  • rim: N/A - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: visasUnderVillkor(VisasNarLogical)
Questionnaire.item:informationText.enableWhen.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:informationText.enableWhen.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:informationText.enableWhen.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:informationText.enableWhen.question
ShortThe linkId of question that determines whether item is enabled/disabled
Definition

The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.

Cardinality1..1
Typestring
Must SupportTrue
Comments

If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the "ancestor" axis and then the "preceding" axis and then the "following" axis. If there are multiple items with the same linkId and all are equadistant (e.g. a question references a question that appears in a separate repeating group), that is an error. (Consider using the enableWhenExpression extension to define logic to handle such a situation.)

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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: fragelankId
Questionnaire.item:informationText.enableWhen.operator
Shortexists | = | != | > | < | >= | <=
Definition

Specifies the criteria by which the question is enabled.

Cardinality1..1
Typecode
Binding

The criteria by which a question is enabled.

QuestionnaireItemOperator (required)

Must SupportTrue
Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: logiskOperator
Questionnaire.item:informationText.enableWhen.answer[x]
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality1..1
Typeboolean | Coding | date | dateTime | decimal | integer | Quantity | Reference(Resource) | string | time
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
Slicing

Unordered, Open, by $this(Type)

ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: svar
Questionnaire.item:informationText.enableWhen.answer[x]:answerInteger
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typeinteger
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:informationText.enableWhen.answer[x]:answerQuantity
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
TypeQuantity
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:informationText.enableWhen.answer[x]:answerDateTime
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
TypedateTime
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:informationText.enableWhen.answer[x]:answerTime
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typetime
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:informationText.enableWhen.answer[x]:answerString
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typestring
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:informationText.enableWhen.answer[x]:answerCoding
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
TypeCoding
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:informationText.enableWhen.answer[x]:answerDecimal
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typedecimal
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:informationText.enableWhen.answer[x]:answerBoolean
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typeboolean
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:informationText.enableWhen.answer[x]:answerDate
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typedate
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:informationText.enableBehavior
Shortall | any
Definition

Controls how multiple enableWhen values are interpreted - whether all or any must be true.

Cardinality0..1
Typecode
Binding

Controls how multiple enableWhen values are interpreted - whether all or any must be true.

EnableWhenBehavior (required)

Comments

This element must be specified if more than one enableWhen value is provided.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-12
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 - MIF rather than RIM level
Questionnaire.item:informationText.disabledDisplay
Shorthidden | protected
Definition

Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.

Cardinality0..1
Typecode
Binding

Defines how disabled elements should be rendered

QuestionnaireItemDisabledDisplay (required)

Comments

If not specified, rendering behavior is up to the client. This element is only meaningful if enableWhen or an equivalent extension is present

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 - MIF rather than RIM level
Questionnaire.item:informationText.required
ShortWhether the item must be included in data results
Definition

An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.

Cardinality1..1
Typeboolean
Must SupportTrue
Comments

If the required item is a question, it must have a direct answer (i.e. an answer to the question itself, not merely answers to child questions) in order for the QuestionnaireResponse to be complete. If the required item is a group, it must have at least one descendant question which has an answer Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true. It also only has meaning if the parent element is present. If a non-required 'group' item contains a 'required' question item, it's completely fine to omit the group (because it's not required) despite it having a required child. Similarly, if an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one descendant item with a populated answer). The value for 'required' may come from the ElementDefinition referred to by .definition.

Meaning when missing

Items are assumed not to be required unless explicitly specified, though extensions may impose additional expectations

ConditionsThe cardinality or value of this element may be affected by these constraints: que-6
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: obligatorisk
Questionnaire.item:informationText.repeats
ShortWhether the item may repeat
Definition

An indication, if true, that a QuestionnaireResponse for this item may include multiple answers associated with a single instance of this item (for question-type items) or multiple repetitions of the item (for group-type items).

Cardinality0..1
Typeboolean
Requirements

Items may be used to create set of (related) questions that can be repeated to give multiple answers to such a set.

Comments

If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse. When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. "repeat the question") or to simply allow entry/selection of multiple answers for the question (repeat the answers). Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.

The resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.

The value may come from the ElementDefinition referred to by .definition. When repeats=true for a group, it'll be represented with multiple items with the same linkId in the QuestionnaireResponse. For a question, it'll be represented by a single item with that linkId with multiple answers.

Meaning when missing

Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value

ConditionsThe cardinality or value of this element may be affected by these constraints: que-6, que-13
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 - MIF rather than RIM level
Questionnaire.item:informationText.readOnly
ShortDon't allow human editing
Definition

An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.

Cardinality0..1
Typeboolean
Requirements

Allows certain information to be phrased (and rendered) as a question and an answer, while keeping users from changing it. May also be useful for preventing changes to pre-populated portions of a questionnaire, for calculated values, etc.

Comments

If specified on a 'group', then all items beneath the specified group are read only. For questions, this only marks the answer associated with the specific item read only. Descendant questions are not impacted. The value of readOnly elements can be established by asserting extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-9
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 - MIF rather than RIM level
Questionnaire.item:informationText.maxLength
ShortNo more than these many characters
Definition

The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.

Cardinality0..1
Typeinteger
Comments

For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-10
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: N/A - MIF rather than RIM level
Questionnaire.item:informationText.answerConstraint
ShortoptionsOnly | optionsOrType | optionsOrString
Definition

For items that have a defined set of allowed answers (via answerOption or answerValueSet), indicates whether values other than those specified can be selected.

Cardinality0..1
Typecode
Binding

Indicates differnt modes for restricting values when options or valueset are specified

QuestionnaireAnswerConstraint (required)

Requirements

Introduces the ability for questions to have 'other' answers

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

Meaning when missing

If not specified, answerConstraint is presumed to be 'optionsOnly'

ConditionsThe cardinality or value of this element may be affected by these constraints: que-10, que-14
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 - MIF rather than RIM level
Questionnaire.item:informationText.answerValueSet
ShortValueSet containing permitted answers
Definition

A reference to a value set containing a list of values representing permitted answers for a question.

Cardinality0..1
Typecanonical(ValueSet)
Comments

LOINC defines many useful value sets for questionnaire responses. See LOINC Answer Lists. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-5, que-4, que-14
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 - MIF rather than RIM level
Questionnaire.item:informationText.answerOption
ShortPermitted answer
Definition

One of the permitted answers for the question.

Cardinality0..*
TypeBackboneElement
Comments

This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-5, que-4, que-11, que-14
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 - MIF rather than RIM level
Questionnaire.item:informationText.answerOption.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:informationText.answerOption.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:informationText.answerOption.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:informationText.answerOption.value[x]
ShortAnswer value
Definition

A potential answer that's allowed as the answer to this question.

Cardinality1..1
TypeCoding | date | integer | Reference(Resource) | string | time
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Comments

The data type of the value must agree with the item.type.

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 - MIF rather than RIM level
Questionnaire.item:informationText.answerOption.initialSelected
ShortWhether option is selected by default
Definition

Indicates whether the answer value is selected when the list of possible answers is initially shown.

Cardinality0..1
Typeboolean
Meaning when missing

Only selected items explicitly marked to be selected

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 - MIF rather than RIM level
Questionnaire.item:informationText.initial
ShortInitial value(s) when item is first rendered
Definition

One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.

Cardinality0..*
TypeBackboneElement
Requirements

In some workflows, having defaults saves time.

Comments

The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created. Note that initial values can influence results. The data type of initial.answer[x] must agree with the item.type, and only repeating items can have more then one initial value.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-8, que-13, que-11
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 - MIF rather than RIM level
Questionnaire.item:informationText.initial.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:informationText.initial.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:informationText.initial.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:informationText.initial.value[x]
ShortActual value for initializing the question
Definition

The actual value to for an initial answer.

Cardinality1..1
TypeAttachment | boolean | Coding | date | dateTime | decimal | integer | Quantity | Reference(Resource) | string | time | uri
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Comments

The type of the initial value must be consistent with the type of the item.

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 - MIF rather than RIM level
Questionnaire.item:informationText.item
ShortNested questionnaire items
Definition

Text, questions and other groups to be nested beneath a question or group.

Cardinality0..*
Typesee (item)
Requirements

Reports can consist of complex nested groups.

Comments

There is no specified limit to the depth of nesting. However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.

Mappings
  • rim: .outboundRelationship[typeCode=COMP].target
Questionnaire.item:question
Shorttest
Definition

A particular question, question grouping or display text that is part of the questionnaire.

Cardinality0..*
TypeBackboneElement
Must SupportTrue
Comments

The content of the questionnaire is constructed from an ordered, hierarchical collection of items.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-9: Read-only can't be specified for "display" items
    type!='display' or readOnly.empty()
  • que-8: Initial values can't be specified for groups or display items
    (type!='group' and type!='display') or initial.empty()
  • que-6: Required and repeat aren't permitted for display items
    type!='display' or (required.empty() and repeats.empty())
  • que-5: Only coding, decimal, integer, date, dateTime, time, string or quantity items can have answerOption or answerValueSet
    (type='coding' or type = 'decimal' or type = 'integer' or type = 'date' or type = 'dateTime' or type = 'time' or type = 'string' or type = 'quantity') or (answerValueSet.empty() and answerOption.empty())
  • que-4: A question cannot have both answerOption and answerValueSet
    answerOption.empty() or answerValueSet.empty()
  • que-3: Display items cannot have a "code" asserted
    type!='display' or code.empty()
  • que-1c: Display items cannot have child items
    type='display' implies item.empty()
  • que-1a: Group items must have nested items when Questionanire is complete
    (type='group' and %resource.status='complete') implies item.empty().not()
  • que-1b: Groups should have items
    type='group' implies item.empty().not()
  • que-10: Maximum length can only be declared for simple question types
    (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url')) or answerConstraint='optionOrString' or maxLength.empty()
  • que-13: Can only have multiple initial values for repeating items
    repeats=true or initial.count() <= 1
  • que-14: Can only have answerConstraint if answerOption or answerValueSet are present. (This is a warning because extensions may serve the same purpose)
    answerConstraint.exists() implies answerOption.exists() or answerValueSet.exists()
  • que-11: If one or more answerOption is present, initial cannot be present. Use answerOption.initialSelected instead
    answerOption.empty() or initial.empty()
  • que-12: If there are more than one enableWhen, enableBehavior must be specified
    enableWhen.count() > 1 implies enableBehavior.exists()
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]
  • SHCQuestionnaireToSHCIntygsformularLogical: bestarAv(FragaLogical)
Questionnaire.item:question.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:question.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:question.extension:itemControl
ShortE.g. Fly-over, Table, Checkbox, Combo-box, Lookup, etc.
Definition

The type of data entry control or structure that should be used to render the item.

Cardinality0..1
TypeExtension(CodeableConcept)
Must SupportTrue
Aliasextensions, user content
Comments

Different controls may be appropriate for different item types. It is up to the system rendering a questionnaire as to what controls it will support and for which data types. See additional guidance and examples in the SDC implementation guide.

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
  • SHCQuestionnaireToSHCIntygsformularLogical: utformning
Questionnaire.item:question.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:question.linkId
ShortUnique id for item in questionnaire
Definition

An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.

Cardinality1..1
Typestring
Must SupportTrue
Requirements

QuestionnaireResponse does not require omitted items to be included and may have some items that repeat, so linkage based on position alone is not sufficient.

Comments

This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning. GUIDs or sequential numbers are appropriate here.

LinkIds can have whitespaces and slashes by design. Tooling should not rely on linkIds being valid XHTML element IDs, and should not directly embed them as such

ConditionsThe cardinality or value of this element may be affected by these constraints: que-2
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-15: Link ids should be 255 characters or less
    $this.length() <= 255
Mappings
  • rim: n/a
  • rim: .id
  • SHCQuestionnaireToSHCIntygsformularLogical: frage-id
Questionnaire.item:question.definition
ShortElementDefinition - details for the item
Definition

This element is a URI that refers to an ElementDefinition or to an ObservationDefinition that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below.

Cardinality0..1
Typeuri
Must SupportTrue
Requirements

A common pattern is to define a set of data elements and then build multiple questionnaires for different circumstances to gather the data. This element provides traceability to the common definition and allows the content for the question to come from the underlying definition.

Comments

The uri refers to an ElementDefinition in a StructureDefinition or to an ObservationDefinition and always starts with the canonical URL for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id Element.id. E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition.

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=INST].target[classCode=OBS, moodCode=DEF]
  • SHCQuestionnaireToSHCIntygsformularLogical: definition
Questionnaire.item:question.code
ShortCorresponding concept for this item in a terminology
Definition

A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).

Cardinality0..*
TypeCoding
Binding

Codes for questionnaires, groups and individual questions.

QuestionnaireQuestionCodes (example)

Requirements

Allows linking of groups of questions to formal terminologies.

Comments

The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-3
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • cod-1: A Coding SHOULD NOT have a display unless a code is also present. Computation on Coding.display alone is generally unsafe. Consider using CodeableConcept.text
    code.exists().not() implies display.exists().not()
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
  • rim: .code
Questionnaire.item:question.prefix
ShortE.g. "1(a)", "2.5.3"
Definition

A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.

Cardinality0..1
Typestring
Must SupportTrue
Aliaslabel
Requirements

Separating the label from the question text allows improved rendering. Also, instructions will often refer to specific prefixes, so there's a need for the questionnaire design to have control over what labels are used.

Comments

These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed. Typically, these won't be used for "display" items, though such use is not prohibited. Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: Not supported
  • SHCQuestionnaireToSHCIntygsformularLogical: prefix
Questionnaire.item:question.text
ShortPrimary text for the item
Definition

The name of a section, the text of a question or text content for a display item.

Cardinality1..1
Typestring
Must SupportTrue
Comments

When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading. Group item instructions should be included as a display type item within the group.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .text
  • SHCQuestionnaireToSHCIntygsformularLogical: text
Questionnaire.item:question.text.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:question.text.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:question.text.extension:markdown
ShortString equivalent with markdown
Definition

This is an equivalent of the string on which the extension is sent, but includes additional markdown (see documentation about markdown. Note that using HTML xhtml can allow for greater precision of display.

Cardinality0..1
TypeExtension(markdown)
Aliasextensions, user content
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.

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
  • rim: ED can be markdown content
Questionnaire.item:question.text.value
ShortPrimitive value for string
Definition

Primitive value for string

Cardinality0..1
TypeSystem.String
Maximum string length1048576
Questionnaire.item:question.type
Shortgroup | display | boolean | decimal | integer | date | dateTime +
Definition

The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.).

Cardinality1..1
Typecode
Binding

Distinguishes groups from questions and display text and indicates data type for questions.

http://electronichealth.se/fhir/shc/ValueSet/shc-allowed-question-types (required)

Must SupportTrue
Requirements

Defines the format in which the user is to be prompted for the answer.

Comments

Additional constraints on the type of answer can be conveyed by extensions. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-9, que-8, que-6, que-5, que-3, que-10, que-1a, que-1b, que-1c
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: typ
Questionnaire.item:question.enableWhen
ShortOnly allow data when
Definition

A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.

Cardinality0..*
TypeBackboneElement
Must SupportTrue
ModifierTrue
Requirements

Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history. Also allows conditional display of instructions or groups of questions.

Comments

If multiple repetitions of this extension are present, the interpretation is driven by enableBehavior (either all repetitions must evaluate to true for this item to be enabled, or only one must evaluate to true for the item to be enabled). If the enableWhen.question has multiple answers, the condition evaluates to true if any of the answers for the referenced item match the enableWhen condition. This element is a modifier because if enableWhen is present for an item, "required" is ignored unless one of the enableWhen conditions is met. When an item is disabled, all of its descendants are disabled, regardless of what their own enableWhen logic might evaluate to. If enableWhen logic depends on an item that is disabled, the logic should proceed as though the item is not valued - even if a default value or other value might be retained in memory in the event of the item being re-enabled. In some cases, the comparison between the indicated answer and the specified value may differ only by precision. For example, the enableWhen might be Q1 > 1970, but the answer to Q1 is 1970-10-15. There is not a clear answer as to whether 1970-10-15 should be considered 'greater' than 1970, given that it is an imprecise value. In these indeterminate situations, the form filler has the option of refusing to render the form. If the form is displayed, items where enableWhen is indeterminate SHOULD be treated as enabled with a warning indicating that the questionnaire logic was faulty and it is possible that the item should not be enabled. Questionnaires SHOULD be designed to take into account challenges around varying precision to minimize non-deterministic situations by setting constraints around expected precision, etc.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-12
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • que-7: If the operator is 'exists', the value must be a boolean
    operator = 'exists' implies (answer is boolean)
Mappings
  • rim: n/a
  • rim: N/A - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: visasUnderVillkor(VisasNarLogical)
Questionnaire.item:question.enableWhen.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:question.enableWhen.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:question.enableWhen.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:question.enableWhen.question
ShortThe linkId of question that determines whether item is enabled/disabled
Definition

The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.

Cardinality1..1
Typestring
Must SupportTrue
Comments

If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the "ancestor" axis and then the "preceding" axis and then the "following" axis. If there are multiple items with the same linkId and all are equadistant (e.g. a question references a question that appears in a separate repeating group), that is an error. (Consider using the enableWhenExpression extension to define logic to handle such a situation.)

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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: fragelankId
Questionnaire.item:question.enableWhen.operator
Shortexists | = | != | > | < | >= | <=
Definition

Specifies the criteria by which the question is enabled.

Cardinality1..1
Typecode
Binding

The criteria by which a question is enabled.

QuestionnaireItemOperator (required)

Must SupportTrue
Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: logiskOperator
Questionnaire.item:question.enableWhen.answer[x]
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality1..1
Typeboolean | Coding | date | dateTime | decimal | integer | Quantity | Reference(Resource) | string | time
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
Slicing

Unordered, Open, by $this(Type)

ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: svar
Questionnaire.item:question.enableWhen.answer[x]:answerInteger
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typeinteger
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:question.enableWhen.answer[x]:answerQuantity
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
TypeQuantity
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:question.enableWhen.answer[x]:answerDateTime
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
TypedateTime
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:question.enableWhen.answer[x]:answerTime
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typetime
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:question.enableWhen.answer[x]:answerString
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typestring
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:question.enableWhen.answer[x]:answerCoding
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
TypeCoding
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:question.enableWhen.answer[x]:answerDecimal
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typedecimal
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:question.enableWhen.answer[x]:answerBoolean
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typeboolean
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:question.enableWhen.answer[x]:answerDate
ShortValue for question comparison based on operator
Definition

A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.

Cardinality0..1
Typedate
Must SupportTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: que-7
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 - MIF rather than RIM level
Questionnaire.item:question.enableBehavior
Shortall | any
Definition

Controls how multiple enableWhen values are interpreted - whether all or any must be true.

Cardinality0..1
Typecode
Binding

Controls how multiple enableWhen values are interpreted - whether all or any must be true.

EnableWhenBehavior (required)

Comments

This element must be specified if more than one enableWhen value is provided.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-12
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 - MIF rather than RIM level
Questionnaire.item:question.disabledDisplay
Shorthidden | protected
Definition

Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.

Cardinality0..1
Typecode
Binding

Defines how disabled elements should be rendered

QuestionnaireItemDisabledDisplay (required)

Comments

If not specified, rendering behavior is up to the client. This element is only meaningful if enableWhen or an equivalent extension is present

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 - MIF rather than RIM level
Questionnaire.item:question.required
ShortWhether the item must be included in data results
Definition

An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.

Cardinality1..1
Typeboolean
Must SupportTrue
Comments

If the required item is a question, it must have a direct answer (i.e. an answer to the question itself, not merely answers to child questions) in order for the QuestionnaireResponse to be complete. If the required item is a group, it must have at least one descendant question which has an answer Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true. It also only has meaning if the parent element is present. If a non-required 'group' item contains a 'required' question item, it's completely fine to omit the group (because it's not required) despite it having a required child. Similarly, if an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one descendant item with a populated answer). The value for 'required' may come from the ElementDefinition referred to by .definition.

Meaning when missing

Items are assumed not to be required unless explicitly specified, though extensions may impose additional expectations

ConditionsThe cardinality or value of this element may be affected by these constraints: que-6
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: obligatorisk
Questionnaire.item:question.repeats
ShortWhether the item may repeat
Definition

An indication, if true, that a QuestionnaireResponse for this item may include multiple answers associated with a single instance of this item (for question-type items) or multiple repetitions of the item (for group-type items).

Cardinality0..1
Typeboolean
Requirements

Items may be used to create set of (related) questions that can be repeated to give multiple answers to such a set.

Comments

If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse. When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. "repeat the question") or to simply allow entry/selection of multiple answers for the question (repeat the answers). Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.

The resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.

The value may come from the ElementDefinition referred to by .definition. When repeats=true for a group, it'll be represented with multiple items with the same linkId in the QuestionnaireResponse. For a question, it'll be represented by a single item with that linkId with multiple answers.

Meaning when missing

Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value

ConditionsThe cardinality or value of this element may be affected by these constraints: que-6, que-13
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 - MIF rather than RIM level
Questionnaire.item:question.readOnly
ShortDon't allow human editing
Definition

An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.

Cardinality0..1
Typeboolean
Requirements

Allows certain information to be phrased (and rendered) as a question and an answer, while keeping users from changing it. May also be useful for preventing changes to pre-populated portions of a questionnaire, for calculated values, etc.

Comments

If specified on a 'group', then all items beneath the specified group are read only. For questions, this only marks the answer associated with the specific item read only. Descendant questions are not impacted. The value of readOnly elements can be established by asserting extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-9
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 - MIF rather than RIM level
Questionnaire.item:question.maxLength
ShortNo more than these many characters
Definition

The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.

Cardinality0..1
Typeinteger
Comments

For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-10
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: N/A - MIF rather than RIM level
Questionnaire.item:question.answerConstraint
ShortoptionsOnly | optionsOrType | optionsOrString
Definition

For items that have a defined set of allowed answers (via answerOption or answerValueSet), indicates whether values other than those specified can be selected.

Cardinality0..1
Typecode
Binding

Indicates differnt modes for restricting values when options or valueset are specified

QuestionnaireAnswerConstraint (required)

Requirements

Introduces the ability for questions to have 'other' answers

Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

Meaning when missing

If not specified, answerConstraint is presumed to be 'optionsOnly'

ConditionsThe cardinality or value of this element may be affected by these constraints: que-10, que-14
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 - MIF rather than RIM level
Questionnaire.item:question.answerValueSet
ShortValueSet containing permitted answers
Definition

A reference to a value set containing a list of values representing permitted answers for a question.

Cardinality0..1
Typecanonical(ValueSet)
Must SupportTrue
Comments

LOINC defines many useful value sets for questionnaire responses. See LOINC Answer Lists. The value may come from the ElementDefinition referred to by .definition.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-5, que-4, que-14
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 - MIF rather than RIM level
Questionnaire.item:question.answerOption
ShortPermitted answer
Definition

One of the permitted answers for the question.

Cardinality0..*
TypeBackboneElement
Must SupportTrue
Comments

This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-5, que-4, que-11, que-14
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 - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: har(SvarsalternativLogical)
Questionnaire.item:question.answerOption.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:question.answerOption.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:question.answerOption.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:question.answerOption.value[x]
ShortAnswer value
Definition

A potential answer that's allowed as the answer to this question.

Cardinality1..1
TypeCoding | date | integer | Reference(Resource) | string | time
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
Comments

The data type of the value must agree with the item.type.

Slicing

Unordered, Open, 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
  • rim: N/A - MIF rather than RIM level
  • SHCQuestionnaireToSHCIntygsformularLogical: varde
Questionnaire.item:question.answerOption.value[x]:valueTime
ShortAnswer value
Definition

A potential answer that's allowed as the answer to this question.

Cardinality0..1
Typetime
Must SupportTrue
Comments

The data type of the value must agree with the item.type.

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 - MIF rather than RIM level
Questionnaire.item:question.answerOption.value[x]:valueDate
ShortAnswer value
Definition

A potential answer that's allowed as the answer to this question.

Cardinality0..1
Typedate
Must SupportTrue
Comments

The data type of the value must agree with the item.type.

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 - MIF rather than RIM level
Questionnaire.item:question.answerOption.value[x]:valueInteger
ShortAnswer value
Definition

A potential answer that's allowed as the answer to this question.

Cardinality0..1
Typeinteger
Must SupportTrue
Comments

The data type of the value must agree with the item.type.

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 - MIF rather than RIM level
Questionnaire.item:question.answerOption.value[x]:valueCoding
ShortAnswer value
Definition

A potential answer that's allowed as the answer to this question.

Cardinality0..1
TypeCoding
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
Comments

The data type of the value must agree with the item.type.

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 - MIF rather than RIM level
Questionnaire.item:question.answerOption.value[x]:valueString
ShortAnswer value
Definition

A potential answer that's allowed as the answer to this question.

Cardinality0..1
Typestring
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Must SupportTrue
Comments

The data type of the value must agree with the item.type.

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 - MIF rather than RIM level
Questionnaire.item:question.answerOption.initialSelected
ShortWhether option is selected by default
Definition

Indicates whether the answer value is selected when the list of possible answers is initially shown.

Cardinality0..1
Typeboolean
Meaning when missing

Only selected items explicitly marked to be selected

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 - MIF rather than RIM level
Questionnaire.item:question.initial
ShortInitial value(s) when item is first rendered
Definition

One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.

Cardinality0..*
TypeBackboneElement
Requirements

In some workflows, having defaults saves time.

Comments

The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created. Note that initial values can influence results. The data type of initial.answer[x] must agree with the item.type, and only repeating items can have more then one initial value.

ConditionsThe cardinality or value of this element may be affected by these constraints: que-8, que-13, que-11
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 - MIF rather than RIM level
Questionnaire.item:question.initial.id
ShortUnique 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.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
Questionnaire.item:question.initial.extension
ShortAdditional 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 managable, 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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
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.

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
  • rim: N/A
Questionnaire.item:question.initial.modifierExtension
ShortExtensions 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 managable, 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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
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.

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
Questionnaire.item:question.initial.value[x]
ShortActual value for initializing the question
Definition

The actual value to for an initial answer.

Cardinality1..1
TypeAttachment | boolean | Coding | date | dateTime | decimal | integer | Quantity | Reference(Resource) | string | time | uri
Binding

Allowed values to answer questions.

QuestionnaireAnswerCodes (example)

Comments

The type of the initial value must be consistent with the type of the item.

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 - MIF rather than RIM level
Questionnaire.item:question.item
ShortNested questionnaire items
Definition

Text, questions and other groups to be nested beneath a question or group.

Cardinality0..*
Typesee (item)
Requirements

Reports can consist of complex nested groups.

Comments

There is no specified limit to the depth of nesting. However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.

Mappings
  • rim: .outboundRelationship[typeCode=COMP].target
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="SHCQuestionnaire" />
<url value="https://electronichealth.se/fhir/shc/StructureDefinition/SHCQuestionnaire" />
<version value="0.1" />
<name value="SHCQuestionnaire" />
<status value="draft" />
<description value="This profile contains information about a health certificate form with defined fields and questions intended to be filled in with information about the certificate subject." />
<fhirVersion value="5.0.0" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<uri value="SHCIntygsformularLogical" />
</mapping>
<kind value="resource" />
<abstract value="false" />
<type value="Questionnaire" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Questionnaire" />
<derivation value="constraint" />
<element id="Questionnaire.url">
<path value="Questionnaire.url" />
<short value="Unique URI identifying the questionnaire" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="uri" />
</mapping>
</element>
<element id="Questionnaire.identifier">
<path value="Questionnaire.identifier" />
<short value="The identifier assigned by the issuing body" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="intygsformularid" />
</mapping>
</element>
<element id="Questionnaire.identifier.system">
<path value="Questionnaire.identifier.system" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.identifier.value">
<path value="Questionnaire.identifier.value" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.version">
<path value="Questionnaire.version" />
<short value="Version identifier set by the form’s issuer" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="version" />
</mapping>
</element>
<element id="Questionnaire.title">
<path value="Questionnaire.title" />
<short value="Short, descriptive, user-friendly title for the form" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="intygsformularnamn" />
</mapping>
</element>
<element id="Questionnaire.status">
<path value="Questionnaire.status" />
<short value="The status of the form (e.g., draft, active)" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="intygsformularstatus" />
</mapping>
</element>
<element id="Questionnaire.subjectType">
<path value="Questionnaire.subjectType" />
<short value="The role the subject plays when the certificate is issued (e.g., customer, patient, donor, applicant)" />
<min value="1" />
<max value="1" />
<mustSupport value="true" />
<strength value="required" />
<valueSet value="http://electronichealth.se/fhir/shc/ValueSet/shc-extended-subject-types" />
</binding>
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="typAvIntygsperson" />
</mapping>
</element>
<element id="Questionnaire.publisher">
<path value="Questionnaire.publisher" />
<min value="1" />
</element>
<element id="Questionnaire.description">
<path value="Questionnaire.description" />
<short value="Simple, user-friendly description of the form" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="intygsbeskrivning" />
</mapping>
</element>
<element id="Questionnaire.useContext">
<path value="Questionnaire.useContext" />
<type value="value" />
<path value="code.code" />
</discriminator>
<description value="Slice on useContext based on the code value" />
<ordered value="false" />
<rules value="open" />
</slicing>
<min value="3" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:category">
<path value="Questionnaire.useContext" />
<sliceName value="category" />
<short value="Code for the grouping of questionnaires (e.g., Legal, Care, Health, Sickness)" />
<min value="1" />
<max value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="intygskategori" />
</mapping>
</element>
<element id="Questionnaire.useContext:category.code">
<path value="Questionnaire.useContext.code" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:category.code.system">
<path value="Questionnaire.useContext.code.system" />
<mustSupport value="false" />
</element>
<element id="Questionnaire.useContext:category.code.code">
<path value="Questionnaire.useContext.code.code" />
<min value="1" />
<fixedCode value="topic" />
<mustSupport value="false" />
</element>
<element id="Questionnaire.useContext:category.value[x]">
<path value="Questionnaire.useContext.value[x]" />
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="Questionnaire.useContext:category.value[x]:valueCodeableConcept">
<path value="Questionnaire.useContext.value[x]" />
<sliceName value="valueCodeableConcept" />
<min value="1" />
<code value="CodeableConcept" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding">
<path value="Questionnaire.useContext.value[x].coding" />
<max value="0" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.system">
<path value="Questionnaire.useContext.value[x].coding.system" />
<mustSupport value="false" />
</element>
<element id="Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.code">
<path value="Questionnaire.useContext.value[x].coding.code" />
<mustSupport value="false" />
</element>
<element id="Questionnaire.useContext:category.value[x]:valueCodeableConcept.text">
<path value="Questionnaire.useContext.value[x].text" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:purpose">
<path value="Questionnaire.useContext" />
<sliceName value="purpose" />
<short value="Text description of the purpose for which this certificate is issued" />
<min value="1" />
<max value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="intygsandamal" />
</mapping>
</element>
<element id="Questionnaire.useContext:purpose.code">
<path value="Questionnaire.useContext.code" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:purpose.code.system">
<path value="Questionnaire.useContext.code.system" />
<fixedUri value="https://electronichealth.se/shc/CodeSystem/questionnaire-usage-context-type" />
<mustSupport value="false" />
</element>
<element id="Questionnaire.useContext:purpose.code.code">
<path value="Questionnaire.useContext.code.code" />
<min value="1" />
<fixedCode value="purpose" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:purpose.value[x]">
<path value="Questionnaire.useContext.value[x]" />
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="Questionnaire.useContext:purpose.value[x]:valueCodeableConcept">
<path value="Questionnaire.useContext.value[x]" />
<sliceName value="valueCodeableConcept" />
<min value="1" />
<code value="CodeableConcept" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:purpose.value[x]:valueCodeableConcept.coding">
<path value="Questionnaire.useContext.value[x].coding" />
<max value="0" />
</element>
<element id="Questionnaire.useContext:purpose.value[x]:valueCodeableConcept.text">
<path value="Questionnaire.useContext.value[x].text" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:legislation">
<path value="Questionnaire.useContext" />
<sliceName value="legislation" />
<short value="The legislation on which the questionnaire is based" />
<min value="1" />
<max value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="laghanvisning" />
</mapping>
</element>
<element id="Questionnaire.useContext:legislation.code">
<path value="Questionnaire.useContext.code" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:legislation.code.system">
<path value="Questionnaire.useContext.code.system" />
<fixedUri value="https://electronichealth.se/shc/CodeSystem/questionnaire-usage-context-type" />
<mustSupport value="false" />
</element>
<element id="Questionnaire.useContext:legislation.code.code">
<path value="Questionnaire.useContext.code.code" />
<min value="1" />
<fixedCode value="legislation" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:legislation.value[x]">
<path value="Questionnaire.useContext.value[x]" />
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="Questionnaire.useContext:legislation.value[x]:valueCodeableConcept">
<path value="Questionnaire.useContext.value[x]" />
<sliceName value="valueCodeableConcept" />
<min value="1" />
<code value="CodeableConcept" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding">
<path value="Questionnaire.useContext.value[x].coding" />
<max value="0" />
<mustSupport value="false" />
</element>
<element id="Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.system">
<path value="Questionnaire.useContext.value[x].coding.system" />
<mustSupport value="false" />
</element>
<element id="Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.code">
<path value="Questionnaire.useContext.value[x].coding.code" />
<mustSupport value="false" />
</element>
<element id="Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.text">
<path value="Questionnaire.useContext.value[x].text" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:subjectType">
<path value="Questionnaire.useContext" />
<sliceName value="subjectType" />
<min value="1" />
<max value="1" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.useContext:subjectType.code.system">
<path value="Questionnaire.useContext.code.system" />
<min value="1" />
<fixedUri value="https://electronichealth.se/shc/CodeSystem/questionnaire-usage-context-type" />
</element>
<element id="Questionnaire.useContext:subjectType.code.code">
<path value="Questionnaire.useContext.code.code" />
<min value="1" />
<fixedCode value="subjectType" />
</element>
<element id="Questionnaire.useContext:subjectType.value[x]">
<path value="Questionnaire.useContext.value[x]" />
<code value="CodeableConcept" />
</type>
</element>
<element id="Questionnaire.useContext:subjectType.value[x].coding">
<path value="Questionnaire.useContext.value[x].coding" />
<min value="1" />
<max value="1" />
<strength value="required" />
<valueSet value="http://electronichealth.se/fhir/shc/ValueSet/shc-extended-subject-types" />
</binding>
</element>
<element id="Questionnaire.useContext:subjectType.value[x].coding.code">
<path value="Questionnaire.useContext.value[x].coding.code" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.approvalDate">
<path value="Questionnaire.approvalDate" />
<short value="The time when the form was published" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="publiceringstidpunkt" />
</mapping>
</element>
<element id="Questionnaire.effectivePeriod">
<path value="Questionnaire.effectivePeriod" />
<short value="The period during which the form is valid" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="giltighetsperiod" />
</mapping>
</element>
<element id="Questionnaire.effectivePeriod.start">
<path value="Questionnaire.effectivePeriod.start" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.effectivePeriod.end">
<path value="Questionnaire.effectivePeriod.end" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.item">
<path value="Questionnaire.item" />
<type value="value" />
<path value="type" />
</discriminator>
<description value="Slice on item based on the type value" />
<ordered value="false" />
<rules value="open" />
</slicing>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item.extension:shcSublabelExtension">
<path value="Questionnaire.item.extension" />
<sliceName value="shcSublabelExtension" />
<max value="1" />
<code value="Extension" />
<profile value="https://electronichealth.se/fhir/NDI/StructureDefinition/SHCSublabelExtension" />
</type>
<isModifier value="false" />
</element>
<element id="Questionnaire.item:section">
<path value="Questionnaire.item" />
<sliceName value="section" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="bestarAv(SektionLogical)" />
</mapping>
</element>
<element id="Questionnaire.item:section.extension">
<path value="Questionnaire.item.extension" />
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="Questionnaire.item:section.extension:itemControl">
<path value="Questionnaire.item.extension" />
<sliceName value="itemControl" />
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" />
</type>
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="utformning" />
</mapping>
</element>
<element id="Questionnaire.item:section.linkId">
<path value="Questionnaire.item.linkId" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="lankId" />
</mapping>
</element>
<element id="Questionnaire.item:section.definition">
<path value="Questionnaire.item.definition" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="definition" />
</mapping>
</element>
<element id="Questionnaire.item:section.prefix">
<path value="Questionnaire.item.prefix" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="prefix" />
</mapping>
</element>
<element id="Questionnaire.item:section.text">
<path value="Questionnaire.item.text" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="text" />
</mapping>
</element>
<element id="Questionnaire.item:section.text.extension:markdown">
<path value="Questionnaire.item.text.extension" />
<sliceName value="markdown" />
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/rendering-markdown" />
</type>
<isModifier value="false" />
</element>
<element id="Questionnaire.item:section.type">
<path value="Questionnaire.item.type" />
<fixedCode value="group" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="typ" />
</mapping>
</element>
<element id="Questionnaire.item:section.enableWhen">
<path value="Questionnaire.item.enableWhen" />
<max value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="visasUnderVillkor(VisasNarLogical)" />
</mapping>
</element>
<element id="Questionnaire.item:section.enableWhen.question">
<path value="Questionnaire.item.enableWhen.question" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="fragelankId" />
</mapping>
</element>
<element id="Questionnaire.item:section.enableWhen.operator">
<path value="Questionnaire.item.enableWhen.operator" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="logiskOperator" />
</mapping>
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="svar" />
</mapping>
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]:answerInteger">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerInteger" />
<code value="integer" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]:answerQuantity">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerQuantity" />
<code value="Quantity" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]:answerDateTime">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerDateTime" />
<code value="dateTime" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]:answerTime">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerTime" />
<code value="time" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]:answerString">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerString" />
<code value="string" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]:answerCoding">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerCoding" />
<code value="Coding" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]:answerDecimal">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerDecimal" />
<code value="decimal" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]:answerBoolean">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerBoolean" />
<code value="boolean" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:section.enableWhen.answer[x]:answerDate">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerDate" />
<code value="date" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:section.required">
<path value="Questionnaire.item.required" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="obligatorisk" />
</mapping>
</element>
<element id="Questionnaire.item:informationText">
<path value="Questionnaire.item" />
<sliceName value="informationText" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="bestarAv(InformationstextLogical)" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.extension">
<path value="Questionnaire.item.extension" />
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="Questionnaire.item:informationText.extension:itemControl">
<path value="Questionnaire.item.extension" />
<sliceName value="itemControl" />
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" />
</type>
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="utformning" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.linkId">
<path value="Questionnaire.item.linkId" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="lankId" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.definition">
<path value="Questionnaire.item.definition" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="definition" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.prefix">
<path value="Questionnaire.item.prefix" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="prefix" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.text">
<path value="Questionnaire.item.text" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="text" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.text.extension:markdown">
<path value="Questionnaire.item.text.extension" />
<sliceName value="markdown" />
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/rendering-markdown" />
</type>
<isModifier value="false" />
</element>
<element id="Questionnaire.item:informationText.type">
<path value="Questionnaire.item.type" />
<fixedCode value="display" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="typ" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.enableWhen">
<path value="Questionnaire.item.enableWhen" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="visasUnderVillkor(VisasNarLogical)" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.enableWhen.question">
<path value="Questionnaire.item.enableWhen.question" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="fragelankId" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.enableWhen.operator">
<path value="Questionnaire.item.enableWhen.operator" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="logiskOperator" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="svar" />
</mapping>
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]:answerInteger">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerInteger" />
<code value="integer" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]:answerQuantity">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerQuantity" />
<code value="Quantity" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]:answerDateTime">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerDateTime" />
<code value="dateTime" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]:answerTime">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerTime" />
<code value="time" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]:answerString">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerString" />
<code value="string" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]:answerCoding">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerCoding" />
<code value="Coding" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]:answerDecimal">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerDecimal" />
<code value="decimal" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]:answerBoolean">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerBoolean" />
<code value="boolean" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:informationText.enableWhen.answer[x]:answerDate">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerDate" />
<code value="date" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:informationText.required">
<path value="Questionnaire.item.required" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="obligatorisk" />
</mapping>
</element>
<element id="Questionnaire.item:question">
<path value="Questionnaire.item" />
<sliceName value="question" />
<short value="test" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="bestarAv(FragaLogical)" />
</mapping>
</element>
<element id="Questionnaire.item:question.extension">
<path value="Questionnaire.item.extension" />
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="Questionnaire.item:question.extension:itemControl">
<path value="Questionnaire.item.extension" />
<sliceName value="itemControl" />
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" />
</type>
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="utformning" />
</mapping>
</element>
<element id="Questionnaire.item:question.linkId">
<path value="Questionnaire.item.linkId" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="frage-id" />
</mapping>
</element>
<element id="Questionnaire.item:question.definition">
<path value="Questionnaire.item.definition" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="definition" />
</mapping>
</element>
<element id="Questionnaire.item:question.prefix">
<path value="Questionnaire.item.prefix" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="prefix" />
</mapping>
</element>
<element id="Questionnaire.item:question.text">
<path value="Questionnaire.item.text" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="text" />
</mapping>
</element>
<element id="Questionnaire.item:question.text.extension:markdown">
<path value="Questionnaire.item.text.extension" />
<sliceName value="markdown" />
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/rendering-markdown" />
</type>
<isModifier value="false" />
</element>
<element id="Questionnaire.item:question.type">
<path value="Questionnaire.item.type" />
<mustSupport value="true" />
<strength value="required" />
<valueSet value="http://electronichealth.se/fhir/shc/ValueSet/shc-allowed-question-types" />
</binding>
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="typ" />
</mapping>
</element>
<element id="Questionnaire.item:question.enableWhen">
<path value="Questionnaire.item.enableWhen" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="visasUnderVillkor(VisasNarLogical)" />
</mapping>
</element>
<element id="Questionnaire.item:question.enableWhen.question">
<path value="Questionnaire.item.enableWhen.question" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="fragelankId" />
</mapping>
</element>
<element id="Questionnaire.item:question.enableWhen.operator">
<path value="Questionnaire.item.enableWhen.operator" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="logiskOperator" />
</mapping>
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="svar" />
</mapping>
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]:answerInteger">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerInteger" />
<code value="integer" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]:answerQuantity">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerQuantity" />
<code value="Quantity" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]:answerDateTime">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerDateTime" />
<code value="dateTime" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]:answerTime">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerTime" />
<code value="time" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]:answerString">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerString" />
<code value="string" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]:answerCoding">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerCoding" />
<code value="Coding" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]:answerDecimal">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerDecimal" />
<code value="decimal" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]:answerBoolean">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerBoolean" />
<code value="boolean" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.enableWhen.answer[x]:answerDate">
<path value="Questionnaire.item.enableWhen.answer[x]" />
<sliceName value="answerDate" />
<code value="date" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.required">
<path value="Questionnaire.item.required" />
<min value="1" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="obligatorisk" />
</mapping>
</element>
<element id="Questionnaire.item:question.answerValueSet">
<path value="Questionnaire.item.answerValueSet" />
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.answerOption">
<path value="Questionnaire.item.answerOption" />
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="har(SvarsalternativLogical)" />
</mapping>
</element>
<element id="Questionnaire.item:question.answerOption.value[x]">
<path value="Questionnaire.item.answerOption.value[x]" />
<type value="type" />
<path value="$this" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
<mustSupport value="true" />
<identity value="SHCQuestionnaireToSHCIntygsformularLogical" />
<map value="varde" />
</mapping>
</element>
<element id="Questionnaire.item:question.answerOption.value[x]:valueTime">
<path value="Questionnaire.item.answerOption.value[x]" />
<sliceName value="valueTime" />
<code value="time" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.answerOption.value[x]:valueDate">
<path value="Questionnaire.item.answerOption.value[x]" />
<sliceName value="valueDate" />
<code value="date" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.answerOption.value[x]:valueInteger">
<path value="Questionnaire.item.answerOption.value[x]" />
<sliceName value="valueInteger" />
<code value="integer" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.answerOption.value[x]:valueCoding">
<path value="Questionnaire.item.answerOption.value[x]" />
<sliceName value="valueCoding" />
<code value="Coding" />
</type>
<mustSupport value="true" />
</element>
<element id="Questionnaire.item:question.answerOption.value[x]:valueString">
<path value="Questionnaire.item.answerOption.value[x]" />
<sliceName value="valueString" />
<code value="string" />
</type>
<mustSupport value="true" />
</element>
</differential>
</StructureDefinition>
{
"resourceType": "StructureDefinition",
"id": "SHCQuestionnaire",
"url": "https://electronichealth.se/fhir/shc/StructureDefinition/SHCQuestionnaire",
"version": "0.1",
"name": "SHCQuestionnaire",
"status": "draft",
"description": "This profile contains information about a health certificate form with defined fields and questions intended to be filled in with information about the certificate subject.",
"fhirVersion": "5.0.0",
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"uri": "SHCIntygsformularLogical"
}
],
"kind": "resource",
"abstract": false,
"type": "Questionnaire",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
"derivation": "constraint",
"element": [
{
"id": "Questionnaire.url",
"path": "Questionnaire.url",
"short": "Unique URI identifying the questionnaire",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "uri"
}
]
},
{
"id": "Questionnaire.identifier",
"path": "Questionnaire.identifier",
"short": "The identifier assigned by the issuing body",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "intygsformularid"
}
]
},
{
"id": "Questionnaire.identifier.system",
"path": "Questionnaire.identifier.system",
"min": 1,
"mustSupport": true
},
{
"id": "Questionnaire.identifier.value",
"path": "Questionnaire.identifier.value",
"min": 1,
"mustSupport": true
},
{
"id": "Questionnaire.version",
"path": "Questionnaire.version",
"short": "Version identifier set by the form’s issuer",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "version"
}
]
},
{
"id": "Questionnaire.title",
"path": "Questionnaire.title",
"short": "Short, descriptive, user-friendly title for the form",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "intygsformularnamn"
}
]
},
{
"id": "Questionnaire.status",
"path": "Questionnaire.status",
"short": "The status of the form (e.g., draft, active)",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "intygsformularstatus"
}
]
},
{
"id": "Questionnaire.subjectType",
"path": "Questionnaire.subjectType",
"short": "The role the subject plays when the certificate is issued (e.g., customer, patient, donor, applicant)",
"min": 1,
"max": "1",
"mustSupport": true,
"binding": {
"strength": "required",
"valueSet": "http://electronichealth.se/fhir/shc/ValueSet/shc-extended-subject-types"
},
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "typAvIntygsperson"
}
]
},
{
"id": "Questionnaire.publisher",
"path": "Questionnaire.publisher",
"min": 1
},
{
"id": "Questionnaire.description",
"path": "Questionnaire.description",
"short": "Simple, user-friendly description of the form",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "intygsbeskrivning"
}
]
},
{
"id": "Questionnaire.useContext",
"path": "Questionnaire.useContext",
"slicing": {
{
"type": "value",
"path": "code.code"
}
],
"description": "Slice on useContext based on the code value",
"ordered": false,
"rules": "open"
},
"min": 3,
"mustSupport": true
},
{
"id": "Questionnaire.useContext:category",
"path": "Questionnaire.useContext",
"sliceName": "category",
"short": "Code for the grouping of questionnaires (e.g., Legal, Care, Health, Sickness)",
"min": 1,
"max": "1",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "intygskategori"
}
]
},
{
"id": "Questionnaire.useContext:category.code",
"path": "Questionnaire.useContext.code",
"mustSupport": true
},
{
"id": "Questionnaire.useContext:category.code.system",
"path": "Questionnaire.useContext.code.system",
"mustSupport": false
},
{
"id": "Questionnaire.useContext:category.code.code",
"path": "Questionnaire.useContext.code.code",
"min": 1,
"fixedCode": "topic",
"mustSupport": false
},
{
"id": "Questionnaire.useContext:category.value[x]",
"path": "Questionnaire.useContext.value[x]",
"slicing": {
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "Questionnaire.useContext:category.value[x]:valueCodeableConcept",
"path": "Questionnaire.useContext.value[x]",
"sliceName": "valueCodeableConcept",
"min": 1,
"type": [
{
"code": "CodeableConcept"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding",
"path": "Questionnaire.useContext.value[x].coding",
"max": "0",
"mustSupport": true
},
{
"id": "Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.system",
"path": "Questionnaire.useContext.value[x].coding.system",
"mustSupport": false
},
{
"id": "Questionnaire.useContext:category.value[x]:valueCodeableConcept.coding.code",
"path": "Questionnaire.useContext.value[x].coding.code",
"mustSupport": false
},
{
"id": "Questionnaire.useContext:category.value[x]:valueCodeableConcept.text",
"path": "Questionnaire.useContext.value[x].text",
"min": 1,
"mustSupport": true
},
{
"id": "Questionnaire.useContext:purpose",
"path": "Questionnaire.useContext",
"sliceName": "purpose",
"short": "Text description of the purpose for which this certificate is issued",
"min": 1,
"max": "1",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "intygsandamal"
}
]
},
{
"id": "Questionnaire.useContext:purpose.code",
"path": "Questionnaire.useContext.code",
"mustSupport": true
},
{
"id": "Questionnaire.useContext:purpose.code.system",
"path": "Questionnaire.useContext.code.system",
"fixedUri": "https://electronichealth.se/shc/CodeSystem/questionnaire-usage-context-type",
"mustSupport": false
},
{
"id": "Questionnaire.useContext:purpose.code.code",
"path": "Questionnaire.useContext.code.code",
"min": 1,
"fixedCode": "purpose",
"mustSupport": true
},
{
"id": "Questionnaire.useContext:purpose.value[x]",
"path": "Questionnaire.useContext.value[x]",
"slicing": {
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "Questionnaire.useContext:purpose.value[x]:valueCodeableConcept",
"path": "Questionnaire.useContext.value[x]",
"sliceName": "valueCodeableConcept",
"min": 1,
"type": [
{
"code": "CodeableConcept"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.useContext:purpose.value[x]:valueCodeableConcept.coding",
"path": "Questionnaire.useContext.value[x].coding",
"max": "0"
},
{
"id": "Questionnaire.useContext:purpose.value[x]:valueCodeableConcept.text",
"path": "Questionnaire.useContext.value[x].text",
"min": 1,
"mustSupport": true
},
{
"id": "Questionnaire.useContext:legislation",
"path": "Questionnaire.useContext",
"sliceName": "legislation",
"short": "The legislation on which the questionnaire is based",
"min": 1,
"max": "1",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "laghanvisning"
}
]
},
{
"id": "Questionnaire.useContext:legislation.code",
"path": "Questionnaire.useContext.code",
"mustSupport": true
},
{
"id": "Questionnaire.useContext:legislation.code.system",
"path": "Questionnaire.useContext.code.system",
"fixedUri": "https://electronichealth.se/shc/CodeSystem/questionnaire-usage-context-type",
"mustSupport": false
},
{
"id": "Questionnaire.useContext:legislation.code.code",
"path": "Questionnaire.useContext.code.code",
"min": 1,
"fixedCode": "legislation",
"mustSupport": true
},
{
"id": "Questionnaire.useContext:legislation.value[x]",
"path": "Questionnaire.useContext.value[x]",
"slicing": {
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "Questionnaire.useContext:legislation.value[x]:valueCodeableConcept",
"path": "Questionnaire.useContext.value[x]",
"sliceName": "valueCodeableConcept",
"min": 1,
"type": [
{
"code": "CodeableConcept"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding",
"path": "Questionnaire.useContext.value[x].coding",
"max": "0",
"mustSupport": false
},
{
"id": "Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.system",
"path": "Questionnaire.useContext.value[x].coding.system",
"mustSupport": false
},
{
"id": "Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.coding.code",
"path": "Questionnaire.useContext.value[x].coding.code",
"mustSupport": false
},
{
"id": "Questionnaire.useContext:legislation.value[x]:valueCodeableConcept.text",
"path": "Questionnaire.useContext.value[x].text",
"min": 1,
"mustSupport": true
},
{
"id": "Questionnaire.useContext:subjectType",
"path": "Questionnaire.useContext",
"sliceName": "subjectType",
"min": 1,
"max": "1",
"mustSupport": true
},
{
"id": "Questionnaire.useContext:subjectType.code.system",
"path": "Questionnaire.useContext.code.system",
"min": 1,
"fixedUri": "https://electronichealth.se/shc/CodeSystem/questionnaire-usage-context-type"
},
{
"id": "Questionnaire.useContext:subjectType.code.code",
"path": "Questionnaire.useContext.code.code",
"min": 1,
"fixedCode": "subjectType"
},
{
"id": "Questionnaire.useContext:subjectType.value[x]",
"path": "Questionnaire.useContext.value[x]",
"type": [
{
"code": "CodeableConcept"
}
]
},
{
"id": "Questionnaire.useContext:subjectType.value[x].coding",
"path": "Questionnaire.useContext.value[x].coding",
"min": 1,
"max": "1",
"binding": {
"strength": "required",
"valueSet": "http://electronichealth.se/fhir/shc/ValueSet/shc-extended-subject-types"
}
},
{
"id": "Questionnaire.useContext:subjectType.value[x].coding.code",
"path": "Questionnaire.useContext.value[x].coding.code",
"min": 1,
"mustSupport": true
},
{
"id": "Questionnaire.approvalDate",
"path": "Questionnaire.approvalDate",
"short": "The time when the form was published",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "publiceringstidpunkt"
}
]
},
{
"id": "Questionnaire.effectivePeriod",
"path": "Questionnaire.effectivePeriod",
"short": "The period during which the form is valid",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "giltighetsperiod"
}
]
},
{
"id": "Questionnaire.effectivePeriod.start",
"path": "Questionnaire.effectivePeriod.start",
"min": 1,
"mustSupport": true
},
{
"id": "Questionnaire.effectivePeriod.end",
"path": "Questionnaire.effectivePeriod.end",
"mustSupport": true
},
{
"id": "Questionnaire.item",
"path": "Questionnaire.item",
"slicing": {
{
"type": "value",
"path": "type"
}
],
"description": "Slice on item based on the type value",
"ordered": false,
"rules": "open"
},
"mustSupport": true
},
{
"id": "Questionnaire.item.extension:shcSublabelExtension",
"path": "Questionnaire.item.extension",
"sliceName": "shcSublabelExtension",
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"https://electronichealth.se/fhir/NDI/StructureDefinition/SHCSublabelExtension"
]
}
],
"isModifier": false
},
{
"id": "Questionnaire.item:section",
"path": "Questionnaire.item",
"sliceName": "section",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "bestarAv(SektionLogical)"
}
]
},
{
"id": "Questionnaire.item:section.extension",
"path": "Questionnaire.item.extension",
"slicing": {
"ordered": false,
"rules": "open"
}
},
{
"id": "Questionnaire.item:section.extension:itemControl",
"path": "Questionnaire.item.extension",
"sliceName": "itemControl",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"
]
}
],
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "utformning"
}
]
},
{
"id": "Questionnaire.item:section.linkId",
"path": "Questionnaire.item.linkId",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "lankId"
}
]
},
{
"id": "Questionnaire.item:section.definition",
"path": "Questionnaire.item.definition",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "definition"
}
]
},
{
"id": "Questionnaire.item:section.prefix",
"path": "Questionnaire.item.prefix",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "prefix"
}
]
},
{
"id": "Questionnaire.item:section.text",
"path": "Questionnaire.item.text",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "text"
}
]
},
{
"id": "Questionnaire.item:section.text.extension:markdown",
"path": "Questionnaire.item.text.extension",
"sliceName": "markdown",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/rendering-markdown"
]
}
],
"isModifier": false
},
{
"id": "Questionnaire.item:section.type",
"path": "Questionnaire.item.type",
"fixedCode": "group",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "typ"
}
]
},
{
"id": "Questionnaire.item:section.enableWhen",
"path": "Questionnaire.item.enableWhen",
"max": "1",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "visasUnderVillkor(VisasNarLogical)"
}
]
},
{
"id": "Questionnaire.item:section.enableWhen.question",
"path": "Questionnaire.item.enableWhen.question",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "fragelankId"
}
]
},
{
"id": "Questionnaire.item:section.enableWhen.operator",
"path": "Questionnaire.item.enableWhen.operator",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "logiskOperator"
}
]
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]",
"path": "Questionnaire.item.enableWhen.answer[x]",
"slicing": {
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "open"
},
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "svar"
}
]
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]:answerInteger",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerInteger",
"type": [
{
"code": "integer"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]:answerQuantity",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerQuantity",
"type": [
{
"code": "Quantity"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]:answerDateTime",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerDateTime",
"type": [
{
"code": "dateTime"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]:answerTime",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerTime",
"type": [
{
"code": "time"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]:answerString",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerString",
"type": [
{
"code": "string"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]:answerCoding",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerCoding",
"type": [
{
"code": "Coding"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]:answerDecimal",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerDecimal",
"type": [
{
"code": "decimal"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]:answerBoolean",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerBoolean",
"type": [
{
"code": "boolean"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:section.enableWhen.answer[x]:answerDate",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerDate",
"type": [
{
"code": "date"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:section.required",
"path": "Questionnaire.item.required",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "obligatorisk"
}
]
},
{
"id": "Questionnaire.item:informationText",
"path": "Questionnaire.item",
"sliceName": "informationText",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "bestarAv(InformationstextLogical)"
}
]
},
{
"id": "Questionnaire.item:informationText.extension",
"path": "Questionnaire.item.extension",
"slicing": {
"ordered": false,
"rules": "open"
}
},
{
"id": "Questionnaire.item:informationText.extension:itemControl",
"path": "Questionnaire.item.extension",
"sliceName": "itemControl",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"
]
}
],
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "utformning"
}
]
},
{
"id": "Questionnaire.item:informationText.linkId",
"path": "Questionnaire.item.linkId",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "lankId"
}
]
},
{
"id": "Questionnaire.item:informationText.definition",
"path": "Questionnaire.item.definition",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "definition"
}
]
},
{
"id": "Questionnaire.item:informationText.prefix",
"path": "Questionnaire.item.prefix",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "prefix"
}
]
},
{
"id": "Questionnaire.item:informationText.text",
"path": "Questionnaire.item.text",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "text"
}
]
},
{
"id": "Questionnaire.item:informationText.text.extension:markdown",
"path": "Questionnaire.item.text.extension",
"sliceName": "markdown",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/rendering-markdown"
]
}
],
"isModifier": false
},
{
"id": "Questionnaire.item:informationText.type",
"path": "Questionnaire.item.type",
"fixedCode": "display",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "typ"
}
]
},
{
"id": "Questionnaire.item:informationText.enableWhen",
"path": "Questionnaire.item.enableWhen",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "visasUnderVillkor(VisasNarLogical)"
}
]
},
{
"id": "Questionnaire.item:informationText.enableWhen.question",
"path": "Questionnaire.item.enableWhen.question",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "fragelankId"
}
]
},
{
"id": "Questionnaire.item:informationText.enableWhen.operator",
"path": "Questionnaire.item.enableWhen.operator",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "logiskOperator"
}
]
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]",
"path": "Questionnaire.item.enableWhen.answer[x]",
"slicing": {
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "open"
},
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "svar"
}
]
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]:answerInteger",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerInteger",
"type": [
{
"code": "integer"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]:answerQuantity",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerQuantity",
"type": [
{
"code": "Quantity"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]:answerDateTime",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerDateTime",
"type": [
{
"code": "dateTime"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]:answerTime",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerTime",
"type": [
{
"code": "time"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]:answerString",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerString",
"type": [
{
"code": "string"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]:answerCoding",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerCoding",
"type": [
{
"code": "Coding"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]:answerDecimal",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerDecimal",
"type": [
{
"code": "decimal"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]:answerBoolean",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerBoolean",
"type": [
{
"code": "boolean"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:informationText.enableWhen.answer[x]:answerDate",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerDate",
"type": [
{
"code": "date"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:informationText.required",
"path": "Questionnaire.item.required",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "obligatorisk"
}
]
},
{
"id": "Questionnaire.item:question",
"path": "Questionnaire.item",
"sliceName": "question",
"short": "test",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "bestarAv(FragaLogical)"
}
]
},
{
"id": "Questionnaire.item:question.extension",
"path": "Questionnaire.item.extension",
"slicing": {
"ordered": false,
"rules": "open"
}
},
{
"id": "Questionnaire.item:question.extension:itemControl",
"path": "Questionnaire.item.extension",
"sliceName": "itemControl",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"
]
}
],
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "utformning"
}
]
},
{
"id": "Questionnaire.item:question.linkId",
"path": "Questionnaire.item.linkId",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "frage-id"
}
]
},
{
"id": "Questionnaire.item:question.definition",
"path": "Questionnaire.item.definition",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "definition"
}
]
},
{
"id": "Questionnaire.item:question.prefix",
"path": "Questionnaire.item.prefix",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "prefix"
}
]
},
{
"id": "Questionnaire.item:question.text",
"path": "Questionnaire.item.text",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "text"
}
]
},
{
"id": "Questionnaire.item:question.text.extension:markdown",
"path": "Questionnaire.item.text.extension",
"sliceName": "markdown",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/rendering-markdown"
]
}
],
"isModifier": false
},
{
"id": "Questionnaire.item:question.type",
"path": "Questionnaire.item.type",
"mustSupport": true,
"binding": {
"strength": "required",
"valueSet": "http://electronichealth.se/fhir/shc/ValueSet/shc-allowed-question-types"
},
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "typ"
}
]
},
{
"id": "Questionnaire.item:question.enableWhen",
"path": "Questionnaire.item.enableWhen",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "visasUnderVillkor(VisasNarLogical)"
}
]
},
{
"id": "Questionnaire.item:question.enableWhen.question",
"path": "Questionnaire.item.enableWhen.question",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "fragelankId"
}
]
},
{
"id": "Questionnaire.item:question.enableWhen.operator",
"path": "Questionnaire.item.enableWhen.operator",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "logiskOperator"
}
]
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]",
"path": "Questionnaire.item.enableWhen.answer[x]",
"slicing": {
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "open"
},
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "svar"
}
]
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]:answerInteger",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerInteger",
"type": [
{
"code": "integer"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]:answerQuantity",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerQuantity",
"type": [
{
"code": "Quantity"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]:answerDateTime",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerDateTime",
"type": [
{
"code": "dateTime"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]:answerTime",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerTime",
"type": [
{
"code": "time"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]:answerString",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerString",
"type": [
{
"code": "string"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]:answerCoding",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerCoding",
"type": [
{
"code": "Coding"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]:answerDecimal",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerDecimal",
"type": [
{
"code": "decimal"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]:answerBoolean",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerBoolean",
"type": [
{
"code": "boolean"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.enableWhen.answer[x]:answerDate",
"path": "Questionnaire.item.enableWhen.answer[x]",
"sliceName": "answerDate",
"type": [
{
"code": "date"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.required",
"path": "Questionnaire.item.required",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "obligatorisk"
}
]
},
{
"id": "Questionnaire.item:question.answerValueSet",
"path": "Questionnaire.item.answerValueSet",
"mustSupport": true
},
{
"id": "Questionnaire.item:question.answerOption",
"path": "Questionnaire.item.answerOption",
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "har(SvarsalternativLogical)"
}
]
},
{
"id": "Questionnaire.item:question.answerOption.value[x]",
"path": "Questionnaire.item.answerOption.value[x]",
"slicing": {
{
"type": "type",
"path": "$this"
}
],
"ordered": false,
"rules": "open"
},
"mustSupport": true,
"mapping": [
{
"identity": "SHCQuestionnaireToSHCIntygsformularLogical",
"map": "varde"
}
]
},
{
"id": "Questionnaire.item:question.answerOption.value[x]:valueTime",
"path": "Questionnaire.item.answerOption.value[x]",
"sliceName": "valueTime",
"type": [
{
"code": "time"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.answerOption.value[x]:valueDate",
"path": "Questionnaire.item.answerOption.value[x]",
"sliceName": "valueDate",
"type": [
{
"code": "date"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.answerOption.value[x]:valueInteger",
"path": "Questionnaire.item.answerOption.value[x]",
"sliceName": "valueInteger",
"type": [
{
"code": "integer"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.answerOption.value[x]:valueCoding",
"path": "Questionnaire.item.answerOption.value[x]",
"sliceName": "valueCoding",
"type": [
{
"code": "Coding"
}
],
"mustSupport": true
},
{
"id": "Questionnaire.item:question.answerOption.value[x]:valueString",
"path": "Questionnaire.item.answerOption.value[x]",
"sliceName": "valueString",
"type": [
{
"code": "string"
}
],
"mustSupport": true
}
]
}
}

Details

The red must-support flag ("S") indicates that the element is expected in some use cases, and a missing flag that the element is never used.

Examples

Example 1: Standard Questions

Some base information common to all health certificates can be provided in the health certificate forms using standard questions.

To illustrate this, below is an example questionnaire created with only three items - the standard questions.

The items (standard questions) pertain information about the practitioner and the source of the data in the response.

Questionnaire
{
"resourceType": "Questionnaire",
"id": "efbc6582-0287-4a2a-d090-fa7345682de5",
"meta": {
"profile": [
"http://electronichealth.se/fhir/smc/StructureDefinition/SMCQuestionnaire"
],
"tag": [
{
"system": "urn:ietf:bcp:47",
"code": "sv-SE",
"display": "Svenska"
}
]
},
"language": "sv-SE",
"url": "Questionnaire/efbc6582-0287-4a2a-d090-fa7345682de5",
"identifier": [
{
"system": "http://electronichealth.se/identifier/questionnaire",
"value": "1234"
}
],
"version": "0.1",
"name": "Standardfrågor",
"title": "Standardfrågor",
"status": "draft",
"subjectType": [
"Patient"
],
"publisher": "EHM",
"contact": [
{
"name": "https://www.ehalsomyndigheten.se"
}
],
"description": "Formulär med standardfrågor som alla formulär ska inledas med.",
"useContext": [
{
"code": {
"system": "http://terminology.hl7.org/CodeSystem/usage-context-type",
"code": "workflow"
},
"valueCodeableConcept": {
"coding": [
{
"system": "http://electronichealth.se/CodeSystem/questionnaire-category",
"code": "base"
}
]
}
},
{
"code": {
"system": "http://electronichealth.se/CodeSystem/questionnaire-usage-type",
"code": "legislation"
},
"valueCodeableConcept": {
"coding": [
{
"system": "http://electronichealth.se/CodeSystem/XXX",
"code": "XXX"
}
]
}
}
],
"approvalDate": "2025-07-29",
"effectivePeriod": {
"start": "2025-09-01"
},
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "step"
}
]
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemExtractionContext",
"valueExpression": {
"language": "text/fhirpath",
"expression": "Practitioner"
}
}
],
"linkId": "ae06a91d-69ba-4067-8ea0-4b8decc19af9",
"text": "Styrkande av identitet",
"type": "group",
"required": false,
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "radio-button"
}
]
}
}
],
"linkId": "9e3704af-65ab-4e5f-8476-e8e266b345cd",
"text": "Identitet har styrkts genom",
"type": "choice",
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "45410283-d184-4187-ea57-f66026a33e17",
"system": "urn:uuid:0f6dcd2b-de9d-4ab0-bfaf-58eeedaad63e",
"code": "1",
"display": "giltig ID-handling"
}
},
{
"valueCoding": {
"id": "e755c508-4f2b-43a6-f18a-24d694b12ca1",
"system": "urn:uuid:0f6dcd2b-de9d-4ab0-bfaf-58eeedaad63e",
"code": "2",
"display": "personlig kännedom"
}
},
{
"valueCoding": {
"id": "7a303c1a-7705-4081-ba65-8ff662f439bb",
"system": "urn:uuid:0f6dcd2b-de9d-4ab0-bfaf-58eeedaad63e",
"code": "3",
"display": "intygande av medföljande vuxen som visat giltig ID-handling"
}
},
{
"valueCoding": {
"id": "f6feff0c-591f-4f2b-e5bd-d7f9feb86c05",
"system": "urn:uuid:0f6dcd2b-de9d-4ab0-bfaf-58eeedaad63e",
"code": "4",
"display": "ej kontrollerbart"
}
},
{
"valueCoding": {
"id": "c10f4c4d-ef9b-44a7-aa97-7b0dab7e52e6",
"system": "urn:uuid:0f6dcd2b-de9d-4ab0-bfaf-58eeedaad63e",
"code": "5",
"display": "befintligt signerat ID-band"
}
}
]
}
]
},
{
"linkId": "75076d97-d07b-4fc8-876d-fbaf2c41a201",
"text": "Utfärdarens kompetens",
"type": "group",
"required": false,
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "drop-down"
}
]
}
},
{
"url": "http://helsenorge.no/fhir/StructureDefinition/sdf-sublabel",
"valueMarkdown": "Ett intyg ska innehålla uppgifter om utfärdarens kompetens"
}
],
"linkId": "f2140040-fd46-42db-8854-6632bfe2d32d",
"text": "Yrke",
"type": "choice",
"required": true,
"answerOption": [
{
"valueCoding": {
"id": "7ae3e14e-c5e8-4d3c-9cc3-724b701ea898",
"system": "urn:uuid:142b4cf1-e70b-4584-9c96-56f99960cabe",
"code": "46255001",
"display": "apotekare"
}
},
{
"valueCoding": {
"id": "e57f8df2-cefc-403f-f9b2-629a27f0a223",
"system": "urn:uuid:142b4cf1-e70b-4584-9c96-56f99960cabe",
"code": "309453006",
"display": "barnmorska"
}
},
{
"valueCoding": {
"id": "5539aec6-d531-4bb4-8b2d-4a589ed7db7f",
"system": "urn:uuid:142b4cf1-e70b-4584-9c96-56f99960cabe",
"code": "68081000052105",
"display": "läkare"
}
},
{
"valueCoding": {
"id": "3e08e443-f4ae-4875-8144-4db2f245e0fd",
"system": "urn:uuid:142b4cf1-e70b-4584-9c96-56f99960cabe",
"code": "159026005",
"display": "logoped"
}
},
{
"valueCoding": {
"id": "0953b5a7-1356-419e-8477-4e6c7338e256",
"system": "urn:uuid:142b4cf1-e70b-4584-9c96-56f99960cabe",
"code": "768822006",
"display": "rehabkoordinator"
}
}
]
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "drop-down"
}
]
}
},
{
"url": "http://helsenorge.no/fhir/StructureDefinition/sdf-sublabel",
"valueMarkdown": "Välj formell kompetens eller beskriv reell kompetens"
}
],
"linkId": "9fe1330a-39a2-46c5-d5dd-096b8d631f67",
"text": "Formell eller reell kompetens",
"type": "choice",
"enableWhen": [
{
"question": "f2140040-fd46-42db-8854-6632bfe2d32d",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:142b4cf1-e70b-4584-9c96-56f99960cabe",
"code": "68081000052105"
}
}
],
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "8d698273-a23b-4a87-81cc-699b8ac0a2ea",
"system": "urn:uuid:4c014a7e-61d1-47e7-8007-0f6cf2bf4670",
"code": "68021000052109",
"display": "specialistläkare inom beroendemedicin"
}
},
{
"valueCoding": {
"id": "fe3ffdca-515f-46aa-8c64-baee6f1bfbcf",
"system": "urn:uuid:4c014a7e-61d1-47e7-8007-0f6cf2bf4670",
"code": "67861000052109",
"display": "specialistläkare inom arbets- och miljömedicin"
}
},
{
"valueCoding": {
"id": "516ab18b-4042-48b8-92b2-516e0edb9e6e",
"system": "urn:uuid:4c014a7e-61d1-47e7-8007-0f6cf2bf4670",
"code": "68011000052101",
"display": "specialistläkare inom arbetsmedicin"
}
},
{
"valueCoding": {
"id": "7dff6707-3442-4699-846f-3db09203535e",
"system": "urn:uuid:4c014a7e-61d1-47e7-8007-0f6cf2bf4670",
"code": "67891000052101",
"display": "specialistläkare inom rättsmedicin"
}
}
],
"item": [
{
"linkId": "f4a7f3a4-20ed-467e-d75a-07ae54a91fa9",
"text": "Reell kompetens",
"type": "string",
"enableWhen": [
{
"question": "9fe1330a-39a2-46c5-d5dd-096b8d631f67",
"operator": "exists",
"answerBoolean": false
}
],
"required": false
}
]
}
]
},
{
"linkId": "7c71e7a6-56db-49c6-8d17-09ec5f8021c1",
"text": "Underlag för intyget",
"type": "group",
"required": false,
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "check-box"
}
]
}
}
],
"linkId": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"text": "Intyget baseras på",
"type": "choice",
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "30810851-13c7-43cd-868b-960374464c50",
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "uppgift-från-undersökning",
"display": "uppgift från undersökning"
}
},
{
"valueCoding": {
"id": "5436d6fa-e643-4a8d-e131-9ba1901de797",
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "uppgift-från-journalhandling",
"display": "uppgift ur journalhandling"
}
},
{
"valueCoding": {
"id": "91253e57-6037-4abb-811d-ebce2180d9cf",
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "uppgift-ur-annan-handling",
"display": "uppgift ur annan handling"
}
},
{
"valueCoding": {
"id": "b820ae2e-9d12-446b-8233-aea1598916ef",
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "övrig-uppgift",
"display": "övrig uppgift"
}
}
],
"item": [
{
"linkId": "b28255e3-9a67-4893-f70e-ff4ce27c6391",
"text": "Datum för undersökning",
"type": "date",
"enableWhen": [
{
"question": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "uppgift-från-undersökning"
}
}
],
"required": false,
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "radio-button"
}
]
}
}
],
"linkId": "9779cd07-c731-43c9-8bda-1503c6c718ad",
"text": "Kontaktsätt för undersökning",
"type": "choice",
"enableWhen": [
{
"question": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "uppgift-från-undersökning"
}
}
],
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "19b1fc1a-26d6-4e3c-891c-319ef02020cb",
"system": "urn:uuid:595a8cd7-90fe-4d7c-8ecf-1d51ddba1b25",
"code": "fysiskt-vårdmöte",
"display": "fysiskt vårdmöte"
}
},
{
"valueCoding": {
"id": "d1f9bc6e-08da-42a3-8673-11302ab27b6f",
"system": "urn:uuid:595a8cd7-90fe-4d7c-8ecf-1d51ddba1b25",
"code": "digitalt-vårdmöte",
"display": "digitalt vårdmöte"
}
}
]
},
{
"linkId": "ef024018-ec62-4890-8b3e-30f162084a3c",
"text": "Uppgiftslämnare undersökning",
"type": "choice",
"enableWhen": [
{
"question": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "uppgift-från-undersökning"
}
}
],
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "34000f5e-a765-4244-c761-0a66fc197b11",
"system": "urn:uuid:fbfaaf87-60e0-4c2d-8f75-086d0492e1b8",
"code": "förälder",
"display": "förälder"
}
},
{
"valueCoding": {
"id": "cf30010d-1dfd-424a-bf22-8439a0f42362",
"system": "urn:uuid:fbfaaf87-60e0-4c2d-8f75-086d0492e1b8",
"code": "annan-person",
"display": "annan person"
}
},
{
"valueCoding": {
"id": "d5653302-8ef5-41e2-ae39-c375bed770ae",
"system": "urn:uuid:fbfaaf87-60e0-4c2d-8f75-086d0492e1b8",
"code": "hälso--och-sjukvårdspersonal",
"display": "hälso- och sjukvårdspersonal"
}
}
],
"item": [
{
"extension": [
{
"url": "http://helsenorge.no/fhir/StructureDefinition/sdf-sublabel",
"valueMarkdown": "Ange vilken relation uppgiftslämnaren har till intygspersonen"
}
],
"linkId": "a4df8ecc-fc98-4dc5-865b-2d535908ed7c",
"text": "Beskriv relation",
"type": "string",
"enableWhen": [
{
"question": "ef024018-ec62-4890-8b3e-30f162084a3c",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:fbfaaf87-60e0-4c2d-8f75-086d0492e1b8",
"code": "annan-person"
}
},
{
"question": "ef024018-ec62-4890-8b3e-30f162084a3c",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:fbfaaf87-60e0-4c2d-8f75-086d0492e1b8",
"code": "hälso--och-sjukvårdspersonal"
}
}
],
"required": false
}
]
}
]
},
{
"linkId": "a77ebb60-9fe4-45ad-8948-242f4705a034",
"text": "Datum för journalhandling",
"type": "date",
"enableWhen": [
{
"question": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "uppgift-från-journalhandling"
}
}
],
"required": false
},
{
"linkId": "0e00e3b7-0481-4ec3-8d38-6713c052dfce",
"text": "Datum för annan handling",
"type": "date",
"enableWhen": [
{
"question": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "uppgift-ur-annan-handling"
}
}
],
"required": false,
"item": [
{
"extension": [
{
"url": "http://helsenorge.no/fhir/StructureDefinition/sdf-sublabel",
"valueMarkdown": "Ange organisation"
}
],
"linkId": "707ed2a3-f4bf-4a87-84b3-b58d624667a6",
"text": "Uppgiftslämnare annan handling",
"type": "string",
"enableWhen": [
{
"question": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "uppgift-ur-annan-handling"
}
}
],
"required": false
}
]
},
{
"linkId": "5511c6f0-4d51-4909-a18d-edb6cdeaa01a",
"text": "Datum för övrig uppgift",
"type": "date",
"enableWhen": [
{
"question": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "övrig-uppgift"
}
}
],
"required": false,
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "radio-button"
}
]
}
}
],
"linkId": "67eba3cf-14c2-48ca-883e-907fc702d754",
"text": "Kontaktsätt för övrig uppgift",
"type": "choice",
"enableWhen": [
{
"question": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "övrig-uppgift"
}
}
],
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "47bcf019-cb5a-4581-9adf-dd4ef409526c",
"system": "urn:uuid:153258c9-9079-4719-8925-44124b00c4b8",
"code": "telefon",
"display": "telefon"
}
},
{
"valueCoding": {
"id": "7b089acb-646b-434a-f8c0-8393ec390ae8",
"system": "urn:uuid:153258c9-9079-4719-8925-44124b00c4b8",
"code": "brev",
"display": "chatt"
}
},
{
"valueCoding": {
"id": "09c4d9f4-9a4d-431a-89a3-c21983393cbf",
"system": "urn:uuid:153258c9-9079-4719-8925-44124b00c4b8",
"code": "brev-eller-mail",
"display": "brev eller mail"
}
}
]
},
{
"linkId": "b86ce054-6c96-4419-88c8-ed85fc2835c2",
"text": "Uppgiftslämnare övrig uppgift",
"type": "choice",
"enableWhen": [
{
"question": "63299b0f-2208-486b-b9f1-a7de36b9b34f",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:63d36c6a-3e69-46bf-f7ef-935ba94873d5",
"code": "övrig-uppgift"
}
}
],
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "bb474934-677a-4ebb-8563-2a6b70bfc128",
"system": "urn:uuid:56a3863c-1e23-4514-812e-1a2771e07a2a",
"code": "förälder",
"display": "förälder"
}
},
{
"valueCoding": {
"id": "fcf10efc-c6c5-4b89-8300-9c871b84a2e1",
"system": "urn:uuid:56a3863c-1e23-4514-812e-1a2771e07a2a",
"code": "syskon",
"display": "syskon"
}
},
{
"valueCoding": {
"id": "518355b7-207b-4a80-8d53-a0c6807d1b4b",
"system": "urn:uuid:56a3863c-1e23-4514-812e-1a2771e07a2a",
"code": "annat",
"display": "annan person"
}
}
],
"item": [
{
"extension": [
{
"url": "http://helsenorge.no/fhir/StructureDefinition/sdf-sublabel",
"valueMarkdown": "Ange vilken relation uppgiftslämnaren har till intygspersonen"
}
],
"linkId": "e416b0e0-eb45-4523-861c-1b88c454a029",
"text": "Beskriv relation",
"type": "string",
"enableWhen": [
{
"question": "b86ce054-6c96-4419-88c8-ed85fc2835c2",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:56a3863c-1e23-4514-812e-1a2771e07a2a",
"code": "annat"
}
}
],
"required": false
}
]
}
]
}
]
}
]
}
]
}

Example 2: Questionnaire "Läkarintyg för sjukpenning"

The following Questionnaire example represents the current version of "Läkarintyg för sjukpenning" on a FHIR format.

Questionnaire
{
"resourceType": "Questionnaire",
"id": "cd0727c9-8032-430b-8061-a4141c6bbb1c",
"meta": {
"profile": [
"http://electronichealth.se/fhir/shc/StructureDefinition/SHCQuestionnaire"
],
"security": [
{
"system": "urn:oid:2.16.578.1.12.4.1.1.7618",
"code": "3",
"display": "Helsehjelp (Full)"
}
],
"tag": [
{
"system": "urn:ietf:bcp:47",
"code": "sv-SE",
"display": "Svenska"
}
]
},
"language": "sv-SE",
"extension": [
{
"url": "http://ehelse.no/fhir/StructureDefinition/sdf-generatepdf",
"valueBoolean": false
}
],
"url": "Questionnaire/cd0727c9-8032-430b-8061-a4141c6bbb1c",
"version": "1.0",
"name": "FK7804",
"title": "Läkarintyg för sjukpenning",
"status": "active",
"subjectType": [
"Patient"
],
"publisher": "Försäkringskassan",
"contact": [
{
"name": "https://www.forsakringskassan.se"
}
],
"useContext": [
{
"code": {
"system": "http://terminology.hl7.org/CodeSystem/usage-context-type",
"code": "workflow"
},
"valueCodeableConcept": {
"coding": [
{
"system": "http://electronichealth.se/CodeSystem/questionnaire-category",
"code": "base",
"display": "Läkarintyg för sjukpenning"
}
]
}
},
{
"code": {
"system": "http://electronichealth.se/CodeSystem/questionnaire-usage-type",
"code": "legislation"
},
"valueCodeableConcept": {
"text": "Socialförsäkringsbalken (SFB, 2010:110)"
}
},
{
"code": {
"code": "purpose"
},
"valueCodeableConcept": {
"text": "Sjukpenning kan betalas ut om patientens arbetsförmåga är nedsatt på grund av sjukdom. Detta intyg används när patienten ska ansöka om sjukpenning efter att läkaren har bedömt att arbetsförmågan är nedsatt på grund av sjukdom och att det finns ett sjukskrivningsbehov. I intyget efterfrågas information som Försäkringskassan behöver i handläggningen av ett sjukpenningärende."
}
},
{
"code": {
"code": "category"
},
"valueCodeableConcept": {
"text": "Sjukintyg*"
}
}
],
"copyright": "Försäkringskassan",
"effectivePeriod": {
"start": "2025-12-01T00:00:00+01:00"
},
"item": [
{
"linkId": "46c0b0e2-db59-4f35-bcbd-59ccf6915c44",
"text": "Smittbärarpenning",
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/rendering-markdown",
"valueMarkdown": "**Smittbärarpenning**"
}
]
},
"type": "group",
"required": false,
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "help"
}
]
}
}
],
"linkId": "63254316-323a-438a-863a-02f9c5a89d9f",
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/rendering-markdown",
"valueMarkdown": "hjälptext"
}
]
},
"type": "text",
"required": false,
"repeats": false,
"readOnly": true,
"maxLength": 250
},
{
"linkId": "087d943f-3712-41d1-887c-d9b64b98ad40",
"text": "Förhållningsregler enligt smittskyddslagen på grund av smitta.",
"type": "boolean",
"required": false
}
]
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "radio-button"
}
]
}
}
],
"linkId": "dd6f5852-91fc-420d-8c5f-a748fc691d6c",
"text": "I relation till vilken sysselsättning bedömer du arbetsförmågan?",
"type": "choice",
"enableWhen": [
{
"question": "087d943f-3712-41d1-887c-d9b64b98ad40",
"operator": "=",
"answerBoolean": false
}
],
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "e1042b17-b8f8-45cd-acc4-681daf1e459e",
"system": "urn:uuid:8685a164-f6ea-4106-f716-b2ced6cceb4b",
"code": "nuvarande-arbete",
"display": "Nuvarande arbete"
}
},
{
"valueCoding": {
"id": "f72e7e78-b5c2-454b-ae94-c78176b2300c",
"system": "urn:uuid:8685a164-f6ea-4106-f716-b2ced6cceb4b",
"code": "arbetssökande",
"display": "Arbetssökande"
}
},
{
"valueCoding": {
"id": "1fa33398-5d21-46ae-c3fa-427dd244bd9d",
"system": "urn:uuid:8685a164-f6ea-4106-f716-b2ced6cceb4b",
"code": "föräldraledighet",
"display": "Föräldraledighet"
}
},
{
"valueCoding": {
"id": "74591947-20f7-4680-91d9-6a87f13c5f8f",
"system": "urn:uuid:8685a164-f6ea-4106-f716-b2ced6cceb4b",
"code": "studier",
"display": "Studier"
}
}
],
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "help"
}
]
}
}
],
"linkId": "1b0e1885-0a8d-4ef2-839c-0ecb74a186f6",
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/rendering-markdown",
"valueMarkdown": "hjälptext"
}
]
},
"type": "text",
"required": false,
"repeats": false,
"readOnly": true,
"maxLength": 250
}
]
},
{
"linkId": "155b0a9a-d6e4-4f22-a57b-6c03c153bbdf",
"text": "Ange yrke och arbetsuppgifter",
"type": "string",
"enableWhen": [
{
"question": "087d943f-3712-41d1-887c-d9b64b98ad40",
"operator": "=",
"answerBoolean": false
},
{
"question": "dd6f5852-91fc-420d-8c5f-a748fc691d6c",
"operator": "=",
"answerCoding": {
"system": "urn:uuid:8685a164-f6ea-4106-f716-b2ced6cceb4b",
"code": "nuvarande-arbete"
}
}
],
"required": false
},
{
"extension": [
{
"url": "http://ehelse.no/fhir/StructureDefinition/repeatstext",
"valueString": "Lägg till fler diagnoser vid behov"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
"valueInteger": 1
},
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
"valueInteger": 3
},
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "drop-down"
}
]
}
}
],
"linkId": "65bea64c-a544-415e-bb08-3c838af9f4e1",
"text": "Diagnos/diagnoser för sjukdom som orsakar nedsatt arbetsförmåga",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
"id": "dce5f559-0aef-481b-926e-358e63695a02",
"system": "urn:uuid:f70a2f0e-eb27-4fd0-8ff7-366a01dab650",
"code": "icd-10-kodverk",
"display": "ICD 10 kodverk"
}
},
{
"valueCoding": {
"id": "84886c4b-a966-483c-be54-36ab900163e8",
"system": "urn:uuid:f70a2f0e-eb27-4fd0-8ff7-366a01dab650",
"code": "icd-10-kodverk",
"display": "ICD 10 kodverk"
}
}
],
"initial": [
{
"valueCoding": {
"system": "urn:uuid:f70a2f0e-eb27-4fd0-8ff7-366a01dab650",
"code": "icd-10-kodverk",
"display": "ICD 10 kodverk"
}
}
],
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "help"
}
]
}
}
],
"linkId": "f0d0dcd2-7d74-4141-97ec-006320eb4d64",
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/rendering-markdown",
"valueMarkdown": "Hjälptext"
}
]
},
"type": "text",
"required": false,
"repeats": false,
"readOnly": true,
"maxLength": 250
}
]
},
{
"extension": [
{
"url": "https://electronichealth.se/fhir/NDI/StructureDefinition/SHCSublabelExtension",
"valueMarkdown": "Ange vilken/vilka funktionsnedsättningar patienten har till följd av sjukdom och om möjligt svårighetsgrad. Ange även vad din bedömning av funktionsnedsättningar baseras på. Beskriv relevanta undersökningsfynd, testresultat, utredningssvar eller andra uppgifter (exempelvis anamnesuppgifter) och hur du bedömer dem."
}
],
"linkId": "f796813e-15e5-4f16-86a4-b2009c87704e",
"text": "Funktionsnedsättning",
"type": "string",
"required": false
},
{
"extension": [
{
"url": "https://electronichealth.se/fhir/NDI/StructureDefinition/SHCSublabelExtension",
"valueMarkdown": "Beskriv vad du bedömer att patienten har svårt att göra på grund av sin sjukdom. Ange exempel på sådana begränsningar relaterade till de arbetsuppgifter eller annan sysselsättning som du bedömer arbetsförmågan i förhållande till (i fråga 3). Ange om möjligt svårighetsgrad."
}
],
"linkId": "7a4afd4c-63fd-4dc0-8114-089eb14d637b",
"text": "Aktivitetsbegränsning",
"type": "string",
"required": false,
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "help"
}
]
}
}
],
"linkId": "df1d592d-fad7-4753-e07b-9197c997a54a",
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/rendering-markdown",
"valueMarkdown": "hjälptext"
}
]
},
"type": "text",
"required": false,
"repeats": false,
"readOnly": true,
"maxLength": 250
}
]
},
{
"extension": [
{
"url": "https://electronichealth.se/fhir/NDI/StructureDefinition/SHCSublabelExtension",
"valueMarkdown": "Här beskriver du pågående och planerade medicinska behandlingar/åtgärder som kan påverka arbetsförmågan. Ange vad syftet är och om möjlig tidplan samt ansvarig vårdenhet."
}
],
"linkId": "69715348-11c0-4100-b1f2-167b8757332f",
"text": "Medicinsk behandling",
"type": "string",
"required": false,
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "help"
}
]
}
}
],
"linkId": "e0b59990-1fba-4978-8a95-917b3a38841f",
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/rendering-markdown",
"valueMarkdown": "Hjälptext"
}
]
},
"type": "text",
"required": false,
"repeats": false,
"readOnly": true,
"maxLength": 250
}
]
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "check-box"
}
]
}
}
],
"linkId": "01027fde-8930-49bd-963c-2e3cb2ccaafc",
"text": "Min bedömning av patientens nedsättning av arbetsförmågan",
"type": "choice",
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "53f13393-e9a0-4654-a2ec-27f4f8aa5e76",
"system": "urn:uuid:68580cd1-0924-4081-8e0f-d0195b43901d",
"code": "100-procent",
"display": "100 procent"
}
},
{
"valueCoding": {
"id": "7c06527e-a74c-4c1e-875f-1ed5eb21f61a",
"system": "urn:uuid:68580cd1-0924-4081-8e0f-d0195b43901d",
"code": "75-procent",
"display": "75 procent"
}
},
{
"valueCoding": {
"id": "7d7bc9cb-a80f-4959-8059-634f93fa3279",
"system": "urn:uuid:68580cd1-0924-4081-8e0f-d0195b43901d",
"code": "50-procent",
"display": "50 procent"
}
},
{
"valueCoding": {
"id": "9536feb0-f5ba-41d5-f465-ab0434d3e7d9",
"system": "urn:uuid:68580cd1-0924-4081-8e0f-d0195b43901d",
"code": "25-procent",
"display": "25 procent"
}
}
],
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "help"
}
]
}
}
],
"linkId": "a29c6370-f85a-40f0-a55c-00bde69c445b",
"_text": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/rendering-markdown",
"valueMarkdown": "Hjälptext"
}
]
},
"type": "text",
"required": false,
"repeats": false,
"readOnly": true,
"maxLength": 250
}
]
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "check-box"
}
]
}
}
],
"linkId": "bc11f79f-492e-4400-8c8b-edda3d075470",
"text": "Prognos för arbetsförmåga utifrån aktuellt undersökningstillfälle",
"type": "choice",
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "14ee06e1-5b6c-4769-8036-0f6fff8619b1",
"system": "urn:uuid:8e926d9a-4ab4-4ea3-8861-09758503f1fd",
"code": "patienten-förväntas-återgå-helt-i-nuvarande-sysselsättning-efter-denna-sjukskrivning",
"display": "Patienten förväntas återgå helt i nuvarande sysselsättning efter denna sjukskrivning"
}
},
{
"valueCoding": {
"id": "17c0fc05-3bce-4379-bf30-3dff214825ba",
"system": "urn:uuid:8e926d9a-4ab4-4ea3-8861-09758503f1fd",
"code": "patienten-förväntas-återgå-helt-i-nuvarande-sysselsättning--inom",
"display": "Patienten förväntas återgå helt i nuvarande sysselsättning inom"
}
}
]
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/questionnaire-item-control",
"code": "check-box"
}
]
}
}
],
"linkId": "99e84ed1-3c05-4038-afb1-c7ca0ba1fba5",
"text": "Här kan du ange åtgärder som du tror skulle göra det lättare för patienten att återgå i arbete",
"type": "choice",
"required": false,
"answerOption": [
{
"valueCoding": {
"id": "fb48268b-1d5b-48fe-848a-23628ce8ce0f",
"system": "urn:uuid:d687215c-2259-4ba0-c825-2e57b6e3734d",
"code": "arbetsträning",
"display": "Arbetsträning"
}
},
{
"valueCoding": {
"id": "bb210e0f-1915-4bd0-8d65-0ecfebc9ca54",
"system": "urn:uuid:d687215c-2259-4ba0-c825-2e57b6e3734d",
"code": "arbetsanpassning",
"display": "Arbetsanpassning"
}
}
]
},
{
"linkId": "e5d7cdc5-098d-470f-8374-11b3b5c9f556",
"text": "Övriga upplysningar",
"type": "string",
"required": false
},
{
"linkId": "447d8cc6-d441-43eb-99fe-a3da157cbbf0",
"text": "Kontakt med Försäkringskassan",
"type": "string",
"required": false
}
]
}