This page is part of the Structured Data Capture FHIR IG (v1.6: STU 2 Ballot 1) based on FHIR v1.6.0. . For a full list of available versions, see the Directory of published versions

This is a pre-release of a future version of SDC (expected to be STU 2). The current version is STU 2.
For a full list of available versions, see the Directory of published versions .

10.1 StructureDefinition: Profile sdc-response

The official URL for this profile is:

http://hl7.org/fhir/us/sdc/StructureDefinition/sdc-response

10.1.2 Formal Views of Profile Content

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

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 3 elements (+1 nested mandatory element)
Must-Support: 12 elements

Structures

This structure refers to these other structures:

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse I0..*A structured set of questions and their answers
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
... 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: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier S0..1IdentifierUnique id for this set of answers
... basedOn 0..*Reference(DiagnosticRequest | ReferralRequest | CarePlan)Request fulfilled by this Questionnaire
... parent 0..*Reference(Observation | Procedure)Part of this action
... questionnaire S1..1Reference(Profile sdc-questionnaire)A structured set of questions
... status ?!S1..1codein-progress | completed | amended
Binding: QuestionnaireResponseStatus (required)
... subject S1..1Reference(Patient)Information about an individual or animal receiving health care services
... context 0..1Reference(Encounter | EpisodeOfCare)Encounter or Episode during which questionnaire was completed
... author S0..1Reference(Device | Practitioner | Patient | RelatedPerson)Person who received and recorded the answers
... authored S1..1dateTimeDate this version was authored
... source 0..1Reference(Patient | Practitioner | RelatedPerson)The person who answered the questions
... item S0..*BackboneElementGroups and questions
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringCorresponding item within Questionnaire
.... text S0..1stringName for group or question text
.... subject 0..1Reference(Patient)Information about an individual or animal receiving health care services
.... answer S0..*BackboneElementThe response(s) to the question
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
..... value[x] S0..1boolean, date, dateTime, time, instant, decimal, integer, string, Coding, uri, Quantity, Attachment, Reference()Single-valued answer to the question
Binding: (unbound) (example)
..... item 0..*Unknown reference to #QuestionnaireResponse:sdcdata.item
Nested groups and questions
.... item S0..*Unknown reference to #QuestionnaireResponse:sdcdata.item
Nested questionnaire response items

doco Documentation for this format

yet to be done: Xml template

yet to be done: Json template

yet to be done: Turtle template

This structure is derived from QuestionnaireResponse

Summary

Mandatory: 3 elements (+1 nested mandatory element)
Must-Support: 12 elements

Structures

This structure refers to these other structures:

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. QuestionnaireResponse I0..*A structured set of questions and their answers
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
... 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: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier S0..1IdentifierUnique id for this set of answers
... basedOn 0..*Reference(DiagnosticRequest | ReferralRequest | CarePlan)Request fulfilled by this Questionnaire
... parent 0..*Reference(Observation | Procedure)Part of this action
... questionnaire S1..1Reference(Profile sdc-questionnaire)A structured set of questions
... status ?!S1..1codein-progress | completed | amended
Binding: QuestionnaireResponseStatus (required)
... subject S1..1Reference(Patient)Information about an individual or animal receiving health care services
... context 0..1Reference(Encounter | EpisodeOfCare)Encounter or Episode during which questionnaire was completed
... author S0..1Reference(Device | Practitioner | Patient | RelatedPerson)Person who received and recorded the answers
... authored S1..1dateTimeDate this version was authored
... source 0..1Reference(Patient | Practitioner | RelatedPerson)The person who answered the questions
... item S0..*BackboneElementGroups and questions
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringCorresponding item within Questionnaire
.... text S0..1stringName for group or question text
.... subject 0..1Reference(Patient)Information about an individual or animal receiving health care services
.... answer S0..*BackboneElementThe response(s) to the question
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
..... value[x] S0..1boolean, date, dateTime, time, instant, decimal, integer, string, Coding, uri, Quantity, Attachment, Reference()Single-valued answer to the question
Binding: (unbound) (example)
..... item 0..*Unknown reference to #QuestionnaireResponse:sdcdata.item
Nested groups and questions
.... item S0..*Unknown reference to #QuestionnaireResponse:sdcdata.item
Nested questionnaire response items

doco Documentation for this format

XML Template

yet to be done: Xml template

JSON Template

yet to be done: Json template

TTL Template

yet to be done: Turtle template

 

Other representations of profile: Schematron

10.1.3 Terminology Bindings

Terminology Bindings

PathNameConformanceValueSet
QuestionnaireResponse.languageCommon LanguagesextensibleCommon Languages
QuestionnaireResponse.statusQuestionnaireResponseStatusrequiredQuestionnaireResponseStatus
QuestionnaireResponse.item.answer.value[x]?extexample

10.1.4 Constraints

Constraints

IdPathDetailsRequirements
dom-2QuestionnaireResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
XPath: not(parent::f:contained and f:contained)
dom-1QuestionnaireResponseIf the resource is contained in another resource, it SHALL NOT contain any narrative
XPath: not(parent::f:contained and f:text)
dom-4QuestionnaireResponseIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
XPath: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
dom-3QuestionnaireResponseIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
XPath: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))