JASPEHR Implementation Guide
0.5.5 - draft

JASPEHR Implementation Guide - Local Development build (v0.5.5). See the Directory of published versions

Resource Profile: QuestionnaireJaspehr

Official URL: http://www.hosp.ncgm.go.jp/JASPEHR/fhir/StructureDefinition/jaspehr-questionnaire Version: 0.5.5
Draft as of 2023-03-09 Computable Name: QuestionnaireJaspehr

Usage:

  • Refer to this Resource Profile:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from Questionnaire

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*QuestionnaireA structured set of questions
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
... variable 0..*ExpressionVariable for processing
URL: http://hl7.org/fhir/StructureDefinition/variable
.... value[x]
..... language 1..1codetext/fhirpath | application/x-fhir-query
Binding: JASPEHR Expression Language (required)
... version S1..1stringBusiness version of the questionnaire. 【JASPEHR】 TODO: 記述ルール整備予定
... name S1..1stringName for this questionnaire (computer friendly)
... title S1..1stringName for this questionnaire (human friendly)
... subjectType 1..1codeResource that can be subject of QuestionnaireResponse
... item SC1..*BackboneElementQuestions and sections within the Questionnaire
jsp-1: Only 'group' items can have enableWhen
jsp-2: The link ids for enableWhen question must be the same to parent item's link id
jsp-3: Only 'group' items can have repeats
jsp-4: LinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-5: Name should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-6: If item.type = 'choice' then item.extension:itemControl should be required
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
.... itemHidden 0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... itemControl S0..1CodeableConcept【JASPEHR】 list | inline | drop-down | check-box | radio-button | text-box ※ drop-down は単一項目選択とする
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.

..... valueCodeableConcept 1..1CodeableConceptlist | inline | drop-down | check-box | radio-button | text-box
Binding: JASPEHR Questionnaire Item UI Control Codes (required)
.... choiceOrientation 0..*codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
Binding: ChoiceListOrientation (required): Direction in which lists of possible answers should be displayed.


.... itemMaxOccurs 0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... regex 0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
..... valueString 1..1stringValue of extension
Fixed Value: ^([ -~]|\n|\t)+$
.... minValue 0..1date, dateTime, time, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxValue 0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxDecimalPlaces 0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... initialExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
..... valueExpression 0..1ExpressionValue of extension
...... language 1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Fixed Value: text/fhirpath
.... calculatedExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
..... valueExpression 0..1ExpressionValue of extension
...... language 1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Fixed Value: text/fhirpath
.... unit 0..1CodingUnit for numeric answer
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
.... linkId S1..1stringUnique id for item in questionnaire
.... prefix 0..0
.... text S0..1stringPrimary text for the item
.... type S1..1code【JASPEHR】 group | display | decimal | integer | date | dateTime | time | string | text | choice
Binding: JASPEHR Questionnaire Item Type (required)
.... enableWhen 0..1BackboneElementOnly allow data when
..... operator 1..1codeexists | = | != | > | < | >= | <=
Fixed Value: =
..... answer[x] S1..1CodingValue for question comparison based on operator
.... enableBehavior 0..0
.... required S0..1booleanWhether the item must be included in data results
.... repeats 0..1booleanWhether the item may repeat
.... maxLength S0..1integerNo more than this many characters 【JASPEHR】マルチバイト文字も1として数える
.... answerValueSet 0..1canonical(ValueSet)Valueset containing permitted answers 【JASPEHR】当面は answerOption を使用する。
.... answerOption S0..*BackboneElementPermitted answer
..... value[x] 1..1CodingAnswer value
.... initial 0..1BackboneElementInitial value(s) when item is first rendered
..... value[x] 1..1Actual value for initializing the question
...... valueDecimaldecimal
...... valueIntegerinteger
...... valueDatedate
...... valueDateTimedateTime
...... valueTimetime
...... valueStringstring
.... item S0..*Nested questionnaire items

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Questionnaire.extension:variable.value[x].languagerequiredExpressionLanguageJaspehr
Questionnaire.item.extension:itemControl.valueCodeableConceptrequiredQuestionnaireItemUIControlCodesJaspehr
Questionnaire.item.typerequiredQuestionnaireItemTypeJaspehr

Constraints

IdGradePath(s)DetailsRequirements
jsp-1errorQuestionnaire.itemOnly 'group' items can have enableWhen
: type ='group' or enableWhen.empty()
jsp-2errorQuestionnaire.itemThe link ids for enableWhen question must be the same to parent item's link id
: children().select(item).enableWhen.exists() implies linkId=children().select(item).where(enableWhen.exists()).linkId
jsp-3errorQuestionnaire.itemOnly 'group' items can have repeats
: type ='group' or repeats.empty()
jsp-4errorQuestionnaire.itemLinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: linkId.matches('([A-Za-z0-9!#%/:;?@_~]{1,255})')
jsp-5errorQuestionnaire.itemName should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: name.matches('([A-Za-z0-9!#%/:;?@_~])') and name should be 15 bytes or less
jsp-6errorQuestionnaire.itemIf item.type = 'choice' then item.extension:itemControl should be required
: type = 'choice' and item.extension:itemControl.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire C0..*QuestionnaireA structured set of questions
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
.... extension 0..0
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/variable"
.... value[x] 1..1ExpressionValue of extension
..... language Σ1..1codetext/fhirpath | application/x-fhir-query
Binding: JASPEHR Expression Language (required)
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ1..1uriCanonical identifier for this questionnaire, represented as a URI (globally unique)
... version SΣ1..1stringBusiness version of the questionnaire. 【JASPEHR】 TODO: 記述ルール整備予定
... name SΣC1..1stringName for this questionnaire (computer friendly)
... title SΣ1..1stringName for this questionnaire (human friendly)
... status ?!Σ1..1codedraft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... subjectType Σ1..1codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required): One of the resource types defined as part of this version of FHIR.


