The official URL for this profile is:
http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaire
This profile builds on Questionnaire.
This profile was published on Wed May 29 18:05:58 UTC 2019 as a draft by ehealth.sundhed.dk.
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
Path | Name | Conformance | ValueSet |
Questionnaire.language | Common Languages | extensible | Common Languages |
Questionnaire.status | PublicationStatus | required | PublicationStatus |
Questionnaire.jurisdiction | Jurisdiction ValueSet | extensible | Jurisdiction ValueSet |
Questionnaire.code | Questionnaire Question Codes | example | Questionnaire Question Codes |
Questionnaire.subjectType | ResourceType | required | ResourceType |
Questionnaire.item.code | Questionnaire Question Codes | example | Questionnaire Question Codes |
Questionnaire.item.type | QuestionnaireItemType | required | QuestionnaireItemType |
Questionnaire.item.enableWhen.answer[x] | Questionnaire Answer Codes | example | Questionnaire Answer Codes |
Questionnaire.item.option.value[x] | Questionnaire Answer Codes | example | Questionnaire Answer Codes |
Questionnaire.item.initial[x] | Questionnaire Answer Codes | example | Questionnaire Answer Codes |
Id | Path | Details | Requirements |
dom-2 | Questionnaire | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-1 | Questionnaire | If the resource is contained in another resource, it SHALL NOT contain any narrative : contained.text.empty() | |
dom-4 | Questionnaire | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
dom-3 | Questionnaire | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource : contained.where(('#'+id in %resource.descendants().reference).not()).empty() | |
que-2 | Questionnaire | The link ids for groups and questions must be unique within the questionnaire : descendants().linkId.isDistinct() | |
ele-1 | Questionnaire.item | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) | |
que-9 | Questionnaire.item | Read-only can't be specified for "display" items : type!='display' or readOnly.empty() | |
que-8 | Questionnaire.item | Default values can't be specified for groups or display items : (type!='group' and type!='display') or initial.empty() | |
que-6 | Questionnaire.item | Required and repeat aren't permitted for display items : type!='display' or (required.empty() and repeats.empty()) | |
que-5 | Questionnaire.item | Only 'choice' items can have options : (type ='choice' or type = 'open-choice') or (options.empty() and option.empty()) | |
que-4 | Questionnaire.item | A question cannot have both option and options : option.empty() or options.empty() | |
que-3 | Questionnaire.item | Display items cannot have a "code" asserted : type!='display' or code.empty() | |
que-10 | Questionnaire.item | Maximum length can only be declared for simple question types : (type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url')) or maxLength.empty() | |
que-1 | Questionnaire.item | Group 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()) | |
ele-1 | Questionnaire.item.enableWhen | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) | |
que-7 | Questionnaire.item.enableWhen | enableWhen must contain either a 'answer' or a 'hasAnswer' element : hasAnswer.exists() xor answer.exists() | |
ele-1 | Questionnaire.item.option | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |