## Profile Comparison between http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire vs http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire

Left: | SDCBaseQuestionnaire (http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire)
Right: | SDC Base Questionnaire (http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire)

### Messages

Error | StructureDefinition.version | Values for version differ: '3.0.0' vs '4.0.0'
Information | StructureDefinition.status | Values for status differ: 'draft' vs 'active'
Information | StructureDefinition.date | Values for date differ: '2022-03-08T18:33:14+00:00' vs '2026-03-24T16:16:08+11:00'
Information | StructureDefinition.publisher | Values for publisher differ: 'HL7 International - FHIR Infrastructure Work Group' vs 'HL7 International / FHIR Infrastructure'
Error | StructureDefinition.baseDefinition | Values for baseDefinition differ: 'http://hl7.org/fhir/StructureDefinition/Questionnaire' vs 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon'
Information | StructureDefinition.definition | Values for definition differ: 'Sets minimum expectations for questionnaire support for SDC-conformant systems, regardless of which SDC capabilities they're making use of.' vs 'A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.'
Information | Questionnaire.language | Example/preferred bindings differ at Questionnaire.language using binding from SDCBaseQuestionnaire
Information | StructureDefinition.comment | Values for comment differ: 'When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading. Group item instructions should be included as a display type item within the group.' vs 'When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading. Group item instructions should be included as a display type item within the group. This is optional only to support form assembly situations where the text may be generated from another source. In an assembled Questionnaire, it should always be present.'
Warning | Questionnaire.item.text | Elements differ in definition for mustSupport: 'true' vs 'false'
Warning | Questionnaire.item.maxLength | Elements differ in definition for mustSupport: 'true' vs 'false'
Warning | Questionnaire.item.answerOption.value[x] | Elements differ in definition for mustSupport: 'false' vs 'true'

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://hl7.org/fhir/StructureDefinition/Questionnaire | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnairecommon | Values Differ
copyright |  |
date | 2022-03-08T18:33:14+00:00 | 2026-03-24T16:16:08+11:00 | Values Differ
description | Sets minimum expectations for questionnaire support for SDC-conformant systems, regardless of which SDC capabilities they're making use of. | Sets minimum expectations for questionnaire support for SDC-conformant systems for 'standard' (non-adaptive) Questionnaires, regardless of which SDC capabilities they're making use of. | Values Differ
experimental |  |
fhirVersion | 4.0.1 |
jurisdiction |  |
jurisdiction[0] | http://unstats.un.org/unsd/methods/m49/m49.htm#001 |
kind | resource |
name | SDCBaseQuestionnaire |
publisher | HL7 International - FHIR Infrastructure Work Group | HL7 International / FHIR Infrastructure | Values Differ
purpose |  |
status | draft | active | Values Differ
title |  | SDC Base Questionnaire | Added the item 'SDC Base Questionnaire'
type | Questionnaire |
url | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire |
version | 3.0.0 | 4.0.0 | Values Differ