... item SC1..*BackboneElementQuestions and sections within the Questionnaire
jsp-1: Only 'group' items can have enableWhen
jsp-2: The link ids for enableWhen question must be the same to parent item's link id
jsp-3: Only 'group' items can have repeats
jsp-4: LinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-5: Name should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-6: If item.type = 'choice' then item.extension:itemControl should be required
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
.... itemHidden 0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... itemControl S0..1CodeableConcept【JASPEHR】 list | inline | drop-down | check-box | radio-button | text-box ※ drop-down は単一項目選択とする
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.


..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"
..... Slices for value[x] 1..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.

...... value[x]:valueCodeableConcept 1..1CodeableConceptlist | inline | drop-down | check-box | radio-button | text-box
Binding: JASPEHR Questionnaire Item UI Control Codes (required)
.... choiceOrientation 0..*codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
Binding: ChoiceListOrientation (required): Direction in which lists of possible answers should be displayed.


.... itemMaxOccurs 0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... regex 0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/regex"
..... Slices for value[x] 1..1stringValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueString 1..1stringValue of extension
Fixed Value: ^([ -~]|\n|\t)+$
.... minValue 0..1date, dateTime, time, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/minValue"
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxValue 0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/maxValue"
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxDecimalPlaces 0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... initialExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"
..... Slices for value[x] 0..1ExpressionValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueExpression 0..1ExpressionValue of extension
....... language Σ1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Binding: ExpressionLanguage (extensible): The media type of the expression language.

Additional BindingsPurpose
http://www.rfc-editor.org/bcp/bcp13.txtMax Binding

Fixed Value: text/fhirpath
.... calculatedExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression"
..... Slices for value[x] 0..1ExpressionValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueExpression 0..1ExpressionValue of extension
....... language Σ1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Binding: ExpressionLanguage (extensible): The media type of the expression language.

Additional BindingsPurpose
http://www.rfc-editor.org/bcp/bcp13.txtMax Binding

Fixed Value: text/fhirpath
.... unit 0..1CodingUnit for numeric answer
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... linkId S1..1stringUnique id for item in questionnaire
.... text S0..1stringPrimary text for the item
.... type S1..1code【JASPEHR】 group | display | decimal | integer | date | dateTime | time | string | text | choice
Binding: JASPEHR Questionnaire Item Type (required)
.... enableWhen ?!C0..1BackboneElementOnly allow data when
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... question 1..1stringQuestion that determines whether item is enabled
..... operator 1..1codeexists | = | != | > | < | >= | <=
Binding: QuestionnaireItemOperator (required): The criteria by which a question is enabled.


Fixed Value: =
..... answer[x] SC1..1CodingValue for question comparison based on operator
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

.... required SC0..1booleanWhether the item must be included in data results
.... repeats C0..1booleanWhether the item may repeat
.... maxLength SC0..1integerNo more than this many characters 【JASPEHR】マルチバイト文字も1として数える
.... answerValueSet C0..1canonical(ValueSet)Valueset containing permitted answers 【JASPEHR】当面は answerOption を使用する。
.... answerOption SC0..*BackboneElementPermitted answer
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] 1..1CodingAnswer value
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

.... initial C0..1BackboneElementInitial value(s) when item is first rendered
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] 1..1Actual value for initializing the question
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

