Union of http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference and http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/cmc-document-reference

This is the set of resources that conform to either of the profiles US Core DocumentReference Profile (http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference) and Document Reference Attachment (http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/cmc-document-reference). E.g. what you have to deal with if you get resources conforming to one of them

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. DocumentReference 0..*A reference to a document
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... meta Σ0..1MetaMetadata about the resource
ele-1: All FHIR elements must have a @value or children
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... versionId Σ0..1idVersion specific identifier
ele-1: All FHIR elements must have a @value or children
.... lastUpdated Σ0..1instantWhen the resource version last changed
ele-1: All FHIR elements must have a @value or children
.... source Σ0..1uriIdentifies where the resource comes from
ele-1: All FHIR elements must have a @value or children
.... profile SΣ0..1canonical(StructureDefinition)Profiles this resource claims to conform to
ele-1: All FHIR elements must have a @value or children
.... security Σ0..*CodingSecurity Labels applied to this resource
Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


ele-1: All FHIR elements must have a @value or children
.... tag Σ0..*CodingTags applied to this resource
Binding: ?? (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


ele-1: All FHIR elements must have a @value or children
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... language 0..1codeLanguage of the resource content
Binding: ?? (required): left: A human language.; right: IETF language tag for a human language


ele-1: All FHIR elements must have a @value or children
... text 0..1NarrativeText summary of the resource, for human interpretation
ele-1: All FHIR elements must have a @value or children
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... masterIdentifier Σ0..1IdentifierMaster Version Specific Identifier
ele-1: All FHIR elements must have a @value or children
... identifier SΣ0..*Identifierleft: Other identifiers for the document; right: Business identifiers for the document
ele-1: All FHIR elements must have a @value or children
... status ?!SΣ1..1codecurrent | superseded | entered-in-error
Binding: ?? (required): The status of the document reference.


ele-1: All FHIR elements must have a @value or children
... docStatus Σ0..1codeleft: preliminary | final | amended | entered-in-error; right: registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown
Binding: ?? (required): Status of the underlying document.


ele-1: All FHIR elements must have a @value or children
... type SΣ0..1CodeableConceptKind of document (LOINC if possible)
Binding: ?? (required): left: All LOINC values whose SCALE is DOC in the LOINC database and the HL7 v3 Code System NullFlavor concept 'unknown'; right: Precise type of clinical document.


ele-1: All FHIR elements must have a @value or children
... category SΣ0..*CodeableConceptCategorization of document
Binding: ?? (example): left: High-level kind of a clinical document at a macro level.; right: High-level kind of document at a macro level.


ele-1: All FHIR elements must have a @value or children
... subject SΣ0..1Reference(Resource)Who/what is the subject of the document
ele-1: All FHIR elements must have a @value or children
... date SΣ0..1instantWhen this document reference was created
ele-1: All FHIR elements must have a @value or children
... author SΣ0..*Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson | CareTeam)Who and/or what authored the document
ele-1: All FHIR elements must have a @value or children
... authenticator 0..1Reference(Practitioner | PractitionerRole | Organization)Who/what authenticated the document
ele-1: All FHIR elements must have a @value or children
... custodian 0..1Reference(Organization)Organization which maintains the document
ele-1: All FHIR elements must have a @value or children
... relatesTo Σ0..*BackboneElementRelationships to other documents
ele-1: All FHIR elements must have a @value or children
.... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... code Σ1..1left: replaces | transforms | signs | appends; right: The relationship type with another document
Binding: ?? (extensible): left: The type of relationship between documents.; right: The type of relationship between the documents.


ele-1: All FHIR elements must have a @value or children
..... codecode
..... codeCodeableConcept
.... target Σ1..1Reference(DocumentReference)Target of the relationship
ele-1: All FHIR elements must have a @value or children
... description Σ0..1Human-readable description
ele-1: All FHIR elements must have a @value or children
.... descriptionstring
.... descriptionmarkdown
... securityLabel Σ0..*CodeableConceptDocument security-tags
Binding: ?? (extensible): left: Security Labels from the Healthcare Privacy and Security Classification System.; right: Example Security Labels from the Healthcare Privacy and Security Classification System.


ele-1: All FHIR elements must have a @value or children
... content SΣ1..*BackboneElementDocument referenced
ele-1: All FHIR elements must have a @value or children
.... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... attachment SΣC1..1AttachmentWhere to access the document
ele-1: All FHIR elements must have a @value or children
us-core-6: DocumentReference.content.attachment.url or DocumentReference.content.attachment.data or both SHALL be present.
..... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... contentType SΣ0..1codeMime type of the content, with charset etc.
Binding: ?? (required): left: The mime type of an attachment. Any valid mime type is allowed.; right: BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)


