PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.core@4.1.0
    http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference
description: The document reference profile used in US Core.
package_name: hl7.fhir.us.core
derivation: constraint
name: USCoreDocumentReferenceProfile
type: DocumentReference
elements:
  category:
    mustSupport: true
    index: 3
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        us-core:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/core/ValueSet/us-core-documentreference-category'}
            mustSupport: true
            index: 4
  date: {mustSupport: true, index: 6}
  content:
    mustSupport: true
    index: 8
    elements:
      attachment:
        constraint:
          us-core-6: {human: DocumentReference.content.attachment.url or  DocumentReference.content.attachment.data or both SHALL be present., severity: error, expression: url.exists() or data.exists()}
        mustSupport: true
        index: 9
        elements:
          contentType: {mustSupport: true, index: 10}
          data: {mustSupport: true, index: 11}
          url: {mustSupport: true, index: 12}
      format:
        binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/formatcodes'}
        mustSupport: true
        index: 13
  type:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/core/ValueSet/us-core-documentreference-type'}
    mustSupport: true
    index: 2
  author:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-relatedperson']
    index: 7
  status:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/document-reference-status'}
    mustSupport: true
    index: 1
  identifier: {mustSupport: true, index: 0}
  context:
    mustSupport: true
    index: 14
    elements:
      encounter:
        type: Reference
        mustSupport: true
        refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter']
        index: 15
      period: {mustSupport: true, index: 16}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient']
    index: 5
package_version: 4.1.0
class: profile
kind: resource
url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 4.1.0
required: [subject, type, category]