...... valueDecimaldecimal
...... valueIntegerinteger
...... valueDatedate
...... valueDateTimedateTime
...... valueTimetime
...... valueStringstring
.... item SC0..*See item (Questionnaire)Nested questionnaire items

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Questionnaire.extension:variable.value[x].languagerequiredExpressionLanguageJaspehr
Questionnaire.statusrequiredPublicationStatus
Questionnaire.subjectTyperequiredResourceType
Questionnaire.item.extension:itemControl.value[x]extensibleQuestionnaireItemUIControlCodes
Questionnaire.item.extension:itemControl.value[x]:valueCodeableConceptrequiredQuestionnaireItemUIControlCodesJaspehr
Questionnaire.item.extension:initialExpression.value[x]:valueExpression.languageextensibleFixed Value: text/fhirpath
Additional Bindings Purpose
http://www.rfc-editor.org/bcp/bcp13.txt Max Binding
Questionnaire.item.extension:calculatedExpression.value[x]:valueExpression.languageextensibleFixed Value: text/fhirpath
Additional Bindings Purpose
http://www.rfc-editor.org/bcp/bcp13.txt Max Binding
Questionnaire.item.typerequiredQuestionnaireItemTypeJaspehr
Questionnaire.item.enableWhen.operatorrequiredFixed Value: =
Questionnaire.item.enableWhen.answer[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)
Questionnaire.item.answerOption.value[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)
Questionnaire.item.initial.value[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorQuestionnaireIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorQuestionnaireIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorQuestionnaireIf 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-5errorQuestionnaireIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceQuestionnaireA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
jsp-1errorQuestionnaire.itemOnly 'group' items can have enableWhen
: type ='group' or enableWhen.empty()
jsp-2errorQuestionnaire.itemThe link ids for enableWhen question must be the same to parent item's link id
: children().select(item).enableWhen.exists() implies linkId=children().select(item).where(enableWhen.exists()).linkId
jsp-3errorQuestionnaire.itemOnly 'group' items can have repeats
: type ='group' or repeats.empty()
jsp-4errorQuestionnaire.itemLinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: linkId.matches('([A-Za-z0-9!#%/:;?@_~]{1,255})')
jsp-5errorQuestionnaire.itemName should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: name.matches('([A-Za-z0-9!#%/:;?@_~])') and name should be 15 bytes or less
jsp-6errorQuestionnaire.itemIf item.type = 'choice' then item.extension:itemControl should be required
: type = 'choice' and item.extension:itemControl.exists()
que-0warningQuestionnaireName should be usable as an identifier for the module by machine processing applications such as code generation
: name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
que-1errorQuestionnaire.itemGroup items must have nested items, display items cannot have nested items
: (type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())
que-2errorQuestionnaireThe link ids for groups and questions must be unique within the questionnaire
: descendants().linkId.isDistinct()
que-3errorQuestionnaire.itemDisplay items cannot have a "code" asserted
: type!='display' or code.empty()
que-4errorQuestionnaire.itemA question cannot have both answerOption and answerValueSet
: answerOption.empty() or answerValueSet.empty()
que-5errorQuestionnaire.itemOnly 'choice' and 'open-choice' items can have answerValueSet
: (type ='choice' or type = 'open-choice' 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-6errorQuestionnaire.itemRequired and repeat aren't permitted for display items
: type!='display' or (required.empty() and repeats.empty())
que-7errorQuestionnaire.item.enableWhenIf the operator is 'exists', the value must be a boolean
: operator = 'exists' implies (answer is Boolean)
que-8errorQuestionnaire.itemInitial values can't be specified for groups or display items
: (type!='group' and type!='display') or initial.empty()
que-9errorQuestionnaire.itemRead-only can't be specified for "display" items
: type!='display' or readOnly.empty()
que-10errorQuestionnaire.itemMaximum length can only be declared for simple question types
: (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url' | 'open-choice')) or maxLength.empty()
que-11errorQuestionnaire.itemIf one or more answerOption is present, initial[x] must be missing
: answerOption.empty() or initial.empty()
que-12errorQuestionnaire.itemIf there are more than one enableWhen, enableBehavior must be specified
: enableWhen.count() > 2 implies enableBehavior.exists()
que-13errorQuestionnaire.itemCan only have multiple initial values for repeating items
: repeats=true or initial.count() <= 1
NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire C0..*QuestionnaireA structured set of questions
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
... variable 0..*ExpressionVariable for processing
URL: http://hl7.org/fhir/StructureDefinition/variable
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/variable"
.... value[x] 1..1ExpressionValue of extension
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... description Σ0..1stringNatural language description of the condition
..... name Σ0..1idShort name assigned to expression for reuse
..... language Σ1..1codetext/fhirpath | application/x-fhir-query
Binding: JASPEHR Expression Language (required)
..... expression Σ0..1stringExpression in specified language
..... reference Σ0..1uriWhere the expression is found
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ1..1uriCanonical identifier for this questionnaire, represented as a URI (globally unique)
... identifier Σ0..*IdentifierAdditional identifier for the questionnaire
... version SΣ1..1stringBusiness version of the questionnaire. 【JASPEHR】 TODO: 記述ルール整備予定
... name SΣC1..1stringName for this questionnaire (computer friendly)
... title SΣ1..1stringName for this questionnaire (human friendly)
... derivedFrom 0..*canonical(Questionnaire)Instantiates protocol or definition
... status ?!Σ1..1codedraft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... experimental Σ0..1booleanFor testing purposes, not real usage
... subjectType Σ1..1codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required): One of the resource types defined as part of this version of FHIR.


... date Σ0..1dateTimeDate last changed
... publisher Σ0..1stringName of the publisher (organization or individual)
... contact Σ0..*ContactDetailContact details for the publisher
... description 0..1markdownNatural language description of the questionnaire
... useContext Σ0..*UsageContextThe context that the content is intended to support
... jurisdiction Σ0..*CodeableConceptIntended jurisdiction for questionnaire (if applicable)
Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use.


... purpose 0..1markdownWhy this questionnaire is defined
... copyright 0..1markdownUse and/or publishing restrictions
... approvalDate 0..1dateWhen the questionnaire was approved by publisher
... lastReviewDate 0..1dateWhen the questionnaire was last reviewed
... effectivePeriod Σ0..1PeriodWhen the questionnaire is expected to be used
... code Σ0..*CodingConcept that represents the overall questionnaire
Binding: QuestionnaireQuestionCodes (example): Codes for questionnaires, groups and individual questions.


... item SC1..*BackboneElementQuestions and sections within the Questionnaire
jsp-1: Only 'group' items can have enableWhen
jsp-2: The link ids for enableWhen question must be the same to parent item's link id
jsp-3: Only 'group' items can have repeats
jsp-4: LinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-5: Name should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-6: If item.type = 'choice' then item.extension:itemControl should be required
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
.... itemHidden 0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... itemControl S0..1CodeableConcept【JASPEHR】 list | inline | drop-down | check-box | radio-button | text-box ※ drop-down は単一項目選択とする
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.


..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"
..... Slices for value[x] 1..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.

...... value[x]:valueCodeableConcept 1..1CodeableConceptlist | inline | drop-down | check-box | radio-button | text-box
Binding: JASPEHR Questionnaire Item UI Control Codes (required)
.... choiceOrientation 0..*codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
Binding: ChoiceListOrientation (required): Direction in which lists of possible answers should be displayed.


.... itemMaxOccurs 0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... regex 0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/regex"
..... Slices for value[x] 1..1stringValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueString 1..1stringValue of extension
Fixed Value: ^([ -~]|\n|\t)+$
.... minValue 0..1date, dateTime, time, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/minValue"
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxValue 0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/maxValue"
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxDecimalPlaces 0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... initialExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"
..... Slices for value[x] 0..1ExpressionValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueExpression 0..1ExpressionValue of extension
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... description Σ0..1stringNatural language description of the condition
....... name Σ0..1idShort name assigned to expression for reuse
....... language Σ1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Binding: ExpressionLanguage (extensible): The media type of the expression language.

Additional BindingsPurpose
http://www.rfc-editor.org/bcp/bcp13.txtMax Binding

Fixed Value: text/fhirpath
....... expression Σ0..1stringExpression in specified language
....... reference Σ0..1uriWhere the expression is found
.... calculatedExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression"
..... Slices for value[x] 0..1ExpressionValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueExpression 0..1ExpressionValue of extension
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... description Σ0..1stringNatural language description of the condition
....... name Σ0..1idShort name assigned to expression for reuse
....... language Σ1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Binding: ExpressionLanguage (extensible): The media type of the expression language.

Additional BindingsPurpose
http://www.rfc-editor.org/bcp/bcp13.txtMax Binding

Fixed Value: text/fhirpath
....... expression Σ0..1stringExpression in specified language
....... reference Σ0..1uriWhere the expression is found
.... unit 0..1CodingUnit for numeric answer
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... linkId S1..1stringUnique id for item in questionnaire
.... definition 0..1uriElementDefinition - details for the item
.... code C0..*CodingCorresponding concept for this item in a terminology
Binding: QuestionnaireQuestionCodes (example): Codes for questionnaires, groups and individual questions.


.... text S0..1stringPrimary text for the item
.... type S1..1code【JASPEHR】 group | display | decimal | integer | date | dateTime | time | string | text | choice
Binding: JASPEHR Questionnaire Item Type (required)
.... enableWhen ?!C0..1BackboneElementOnly allow data when
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... question 1..1stringQuestion that determines whether item is enabled
..... operator 1..1codeexists | = | != | > | < | >= | <=
Binding: QuestionnaireItemOperator (required): The criteria by which a question is enabled.


Fixed Value: =
..... answer[x] SC1..1CodingValue for question comparison based on operator
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

.... required SC0..1booleanWhether the item must be included in data results
.... repeats C0..1booleanWhether the item may repeat
.... readOnly C0..1booleanDon't allow human editing
.... maxLength SC0..1integerNo more than this many characters 【JASPEHR】マルチバイト文字も1として数える
.... answerValueSet C0..1canonical(ValueSet)Valueset containing permitted answers 【JASPEHR】当面は answerOption を使用する。
.... answerOption SC0..*BackboneElementPermitted answer
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] 1..1CodingAnswer value
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

..... initialSelected 0..1booleanWhether option is selected by default
.... initial C0..1BackboneElementInitial value(s) when item is first rendered
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] 1..1Actual value for initializing the question
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