ele-1: All FHIR elements must have a @value or children
Example General: text/plain; charset=UTF-8, image/png
..... language Σ0..1codeHuman language of the content (BCP-47)
Binding: ?? (required): left: A human language.; right: IETF language tag for a human language.


ele-1: All FHIR elements must have a @value or children
Example General: en-AU
..... data S0..1base64BinaryData inline, base64ed
ele-1: All FHIR elements must have a @value or children
..... url SΣ0..1urlUri where the data can be found
ele-1: All FHIR elements must have a @value or children
Example General: http://www.acme.com/logo-small.png
..... size Σ0..1Number of bytes of content (if url provided)
ele-1: All FHIR elements must have a @value or children
...... sizeunsignedInt
...... sizeinteger64
..... hash Σ0..1base64BinaryHash of the data (sha-1, base64ed)
ele-1: All FHIR elements must have a @value or children
..... title SΣ0..1stringleft: Label to display in place of the data; right: Document file name including the file extension
ele-1: All FHIR elements must have a @value or children
Example General: Official Corporate Logo
..... creation Σ0..1dateTimeDate attachment was first created
ele-1: All FHIR elements must have a @value or children
..... height 0..1positiveIntHeight of the image in pixels (photo/video)
ele-1: All FHIR elements must have a @value or children
..... width 0..1positiveIntWidth of the image in pixels (photo/video)
ele-1: All FHIR elements must have a @value or children
..... frames 0..1positiveIntNumber of frames if > 1 (photo)
ele-1: All FHIR elements must have a @value or children
..... duration 0..1decimalLength in seconds (audio / video)
ele-1: All FHIR elements must have a @value or children
..... pages 0..1positiveIntNumber of printed pages
ele-1: All FHIR elements must have a @value or children
.... format SΣ0..1CodingFormat/content rules for the document
Binding: ?? (extensible)
ele-1: All FHIR elements must have a @value or children
.... profile Σ0..*BackboneElementContent profile rules for the document
ele-1: All FHIR elements must have a @value or children
... context SΣ0..*left: Clinical context of document; right: Context of the document content
ele-1: All FHIR elements must have a @value or children
.... context:All Types Content/Rules for all Types
..... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... encounter S0..1Reference(US Core Encounter Profile)Context of the document content
ele-1: All FHIR elements must have a @value or children
..... event 0..*CodeableConceptMain clinical acts documented
Binding: ?? (example): This list of codes represents the main clinical acts being documented.


ele-1: All FHIR elements must have a @value or children
..... period SΣ0..1PeriodTime of service that is being documented
ele-1: All FHIR elements must have a @value or children
..... facilityType 0..1CodeableConceptKind of facility where patient was seen
Binding: ?? (example): XDS Facility Type.


ele-1: All FHIR elements must have a @value or children
..... practiceSetting 0..1CodeableConceptAdditional 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).


ele-1: All FHIR elements must have a @value or children
..... sourcePatientInfo 0..1Reference(Patient)Patient demographics from source
ele-1: All FHIR elements must have a @value or children
..... related 0..*Reference(Resource)Related identifiers or resources
ele-1: All FHIR elements must have a @value or children
.... contextBackboneElement
.... contextReference(Appointment | Encounter | EpisodeOfCare)
... version Σ0..1stringAn explicitly assigned identifer of a variation of the content in the DocumentReference
ele-1: All FHIR elements must have a @value or children
... basedOn 0..*Reference(Appointment | AppointmentResponse | CarePlan | Claim | CommunicationRequest | Contract | CoverageEligibilityRequest | DeviceRequest | EnrollmentRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | RequestOrchestration | ServiceRequest | SupplyRequest | VisionPrescription)Procedure that caused this media to be created
ele-1: All FHIR elements must have a @value or children
... modality Σ0..*CodeableConceptImaging modality used
Binding: ?? (extensible): Type of acquired data in the instance.


ele-1: All FHIR elements must have a @value or children
... event 0..*CodeableReference()Main clinical acts documented
Binding: ?? (example): This list of codes represents the main clinical acts being documented.


ele-1: All FHIR elements must have a @value or children
... bodySite Σ0..*CodeableReference(BodyStructure)Body part included
Binding: ?? (example): SNOMED CT Body site concepts


ele-1: All FHIR elements must have a @value or children
... facilityType C0..1CodeableConceptKind of facility where patient was seen
Binding: ?? (example): XDS Facility Type.


ele-1: All FHIR elements must have a @value or children
... practiceSetting C0..1CodeableConceptAdditional 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).


ele-1: All FHIR elements must have a @value or children
... period Σ0..1PeriodTime of service that is being documented
ele-1: All FHIR elements must have a @value or children
... attester 0..*BackboneElementAttests to accuracy of the document
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format