FHIR Artifacts > Structure Definition: Questionnaire Profile

Structure Definition: Questionnaire Profile

Canonical URL:http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Questionnaire

Simplifier project page: Questionnaire

Derived from: Questionnaire (R4)

Formal Views of Profile Content

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

Differential View

versionIdΣ0..1id
lastUpdatedΣ0..1instant
sourceΣ0..1uri
profileS Σ1..*canonical(StructureDefinition)
securityΣ0..*CodingBinding
tagΣ0..*Coding
url1..1System.StringFixed Value
valueReferenceReference(Questionnaire)
urlΣ0..1uri
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ0..1uri
valueS Σ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(Organization)
versionΣ0..1string
nameΣ I0..1string
titleΣ0..1string
derivedFrom0..*canonical(Questionnaire)
statusΣ ?!1..1codeBinding
experimentalΣ0..1boolean
subjectTypeΣ0..*codeBinding
dateS Σ1..1dateTime
publisherΣ0..1string
contactΣ0..*ContactDetail
description0..1markdown
useContextΣ0..*UsageContext
jurisdictionΣ0..*CodeableConceptBinding
purpose0..1markdown
copyright0..1markdown
approvalDate0..1date
lastReviewDate0..1date
effectivePeriodΣ I0..1Period
codeΣ0..*Coding
linkIdS1..1string
definition0..1uri
codeI0..*Coding
prefix0..1string
textS0..1string
typeS1..1codeBinding
question1..1string
operator1..1codeBinding
answerBooleanboolean
answerDecimaldecimal
answerIntegerinteger
answerDatedate
answerDateTimedateTime
answerTimetime
answerStringstring
answerCodingCoding
answerQuantityQuantity
answerReferenceReference(Resource)
enableBehaviorI0..1codeBinding
requiredI0..1boolean
repeatsI0..1boolean
readOnlyI0..1boolean
maxLengthI0..1integer
answerValueSetI0..1canonical(ValueSet)
valueIntegerinteger
valueDatedate
valueTimetime
valueStringstring
valueCodingCoding
valueReferenceReference(Resource)
initialSelected0..1boolean
valueBooleanboolean
valueDecimaldecimal
valueIntegerinteger
valueDatedate
valueDateTimedateTime
valueTimetime
valueStringstring
valueUriuri
valueAttachmentAttachment
valueCodingCoding
valueQuantityQuantity
valueReferenceReference(Resource)
itemI0..*see (item)

Hybrid View

versionIdΣ0..1id
lastUpdatedΣ0..1instant
sourceΣ0..1uri
profileS Σ1..*canonical(StructureDefinition)
securityΣ0..*CodingBinding
tagΣ0..*Coding
url1..1System.StringFixed Value
valueReferenceReference(Questionnaire)
urlΣ0..1uri
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ0..1uri
valueS Σ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(Organization)
versionΣ0..1string
nameΣ I0..1string
titleΣ0..1string
derivedFrom0..*canonical(Questionnaire)
statusΣ ?!1..1codeBinding
experimentalΣ0..1boolean
subjectTypeΣ0..*codeBinding
dateS Σ1..1dateTime
publisherΣ0..1string
contactΣ0..*ContactDetail
description0..1markdown
useContextΣ0..*UsageContext
jurisdictionΣ0..*CodeableConceptBinding
purpose0..1markdown
copyright0..1markdown
approvalDate0..1date
lastReviewDate0..1date
effectivePeriodΣ I0..1Period
codeΣ0..*Coding
linkIdS1..1string
definition0..1uri
codeI0..*Coding
prefix0..1string
textS0..1string
typeS1..1codeBinding
question1..1string
operator1..1codeBinding
answerBooleanboolean
answerDecimaldecimal
answerIntegerinteger
answerDatedate
answerDateTimedateTime
answerTimetime
answerStringstring
answerCodingCoding
answerQuantityQuantity
answerReferenceReference(Resource)
enableBehaviorI0..1codeBinding
requiredI0..1boolean
repeatsI0..1boolean
readOnlyI0..1boolean
maxLengthI0..1integer
answerValueSetI0..1canonical(ValueSet)
valueIntegerinteger
valueDatedate
valueTimetime
valueStringstring
valueCodingCoding
valueReferenceReference(Resource)
initialSelected0..1boolean
valueBooleanboolean
valueDecimaldecimal
valueIntegerinteger
valueDatedate
valueDateTimedateTime
valueTimetime
valueStringstring
valueUriuri
valueAttachmentAttachment
valueCodingCoding
valueQuantityQuantity
valueReferenceReference(Resource)
itemI0..*see (item)

Snapshot View

