## Union of http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse and http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse

This is the set of resources that conform to either of the profiles DTR Questionnaire Response (http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse) and DTR Questionnaire Response (http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse). E.g. what you have to deal with if you get resources conforming to one of them

### Structure

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
QuestionnaireResponse | C | 0..* |  | SDC Questionnaire Response dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated dom-5: If a resource is contained in another resource, it SHALL NOT have a security label dom-6: A resource should have narrative for robust management sdcqr-1: Subject SHOULD be present (searching is difficult without subject). Almost all QuestionnaireResponses should be with respect to some sort of subject. sdcqr-2: When repeats=true for a group, it'll be represented with multiple items with the same linkId in the QuestionnaireResponse. For a question, it'll be represented by a single item with that linkId with multiple answers.
meta | Σ | 0..1 | Meta | Metadata about the resource ele-1: All FHIR elements must have a @value or children
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created ele-1: All FHIR elements must have a @value or children
language |  | 0..1 | code | Language of the resource content Binding: ?? (preferred): A human language. ele-1: All FHIR elements must have a @value or children
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation ele-1: All FHIR elements must have a @value or children
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 3..* | Extension | Extension ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
identifier | S Σ | 0..1 | Identifier | Unique id for this set of answers ele-1: All FHIR elements must have a @value or children
questionnaire | S Σ | 1..1 | canonical(SDCBaseQuestionnaire) | Form being answered ele-1: All FHIR elements must have a @value or children
extension |  | 0..* | Extension | Extension ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
value |  | 0..1 | string | Primitive value for canonical
status | ?!S Σ | 1..1 | code | in-progress | completed | amended | entered-in-error | stopped Binding: ?? (required): Lifecycle status of the questionnaire response. ele-1: All FHIR elements must have a @value or children
subject | S Σ | 1..1 | Reference(CRD Patient | #sd-profile-patient-profile-patient) | The subject of the questions ele-1: All FHIR elements must have a @value or children
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of ele-1: All FHIR elements must have a @value or children
authored | S Σ | 1..1 | dateTime | Date the answers were gathered ele-1: All FHIR elements must have a @value or children
author | S Σ | 0..1 | Reference(Device | CRD Patient | US Core Practitioner Profile(7.0.0) | HRex PractitionerRole Profile | CRD Organization | RelatedPerson) | Person who received and recorded the answers ele-1: All FHIR elements must have a @value or children
source | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | The person who answered the questions ele-1: All FHIR elements must have a @value or children
item | S C | 1..* | BackboneElement | Groups and questions ele-1: All FHIR elements must have a @value or children qrs-1: Nested item can't be beneath both item and answer
extension |  | 0..* | Extension | Extension ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
linkId | S | 1..1 | string | Pointer to specific item from Questionnaire ele-1: All FHIR elements must have a @value or children
definition |  | 0..1 | uri | ElementDefinition - details for the item ele-1: All FHIR elements must have a @value or children
text | S | 0..1 | string | Name for group or question text ele-1: All FHIR elements must have a @value or children
answer | S | 0..* | BackboneElement | The response(s) to the question ele-1: All FHIR elements must have a @value or children
extension |  | 1..* | Extension | Extension ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both
value[x] | S | 0..1 |  | Single-valued answer to the question Binding: ?? (example): Code indicating the response provided for a question. ele-1: All FHIR elements must have a @value or children
valueBoolean |  |  | boolean |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueTime |  |  | time |
valueDecimal |  |  | decimal |
valueInteger |  |  | integer |
valueString |  |  | string |
valueCoding |  |  | Coding |
valueUri |  |  | uri |
valueQuantity |  |  | Quantity |
valueAttachment |  |  | Attachment |
valueReference |  |  | Reference(Any) |
item | S | 0..* |  | Nested groups and questions ele-1: All FHIR elements must have a @value or children
item | S | 0..* |  | Nested questionnaire response items ele-1: All FHIR elements must have a @value or children
Documentation for this format