### Structure

Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Questionnaire | C | 0..* | Questionnaire | A structured set of questions | C | 0..* | SDCQuestionnaireCommon | A structured set of questions |
id | Σ | 0..1 | string | Logical id of this artifact | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language |  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
|  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
| Example/preferred bindings differ at Questionnaire.language using binding from SDCBaseQuestionnaire
text |  | 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..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 |
contained |  | 0..* | Resource | Contained, inline Resources |  | 0..* | Resource | Contained, inline Resources |
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ?! | 0..* | Extension | Extensions that cannot be ignored |
url | S Σ | 1..1 | uri | Canonical identifier for this questionnaire, represented as a URI (globally unique) | S Σ C | 1..1 | uri | Canonical identifier for this questionnaire, represented as a URI (globally unique) |
identifier | Σ | 0..* | Identifier | Additional identifier for the questionnaire | Σ | 0..* | Identifier | Additional identifier for the questionnaire |
version | S Σ | 0..1 | string | Business version of the questionnaire | S Σ | 0..1 | string | Business version of the questionnaire |
name | Σ C | 0..1 | string | Name for this questionnaire (computer friendly) | Σ C | 0..1 | string | Name for this questionnaire (computer friendly) |
title | S Σ | 0..1 | string | Name for this questionnaire (human friendly) | S Σ | 0..1 | string | Name for this questionnaire (human friendly) |
derivedFrom |  | 0..* | canonical(Questionnaire) | Instantiates protocol or definition |  | 0..* | canonical(Questionnaire) | Instantiates protocol or definition |
status | ?!S Σ | 1..1 | code | draft | active | retired | unknown Binding: ?? (required): The lifecycle status of an artifact. | ?!S Σ | 1..1 | code | draft | active | retired | unknown Binding: ?? (required): The lifecycle status of an artifact. |
experimental | Σ | 0..1 | boolean | For testing purposes, not real usage | Σ | 0..1 | boolean | For testing purposes, not real usage |
subjectType | S Σ | 0..* | code | Resource that can be subject of QuestionnaireResponse Binding: ?? (required): One of the resource types defined as part of this version of FHIR. | S Σ | 0..* | code | Resource that can be subject of QuestionnaireResponse Binding: ?? (required): One of the resource types defined as part of this version of FHIR. |
id |  |  |  |  |  | 0..1 | string | xml:id (or equivalent in JSON) | Added this element
Slices for extension |  |  |  |  |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url | Added this element
value |  |  |  |  |  | 0..1 | string | Primitive value for code | Added this element
date | Σ | 0..1 | dateTime | Date last changed | Σ | 0..1 | dateTime | Date last changed |
publisher | Σ | 0..1 | string | Name of the publisher (organization or individual) | Σ | 0..1 | string | Name of the publisher (organization or individual) |
contact | Σ | 0..* | ContactDetail | Contact details for the publisher | Σ | 0..* | ContactDetail | Contact details for the publisher |
description |  | 0..1 | markdown | Natural language description of the questionnaire |  | 0..1 | markdown | Natural language description of the questionnaire |
useContext | Σ | 0..* | UsageContext | The context that the content is intended to support | Σ | 0..* | UsageContext | The context that the content is intended to support |
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for questionnaire (if applicable) Binding: ?? (extensible): Countries and regions within which this artifact is targeted for use. | Σ | 0..* | CodeableConcept | Intended jurisdiction for questionnaire (if applicable) Binding: ?? (extensible): Countries and regions within which this artifact is targeted for use. |
purpose |  | 0..1 | markdown | Why this questionnaire is defined |  | 0..1 | markdown | Why this questionnaire is defined |
copyright |  | 0..1 | markdown | Use and/or publishing restrictions |  | 0..1 | markdown | Use and/or publishing restrictions |
approvalDate |  | 0..1 | date | When the questionnaire was approved by publisher |  | 0..1 | date | When the questionnaire was approved by publisher |
lastReviewDate |  | 0..1 | date | When the questionnaire was last reviewed |  | 0..1 | date | When the questionnaire was last reviewed |
effectivePeriod | Σ | 0..1 | Period | When the questionnaire is expected to be used | Σ | 0..1 | Period | When the questionnaire is expected to be used |
code | Σ | 0..* | Coding | Concept that represents the overall questionnaire Binding: ?? (example): Codes for questionnaires, groups and individual questions. | Σ | 0..* | Coding | Concept that represents the overall questionnaire Binding: ?? (example): Codes for questionnaires, groups and individual questions. |
item | S C | 0..* | BackboneElement | Questions and sections within the Questionnaire Constraints: sdc-1 | S C | 0..* | BackboneElement | Questions and sections within the Questionnaire |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
linkId | S | 1..1 | string | Unique id for item in questionnaire | S C | 1..1 | string | Unique id for item in questionnaire |
definition |  | 0..1 | uri | ElementDefinition - details for the item |  | 0..1 | uri | ElementDefinition - details for the item |
code | C | 0..* | Coding | Corresponding concept for this item in a terminology Binding: ?? (example): Codes for questionnaires, groups and individual questions. | C | 0..* | Coding | Corresponding concept for this item in a terminology Binding: ?? (example): Codes for questionnaires, groups and individual questions. |
prefix | S | 0..1 | string | E.g. "1(a)", "2.5.3" | S | 0..1 | string | E.g. "1(a)", "2.5.3" |
text | S | 0..1 | string | Primary text for the item |  | 0..1 | string | Primary text for the item | Elements differ in definition for mustSupport: 'true' vs 'false'
type | S | 1..1 | code | group | display | boolean | decimal | integer | date | dateTime + Binding: ?? (required): Distinguishes groups from questions and display text and indicates data type for questions. | S | 1..1 | code | group | display | boolean | decimal | integer | date | dateTime + Binding: ?? (required): Distinguishes groups from questions and display text and indicates data type for questions. |
enableWhen | ?!C | 0..* | BackboneElement | Only allow data when Constraints: que-7 | ?!C | 0..* | BackboneElement | Only allow data when |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
extension |  | 0..* | Extension | Additional content defined by implementations |  | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
question |  | 1..1 | string | Question that determines whether item is enabled |  | 1..1 | string | Question that determines whether item is enabled |
operator |  | 1..1 | code | exists | = | != | > | < | >= | <= Binding: ?? (required): The criteria by which a question is enabled. |  | 1..1 | code | exists | = | != | > | < | >= | <= Binding: ?? (required): The criteria by which a question is enabled. |
answer[x] | C | 1..1 | boolean, decimal, integer, date, dateTime, time, string, Coding, Quantity, Reference(Resource) | Value for question comparison based on operator Binding: ?? (example): Allowed values to answer questions. | C | 1..1 | boolean, decimal, integer, date, dateTime, time, string, Coding, Quantity, Reference(Resource) | Value for question comparison based on operator Binding: ?? (example): Allowed values to answer questions. |
enableBehavior | C | 0..1 | code | all | any Binding: ?? (required): Controls how multiple enableWhen values are interpreted - whether all or any must be true. | C | 0..1 | code | all | any Binding: ?? (required): Controls how multiple enableWhen values are interpreted - whether all or any must be true. |
required | S C | 0..1 | boolean | Whether the item must be included in data results | S C | 0..1 | boolean | Whether the item must be included in data results |
repeats | S C | 0..1 | boolean | Whether the item may repeat | S C | 0..1 | boolean | Whether the item may repeat |
readOnly | S C | 0..1 | boolean | Don't allow human editing | S C | 0..1 | boolean | Don't allow human editing |
maxLength | S C | 0..1 | integer | No more than this many characters | C | 0..1 | integer | No more than this many characters | Elements differ in definition for mustSupport: 'true' vs 'false'
answerValueSet | S C | 0..1 | canonical(SDC ValueSet) | Valueset containing permitted answers | S C | 0..1 | canonical(SDC Value Set) | Valueset containing permitted answers |
answerOption | S C | 0..* | BackboneElement | Permitted answer | S C | 0..* | BackboneElement | Permitted answer |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
extension |  | 0..* | Extension | Additional content defined by implementations |  | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
value[x] |  | 1..1 | integer, date, time, string, Coding, Reference(Resource) | Answer value Binding: ?? (example): Allowed values to answer questions. | S | 1..1 | integer, date, time, string, Coding, Reference(Resource) | Answer value Slice: Unordered, Open by type:$this Binding: ?? (example): Allowed values to answer questions. | Elements differ in definition for mustSupport: 'false' vs 'true'
initialSelected |  | 0..1 | boolean | Whether option is selected by default |  | 0..1 | boolean | Whether option is selected by default |
initial | S C | 0..* | BackboneElement | Initial value(s) when item is first rendered | S C | 0..* | BackboneElement | Initial value(s) when item is first rendered |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
extension |  | 0..* | Extension | Additional content defined by implementations |  | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
value[x] | S | 1..1 | boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference(Resource) | Actual value for initializing the question Binding: ?? (example): Allowed values to answer questions. | S | 1..1 | boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference(Resource) | Actual value for initializing the question Binding: ?? (example): Allowed values to answer questions. |
item | S C | 0..* | See item (Questionnaire) | Nested questionnaire items | S C | 0..* | See item (Questionnaire) | Nested questionnaire items |
Documentation for this format