Structure Definition: DocumentReference


Canonical URL: https://signalbhn.org/fhir/StructureDefinition/documentreference

Simplifier project page: Signal DocumentReference Profile

Derived from: DocumentReference (R4)

Module: File Exchange and Communications Module


Formal profile content

masterIdentifierΣ0..1Identifier
identifierΣ0..*Identifier
statusΣ ?!1..1codeBinding
docStatusΣ0..1codeBinding
typeΣ0..1CodeableConceptBinding
categoryΣ0..*CodeableConceptBinding
subjectΣ I0..1Reference(Patient | Practitioner | Group | Device)
dateΣ0..1instant
authorΣ I0..*Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson)
authenticatorI0..1Reference(Practitioner | PractitionerRole | Organization)
custodianI0..1Reference(Organization)
codeΣ1..1codeBinding
targetΣ I1..1Reference(DocumentReference)
descriptionΣ0..1string
securityLabelΣ0..*CodeableConceptBinding
attachmentΣ I1..1Attachment
formatΣ0..1CodingBinding
encounterI0..*Reference(Encounter | EpisodeOfCare)
event0..*CodeableConcept
periodΣ I0..1Period
facilityType0..1CodeableConcept
practiceSetting0..1CodeableConcept
sourcePatientInfoI0..1Reference(Patient)
relatedI0..*Reference(Resource)
masterIdentifierΣ0..1Identifier
identifierΣ0..*Identifier
statusΣ ?!1..1codeBinding
docStatusΣ0..1codeBinding
typeΣ0..1CodeableConceptBinding
categoryΣ0..*CodeableConceptBinding
subjectΣ I0..1Reference(Patient | Practitioner | Group | Device)
dateΣ0..1instant
authorΣ I0..*Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson)
authenticatorI0..1Reference(Practitioner | PractitionerRole | Organization)
custodianI0..1Reference(Organization)
codeΣ1..1codeBinding
targetΣ I1..1Reference(DocumentReference)
descriptionΣ0..1string
securityLabelΣ0..*CodeableConceptBinding
attachmentΣ I1..1Attachment
formatΣ0..1CodingBinding
encounterI0..*Reference(Encounter | EpisodeOfCare)
event0..*CodeableConcept
periodΣ I0..1Period
facilityType0..1CodeableConcept
practiceSetting0..1CodeableConcept
sourcePatientInfoI0..1Reference(Patient)
relatedI0..*Reference(Resource)
{
    "resourceType": "StructureDefinition",
    "id": "signal-documentreference",
    "url": "https://signalbhn.org/fhir/StructureDefinition/documentreference",
    "name": "SignalDocumentReference",
    "title": "DocumentReference Profile",
    "status": "draft",
    "fhirVersion": "4.0.1",
    "kind": "resource",
    "abstract": false,
    "type": "DocumentReference",
    "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
    "derivation": "constraint",
    "differential": {
        "element":  [
            {
                "id": "DocumentReference.category",
                "path": "DocumentReference.category",
                "binding": {
                    "strength": "required",
                    "valueSet": "https://signalbhn.org/fhir/us/core/ValueSet/signal-filerepo-classification"
                }
            }
        ]
    }
}

Profile usage

The DocumentReference resource will be used to store metadata about files uploaded and interchanged between a service organization and a provider agency or location so they can be discovered and managed. The files may be of any kind and used for any purpose. In the case they relate to a specific encounter or episode of care (admission), those references SHOULD be provided.

Note: Although there exists a US Core DocumentReference, it is geared towards Clinical Notes and requires a Patient reference. Signal's DocumentReference will be used in a much more general capacity and will not always have an explicit Patient.

File Storage

Files are intended to be stored in an external storage (e.g. Azure storage) and be linked with a resolvable URI for parties with proper permissions.

In all instances, the correct mimetype SHALL be specified for the attached file.

Additional notes

Additional notes and corespondance between a service organization and provider about the document MAY be stored as additional attachments

ALTERNATIVELY, additional notes on a DocumentReference file may be added as a new DocumentReference that uses the relatesTo.code = appends and references it in relatesto.target.

Profile element notes

.status

  • will contain current unless it has been marked as entered-in-error or superseded
  • Alternatively the file may be deleted from the system

.description

  • MAY be used for document name or short description that is searchable

.type

  • Kind of document, specified by LOINC, which defines the FHIR document code
  • Especially important to lend context to clinical notes

.category

  • Categorization of document, "classification" in Signal's glossary
  • Will be used for business purposes to group and label documents
  • FUTURE - SHOULD contain LOINC codes to matching concepts

.content.attachment.url

  • SHALL use the .attachment.url field to reference files; do not directly attach data to avoid very large file returns from FHIR

.content.attachment.contentType

  • SHALL be populated with the appropriate MimeType, either identified programmatically or during entry
  • MAY be used to render document for display

.content.attachment.title

  • MAY be listed for display purposes
  • Currently NOT used in search parameters; use the .description field for searchable information

.content.format - FUTURE - potential future add

  • SHOULD be fixed value at urn:ihe:iti:xds:2017:mimeTypeSufficient
  • Requires proper DocumentReference.content.attachment.contentType code associated with DocumentReference.content.attachment.url

.subject

  • Reference the Patient in cases where document specifically discusses an individual that is subject of services
  • Note: In DocumentReference (R5) this field references ANY file, but will likely still be Patient in Signal's context

.author

  • MAY represent the Organization that creates the document, since Users are not stored in FHIR

.custodian

  • SHOULD represent the provider Organization that has created and maintaining the document

.context.encounter

  • SHOULD reference the encounter and/or episode of care for which the services were performed related to the document

.context.sourcePatientInfo

  • Reference the Patient in cases where document specifically discusses an individual that is subject of services

.context.related

  • References any other resources or identifiers that may be referenced or related to the file

Examples