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

Left: | US Core QuestionnaireResponse Profile (http://hl7.org/fhir/us/core/StructureDefinition/us-core-questionnaireresponse)
Right: | DTR Questionnaire Response for adaptive form (http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse-adapt)

### Messages

Error | StructureDefinition.url | Values for url differ: 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-questionnaireresponse' vs 'http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse-adapt'
Error | StructureDefinition.version | Values for version differ: '9.0.0-ballot' vs '2.2.0'
Information | StructureDefinition.name | Values for name differ: 'USCoreQuestionnaireResponseProfile' vs 'DTRQuestionnaireResponseAdapt'
Information | StructureDefinition.title | Values for title differ: 'US Core QuestionnaireResponse Profile' vs 'DTR Questionnaire Response for adaptive form'
Information | StructureDefinition.date | Values for date differ: '2023-10-17' vs '2025-07-02T01:22:45+00:00'
Information | StructureDefinition.publisher | Values for publisher differ: 'HL7 International / Cross-Group Projects' vs 'HL7 International / Clinical Decision Support'
Error | StructureDefinition.baseDefinition | Values for baseDefinition differ: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' vs 'http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse|2.2.0'
Information | StructureDefinition.short | Values for short differ: 'US Core Profile based on SDC QuestionnaireResponse' vs 'Standard Questionnaire Response'
Information | StructureDefinition.short | Values for short differ: 'Contained, inline Resources' vs 'A structured set of questions'
Information | StructureDefinition.definition | Values for definition differ: 'These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.' vs 'A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.'
Warning | QuestionnaireResponse.contained | Elements differ in definition for mustSupport: 'false' vs 'true'
Information | QuestionnaireResponse.contained | Element minimum cardinalities differ: '0' vs '1'
Information | QuestionnaireResponse.contained | Element maximum cardinalities differ: '2147483647' vs '1'
Information | QuestionnaireResponse.extension | Element minimum cardinalities differ: '0' vs '2'
Information | QuestionnaireResponse.basedOn | Element maximum cardinalities differ: '2147483647' vs '0'
Information | QuestionnaireResponse.partOf | Element maximum cardinalities differ: '2147483647' vs '0'
Information | StructureDefinition.comment | Values for comment differ: '-' vs 'If the Questionnaire declared a subjectType, the resource pointed to by this element must be an instance of one of the listed types. If subject is omitted - because the QuestionnaireResponse is not associated with a specific subject, ensure that QuestionnaireRsponse.identifier is present or the QuestionnaireResponse is referenced somewhere (e.g. Task.output, Composition.section.entry, etc.) to allow tracking and retrieval of the QuestionnaireResponse'
Error | QuestionnaireResponse.author | Type Mismatch: Reference([CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient], CanonicalType[http://hl7.org/fhir/StructureDefinition/PractitionerRole], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-device], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-relatedperson]]) vs Reference([CanonicalType[http://hl7.org/fhir/StructureDefinition/Device], CanonicalType[http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient|2.2.1], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|7.0.0], CanonicalType[http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole|1.2.0], CanonicalType[http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-organization|2.2.1], CanonicalType[http://hl7.org/fhir/StructureDefinition/RelatedPerson]])
Information | QuestionnaireResponse.item.answer.extension | Element minimum cardinalities differ: '0' vs '1'

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse | http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse|2.2.0 | Values Differ
copyright | Used by permission of HL7 International, all rights reserved Creative Commons License |  | Removed the item 'Used by permission of HL7 International, all rights reserved Creative Commons License'
date | 2023-10-17 | 2025-07-02T01:22:45+00:00 | Values Differ
description | The US Core QuestionaireResponse Profile inherits from the [Structured Data Capture (SDC) Questionnaire Response Profile](http://hl7.org/fhir/uv/sdc/STU3/StructureDefinition-sdc-questionnaireresponse.html). This profile sets minimum expectations for the QuestionnaireResponse resource to record, search, and fetch retrieve captures the responses to form/survey and assessment tools such as the *Protocol for Responding to and Assessing Patients\u2019 Assets, Risks, and Experiences (PRAPARE) Survey*. It specifies which core *additional* elements, extensions, vocabularies, and value sets **SHALL** be present and constrains how the elements are used. Before reviewing this profile, implementers are encouraged to read the Screening and Assessments guidance page, which documents the process of recording responses and capturing assertions/determinations resulting from surveys and questionnaires. | Enforces DTR requirements on a completed or partially completed Adaptive QuestionnaireResponse, including allowing the response to be linked to the relevant order, coverage, etc. and enforcing constraints applicable to the DTR context. | Values Differ
experimental |  |
fhirVersion | 4.0.1 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#US |
kind | resource |
name | USCoreQuestionnaireResponseProfile | DTRQuestionnaireResponseAdapt | Values Differ
publisher | HL7 International / Cross-Group Projects | HL7 International / Clinical Decision Support | Values Differ
purpose |  |
status | active |
title | US Core QuestionnaireResponse Profile | DTR Questionnaire Response for adaptive form | Values Differ
type | QuestionnaireResponse |
url | http://hl7.org/fhir/us/core/StructureDefinition/us-core-questionnaireresponse | http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse-adapt | Values Differ
version | 9.0.0-ballot | 2.2.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(4.0.0) | US Core Profile based on SDC QuestionnaireResponse | C | 0..* | DTRQuestionnaireResponse(2.2.0) | Standard Questionnaire Response |
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 This profile does not constrain the narrative in regard to content, language, or traceability to data elements |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements |
contained |  | 0..* | Resource | Contained, inline Resources | S | 1..1 | ?? | A structured set of questions | Elements differ in definition for mustSupport: 'false' vs 'true' Element minimum cardinalities differ: '0' vs '1' Element maximum cardinalities differ: '2147483647' vs '1'
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |  | 2..* | Extension | Extension Slice: Unordered, Open by value:url | Element minimum cardinalities differ: '0' vs '2'
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..* | Reference(CarePlan | ServiceRequest) | Request fulfilled by this QuestionnaireResponse | Σ | 0..0 |  | Request fulfilled by this QuestionnaireResponse | Element maximum cardinalities differ: '2147483647' vs '0'
partOf | Σ | 0..* | Reference(Observation | Procedure) | Part of this action | Σ | 0..0 |  | Part of this action | Element maximum cardinalities differ: '2147483647' vs '0'
questionnaire | S Σ | 1..1 | canonical(SDC Base Questionnaire(4.0.0)) | Form being answered | S Σ | 1..1 | canonical(SDC Base Questionnaire(4.0.0)) {c} | 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(US Core Patient Profile(7.0.0) S | Resource) | The subject of the questions | S Σ | 1..1 | Reference(CRD Patient(2.2.1)) | 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(US Core Practitioner Profile(7.0.0) S | US Core Organization Profile(7.0.0) | US Core Patient Profile(7.0.0) | PractitionerRole | US Core Device Profile | US Core RelatedPerson Profile(7.0.0)) | Person who received and recorded the answers | S Σ | 0..1 | Reference(Device | CRD Patient(2.2.1) | US Core Practitioner Profile(7.0.0) | HRex PractitionerRole Profile(1.2.0) | CRD Organization(2.2.1) | RelatedPerson) | Person who received and recorded the answers | Type Mismatch: Reference([CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient], CanonicalType[http://hl7.org/fhir/StructureDefinition/PractitionerRole], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-device], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-relatedperson]]) vs Reference([CanonicalType[http://hl7.org/fhir/StructureDefinition/Device], CanonicalType[http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient|2.2.1], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner|7.0.0], CanonicalType[http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole|1.2.0], CanonicalType[http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-organization|2.2.1], CanonicalType[http://hl7.org/fhir/StructureDefinition/RelatedPerson]])
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 |
id |  |  |  |  |  | 0..1 | string | Unique id for inter-element referencing | Added this element
Slices for extension |  |  |  |  |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | Added this element
reference |  |  |  |  | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL | Added this element
type |  |  |  |  | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model). | Added this element
identifier |  |  |  |  | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | Added this element
display |  |  |  |  | Σ | 0..1 | string | Text alternative for the resource | Added this element
item | S C | 0..* | BackboneElement | Groups and questions | S C | 0..* | BackboneElement | Groups and questions |
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 |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |  | 1..* | Extension | Extension Slice: Unordered, Open by value:url | Element minimum cardinalities differ: '0' vs '1'
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 S, integer, string S, Coding S, uri, Quantity, Attachment, Reference() | Single-valued answer to the question Binding: ?? (example): Code indicating the response provided for a question. | S | 0..1 | boolean, decimal, integer, date, dateTime, time, string, uri, Attachment, Coding, Quantity, Reference(Resource) | 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