HSAAP Special Authority FHIR Implementation Guide
0.1.1 - draft
HSAAP Special Authority FHIR Implementation Guide - Local Development build (v0.1.1) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: https://fhir-ig.digital.health.nz/special-authority/StructureDefinition/sa-questionnaire | Version: 0.1.1 | |||
| Draft as of 2026-10-16 | Computable Name: SAQuestionnaire | |||
The HNZ interpretation of a Pharmac Special Authority form at a point in time (D3), derived by the pharmac-direct-query-service.
Phase 1: the Questionnaire canonical is an identifier, not a resolvable address. No Questionnaire resource is
published at the canonical URL in Phase 1; form definitions remain base64 encoded XML and MathML retrieved from the
pharmac-direct-query-service. This profile documents the constraints the canonical and linkId values must satisfy.
url is https://fhir-ig.digital.health.nz/special-authority/Questionnaire/{formNumber} and SHALL NOT contain | or #.version is the form version (a truncation of form_definition_sha256) and SHALL be identical, character for
character, to saFormVersion. No case folding, trimming or normalisation.linkId of each criterion is the criterionIdentifier: five characters, zero padded, numeric (D18).required, so a partial QuestionnaireResponse is valid against the profile.Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Questionnaire | A structured set of questions Constraints: que-0, que-2, sa-q-1, sa-q-2, sa-q-3, sa-q-4, sa-q-5 |
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() |
1..1 | uri | Canonical of the form: .../Questionnaire/{formNumber} | |
![]() ![]() |
1..1 | string | Form version - identical to saFormVersion | |
![]() ![]() |
C | 0..1 | string | Name for this questionnaire (computer friendly) |
![]() ![]() |
0..1 | string | Name for this questionnaire (human friendly) | |
![]() ![]() |
1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | |
![]() ![]() |
C | 0..* | BackboneElement | Questions and sections within the Questionnaire Constraints: que-1, que-3, que-4, que-5, que-6, que-8, que-9, que-10, que-11, que-12, que-13 |
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() |
1..1 | string | criterionIdentifier (five character, zero padded) for boolean/string items | |
![]() ![]() ![]() |
0..1 | string | Primary text for the item | |
![]() ![]() ![]() |
1..1 | code | group | display | boolean | decimal | integer | date | dateTime + Binding: QuestionnaireItemType (required): Distinguishes groups from questions and display text and indicates data type for questions. | |
![]() ![]() ![]() |
C | 0..* | BackboneElement | Only allow data when Constraints: que-7 |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | string | Question that determines whether item is enabled | |
![]() ![]() ![]() ![]() |
1..1 | code | exists | = | != | > | < | >= | <= Binding: QuestionnaireItemOperator (required): The criteria by which a question is enabled. | |
![]() ![]() ![]() ![]() |
C | 1..1 | Value for question comparison based on operator Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | |
![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||
![]() ![]() ![]() |
C | 0..1 | boolean | SHALL NOT be true for criteria items |
![]() ![]() ![]() |
C | 0..1 | canonical(ValueSet) | Valueset containing permitted answers |
![]() ![]() ![]() |
C | 0..* | BackboneElement | Permitted answer |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | Answer value Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | ||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||
![]() ![]() ![]() |
C | 0..* | BackboneElement | Initial value(s) when item is first rendered |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | Actual value for initializing the question Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | ||
![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
uri | |||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Questionnaire.status | Base | required | PublicationStatus | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.type | Base | required | QuestionnaireItemType | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableWhen.operator | Base | required | QuestionnaireItemOperator | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableWhen.answer[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.answerOption.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.initial.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| sa-q-1 | error | Questionnaire | Questionnaire.url SHALL NOT contain a pipe ('|') or a fragment marker ('#'). |
url.contains('|').not() and url.contains('#').not()
|
| sa-q-2 | warning | Questionnaire | Questionnaire.url SHOULD sit under the HSAAP Special Authority Questionnaire canonical base. |
url.startsWith('https://fhir-ig.digital.health.nz/special-authority/Questionnaire/')
|
| sa-q-3 | error | Questionnaire | Only group, display, boolean and string items are permitted (Assumption 1). |
repeat(item).all(type = 'group' or type = 'display' or type = 'boolean' or type = 'string')
|
| sa-q-4 | error | Questionnaire | The linkId of every boolean or string item SHALL be a criterionIdentifier: a five character, zero padded numeric string (D18). |
repeat(item).where(type = 'boolean' or type = 'string').all(linkId.matches('^[0-9]{5}$'))
|
| sa-q-5 | error | Questionnaire | Criteria items SHALL NOT be marked required, so that a partial QuestionnaireResponse is valid against the profile (D14). |
repeat(item).where(type = 'boolean' or type = 'string').all(required.exists().not() or required = false)
|
This structure is derived from Questionnaire
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Questionnaire | A structured set of questions Constraints: sa-q-1, sa-q-2, sa-q-3, sa-q-4, sa-q-5 |
![]() ![]() |
1..1 | uri | Canonical of the form: .../Questionnaire/{formNumber} | |
![]() ![]() |
1..1 | string | Form version - identical to saFormVersion | |
![]() ![]() |
0..1 | string | Name for this questionnaire (computer friendly) | |
![]() ![]() |
0..1 | string | Name for this questionnaire (human friendly) | |
![]() ![]() |
1..1 | code | draft | active | retired | unknown | |
![]() ![]() |
0..* | BackboneElement | Questions and sections within the Questionnaire | |
![]() ![]() ![]() |
1..1 | string | criterionIdentifier (five character, zero padded) for boolean/string items | |
![]() ![]() ![]() |
0..1 | string | Primary text for the item | |
![]() ![]() ![]() |
1..1 | code | group | display | boolean | decimal | integer | date | dateTime + | |
![]() ![]() ![]() |
0..1 | boolean | SHALL NOT be true for criteria items | |
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| sa-q-1 | error | Questionnaire | Questionnaire.url SHALL NOT contain a pipe ('|') or a fragment marker ('#'). |
url.contains('|').not() and url.contains('#').not()
|
| sa-q-2 | warning | Questionnaire | Questionnaire.url SHOULD sit under the HSAAP Special Authority Questionnaire canonical base. |
url.startsWith('https://fhir-ig.digital.health.nz/special-authority/Questionnaire/')
|
| sa-q-3 | error | Questionnaire | Only group, display, boolean and string items are permitted (Assumption 1). |
repeat(item).all(type = 'group' or type = 'display' or type = 'boolean' or type = 'string')
|
| sa-q-4 | error | Questionnaire | The linkId of every boolean or string item SHALL be a criterionIdentifier: a five character, zero padded numeric string (D18). |
repeat(item).where(type = 'boolean' or type = 'string').all(linkId.matches('^[0-9]{5}$'))
|
| sa-q-5 | error | Questionnaire | Criteria items SHALL NOT be marked required, so that a partial QuestionnaireResponse is valid against the profile (D14). |
repeat(item).where(type = 'boolean' or type = 'string').all(required.exists().not() or required = false)
|
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Questionnaire | A structured set of questions Constraints: que-0, que-2, sa-q-1, sa-q-2, sa-q-3, sa-q-4, sa-q-5 | ||||
![]() ![]() |
0..1 | id | Logical id of this artifact | |||||
![]() ![]() |
0..1 | Meta | Metadata about the resource | |||||
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
1..1 | uri | Canonical of the form: .../Questionnaire/{formNumber} | |||||
![]() ![]() |
0..* | Identifier | Additional identifier for the questionnaire | |||||
![]() ![]() |
1..1 | string | Form version - identical to saFormVersion | |||||
![]() ![]() |
C | 0..1 | string | Name for this questionnaire (computer friendly) | ||||
![]() ![]() |
0..1 | string | Name for this questionnaire (human friendly) | |||||
![]() ![]() |
0..* | canonical(Questionnaire) | Instantiates protocol or definition | |||||
![]() ![]() |
1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | |||||
![]() ![]() |
0..1 | boolean | For testing purposes, not real usage | |||||
![]() ![]() |
0..* | code | Resource that can be subject of QuestionnaireResponse Binding: ResourceType (required): One of the resource types defined as part of this version of FHIR. | |||||
![]() ![]() |
0..1 | dateTime | Date last changed | |||||
![]() ![]() |
0..1 | string | Name of the publisher (organization or individual) | |||||
![]() ![]() |
0..* | ContactDetail | Contact details for the publisher | |||||
![]() ![]() |
0..1 | markdown | Natural language description of the questionnaire | |||||
![]() ![]() |
0..* | UsageContext | The context that the content is intended to support | |||||
![]() ![]() |
0..* | CodeableConcept | Intended jurisdiction for questionnaire (if applicable) Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use. | |||||
![]() ![]() |
0..1 | markdown | Why this questionnaire is defined | |||||
![]() ![]() |
0..1 | markdown | Use and/or publishing restrictions | |||||
![]() ![]() |
0..1 | date | When the questionnaire was approved by publisher | |||||
![]() ![]() |
0..1 | date | When the questionnaire was last reviewed | |||||
![]() ![]() |
0..1 | Period | When the questionnaire is expected to be used | |||||
![]() ![]() |
0..* | Coding | Concept that represents the overall questionnaire Binding: QuestionnaireQuestionCodes (example): Codes for questionnaires, groups and individual questions. | |||||
![]() ![]() |
C | 0..* | BackboneElement | Questions and sections within the Questionnaire Constraints: que-1, que-3, que-4, que-5, que-6, que-8, que-9, que-10, que-11, que-12, que-13 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
1..1 | string | criterionIdentifier (five character, zero padded) for boolean/string items | |||||
![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() |
C | 0..* | Coding | Corresponding concept for this item in a terminology Binding: QuestionnaireQuestionCodes (example): Codes for questionnaires, groups and individual questions. | ||||
![]() ![]() ![]() |
0..1 | string | E.g. "1(a)", "2.5.3" | |||||
![]() ![]() ![]() |
0..1 | string | Primary text for the item | |||||
![]() ![]() ![]() |
1..1 | code | group | display | boolean | decimal | integer | date | dateTime + Binding: QuestionnaireItemType (required): Distinguishes groups from questions and display text and indicates data type for questions. | |||||
![]() ![]() ![]() |
C | 0..* | BackboneElement | Only allow data when Constraints: que-7 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | string | Question that determines whether item is enabled | |||||
![]() ![]() ![]() ![]() |
1..1 | code | exists | = | != | > | < | >= | <= Binding: QuestionnaireItemOperator (required): The criteria by which a question is enabled. | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | Value for question comparison based on operator Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | |||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() |
C | 0..1 | code | all | any Binding: EnableWhenBehavior (required): Controls how multiple enableWhen values are interpreted - whether all or any must be true. | ||||
![]() ![]() ![]() |
C | 0..1 | boolean | SHALL NOT be true for criteria items | ||||
![]() ![]() ![]() |
C | 0..1 | boolean | Whether the item may repeat | ||||
![]() ![]() ![]() |
C | 0..1 | boolean | Don't allow human editing | ||||
![]() ![]() ![]() |
C | 0..1 | integer | No more than this many characters | ||||
![]() ![]() ![]() |
C | 0..1 | canonical(ValueSet) | Valueset containing permitted answers | ||||
![]() ![]() ![]() |
C | 0..* | BackboneElement | Permitted answer | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | Answer value Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | ||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() ![]() |
0..1 | boolean | Whether option is selected by default | |||||
![]() ![]() ![]() |
C | 0..* | BackboneElement | Initial value(s) when item is first rendered | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | Actual value for initializing the question Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | ||||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() |
C | 0..* | See item (Questionnaire) | Nested questionnaire items | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Questionnaire.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| Questionnaire.status | Base | required | PublicationStatus | 📍4.0.1 | FHIR Std. |
| Questionnaire.subjectType | Base | required | ResourceType | 📍4.0.1 | FHIR Std. |
| Questionnaire.jurisdiction | Base | extensible | Jurisdiction | 📍4.0.1 | FHIR Std. |
| Questionnaire.code | Base | example | Questionnaire Question Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.code | Base | example | Questionnaire Question Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.type | Base | required | QuestionnaireItemType | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableWhen.operator | Base | required | QuestionnaireItemOperator | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableWhen.answer[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableBehavior | Base | required | EnableWhenBehavior | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.answerOption.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.initial.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| sa-q-1 | error | Questionnaire | Questionnaire.url SHALL NOT contain a pipe ('|') or a fragment marker ('#'). |
url.contains('|').not() and url.contains('#').not()
|
| sa-q-2 | warning | Questionnaire | Questionnaire.url SHOULD sit under the HSAAP Special Authority Questionnaire canonical base. |
url.startsWith('https://fhir-ig.digital.health.nz/special-authority/Questionnaire/')
|
| sa-q-3 | error | Questionnaire | Only group, display, boolean and string items are permitted (Assumption 1). |
repeat(item).all(type = 'group' or type = 'display' or type = 'boolean' or type = 'string')
|
| sa-q-4 | error | Questionnaire | The linkId of every boolean or string item SHALL be a criterionIdentifier: a five character, zero padded numeric string (D18). |
repeat(item).where(type = 'boolean' or type = 'string').all(linkId.matches('^[0-9]{5}$'))
|
| sa-q-5 | error | Questionnaire | Criteria items SHALL NOT be marked required, so that a partial QuestionnaireResponse is valid against the profile (D14). |
repeat(item).where(type = 'boolean' or type = 'string').all(required.exists().not() or required = false)
|
This structure is derived from Questionnaire
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Questionnaire | A structured set of questions Constraints: que-0, que-2, sa-q-1, sa-q-2, sa-q-3, sa-q-4, sa-q-5 |
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() |
1..1 | uri | Canonical of the form: .../Questionnaire/{formNumber} | |
![]() ![]() |
1..1 | string | Form version - identical to saFormVersion | |
![]() ![]() |
C | 0..1 | string | Name for this questionnaire (computer friendly) |
![]() ![]() |
0..1 | string | Name for this questionnaire (human friendly) | |
![]() ![]() |
1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | |
![]() ![]() |
C | 0..* | BackboneElement | Questions and sections within the Questionnaire Constraints: que-1, que-3, que-4, que-5, que-6, que-8, que-9, que-10, que-11, que-12, que-13 |
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() |
1..1 | string | criterionIdentifier (five character, zero padded) for boolean/string items | |
![]() ![]() ![]() |
0..1 | string | Primary text for the item | |
![]() ![]() ![]() |
1..1 | code | group | display | boolean | decimal | integer | date | dateTime + Binding: QuestionnaireItemType (required): Distinguishes groups from questions and display text and indicates data type for questions. | |
![]() ![]() ![]() |
C | 0..* | BackboneElement | Only allow data when Constraints: que-7 |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | string | Question that determines whether item is enabled | |
![]() ![]() ![]() ![]() |
1..1 | code | exists | = | != | > | < | >= | <= Binding: QuestionnaireItemOperator (required): The criteria by which a question is enabled. | |
![]() ![]() ![]() ![]() |
C | 1..1 | Value for question comparison based on operator Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | |
![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||
![]() ![]() ![]() |
C | 0..1 | boolean | SHALL NOT be true for criteria items |
![]() ![]() ![]() |
C | 0..1 | canonical(ValueSet) | Valueset containing permitted answers |
![]() ![]() ![]() |
C | 0..* | BackboneElement | Permitted answer |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | Answer value Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | ||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||
![]() ![]() ![]() |
C | 0..* | BackboneElement | Initial value(s) when item is first rendered |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | Actual value for initializing the question Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | ||
![]() ![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() ![]() |
decimal | |||
![]() ![]() ![]() ![]() ![]() |
integer | |||
![]() ![]() ![]() ![]() ![]() |
date | |||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||
![]() ![]() ![]() ![]() ![]() |
time | |||
![]() ![]() ![]() ![]() ![]() |
string | |||
![]() ![]() ![]() ![]() ![]() |
uri | |||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||
![]() ![]() ![]() ![]() ![]() |
Coding | |||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Questionnaire.status | Base | required | PublicationStatus | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.type | Base | required | QuestionnaireItemType | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableWhen.operator | Base | required | QuestionnaireItemOperator | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableWhen.answer[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.answerOption.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.initial.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| sa-q-1 | error | Questionnaire | Questionnaire.url SHALL NOT contain a pipe ('|') or a fragment marker ('#'). |
url.contains('|').not() and url.contains('#').not()
|
| sa-q-2 | warning | Questionnaire | Questionnaire.url SHOULD sit under the HSAAP Special Authority Questionnaire canonical base. |
url.startsWith('https://fhir-ig.digital.health.nz/special-authority/Questionnaire/')
|
| sa-q-3 | error | Questionnaire | Only group, display, boolean and string items are permitted (Assumption 1). |
repeat(item).all(type = 'group' or type = 'display' or type = 'boolean' or type = 'string')
|
| sa-q-4 | error | Questionnaire | The linkId of every boolean or string item SHALL be a criterionIdentifier: a five character, zero padded numeric string (D18). |
repeat(item).where(type = 'boolean' or type = 'string').all(linkId.matches('^[0-9]{5}$'))
|
| sa-q-5 | error | Questionnaire | Criteria items SHALL NOT be marked required, so that a partial QuestionnaireResponse is valid against the profile (D14). |
repeat(item).where(type = 'boolean' or type = 'string').all(required.exists().not() or required = false)
|
Differential View
This structure is derived from Questionnaire
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Questionnaire | A structured set of questions Constraints: sa-q-1, sa-q-2, sa-q-3, sa-q-4, sa-q-5 |
![]() ![]() |
1..1 | uri | Canonical of the form: .../Questionnaire/{formNumber} | |
![]() ![]() |
1..1 | string | Form version - identical to saFormVersion | |
![]() ![]() |
0..1 | string | Name for this questionnaire (computer friendly) | |
![]() ![]() |
0..1 | string | Name for this questionnaire (human friendly) | |
![]() ![]() |
1..1 | code | draft | active | retired | unknown | |
![]() ![]() |
0..* | BackboneElement | Questions and sections within the Questionnaire | |
![]() ![]() ![]() |
1..1 | string | criterionIdentifier (five character, zero padded) for boolean/string items | |
![]() ![]() ![]() |
0..1 | string | Primary text for the item | |
![]() ![]() ![]() |
1..1 | code | group | display | boolean | decimal | integer | date | dateTime + | |
![]() ![]() ![]() |
0..1 | boolean | SHALL NOT be true for criteria items | |
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| sa-q-1 | error | Questionnaire | Questionnaire.url SHALL NOT contain a pipe ('|') or a fragment marker ('#'). |
url.contains('|').not() and url.contains('#').not()
|
| sa-q-2 | warning | Questionnaire | Questionnaire.url SHOULD sit under the HSAAP Special Authority Questionnaire canonical base. |
url.startsWith('https://fhir-ig.digital.health.nz/special-authority/Questionnaire/')
|
| sa-q-3 | error | Questionnaire | Only group, display, boolean and string items are permitted (Assumption 1). |
repeat(item).all(type = 'group' or type = 'display' or type = 'boolean' or type = 'string')
|
| sa-q-4 | error | Questionnaire | The linkId of every boolean or string item SHALL be a criterionIdentifier: a five character, zero padded numeric string (D18). |
repeat(item).where(type = 'boolean' or type = 'string').all(linkId.matches('^[0-9]{5}$'))
|
| sa-q-5 | error | Questionnaire | Criteria items SHALL NOT be marked required, so that a partial QuestionnaireResponse is valid against the profile (D14). |
repeat(item).where(type = 'boolean' or type = 'string').all(required.exists().not() or required = false)
|
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
C | 0..* | Questionnaire | A structured set of questions Constraints: que-0, que-2, sa-q-1, sa-q-2, sa-q-3, sa-q-4, sa-q-5 | ||||
![]() ![]() |
0..1 | id | Logical id of this artifact | |||||
![]() ![]() |
0..1 | Meta | Metadata about the resource | |||||
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
1..1 | uri | Canonical of the form: .../Questionnaire/{formNumber} | |||||
![]() ![]() |
0..* | Identifier | Additional identifier for the questionnaire | |||||
![]() ![]() |
1..1 | string | Form version - identical to saFormVersion | |||||
![]() ![]() |
C | 0..1 | string | Name for this questionnaire (computer friendly) | ||||
![]() ![]() |
0..1 | string | Name for this questionnaire (human friendly) | |||||
![]() ![]() |
0..* | canonical(Questionnaire) | Instantiates protocol or definition | |||||
![]() ![]() |
1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | |||||
![]() ![]() |
0..1 | boolean | For testing purposes, not real usage | |||||
![]() ![]() |
0..* | code | Resource that can be subject of QuestionnaireResponse Binding: ResourceType (required): One of the resource types defined as part of this version of FHIR. | |||||
![]() ![]() |
0..1 | dateTime | Date last changed | |||||
![]() ![]() |
0..1 | string | Name of the publisher (organization or individual) | |||||
![]() ![]() |
0..* | ContactDetail | Contact details for the publisher | |||||
![]() ![]() |
0..1 | markdown | Natural language description of the questionnaire | |||||
![]() ![]() |
0..* | UsageContext | The context that the content is intended to support | |||||
![]() ![]() |
0..* | CodeableConcept | Intended jurisdiction for questionnaire (if applicable) Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use. | |||||
![]() ![]() |
0..1 | markdown | Why this questionnaire is defined | |||||
![]() ![]() |
0..1 | markdown | Use and/or publishing restrictions | |||||
![]() ![]() |
0..1 | date | When the questionnaire was approved by publisher | |||||
![]() ![]() |
0..1 | date | When the questionnaire was last reviewed | |||||
![]() ![]() |
0..1 | Period | When the questionnaire is expected to be used | |||||
![]() ![]() |
0..* | Coding | Concept that represents the overall questionnaire Binding: QuestionnaireQuestionCodes (example): Codes for questionnaires, groups and individual questions. | |||||
![]() ![]() |
C | 0..* | BackboneElement | Questions and sections within the Questionnaire Constraints: que-1, que-3, que-4, que-5, que-6, que-8, que-9, que-10, que-11, que-12, que-13 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
1..1 | string | criterionIdentifier (five character, zero padded) for boolean/string items | |||||
![]() ![]() ![]() |
0..1 | uri | ElementDefinition - details for the item | |||||
![]() ![]() ![]() |
C | 0..* | Coding | Corresponding concept for this item in a terminology Binding: QuestionnaireQuestionCodes (example): Codes for questionnaires, groups and individual questions. | ||||
![]() ![]() ![]() |
0..1 | string | E.g. "1(a)", "2.5.3" | |||||
![]() ![]() ![]() |
0..1 | string | Primary text for the item | |||||
![]() ![]() ![]() |
1..1 | code | group | display | boolean | decimal | integer | date | dateTime + Binding: QuestionnaireItemType (required): Distinguishes groups from questions and display text and indicates data type for questions. | |||||
![]() ![]() ![]() |
C | 0..* | BackboneElement | Only allow data when Constraints: que-7 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | string | Question that determines whether item is enabled | |||||
![]() ![]() ![]() ![]() |
1..1 | code | exists | = | != | > | < | >= | <= Binding: QuestionnaireItemOperator (required): The criteria by which a question is enabled. | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | Value for question comparison based on operator Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | |||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() |
C | 0..1 | code | all | any Binding: EnableWhenBehavior (required): Controls how multiple enableWhen values are interpreted - whether all or any must be true. | ||||
![]() ![]() ![]() |
C | 0..1 | boolean | SHALL NOT be true for criteria items | ||||
![]() ![]() ![]() |
C | 0..1 | boolean | Whether the item may repeat | ||||
![]() ![]() ![]() |
C | 0..1 | boolean | Don't allow human editing | ||||
![]() ![]() ![]() |
C | 0..1 | integer | No more than this many characters | ||||
![]() ![]() ![]() |
C | 0..1 | canonical(ValueSet) | Valueset containing permitted answers | ||||
![]() ![]() ![]() |
C | 0..* | BackboneElement | Permitted answer | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | Answer value Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | ||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() ![]() |
0..1 | boolean | Whether option is selected by default | |||||
![]() ![]() ![]() |
C | 0..* | BackboneElement | Initial value(s) when item is first rendered | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | Actual value for initializing the question Binding: QuestionnaireAnswerCodes (example): Allowed values to answer questions. | ||||||
![]() ![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() ![]() |
decimal | |||||||
![]() ![]() ![]() ![]() ![]() |
integer | |||||||
![]() ![]() ![]() ![]() ![]() |
date | |||||||
![]() ![]() ![]() ![]() ![]() |
dateTime | |||||||
![]() ![]() ![]() ![]() ![]() |
time | |||||||
![]() ![]() ![]() ![]() ![]() |
string | |||||||
![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() |
Attachment | |||||||
![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() ![]() |
Reference(Resource) | |||||||
![]() ![]() ![]() |
C | 0..* | See item (Questionnaire) | Nested questionnaire items | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Questionnaire.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| Questionnaire.status | Base | required | PublicationStatus | 📍4.0.1 | FHIR Std. |
| Questionnaire.subjectType | Base | required | ResourceType | 📍4.0.1 | FHIR Std. |
| Questionnaire.jurisdiction | Base | extensible | Jurisdiction | 📍4.0.1 | FHIR Std. |
| Questionnaire.code | Base | example | Questionnaire Question Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.code | Base | example | Questionnaire Question Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.type | Base | required | QuestionnaireItemType | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableWhen.operator | Base | required | QuestionnaireItemOperator | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableWhen.answer[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.enableBehavior | Base | required | EnableWhenBehavior | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.answerOption.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Questionnaire.item.initial.value[x] | Base | example | Questionnaire Answer Codes | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| sa-q-1 | error | Questionnaire | Questionnaire.url SHALL NOT contain a pipe ('|') or a fragment marker ('#'). |
url.contains('|').not() and url.contains('#').not()
|
| sa-q-2 | warning | Questionnaire | Questionnaire.url SHOULD sit under the HSAAP Special Authority Questionnaire canonical base. |
url.startsWith('https://fhir-ig.digital.health.nz/special-authority/Questionnaire/')
|
| sa-q-3 | error | Questionnaire | Only group, display, boolean and string items are permitted (Assumption 1). |
repeat(item).all(type = 'group' or type = 'display' or type = 'boolean' or type = 'string')
|
| sa-q-4 | error | Questionnaire | The linkId of every boolean or string item SHALL be a criterionIdentifier: a five character, zero padded numeric string (D18). |
repeat(item).where(type = 'boolean' or type = 'string').all(linkId.matches('^[0-9]{5}$'))
|
| sa-q-5 | error | Questionnaire | Criteria items SHALL NOT be marked required, so that a partial QuestionnaireResponse is valid against the profile (D14). |
repeat(item).where(type = 'boolean' or type = 'string').all(required.exists().not() or required = false)
|
This structure is derived from Questionnaire
Other representations of profile: CSV, Excel, Schematron