This page is part of the FHIR Specification (v0.5.0: DSTU 2 Ballot 2). The current version which supercedes this version is 5.0.0.  For a full list of available versions, see the Directory of published versions 

The official URL for this profile is:
http://hl7.org/fhir/StructureDefinition/xds-documentreference
XDSDocumentEntry
This profile was published on Sun, Jun 24, 2012 00:00+1000 as a draft by HL7.

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from DocumentReference.
This structure is derived from DocumentReference.
| Name | Flags | Card. | Type | Description & Constraints  | 
|---|---|---|---|---|
|   DocumentReference | 1..1 | DocumentReference | XDSDocumentEntry | |
|    policyManager | 0..1 | uri | XDSDocumentEntry.homeCommunityId | |
|    masterIdentifier | 1..1 | Identifier | XDSDocumentEntry.uniqueId | |
|    identifier | 0..* | Identifier | XDSDocumentEntry.referenceIdList | |
|    subject | 1..1 | Patient | XDSDocumentEntry.patientId + sourcePatientId/sourcePatientInfo | |
|    type | 1..1 | CodeableConcept | XDSDocumentEntry.typeCode | |
|    class | 1..1 | CodeableConcept | XDSDocumentEntry.classCode | |
|    format | 1..1 | uri | XDSDocumentEntry.formatCode | |
|    author | 1..* | Practitioner, Device | XDSDocumentEntry.author | |
|    custodian | 0..0 | Organization | ||
|    authenticator | 0..1 | Practitioner | ?? | |
|    created | 1..1 | dateTime | XDSDocumentEntry.creationTime | |
|    indexed | 1..1 | instant | XDS submission time or XDSDocumentEntry.creationTime if unknown | |
|    status | 1..1 | code | implied by XDS workflow | |
|    docStatus | 0..0 | CodeableConcept | ||
|    relatesTo | 0..* | Relationships that this document has with other document references that already exist | ||
|     code | 1..1 | code | The type of relationship that this document has with anther document | |
|     target | 1..1 | DocumentReference | The target document of this relationship | |
|    description | 0..1 | string | XDSDocumentEntry.title | |
|    confidentiality | 1..1 | CodeableConcept | XDSDocumentEntry.confidentialityCode | |
|    content | ||||
|     contentType | 1..1 | code | XDSDocumentEntry.mimeType | |
|     language | 0..1 | code | XDSDocumentEntry.languageCode | |
|     url | 0..1 | uri | repository location (by implication & configuration) | |
|     size | 0..1 | unsignedInt | XDSDocumentEntry.size | |
|     hash | 0..1 | base64Binary | XDSDocumentEntry.hash | |
|    context | 0..1 | event codes, service Start & Stop time, and facility type | ||
|     event | 0..* | CodeableConcept | XDSDocumentEntry.eventCodeList | |
|     period | 1..1 | Period | XDSDocumentEntry.serviceStartTime & XDSDocumentEntry.serviceStopTime | |
|     facilityType | 0..1 | CodeableConcept | XDSDocumentEntry.healthCareFacilityTypeCode | |
|     practiceSetting | XDSDocumentEntry.practiceSettingCode | 
| Name | Flags | Card. | Type | Description & Constraints  | 
|---|---|---|---|---|
|   DocumentReference | 1..1 | DocumentReference | XDSDocumentEntry | |
|    meta | 0..1 | Meta | Metadata about the resource | |
|    implicitRules | ?! | 0..1 | uri | A set of rules under which this content was created | 
|    language | 0..1 | code | Language of the resource content Binding: Language (required) | |
|    text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation | 
|    contained | 0..* | Resource | Contained, inline Resources | |
|    extension | 0..* | Extension | Additional Content defined by implementations | |
|    modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|    masterIdentifier | 1..1 | Identifier | XDSDocumentEntry.uniqueId | |
|    identifier | 0..* | Identifier | XDSDocumentEntry.referenceIdList | |
|    subject | 1..1 | Patient | XDSDocumentEntry.patientId + sourcePatientId/sourcePatientInfo | |
|    type | 1..1 | CodeableConcept | XDSDocumentEntry.typeCode Binding: DocumentC80Type (preferred) | |
|    class | 1..1 | CodeableConcept | XDSDocumentEntry.classCode Binding: DocumentC80Class (preferred) | |
|    format | 1..1 | uri | XDSDocumentEntry.formatCode Binding: DocumentFormat (preferred) | |
|    author | 1..* | Practitioner, Device | XDSDocumentEntry.author | |
|    authenticator | 0..1 | Practitioner | ?? | |
|    created | 1..1 | dateTime | XDSDocumentEntry.creationTime | |
|    indexed | 1..1 | instant | XDS submission time or XDSDocumentEntry.creationTime if unknown | |
|    status | ?! | 1..1 | code | implied by XDS workflow Binding: DocumentReferenceStatus (required) | 
|    relatesTo | ?! | 0..* | Relationships that this document has with other document references that already exist | |
|     extension | 0..* | Extension | Additional Content defined by implementations | |
|     modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|     code | 1..1 | code | The type of relationship that this document has with anther document Binding: DocumentRelationshipType (required) | |
|     target | 1..1 | DocumentReference | The target document of this relationship | |
|    description | 0..1 | string | XDSDocumentEntry.title | |
|    confidentiality | 1..1 | CodeableConcept | XDSDocumentEntry.confidentialityCode Binding: HCS (extensible) | |
|    content | 1..* | Attachment | Where to access the document | |
|     extension | 0..* | Extension | Additional Content defined by implementations | |
|     contentType | 1..1 | code | XDSDocumentEntry.mimeType Binding: MimeType (required) Example: text/plain; charset=UTF-8, image/png | |
|     language | 0..1 | code | XDSDocumentEntry.languageCode Binding: Language (required) Example: en-AU | |
|     data | 0..1 | base64Binary | Data inline, base64ed | |
|     url | 0..1 | uri | repository location (by implication & configuration) Example: http://www.acme.com/logo-small.png | |
|     size | 0..1 | unsignedInt | XDSDocumentEntry.size | |
|     hash | 0..1 | base64Binary | XDSDocumentEntry.hash | |
|     title | 0..1 | string | Label to display in place of the data Example: "Official Corporate Logo" | |
|     creation | 0..1 | dateTime | Date attachment was first created | |
|    context | 0..1 | event codes, service Start & Stop time, and facility type | ||
|     extension | 0..* | Extension | Additional Content defined by implementations | |
|     modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|     event | 0..* | CodeableConcept | XDSDocumentEntry.eventCodeList | |
|     period | 1..1 | Period | XDSDocumentEntry.serviceStartTime & XDSDocumentEntry.serviceStopTime | |
|     facilityType | 0..1 | CodeableConcept | XDSDocumentEntry.healthCareFacilityTypeCode Binding: DocumentC80FacilityType (preferred) | |
|     practiceSetting | 0..1 | CodeableConcept | XDSDocumentEntry.practiceSettingCode Binding: DocumentC80PracticeSetting (preferred) | |
|     sourcePatientInfo | 0..1 | Patient | Source patient info | |
|     related | 0..* | Related things | ||
|      extension | 0..* | Extension | Additional Content defined by implementations | |
|      modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|      identifier | 0..1 | Identifier | Related Identifier | |
|      ref | 0..1 | Resource | Related Resource | 
todo
This structure is derived from DocumentReference.
Differential View
This structure is derived from DocumentReference.
| Name | Flags | Card. | Type | Description & Constraints  | 
|---|---|---|---|---|
|   DocumentReference | 1..1 | DocumentReference | XDSDocumentEntry | |
|    policyManager | 0..1 | uri | XDSDocumentEntry.homeCommunityId | |
|    masterIdentifier | 1..1 | Identifier | XDSDocumentEntry.uniqueId | |
|    identifier | 0..* | Identifier | XDSDocumentEntry.referenceIdList | |
|    subject | 1..1 | Patient | XDSDocumentEntry.patientId + sourcePatientId/sourcePatientInfo | |
|    type | 1..1 | CodeableConcept | XDSDocumentEntry.typeCode | |
|    class | 1..1 | CodeableConcept | XDSDocumentEntry.classCode | |
|    format | 1..1 | uri | XDSDocumentEntry.formatCode | |
|    author | 1..* | Practitioner, Device | XDSDocumentEntry.author | |
|    custodian | 0..0 | Organization | ||
|    authenticator | 0..1 | Practitioner | ?? | |
|    created | 1..1 | dateTime | XDSDocumentEntry.creationTime | |
|    indexed | 1..1 | instant | XDS submission time or XDSDocumentEntry.creationTime if unknown | |
|    status | 1..1 | code | implied by XDS workflow | |
|    docStatus | 0..0 | CodeableConcept | ||
|    relatesTo | 0..* | Relationships that this document has with other document references that already exist | ||
|     code | 1..1 | code | The type of relationship that this document has with anther document | |
|     target | 1..1 | DocumentReference | The target document of this relationship | |
|    description | 0..1 | string | XDSDocumentEntry.title | |
|    confidentiality | 1..1 | CodeableConcept | XDSDocumentEntry.confidentialityCode | |
|    content | ||||
|     contentType | 1..1 | code | XDSDocumentEntry.mimeType | |
|     language | 0..1 | code | XDSDocumentEntry.languageCode | |
|     url | 0..1 | uri | repository location (by implication & configuration) | |
|     size | 0..1 | unsignedInt | XDSDocumentEntry.size | |
|     hash | 0..1 | base64Binary | XDSDocumentEntry.hash | |
|    context | 0..1 | event codes, service Start & Stop time, and facility type | ||
|     event | 0..* | CodeableConcept | XDSDocumentEntry.eventCodeList | |
|     period | 1..1 | Period | XDSDocumentEntry.serviceStartTime & XDSDocumentEntry.serviceStopTime | |
|     facilityType | 0..1 | CodeableConcept | XDSDocumentEntry.healthCareFacilityTypeCode | |
|     practiceSetting | XDSDocumentEntry.practiceSettingCode | 
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints  | 
|---|---|---|---|---|
|   DocumentReference | 1..1 | DocumentReference | XDSDocumentEntry | |
|    meta | 0..1 | Meta | Metadata about the resource | |
|    implicitRules | ?! | 0..1 | uri | A set of rules under which this content was created | 
|    language | 0..1 | code | Language of the resource content Binding: Language (required) | |
|    text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation | 
|    contained | 0..* | Resource | Contained, inline Resources | |
|    extension | 0..* | Extension | Additional Content defined by implementations | |
|    modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|    masterIdentifier | 1..1 | Identifier | XDSDocumentEntry.uniqueId | |
|    identifier | 0..* | Identifier | XDSDocumentEntry.referenceIdList | |
|    subject | 1..1 | Patient | XDSDocumentEntry.patientId + sourcePatientId/sourcePatientInfo | |
|    type | 1..1 | CodeableConcept | XDSDocumentEntry.typeCode Binding: DocumentC80Type (preferred) | |
|    class | 1..1 | CodeableConcept | XDSDocumentEntry.classCode Binding: DocumentC80Class (preferred) | |
|    format | 1..1 | uri | XDSDocumentEntry.formatCode Binding: DocumentFormat (preferred) | |
|    author | 1..* | Practitioner, Device | XDSDocumentEntry.author | |
|    authenticator | 0..1 | Practitioner | ?? | |
|    created | 1..1 | dateTime | XDSDocumentEntry.creationTime | |
|    indexed | 1..1 | instant | XDS submission time or XDSDocumentEntry.creationTime if unknown | |
|    status | ?! | 1..1 | code | implied by XDS workflow Binding: DocumentReferenceStatus (required) | 
|    relatesTo | ?! | 0..* | Relationships that this document has with other document references that already exist | |
|     extension | 0..* | Extension | Additional Content defined by implementations | |
|     modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|     code | 1..1 | code | The type of relationship that this document has with anther document Binding: DocumentRelationshipType (required) | |
|     target | 1..1 | DocumentReference | The target document of this relationship | |
|    description | 0..1 | string | XDSDocumentEntry.title | |
|    confidentiality | 1..1 | CodeableConcept | XDSDocumentEntry.confidentialityCode Binding: HCS (extensible) | |
|    content | 1..* | Attachment | Where to access the document | |
|     extension | 0..* | Extension | Additional Content defined by implementations | |
|     contentType | 1..1 | code | XDSDocumentEntry.mimeType Binding: MimeType (required) Example: text/plain; charset=UTF-8, image/png | |
|     language | 0..1 | code | XDSDocumentEntry.languageCode Binding: Language (required) Example: en-AU | |
|     data | 0..1 | base64Binary | Data inline, base64ed | |
|     url | 0..1 | uri | repository location (by implication & configuration) Example: http://www.acme.com/logo-small.png | |
|     size | 0..1 | unsignedInt | XDSDocumentEntry.size | |
|     hash | 0..1 | base64Binary | XDSDocumentEntry.hash | |
|     title | 0..1 | string | Label to display in place of the data Example: "Official Corporate Logo" | |
|     creation | 0..1 | dateTime | Date attachment was first created | |
|    context | 0..1 | event codes, service Start & Stop time, and facility type | ||
|     extension | 0..* | Extension | Additional Content defined by implementations | |
|     modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|     event | 0..* | CodeableConcept | XDSDocumentEntry.eventCodeList | |
|     period | 1..1 | Period | XDSDocumentEntry.serviceStartTime & XDSDocumentEntry.serviceStopTime | |
|     facilityType | 0..1 | CodeableConcept | XDSDocumentEntry.healthCareFacilityTypeCode Binding: DocumentC80FacilityType (preferred) | |
|     practiceSetting | 0..1 | CodeableConcept | XDSDocumentEntry.practiceSettingCode Binding: DocumentC80PracticeSetting (preferred) | |
|     sourcePatientInfo | 0..1 | Patient | Source patient info | |
|     related | 0..* | Related things | ||
|      extension | 0..* | Extension | Additional Content defined by implementations | |
|      modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|      identifier | 0..1 | Identifier | Related Identifier | |
|      ref | 0..1 | Resource | Related Resource | 
XML Template
JSON Template
todo
Other representations of profile: (todo)

| Path | Name | Conformance | ValueSet | 
| DocumentReference.language | Language | required | http://tools.ietf.org/html/bcp47 | 
| DocumentReference.type | DocumentC80Type | preferred | Document Type Value Set | 
| DocumentReference.class | DocumentC80Class | preferred | Document Class Value Set | 
| DocumentReference.format | DocumentFormat | preferred | DocumentReference Format Code Set | 
| DocumentReference.status | DocumentReferenceStatus | required | DocumentReferenceStatus | 
| DocumentReference.relatesTo.code | DocumentRelationshipType | required | DocumentRelationshipType | 
| DocumentReference.confidentiality | HCS | extensible | All Security Labels | 
| DocumentReference.content.contentType | MimeType | required | http://www.rfc-editor.org/bcp/bcp13.txt | 
| DocumentReference.content.language | Language | required | http://tools.ietf.org/html/bcp47 | 
| DocumentReference.context.facilityType | DocumentC80FacilityType | preferred | Facililty Type Code Value Set | 
| DocumentReference.context.practiceSetting | DocumentC80PracticeSetting | preferred | Practice Setting Code Value Set | 

| Id | Path | Name | Details |