PackagesCanonicalsLogsProblems
    Packages
    rs/medcom.fhir.dk.document@v.1.0.1
    http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-composition
description: The profile of the MedCom Document Composition containing the minimum allowed content.
package_name: rs/medcom.fhir.dk.document
derivation: constraint
name: MedComDocumentComposition
type: Composition
elements:
  date: {mustSupport: true, index: 6}
  meta:
    elements:
      profile: {mustSupport: true, index: 0}
    required: [profile]
  section:
    mustSupport: true
    index: 20
    elements:
      text: {mustSupport: true, index: 21}
      entry: {mustSupport: true, index: 22}
  attester:
    mustSupport: true
    index: 12
    elements:
      mode: {mustSupport: true, index: 13}
      party:
        type: Reference
        mustSupport: true
        refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitioner']
        index: 14
  type: {mustSupport: true, index: 4}
  title: {mustSupport: true, index: 10}
  author:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    index: 7
    slicing:
      rules: closed
      discriminator:
      - {path: $this.resolve(), type: type}
      min: null
      slices:
        institution:
          match: {}
          schema:
            short: The organization who authored the document
            refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-organization']
            type: Reference
            mustSupport: true
            _required: true
            index: 8
          min: 1
          max: 1
        person:
          match: {}
          schema:
            short: The person who authored the document
            refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-practitioner']
            type: Reference
            mustSupport: true
            index: 9
          min: 0
          max: 1
  event:
    mustSupport: true
    index: 15
    elements:
      code: {mustSupport: true, index: 16}
      period:
        elements:
          start: {mustSupport: true, index: 17}
          end: {mustSupport: true, index: 18}
      detail: {mustSupport: true, index: 19}
  status:
    mustSupport: true
    pattern: {type: code, value: final}
    type: code
    index: 3
  language: {mustSupport: true, index: 1}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-patient']
    index: 5
  confidentiality: {mustSupport: true, index: 11}
  text: {mustSupport: true, index: 2}
package_version: v.1.0.1
class: profile
kind: resource
url: http://medcomfhir.dk/ig/document/StructureDefinition/medcom-document-composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: v.1.0.1
required: [confidentiality, language, section, subject]