PackagesCanonicalsLogsProblems
    Packages
    rs/NHSD.Assets.STU3@1.2.0
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-DocumentReference-1
description: The DocumentReference resource is used to describe a document that is made available to a healthcare system.
package_name: rs/NHSD.Assets.STU3
derivation: constraint
name: CareConnect-GPC-DocumentReference-1
type: DocumentReference
elements:
  description: {short: Document description or title, index: 25}
  meta:
    elements:
      profile: {index: 0}
    required: [profile]
  content:
    elements:
      attachment:
        elements:
          contentType: {index: 26}
          url: {index: 27}
          size: {short: Size of the file, index: 28}
        required: [contentType, size, url]
      format: {index: 29}
    required: [format]
  type:
    short: Type of document
    index: 14
    elements:
      coding:
        elements:
          system:
            pattern: {type: uri, value: 'http://snomed.info/sct'}
            type: uri
            index: 15
          version: {index: 16}
          code: {index: 17}
          display: {index: 18}
        required: [code, display, system]
  created: {index: 20}
  author:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-RelatedPerson-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
    index: 21
  masterIdentifier:
    short: Version Number of the document
    index: 1
    elements:
      system: {index: 2}
      value: {index: 3}
      assigner:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
        index: 4
    required: [system, value]
  custodian:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
    index: 23
  identifier:
    short: The identifier of the document.
    index: 5
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        crossCareSettingIdentifier:
          match: {system: 'https://fhir.nhs.uk/Id/cross-care-setting-identifier'}
          schema:
            short: Cross-Care Setting Identifier
            _required: true
            index: 6
            elements:
              system:
                pattern: {type: uri, value: 'https://fhir.nhs.uk/Id/cross-care-setting-identifier'}
                type: uri
                index: 7
              value: {index: 8}
              assigner:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
                index: 9
            required: [system, value]
        sliceIdentifier:
          match: {system: null}
          schema:
            index: 10
            elements:
              system: {index: 11}
              value: {index: 12}
              assigner:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
                index: 13
            required: [system, value]
  relatesTo:
    elements:
      target:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-DocumentReference-1']
        index: 24
  context:
    elements:
      encounter:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1']
        index: 30
      practiceSetting: {index: 31}
      sourcePatientInfo:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1']
        index: 32
      related:
        elements:
          identifier:
            elements:
              assigner:
                type: Reference
                refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
                index: 33
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
    index: 19
  authenticator:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
    index: 22
package_version: 1.2.0
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-DocumentReference-1
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 1.1.0
required: [identifier, subject]