...... valueDecimaldecimal
...... valueIntegerinteger
...... valueDatedate
...... valueDateTimedateTime
...... valueTimetime
...... valueStringstring
.... item SC0..*See item (Questionnaire)Nested questionnaire items

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Questionnaire.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Questionnaire.extension:variable.value[x].languagerequiredExpressionLanguageJaspehr
Questionnaire.statusrequiredPublicationStatus
Questionnaire.subjectTyperequiredResourceType
Questionnaire.jurisdictionextensibleJurisdiction ValueSet
Questionnaire.codeexampleQuestionnaireQuestionCodes (a valid code from LOINC)
Questionnaire.item.extension:itemControl.value[x]extensibleQuestionnaireItemUIControlCodes
Questionnaire.item.extension:itemControl.value[x]:valueCodeableConceptrequiredQuestionnaireItemUIControlCodesJaspehr
Questionnaire.item.extension:initialExpression.value[x]:valueExpression.languageextensibleFixed Value: text/fhirpath
Additional Bindings Purpose
http://www.rfc-editor.org/bcp/bcp13.txt Max Binding
Questionnaire.item.extension:calculatedExpression.value[x]:valueExpression.languageextensibleFixed Value: text/fhirpath
Additional Bindings Purpose
http://www.rfc-editor.org/bcp/bcp13.txt Max Binding
Questionnaire.item.codeexampleQuestionnaireQuestionCodes (a valid code from LOINC)
Questionnaire.item.typerequiredQuestionnaireItemTypeJaspehr
Questionnaire.item.enableWhen.operatorrequiredFixed Value: =
Questionnaire.item.enableWhen.answer[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)
Questionnaire.item.answerOption.value[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)
Questionnaire.item.initial.value[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
jsp-1errorQuestionnaire.itemOnly 'group' items can have enableWhen
: type ='group' or enableWhen.empty()
jsp-2errorQuestionnaire.itemThe link ids for enableWhen question must be the same to parent item's link id
: children().select(item).enableWhen.exists() implies linkId=children().select(item).where(enableWhen.exists()).linkId
jsp-3errorQuestionnaire.itemOnly 'group' items can have repeats
: type ='group' or repeats.empty()
jsp-4errorQuestionnaire.itemLinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: linkId.matches('([A-Za-z0-9!#%/:;?@_~]{1,255})')
jsp-5errorQuestionnaire.itemName should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: name.matches('([A-Za-z0-9!#%/:;?@_~])') and name should be 15 bytes or less
jsp-6errorQuestionnaire.itemIf item.type = 'choice' then item.extension:itemControl should be required
: type = 'choice' and item.extension:itemControl.exists()
que-1errorQuestionnaire.itemGroup items must have nested items, display items cannot have nested items
: (type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())
que-3errorQuestionnaire.itemDisplay items cannot have a "code" asserted
: type!='display' or code.empty()
que-4errorQuestionnaire.itemA question cannot have both answerOption and answerValueSet
: answerOption.empty() or answerValueSet.empty()
que-5errorQuestionnaire.itemOnly 'choice' and 'open-choice' items can have answerValueSet
: (type ='choice' or type = 'open-choice' 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-6errorQuestionnaire.itemRequired and repeat aren't permitted for display items
: type!='display' or (required.empty() and repeats.empty())
que-8errorQuestionnaire.itemInitial values can't be specified for groups or display items
: (type!='group' and type!='display') or initial.empty()
que-9errorQuestionnaire.itemRead-only can't be specified for "display" items
: type!='display' or readOnly.empty()
que-10errorQuestionnaire.itemMaximum length can only be declared for simple question types
: (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url' | 'open-choice')) or maxLength.empty()
que-11errorQuestionnaire.itemIf one or more answerOption is present, initial[x] must be missing
: answerOption.empty() or initial.empty()
que-12errorQuestionnaire.itemIf there are more than one enableWhen, enableBehavior must be specified
: enableWhen.count() > 2 implies enableBehavior.exists()
que-13errorQuestionnaire.itemCan only have multiple initial values for repeating items
: repeats=true or initial.count() <= 1

Differential View

This structure is derived from Questionnaire

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*QuestionnaireA structured set of questions
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
... variable 0..*ExpressionVariable for processing
URL: http://hl7.org/fhir/StructureDefinition/variable
.... value[x]
..... language 1..1codetext/fhirpath | application/x-fhir-query
Binding: JASPEHR Expression Language (required)
... version S1..1stringBusiness version of the questionnaire. 【JASPEHR】 TODO: 記述ルール整備予定
... name S1..1stringName for this questionnaire (computer friendly)
... title S1..1stringName for this questionnaire (human friendly)
... subjectType 1..1codeResource that can be subject of QuestionnaireResponse
... item SC1..*BackboneElementQuestions and sections within the Questionnaire
jsp-1: Only 'group' items can have enableWhen
jsp-2: The link ids for enableWhen question must be the same to parent item's link id
jsp-3: Only 'group' items can have repeats
jsp-4: LinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-5: Name should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-6: If item.type = 'choice' then item.extension:itemControl should be required
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
.... itemHidden 0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... itemControl S0..1CodeableConcept【JASPEHR】 list | inline | drop-down | check-box | radio-button | text-box ※ drop-down は単一項目選択とする
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.

..... valueCodeableConcept 1..1CodeableConceptlist | inline | drop-down | check-box | radio-button | text-box
Binding: JASPEHR Questionnaire Item UI Control Codes (required)
.... choiceOrientation 0..*codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
Binding: ChoiceListOrientation (required): Direction in which lists of possible answers should be displayed.


.... itemMaxOccurs 0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... regex 0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
..... valueString 1..1stringValue of extension
Fixed Value: ^([ -~]|\n|\t)+$
.... minValue 0..1date, dateTime, time, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxValue 0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxDecimalPlaces 0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... initialExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
..... valueExpression 0..1ExpressionValue of extension
...... language 1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Fixed Value: text/fhirpath
.... calculatedExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
..... valueExpression 0..1ExpressionValue of extension
...... language 1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Fixed Value: text/fhirpath
.... unit 0..1CodingUnit for numeric answer
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
.... linkId S1..1stringUnique id for item in questionnaire
.... prefix 0..0
.... text S0..1stringPrimary text for the item
.... type S1..1code【JASPEHR】 group | display | decimal | integer | date | dateTime | time | string | text | choice
Binding: JASPEHR Questionnaire Item Type (required)
.... enableWhen 0..1BackboneElementOnly allow data when
..... operator 1..1codeexists | = | != | > | < | >= | <=
Fixed Value: =
..... answer[x] S1..1CodingValue for question comparison based on operator
.... enableBehavior 0..0
.... required S0..1booleanWhether the item must be included in data results
.... repeats 0..1booleanWhether the item may repeat
.... maxLength S0..1integerNo more than this many characters 【JASPEHR】マルチバイト文字も1として数える
.... answerValueSet 0..1canonical(ValueSet)Valueset containing permitted answers 【JASPEHR】当面は answerOption を使用する。
.... answerOption S0..*BackboneElementPermitted answer
..... value[x] 1..1CodingAnswer value
.... initial 0..1BackboneElementInitial value(s) when item is first rendered
..... value[x] 1..1Actual value for initializing the question
...... valueDecimaldecimal
...... valueIntegerinteger
...... valueDatedate
...... valueDateTimedateTime
...... valueTimetime
...... valueStringstring
.... item S0..*Nested questionnaire items

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Questionnaire.extension:variable.value[x].languagerequiredExpressionLanguageJaspehr
Questionnaire.item.extension:itemControl.valueCodeableConceptrequiredQuestionnaireItemUIControlCodesJaspehr
Questionnaire.item.typerequiredQuestionnaireItemTypeJaspehr

Constraints

IdGradePath(s)DetailsRequirements
jsp-1errorQuestionnaire.itemOnly 'group' items can have enableWhen
: type ='group' or enableWhen.empty()
jsp-2errorQuestionnaire.itemThe link ids for enableWhen question must be the same to parent item's link id
: children().select(item).enableWhen.exists() implies linkId=children().select(item).where(enableWhen.exists()).linkId
jsp-3errorQuestionnaire.itemOnly 'group' items can have repeats
: type ='group' or repeats.empty()
jsp-4errorQuestionnaire.itemLinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: linkId.matches('([A-Za-z0-9!#%/:;?@_~]{1,255})')
jsp-5errorQuestionnaire.itemName should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: name.matches('([A-Za-z0-9!#%/:;?@_~])') and name should be 15 bytes or less
jsp-6errorQuestionnaire.itemIf item.type = 'choice' then item.extension:itemControl should be required
: type = 'choice' and item.extension:itemControl.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire C0..*QuestionnaireA structured set of questions
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
.... extension 0..0
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/variable"
.... value[x] 1..1ExpressionValue of extension
..... language Σ1..1codetext/fhirpath | application/x-fhir-query
Binding: JASPEHR Expression Language (required)
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ1..1uriCanonical identifier for this questionnaire, represented as a URI (globally unique)
... version SΣ1..1stringBusiness version of the questionnaire. 【JASPEHR】 TODO: 記述ルール整備予定
... name SΣC1..1stringName for this questionnaire (computer friendly)
... title SΣ1..1stringName for this questionnaire (human friendly)
... status ?!Σ1..1codedraft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... subjectType Σ1..1codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required): One of the resource types defined as part of this version of FHIR.


... item SC1..*BackboneElementQuestions and sections within the Questionnaire
jsp-1: Only 'group' items can have enableWhen
jsp-2: The link ids for enableWhen question must be the same to parent item's link id
jsp-3: Only 'group' items can have repeats
jsp-4: LinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-5: Name should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-6: If item.type = 'choice' then item.extension:itemControl should be required
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
.... itemHidden 0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... itemControl S0..1CodeableConcept【JASPEHR】 list | inline | drop-down | check-box | radio-button | text-box ※ drop-down は単一項目選択とする
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.


..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"
..... Slices for value[x] 1..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.

...... value[x]:valueCodeableConcept 1..1CodeableConceptlist | inline | drop-down | check-box | radio-button | text-box
Binding: JASPEHR Questionnaire Item UI Control Codes (required)
.... choiceOrientation 0..*codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
Binding: ChoiceListOrientation (required): Direction in which lists of possible answers should be displayed.


.... itemMaxOccurs 0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... regex 0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/regex"
..... Slices for value[x] 1..1stringValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueString 1..1stringValue of extension
Fixed Value: ^([ -~]|\n|\t)+$
.... minValue 0..1date, dateTime, time, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/minValue"
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxValue 0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/maxValue"
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxDecimalPlaces 0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... initialExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"
..... Slices for value[x] 0..1ExpressionValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueExpression 0..1ExpressionValue of extension
....... language Σ1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Binding: ExpressionLanguage (extensible): The media type of the expression language.

Additional BindingsPurpose
http://www.rfc-editor.org/bcp/bcp13.txtMax Binding

Fixed Value: text/fhirpath
.... calculatedExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression"
..... Slices for value[x] 0..1ExpressionValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueExpression 0..1ExpressionValue of extension
....... language Σ1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Binding: ExpressionLanguage (extensible): The media type of the expression language.

Additional BindingsPurpose
http://www.rfc-editor.org/bcp/bcp13.txtMax Binding

Fixed Value: text/fhirpath
.... unit 0..1CodingUnit for numeric answer
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... linkId S1..1stringUnique id for item in questionnaire
.... text S0..1stringPrimary text for the item
.... type S1..1code【JASPEHR】 group | display | decimal | integer | date | dateTime | time | string | text | choice
Binding: JASPEHR Questionnaire Item Type (required)
.... enableWhen ?!C0..1BackboneElementOnly allow data when
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... question 1..1stringQuestion that determines whether item is enabled
..... operator 1..1codeexists | = | != | > | < | >= | <=
Binding: QuestionnaireItemOperator (required): The criteria by which a question is enabled.


Fixed Value: =
..... answer[x] SC1..1CodingValue for question comparison based on operator
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

.... required SC0..1booleanWhether the item must be included in data results
.... repeats C0..1booleanWhether the item may repeat
.... maxLength SC0..1integerNo more than this many characters 【JASPEHR】マルチバイト文字も1として数える
.... answerValueSet C0..1canonical(ValueSet)Valueset containing permitted answers 【JASPEHR】当面は answerOption を使用する。
.... answerOption SC0..*BackboneElementPermitted answer
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] 1..1CodingAnswer value
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

.... initial C0..1BackboneElementInitial value(s) when item is first rendered
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] 1..1Actual value for initializing the question
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