versionIdΣ0..1id
lastUpdatedΣ0..1instant
sourceΣ0..1uri
profileS Σ1..*canonical(StructureDefinition)
securityΣ0..*CodingBinding
tagΣ0..*Coding
url1..1System.StringFixed Value
valueReferenceReference(Questionnaire)
urlΣ0..1uri
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ0..1uri
valueS Σ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(Organization)
versionΣ0..1string
nameΣ I0..1string
titleΣ0..1string
derivedFrom0..*canonical(Questionnaire)
statusΣ ?!1..1codeBinding
experimentalΣ0..1boolean
subjectTypeΣ0..*codeBinding
dateS Σ1..1dateTime
publisherΣ0..1string
contactΣ0..*ContactDetail
description0..1markdown
useContextΣ0..*UsageContext
jurisdictionΣ0..*CodeableConceptBinding
purpose0..1markdown
copyright0..1markdown
approvalDate0..1date
lastReviewDate0..1date
effectivePeriodΣ I0..1Period
codeΣ0..*Coding
linkIdS1..1string
definition0..1uri
codeI0..*Coding
prefix0..1string
textS0..1string
typeS1..1codeBinding
question1..1string
operator1..1codeBinding
answerBooleanboolean
answerDecimaldecimal
answerIntegerinteger
answerDatedate
answerDateTimedateTime
answerTimetime
answerStringstring
answerCodingCoding
answerQuantityQuantity
answerReferenceReference(Resource)
enableBehaviorI0..1codeBinding
requiredI0..1boolean
repeatsI0..1boolean
readOnlyI0..1boolean
maxLengthI0..1integer
answerValueSetI0..1canonical(ValueSet)
valueIntegerinteger
valueDatedate
valueTimetime
valueStringstring
valueCodingCoding
valueReferenceReference(Resource)
initialSelected0..1boolean
valueBooleanboolean
valueDecimaldecimal
valueIntegerinteger
valueDatedate
valueDateTimedateTime
valueTimetime
valueStringstring
valueUriuri
valueAttachmentAttachment
valueCodingCoding
valueQuantityQuantity
valueReferenceReference(Resource)
itemI0..*see (item)

Table View

Questionnaire..
Questionnaire.meta1..
Questionnaire.meta.profile1..
Questionnaire.extension0..
Questionnaire.extensionExtension0..1
Questionnaire.extension.value[x]Reference(Questionnaire)..
Questionnaire.identifier..
Questionnaire.identifier.system..
Questionnaire.identifier.value..
Questionnaire.date1..
Questionnaire.item..
Questionnaire.item.linkId..
Questionnaire.item.text..
Questionnaire.item.type..
Questionnaire.item.answerOption..
Questionnaire.item.item..


JSON View

{
    "resourceType": "StructureDefinition",
    "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Questionnaire",
    "version": "1.0.0",
    "name": "Questionnaire",
    "status": "draft",
    "fhirVersion": "4.0.1",
    "kind": "resource",
    "abstract": false,
    "type": "Questionnaire",
    "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
    "derivation": "constraint",
    "differential": {
        "element":  [
            {
                "id": "Questionnaire.meta",
                "path": "Questionnaire.meta",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Questionnaire.meta.profile",
                "path": "Questionnaire.meta.profile",
                "comment": "#### **_` FOR eREFERRAL USAGE: The meta.profile = http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Questionnaire|1.0.0 `_**\n\nIt is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Questionnaire.extension",
                "path": "Questionnaire.extension",
                "slicing": {
                    "discriminator":  [
                        {
                            "type": "value",
                            "path": "url"
                        }
                    ],
                    "rules": "open"
                },
                "min": 0
            },
            {
                "id": "Questionnaire.extension:ext-referral-form",
                "path": "Questionnaire.extension",
                "sliceName": "ext-referral-form",
                "min": 0,
                "max": "1",
                "type":  [
                    {
                        "code": "Extension",
                        "profile":  [
                            "http://ehealthontario.ca/fhir/StructureDefinition/ext-referral-form"
                        ]
                    }
                ],
                "isModifier": false
            },
            {
                "id": "Questionnaire.extension:ext-referral-form.value[x]",
                "path": "Questionnaire.extension.value[x]",
                "type":  [
                    {
                        "code": "Reference",
                        "targetProfile":  [
                            "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Questionnaire"
                        ]
                    }
                ]
            },
            {
                "id": "Questionnaire.identifier",
                "path": "Questionnaire.identifier",
                "mustSupport": true
            },
            {
                "id": "Questionnaire.identifier.system",
                "path": "Questionnaire.identifier.system",
                "mustSupport": true
            },
            {
                "id": "Questionnaire.identifier.value",
                "path": "Questionnaire.identifier.value",
                "mustSupport": true
            },
            {
                "id": "Questionnaire.date",
                "path": "Questionnaire.date",
                "min": 1,
                "mustSupport": true
            },
            {
                "id": "Questionnaire.item",
                "path": "Questionnaire.item",
                "mustSupport": true
            },
            {
                "id": "Questionnaire.item.linkId",
                "path": "Questionnaire.item.linkId",
                "mustSupport": true
            },
            {
                "id": "Questionnaire.item.text",
                "path": "Questionnaire.item.text",
                "mustSupport": true
            },
            {
                "id": "Questionnaire.item.type",
                "path": "Questionnaire.item.type",
                "mustSupport": true
            },
            {
                "id": "Questionnaire.item.answerOption",
                "path": "Questionnaire.item.answerOption",
                "mustSupport": true
            },
            {
                "id": "Questionnaire.item.item",
                "path": "Questionnaire.item.item",
                "contentReference": "http://hl7.org/fhir/StructureDefinition/Questionnaire#Questionnaire.item"
            }
        ]
    }
}

Usage

A structured set of questions intended to guide the collection of answers from end-users.

Notes

.id

  • used to uniquely identify the resource
  • if a persistent identity for the resource is not available to use when constructing a message Bundle for transmission via Direct Messaging, a UUID SHOULD be used in this element (with a corresponding value in Bundle.entry.fullUrl)

.meta.profile

  • used to declare conformance to this profile
  • populate with a fixed value: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Questionnaire|1.0.0

.date

  • SHALL be populated with the date and time the questionnaire was last updated

.item

  • .linkId SHALL be populated with unique identifier for the question being asked that links to the equivalent item in a QuestionnaireResponse resource
  • .text SHOULD contain the text version of the question
  • .type SHALL contain the type of questionnaire item
  • .answerOption SHOULD contain the permitted response to a question