## Profile Comparison between http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse vs http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse

Left: | DTR Questionnaire Response (http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse)
Right: | DTR Questionnaire Response (http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse)

### Messages

Error | StructureDefinition.version | Values for version differ: '2.1.0-preview' vs '2.1.0'

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse |
copyright |  |
date | 2023-08-21T02:27:35+00:00 |
description | Enforces DTR requirements on a completed or partially completed QuestionnaireResponse, including allowing the response to be linked to the relevant order, coverage, etc. and enforcing constraints applicable to the DTR context. |
experimental |  |
fhirVersion | 4.0.1 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#US |
kind | resource |
name | DTRQuestionnaireResponse |
publisher | HL7 International / Clinical Decision Support |
purpose |  |
status | active |
title | DTR Questionnaire Response |
type | QuestionnaireResponse |
url | http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse |
version | 2.1.0-preview | 2.1.0 | Values Differ

### Structure

Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
QuestionnaireResponse | C | 0..* | SDCQuestionnaireResponse | SDC Questionnaire Response 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. | C | 0..* | SDCQuestionnaireResponse | SDC Questionnaire Response 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. |
id | Σ | 0..1 | id | 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
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation |  | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained |  | 0..* | Resource | Contained, inline Resources |  | 0..* | Resource | Contained, inline Resources |
Slices for extension |  | 3..* | Extension | Extension Slice: Unordered, Open by value:url |  | 3..* | Extension | Extension Slice: Unordered, Open by value:url |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | S Σ | 0..1 | Identifier | Unique id for this set of answers | S Σ | 0..1 | Identifier | Unique id for this set of answers |
basedOn | Σ | 0..0 |  |  | Σ | 0..0 |  |  |
partOf | Σ | 0..0 |  |  | Σ | 0..0 |  |  |
questionnaire | S Σ | 1..1 | canonical(SDCBaseQuestionnaire) | Form being answered | S Σ | 1..1 | canonical(SDCBaseQuestionnaire) | Form being answered |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |
value |  | 0..1 | string | Primitive value for canonical |  | 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. | ?!S Σ | 1..1 | code | in-progress | completed | amended | entered-in-error | stopped Binding: ?? (required): Lifecycle status of the questionnaire response. |
subject | S Σ | 1..1 | Reference(CRD Patient) | The subject of the questions | S Σ | 1..1 | Reference(CRD Patient(2.1.0)) | The subject of the questions |
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of | Σ | 0..1 | Reference(Encounter) | Encounter created as part of |
authored | S Σ | 1..1 | dateTime | Date the answers were gathered | S Σ | 1..1 | dateTime | Date the answers were gathered |
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 | S Σ | 0..1 | Reference(Device | CRD Patient(2.1.0) | US Core Practitioner Profile(7.0.0) | HRex PractitionerRole Profile(1.1.0) | CRD Organization(2.1.0) | RelatedPerson) | Person who received and recorded the answers |
source | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | The person who answered the questions | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | The person who answered the questions |
item | S C | 1..* | BackboneElement | Groups and questions qrs-1: Nested item can't be beneath both item and answer | S C | 1..* | BackboneElement | Groups and questions qrs-1: Nested item can't be beneath both item and answer |
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 | Pointer to specific item from Questionnaire | S | 1..1 | string | Pointer to specific item from Questionnaire |
definition |  | 0..1 | uri | ElementDefinition - details for the item |  | 0..1 | uri | ElementDefinition - details for the item |
text | S | 0..1 | string | Name for group or question text | S | 0..1 | string | Name for group or question text |
answer | S | 0..* | BackboneElement | The response(s) to the question | S | 0..* | BackboneElement | The response(s) to the question |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 1..* | Extension | Extension Slice: Unordered, Open by value:url |  | 1..* | 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 |
value[x] | S | 0..1 | boolean, date, dateTime, time, decimal, integer, string, Coding, uri, Quantity, Attachment, Reference() | Single-valued answer to the question Binding: ?? (example): Code indicating the response provided for a question. | S | 0..1 | boolean, date, dateTime, time, decimal, integer, string, Coding, uri, Quantity, Attachment, Reference() | Single-valued answer to the question Binding: ?? (example): Code indicating the response provided for a question. |
item | S | 0..* | See item (QuestionnaireResponse) | Nested groups and questions | S | 0..* | See item (QuestionnaireResponse) | Nested groups and questions |
item | S | 0..* | See item (QuestionnaireResponse) | Nested questionnaire response items | S | 0..* | See item (QuestionnaireResponse) | Nested questionnaire response items |
Documentation for this format