## Profile Comparison between http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-DocumentReference vs http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-DocumentReference

Left: | ADI Document Reference (http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-DocumentReference)
Right: | ADI Document Reference (http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-DocumentReference)

### Messages

Error | StructureDefinition.version | Values for version differ: '1.0.0' vs '2.0.0-ballot'
Information | StructureDefinition.date | Values for date differ: '2024-01-11T17:46:11+00:00' vs '2025-08-04T20:07:18+00:00'
Error | StructureDefinition.baseDefinition | Values for baseDefinition differ: 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference' vs 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-adi-documentreference'
Information | StructureDefinition.definition | Values for definition differ: 'This is a basic constraint on DocumentRefernce for use in the US Core IG.' vs 'A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text.'
Information | StructureDefinition.short | Values for short differ: 'Additional content defined by implementations' vs 'Extension'
Information | StructureDefinition.definition | Values for definition differ: 'May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.' vs 'An Extension'
Information | StructureDefinition.short | Values for short differ: 'Advance Directive Categories' vs 'Kind of document (LOINC if possible)'
Information | StructureDefinition.short | Values for short differ: 'Patient' vs 'Who/what is the subject of the document'
Information | DocumentReference.date | Element minimum cardinalities differ: '0' vs '1'
Error | DocumentReference.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]]) vs Reference([CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient]])
Warning | DocumentReference.authenticator | Elements differ in definition for mustSupport: 'false' vs 'true'
Information | StructureDefinition.definition | Values for definition differ: 'The document or URL of the document along with critical metadata to prove content has integrity.' vs 'The document and format referenced.'
Warning | DocumentReference.content.attachment.creation | Elements differ in definition for mustSupport: 'false' vs 'true'
Information | DocumentReference.content.attachment.creation | Element minimum cardinalities differ: '0' vs '1'
Information | DocumentReference.context.encounter | Element maximum cardinalities differ: '1' vs '2147483647'

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference | http://hl7.org/fhir/us/core/StructureDefinition/us-core-adi-documentreference | Values Differ
copyright |  |
date | 2024-01-11T17:46:11+00:00 | 2025-08-04T20:07:18+00:00 | Values Differ
description | This profile defines constraints that represent the information needed to register an advance directive information document on a FHIR server. |
experimental |  |
fhirVersion | 4.0.1 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#US |
kind | resource |
name | ADIDocumentReference |
publisher | HL7 International / Patient Empowerment |
purpose |  |
status | active |
title | ADI Document Reference |
type | DocumentReference |
url | http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-DocumentReference |
version | 1.0.0 | 2.0.0-ballot | Values Differ