...... valueDecimaldecimal
...... valueIntegerinteger
...... valueDatedate
...... valueDateTimedateTime
...... valueTimetime
...... valueStringstring
.... item SC0..*See item (Questionnaire)Nested questionnaire items

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Questionnaire.extension:variable.value[x].languagerequiredExpressionLanguageJaspehr
Questionnaire.statusrequiredPublicationStatus
Questionnaire.subjectTyperequiredResourceType
Questionnaire.item.extension:itemControl.value[x]extensibleQuestionnaireItemUIControlCodes
Questionnaire.item.extension:itemControl.value[x]:valueCodeableConceptrequiredQuestionnaireItemUIControlCodesJaspehr
Questionnaire.item.extension:initialExpression.value[x]:valueExpression.languageextensibleFixed Value: text/fhirpath
Additional Bindings Purpose
http://www.rfc-editor.org/bcp/bcp13.txt Max Binding
Questionnaire.item.extension:calculatedExpression.value[x]:valueExpression.languageextensibleFixed Value: text/fhirpath
Additional Bindings Purpose
http://www.rfc-editor.org/bcp/bcp13.txt Max Binding
Questionnaire.item.typerequiredQuestionnaireItemTypeJaspehr
Questionnaire.item.enableWhen.operatorrequiredFixed Value: =
Questionnaire.item.enableWhen.answer[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)
Questionnaire.item.answerOption.value[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)
Questionnaire.item.initial.value[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorQuestionnaireIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorQuestionnaireIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorQuestionnaireIf 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-5errorQuestionnaireIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceQuestionnaireA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
jsp-1errorQuestionnaire.itemOnly 'group' items can have enableWhen
: type ='group' or enableWhen.empty()
jsp-2errorQuestionnaire.itemThe link ids for enableWhen question must be the same to parent item's link id
: children().select(item).enableWhen.exists() implies linkId=children().select(item).where(enableWhen.exists()).linkId
jsp-3errorQuestionnaire.itemOnly 'group' items can have repeats
: type ='group' or repeats.empty()
jsp-4errorQuestionnaire.itemLinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: linkId.matches('([A-Za-z0-9!#%/:;?@_~]{1,255})')
jsp-5errorQuestionnaire.itemName should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: name.matches('([A-Za-z0-9!#%/:;?@_~])') and name should be 15 bytes or less
jsp-6errorQuestionnaire.itemIf item.type = 'choice' then item.extension:itemControl should be required
: type = 'choice' and item.extension:itemControl.exists()
que-0warningQuestionnaireName should be usable as an identifier for the module by machine processing applications such as code generation
: name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
que-1errorQuestionnaire.itemGroup items must have nested items, display items cannot have nested items
: (type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())
que-2errorQuestionnaireThe link ids for groups and questions must be unique within the questionnaire
: descendants().linkId.isDistinct()
que-3errorQuestionnaire.itemDisplay items cannot have a "code" asserted
: type!='display' or code.empty()
que-4errorQuestionnaire.itemA question cannot have both answerOption and answerValueSet
: answerOption.empty() or answerValueSet.empty()
que-5errorQuestionnaire.itemOnly 'choice' and 'open-choice' items can have answerValueSet
: (type ='choice' or type = 'open-choice' 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-6errorQuestionnaire.itemRequired and repeat aren't permitted for display items
: type!='display' or (required.empty() and repeats.empty())
que-7errorQuestionnaire.item.enableWhenIf the operator is 'exists', the value must be a boolean
: operator = 'exists' implies (answer is Boolean)
que-8errorQuestionnaire.itemInitial values can't be specified for groups or display items
: (type!='group' and type!='display') or initial.empty()
que-9errorQuestionnaire.itemRead-only can't be specified for "display" items
: type!='display' or readOnly.empty()
que-10errorQuestionnaire.itemMaximum length can only be declared for simple question types
: (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url' | 'open-choice')) or maxLength.empty()
que-11errorQuestionnaire.itemIf one or more answerOption is present, initial[x] must be missing
: answerOption.empty() or initial.empty()
que-12errorQuestionnaire.itemIf there are more than one enableWhen, enableBehavior must be specified
: enableWhen.count() > 2 implies enableBehavior.exists()
que-13errorQuestionnaire.itemCan only have multiple initial values for repeating items
: repeats=true or initial.count() <= 1

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire C0..*QuestionnaireA structured set of questions
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
... variable 0..*ExpressionVariable for processing
URL: http://hl7.org/fhir/StructureDefinition/variable
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"http://hl7.org/fhir/StructureDefinition/variable"
.... value[x] 1..1ExpressionValue of extension
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... description Σ0..1stringNatural language description of the condition
..... name Σ0..1idShort name assigned to expression for reuse
..... language Σ1..1codetext/fhirpath | application/x-fhir-query
Binding: JASPEHR Expression Language (required)
..... expression Σ0..1stringExpression in specified language
..... reference Σ0..1uriWhere the expression is found
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ1..1uriCanonical identifier for this questionnaire, represented as a URI (globally unique)
... identifier Σ0..*IdentifierAdditional identifier for the questionnaire
... version SΣ1..1stringBusiness version of the questionnaire. 【JASPEHR】 TODO: 記述ルール整備予定
... name SΣC1..1stringName for this questionnaire (computer friendly)
... title SΣ1..1stringName for this questionnaire (human friendly)
... derivedFrom 0..*canonical(Questionnaire)Instantiates protocol or definition
... status ?!Σ1..1codedraft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... experimental Σ0..1booleanFor testing purposes, not real usage
... subjectType Σ1..1codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required): One of the resource types defined as part of this version of FHIR.


... date Σ0..1dateTimeDate last changed
... publisher Σ0..1stringName of the publisher (organization or individual)
... contact Σ0..*ContactDetailContact details for the publisher
... description 0..1markdownNatural language description of the questionnaire
... useContext Σ0..*UsageContextThe context that the content is intended to support
... jurisdiction Σ0..*CodeableConceptIntended jurisdiction for questionnaire (if applicable)
Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use.


... purpose 0..1markdownWhy this questionnaire is defined
... copyright 0..1markdownUse and/or publishing restrictions
... approvalDate 0..1dateWhen the questionnaire was approved by publisher
... lastReviewDate 0..1dateWhen the questionnaire was last reviewed
... effectivePeriod Σ0..1PeriodWhen the questionnaire is expected to be used
... code Σ0..*CodingConcept that represents the overall questionnaire
Binding: QuestionnaireQuestionCodes (example): Codes for questionnaires, groups and individual questions.


... item SC1..*BackboneElementQuestions and sections within the Questionnaire
jsp-1: Only 'group' items can have enableWhen
jsp-2: The link ids for enableWhen question must be the same to parent item's link id
jsp-3: Only 'group' items can have repeats
jsp-4: LinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-5: Name should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
jsp-6: If item.type = 'choice' then item.extension:itemControl should be required
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... designNote 0..1markdownDesign comments
URL: http://hl7.org/fhir/StructureDefinition/designNote
.... itemHidden 0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... itemControl S0..1CodeableConcept【JASPEHR】 list | inline | drop-down | check-box | radio-button | text-box ※ drop-down は単一項目選択とする
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.


..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"
..... Slices for value[x] 1..1CodeableConceptValue of extension
Slice: Unordered, Closed by type:$this
Binding: QuestionnaireItemUIControlCodes (extensible): User interface controls or widgets used for questionnaire items.

...... value[x]:valueCodeableConcept 1..1CodeableConceptlist | inline | drop-down | check-box | radio-button | text-box
Binding: JASPEHR Questionnaire Item UI Control Codes (required)
.... choiceOrientation 0..*codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
Binding: ChoiceListOrientation (required): Direction in which lists of possible answers should be displayed.


.... itemMaxOccurs 0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... regex 0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/regex"
..... Slices for value[x] 1..1stringValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueString 1..1stringValue of extension
Fixed Value: ^([ -~]|\n|\t)+$
.... minValue 0..1date, dateTime, time, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/minValue"
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxValue 0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/StructureDefinition/maxValue"
..... value[x] 1..1Value of extension
...... valueDecimaldecimal
...... valueIntegerinteger
.... maxDecimalPlaces 0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... initialExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"
..... Slices for value[x] 0..1ExpressionValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueExpression 0..1ExpressionValue of extension
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... description Σ0..1stringNatural language description of the condition
....... name Σ0..1idShort name assigned to expression for reuse
....... language Σ1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Binding: ExpressionLanguage (extensible): The media type of the expression language.

Additional BindingsPurpose
http://www.rfc-editor.org/bcp/bcp13.txtMax Binding

Fixed Value: text/fhirpath
....... expression Σ0..1stringExpression in specified language
....... reference Σ0..1uriWhere the expression is found
.... calculatedExpression 0..1ExpressionExpression-determined initial value
URL: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression"
..... Slices for value[x] 0..1ExpressionValue of extension
Slice: Unordered, Closed by type:$this
...... value[x]:valueExpression 0..1ExpressionValue of extension
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... description Σ0..1stringNatural language description of the condition
....... name Σ0..1idShort name assigned to expression for reuse
....... language Σ1..1codetext/cql | text/fhirpath | application/x-fhir-query | etc.
Binding: ExpressionLanguage (extensible): The media type of the expression language.

Additional BindingsPurpose
http://www.rfc-editor.org/bcp/bcp13.txtMax Binding

Fixed Value: text/fhirpath
....... expression Σ0..1stringExpression in specified language
....... reference Σ0..1uriWhere the expression is found
.... unit 0..1CodingUnit for numeric answer
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... linkId S1..1stringUnique id for item in questionnaire
.... definition 0..1uriElementDefinition - details for the item
.... code C0..*CodingCorresponding concept for this item in a terminology
Binding: QuestionnaireQuestionCodes (example): Codes for questionnaires, groups and individual questions.


.... text S0..1stringPrimary text for the item
.... type S1..1code【JASPEHR】 group | display | decimal | integer | date | dateTime | time | string | text | choice
Binding: JASPEHR Questionnaire Item Type (required)
.... enableWhen ?!C0..1BackboneElementOnly allow data when
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... question 1..1stringQuestion that determines whether item is enabled
..... operator 1..1codeexists | = | != | > | < | >= | <=
Binding: QuestionnaireItemOperator (required): The criteria by which a question is enabled.


Fixed Value: =
..... answer[x] SC1..1CodingValue for question comparison based on operator
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

.... required SC0..1booleanWhether the item must be included in data results
.... repeats C0..1booleanWhether the item may repeat
.... readOnly C0..1booleanDon't allow human editing
.... maxLength SC0..1integerNo more than this many characters 【JASPEHR】マルチバイト文字も1として数える
.... answerValueSet C0..1canonical(ValueSet)Valueset containing permitted answers 【JASPEHR】当面は answerOption を使用する。
.... answerOption SC0..*BackboneElementPermitted answer
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] 1..1CodingAnswer value
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

..... initialSelected 0..1booleanWhether option is selected by default
.... initial C0..1BackboneElementInitial value(s) when item is first rendered
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... value[x] 1..1Actual value for initializing the question
Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions.

...... valueDecimaldecimal
...... valueIntegerinteger
...... valueDatedate
...... valueDateTimedateTime
...... valueTimetime
...... valueStringstring
.... item SC0..*See item (Questionnaire)Nested questionnaire items

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Questionnaire.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Questionnaire.extension:variable.value[x].languagerequiredExpressionLanguageJaspehr
Questionnaire.statusrequiredPublicationStatus
Questionnaire.subjectTyperequiredResourceType
Questionnaire.jurisdictionextensibleJurisdiction ValueSet
Questionnaire.codeexampleQuestionnaireQuestionCodes (a valid code from LOINC)
Questionnaire.item.extension:itemControl.value[x]extensibleQuestionnaireItemUIControlCodes
Questionnaire.item.extension:itemControl.value[x]:valueCodeableConceptrequiredQuestionnaireItemUIControlCodesJaspehr
Questionnaire.item.extension:initialExpression.value[x]:valueExpression.languageextensibleFixed Value: text/fhirpath
Additional Bindings Purpose
http://www.rfc-editor.org/bcp/bcp13.txt Max Binding
Questionnaire.item.extension:calculatedExpression.value[x]:valueExpression.languageextensibleFixed Value: text/fhirpath
Additional Bindings Purpose
http://www.rfc-editor.org/bcp/bcp13.txt Max Binding
Questionnaire.item.codeexampleQuestionnaireQuestionCodes (a valid code from LOINC)
Questionnaire.item.typerequiredQuestionnaireItemTypeJaspehr
Questionnaire.item.enableWhen.operatorrequiredFixed Value: =
Questionnaire.item.enableWhen.answer[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)
Questionnaire.item.answerOption.value[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)
Questionnaire.item.initial.value[x]exampleQuestionnaireAnswerCodes (a valid code from SNOMED CT)

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
jsp-1errorQuestionnaire.itemOnly 'group' items can have enableWhen
: type ='group' or enableWhen.empty()
jsp-2errorQuestionnaire.itemThe link ids for enableWhen question must be the same to parent item's link id
: children().select(item).enableWhen.exists() implies linkId=children().select(item).where(enableWhen.exists()).linkId
jsp-3errorQuestionnaire.itemOnly 'group' items can have repeats
: type ='group' or repeats.empty()
jsp-4errorQuestionnaire.itemLinkID should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: linkId.matches('([A-Za-z0-9!#%/:;?@_~]{1,255})')
jsp-5errorQuestionnaire.itemName should consist of half-width English numbers, letters, and several symbolic-characters, or either of them
: name.matches('([A-Za-z0-9!#%/:;?@_~])') and name should be 15 bytes or less
jsp-6errorQuestionnaire.itemIf item.type = 'choice' then item.extension:itemControl should be required
: type = 'choice' and item.extension:itemControl.exists()
que-1errorQuestionnaire.itemGroup items must have nested items, display items cannot have nested items
: (type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())
que-3errorQuestionnaire.itemDisplay items cannot have a "code" asserted
: type!='display' or code.empty()
que-4errorQuestionnaire.itemA question cannot have both answerOption and answerValueSet
: answerOption.empty() or answerValueSet.empty()
que-5errorQuestionnaire.itemOnly 'choice' and 'open-choice' items can have answerValueSet
: (type ='choice' or type = 'open-choice' 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-6errorQuestionnaire.itemRequired and repeat aren't permitted for display items
: type!='display' or (required.empty() and repeats.empty())
que-8errorQuestionnaire.itemInitial values can't be specified for groups or display items
: (type!='group' and type!='display') or initial.empty()
que-9errorQuestionnaire.itemRead-only can't be specified for "display" items
: type!='display' or readOnly.empty()
que-10errorQuestionnaire.itemMaximum length can only be declared for simple question types
: (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url' | 'open-choice')) or maxLength.empty()
que-11errorQuestionnaire.itemIf one or more answerOption is present, initial[x] must be missing
: answerOption.empty() or initial.empty()
que-12errorQuestionnaire.itemIf there are more than one enableWhen, enableBehavior must be specified
: enableWhen.count() > 2 implies enableBehavior.exists()
que-13errorQuestionnaire.itemCan only have multiple initial values for repeating items
: repeats=true or initial.count() <= 1

 

Other representations of profile: CSV, Excel, Schematron