### Structure

Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
DocumentReference |  | 0..* | USCoreDocumentReferenceProfile | A reference to a document |  | 0..* | USCoreADIDocumentReferenceProfile | A reference to a document |
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 |  | 0..* | Resource | Contained, inline Resources |
extension |  | 0..* | Extension | Additional content defined by implementations |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ?! | 0..* | Extension | Extensions that cannot be ignored |
masterIdentifier | Σ | 0..1 | Identifier | Master Version Specific Identifier | Σ | 0..1 | Identifier | Master Version Specific Identifier |
identifier | S Σ | 0..* | Identifier | Other identifiers for the document | S Σ | 0..* | Identifier | Other identifiers for the document |
status | ?!S Σ | 1..1 | code | current | superseded | entered-in-error Binding: ?? (required) | ?!S Σ | 1..1 | code | current | superseded | entered-in-error Binding: ?? (required) |
docStatus | Σ | 0..1 | code | preliminary | final | amended | entered-in-error Binding: ?? (required): Status of the underlying document. | Σ | 0..1 | code | preliminary | final | amended | entered-in-error Binding: ?? (required) |
type | S Σ | 1..1 | CodeableConcept | Advance Directive Categories Binding: ?? (required): All LOINC values whose SCALE is DOC in the LOINC database and the HL7 v3 Code System NullFlavor concept 'unknown'
Additional Bindings | Purpose
?? | Min Binding
| S Σ | 1..1 | CodeableConcept | Kind of document (LOINC if possible) Binding: ?? (extensible): Advance Directives Content Type |
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
Slices for coding |  |  |  |  | Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by pattern:$this | Added this element
text |  |  |  |  | Σ | 0..1 | string | Plain text representation of the concept | Added this element
category | S Σ | 1..* | CodeableConcept | Categorization of document Binding: ?? (extensible) | S Σ | 1..* | CodeableConcept | Categorization of document Slice: Unordered, Open by value:$this Binding: ?? (extensible) |
subject | S Σ | 1..1 | Reference(US Core Patient Profile) | Patient | S Σ | 1..1 | Reference(US Core Patient Profile S) | Who/what is the subject of the document |
date | S Σ | 0..1 | instant | When this document reference was created | S Σ | 1..1 | instant | When this document reference was created | Element minimum cardinalities differ: '0' vs '1'
author | S Σ | 0..* | Reference(US Core Practitioner Profile S | US Core Organization Profile | US Core Patient Profile) | Who and/or what authored the document | S Σ | 0..* | Reference(US Core PractitionerRole Profile | US Core Organization Profile | US Core Patient Profile) | Who and/or what authored the document | 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]]) vs Reference([CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization], CanonicalType[http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient]])
authenticator |  | 0..1 | Reference(Practitioner | PractitionerRole | Organization) | Who/what authenticated the document | S | 0..1 | Reference(US Core Practitioner Profile S | US Core Organization Profile | US Core PractitionerRole Profile) | Who/what authenticated the document | Elements differ in definition for mustSupport: 'false' vs 'true'
custodian | S | 0..1 | Reference(US Core Organization Profile) | Organization which maintains the document | S | 0..1 | Reference(US Core Organization Profile) | Organization which maintains the document |
relatesTo | Σ | 0..* | BackboneElement | Relationships to other documents | Σ | 0..* | BackboneElement | Relationships to other documents |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
extension |  | 0..* | Extension | Additional content defined by implementations |  | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
code | Σ | 1..1 | code | replaces | transforms | signs | appends Binding: ?? (required): The type of relationship between documents. | Σ | 1..1 | code | replaces | transforms | signs | appends Binding: ?? (required): The type of relationship between documents. |
target | Σ | 1..1 | Reference(DocumentReference) | Target of the relationship | Σ | 1..1 | Reference(DocumentReference) | Target of the relationship |
description | Σ | 0..1 | string | Human-readable description | Σ | 0..1 | string | Human-readable description |
securityLabel | Σ | 0..* | CodeableConcept | Document security-tags Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | Σ | 0..* | CodeableConcept | Document security-tags Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. |
content | S Σ | 1..* | BackboneElement | Document referenced | S Σ | 1..* | BackboneElement | Document referenced |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
extension |  | 0..* | Extension | Additional content defined by implementations |  | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
attachment | S Σ C | 1..1 | Attachment | Where to access the document | S Σ C | 1..1 | Attachment | Where to access the document |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
Slices for extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url |
contentType | S Σ | 1..1 | code | Mime type of the content, with charset etc. Binding: ?? (required): The mime type of an attachment. Any valid mime type is allowed. Example General: text/plain; charset=UTF-8, image/png | S Σ | 1..1 | code | Mime type of the content, with charset etc. Binding: ?? (required): The mime type of an attachment. Any valid mime type is allowed. Example General: text/plain; charset=UTF-8, image/png |
language | Σ | 0..1 | code | Human language of the content (BCP-47) Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
Example General: en-AU | Σ | 0..1 | code | Human language of the content (BCP-47) Binding: ?? (preferred): A human language.
Additional Bindings | Purpose
?? | Max Binding
Example General: en-AU |
data | S C | 0..1 | base64Binary | Data inline, base64ed | S C | 0..1 | base64Binary | Data inline, base64ed |
url | S Σ C | 0..1 | url | Uri where the data can be found Example General: http://www.acme.com/logo-small.png | S Σ C | 0..1 | url | Uri where the data can be found Example General: http://www.acme.com/logo-small.png |
size | Σ | 0..1 | unsignedInt | Number of bytes of content (if url provided) | Σ | 0..1 | unsignedInt | Number of bytes of content (if url provided) |
hash | Σ | 0..1 | base64Binary | Hash of the data (sha-1, base64ed) | Σ | 0..1 | base64Binary | Hash of the data (sha-1, base64ed) |
title | Σ | 0..1 | string | Label to display in place of the data Example General: Official Corporate Logo | Σ | 0..1 | string | Label to display in place of the data Example General: Official Corporate Logo |
creation | Σ | 0..1 | dateTime | Date attachment was first created | S Σ | 1..1 | dateTime | Date attachment was first created | Elements differ in definition for mustSupport: 'false' vs 'true' Element minimum cardinalities differ: '0' vs '1'
format | S Σ | 0..1 | Coding | Format/content rules for the document Binding: ?? (extensible) | S Σ | 0..1 | Coding | Format/content rules for the document Binding: ?? (extensible) |
context | S Σ | 0..1 | BackboneElement | Clinical context of document | S Σ | 0..1 | BackboneElement | Clinical context of document |
id |  | 0..1 | string | Unique id for inter-element referencing |  | 0..1 | string | Unique id for inter-element referencing |
extension |  | 0..* | Extension | Additional content defined by implementations |  | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
encounter | S | 0..1 | Reference(US Core Encounter Profile) | Context of the document content | S | 0..* | Reference(US Core Encounter Profile) | Context of the document content | Element maximum cardinalities differ: '1' vs '2147483647'
event |  | 0..* | CodeableConcept | Main clinical acts documented Binding: ?? (example): This list of codes represents the main clinical acts being documented. |  | 0..* | CodeableConcept | Main clinical acts documented Binding: ?? (example): This list of codes represents the main clinical acts being documented. |
period | S Σ | 0..1 | Period | Time of service that is being documented | S Σ | 0..1 | Period | Time of service that is being documented |
facilityType |  | 0..1 | CodeableConcept | Kind of facility where patient was seen Binding: ?? (example): XDS Facility Type. |  | 0..1 | CodeableConcept | Kind of facility where patient was seen Binding: ?? (example): XDS Facility Type. |
practiceSetting |  | 0..1 | CodeableConcept | Additional details about where the content was created (e.g. clinical specialty) Binding: ?? (example): Additional details about where the content was created (e.g. clinical specialty). |  | 0..1 | CodeableConcept | Additional details about where the content was created (e.g. clinical specialty) Binding: ?? (example): Additional details about where the content was created (e.g. clinical specialty). |
sourcePatientInfo |  | 0..1 | Reference(Patient) | Patient demographics from source |  | 0..1 | Reference(Patient) | Patient demographics from source |
related |  | 0..* | Reference(Resource) | Related identifiers or resources |  | 0..* | Reference(Resource) | Related identifiers or resources |
Documentation for this format