PackagesCanonicalsLogsProblems
    Packages
    rs/medcom.fhir.dk.carecommunication@4.0.3
    http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-careCommunication-communication
description: Care related communication between two or more parties in Danish healthcare
package_name: rs/medcom.fhir.dk.carecommunication
derivation: constraint
name: MedComCareCommunication
type: Communication
elements:
  category:
    short: 'The category (Danish: kategori) describes the overall content of the message.'
    binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-careCommunication-categories'}
    mustSupport: true
    index: 5
    elements:
      coding:
        elements:
          system: {mustSupport: true, index: 6}
          code: {mustSupport: true, index: 7}
        required: [code, system]
  payload:
    short: Each payload corresponds to a message segment with a message text or an attachment. At least one payload with a message text shall be included.
    index: 14
    extensions:
      date: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension', min: 0, max: 1, type: Extension, index: 16}
      author: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension', min: 0, max: 1, type: Extension, index: 17}
      authorContact: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension', min: 0, max: 1, type: Extension, index: 18}
      identifier: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension', min: 0, max: 1, type: Extension, index: 19}
    elements:
      extension:
        index: 15
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            date:
              match: {url: null}
              schema: {type: Extension, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension', index: 16}
              min: 0
              max: 1
            author:
              match: {url: null}
              schema: {type: Extension, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension', index: 17}
              min: 0
              max: 1
            authorContact:
              match: {url: null}
              schema: {type: Extension, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension', index: 18}
              min: 0
              max: 1
            identifier:
              match: {url: null}
              schema: {type: Extension, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension', index: 19}
              min: 0
              max: 1
    slicing:
      rules: open
      discriminator:
      - {path: $this.content, type: type}
      min: 1
      slices:
        string:
          match: {}
          schema:
            mustSupport: true
            array: true
            min: 1
            _required: true
            index: 20
            extensions:
              date: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 22}
              author: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 23}
              authorContact: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 24}
              identifier: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 25}
            elements:
              extension:
                array: true
                min: 4
                index: 21
                slicing:
                  slices:
                    date:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension', index: 22}
                      min: 1
                      max: 1
                    author:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension', index: 23}
                      min: 1
                      max: 1
                    authorContact:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension', index: 24}
                      min: 1
                      max: 1
                    identifier:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension', index: 25}
                      min: 1
                      max: 1
              content:
                mustSupport: true
                choices: [contentString]
                index: 27
              contentString: {type: string, mustSupport: true, choiceOf: content, index: 28}
        attachment:
          match: {}
          schema:
            short: The payload with an attachment shall contain a link or content attached to the message.
            mustSupport: true
            array: true
            index: 29
            extensions:
              date: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 31}
              author: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 32}
              authorContact: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 33}
              identifier: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 34}
            elements:
              extension:
                array: true
                min: 2
                index: 30
                slicing:
                  slices:
                    date:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-datetime-extension', index: 31}
                      min: 1
                      max: 1
                    author:
                      match: {}
                      schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitioner-extension', index: 32}
                      min: 0
                      max: 1
                    authorContact:
                      match: {}
                      schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-contact-extension', index: 33}
                      min: 0
                      max: 1
                    identifier:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-identifier-extension', index: 34}
                      min: 1
                      max: 1
              content:
                mustSupport: true
                choices: [contentAttachment]
                index: 36
              contentAttachment: {type: Attachment, mustSupport: true, choiceOf: content, index: 37}
              content[x]:
                elements:
                  contentType:
                    short: The content type shall be present when the content is an attachment included in the data element.
                    binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-core-attachmentMimeTypes'}
                    mustSupport: true
                    index: 38
                  data: {short: Shall be present and contain the base64 encoded content of the attachment., mustSupport: true, index: 39}
                  url: {short: Shall be present if the attachment is a link to a web page., mustSupport: true, index: 40}
                  title: {mustSupport: true, index: 41}
                  creation: {short: The time the attachment was created, mustSupport: true, index: 42}
                required: [title]
  encounter:
    type: Reference
    short: Shall contain a reference to an Encounter resource with a episodeOfCare-identifier, if the identifier is included in a previous message.
    mustSupport: true
    refers: ['http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-encounter']
    index: 12
  recipient:
    type: Reference
    short: Describes a more specific receiver than the MessageHeader.destination.reciever, called a recipient. It may be a careteam a homecare group in the municipality or a named general practitioner.
    mustSupport: true
    refers: ['http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-careteam', 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-practitionerrole']
    index: 13
  topic:
    short: 'The topic (Danish: emne) may be added as a supplement to the category. Topic must be added in the text-element.'
    mustSupport: true
    index: 10
    elements:
      text: {mustSupport: true, index: 11}
    required: [text]
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        sender:
          match: {url: null}
          schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-sender-extension', index: 1}
          min: 0
          max: 1
  priority:
    short: Shall be present if the message priority is known to be ASAP, but is only allowed when the category is 'regarding referral', see medcom-careCommunication-5
    binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-careCommunication-requestPriority'}
    mustSupport: true
    index: 8
  status:
    mustSupport: true
    pattern: {type: code, value: unknown}
    type: code
    index: 4
  identifier:
    short: The communication identifier
    constraint:
      medcom-uuidv4: {human: The value shall correspond to the structure of an UUID version 4, source: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-careCommunication-communication', severity: error, expression: 'value.matches(''urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'')'}
    mustSupport: true
    index: 2
    elements:
      value: {mustSupport: true, index: 3}
    required: [value]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-patient']
    index: 9
package_version: 4.0.3
extensions:
  sender: {url: 'http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-sender-extension', min: 0, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 1}
class: profile
kind: resource
url: http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-careCommunication-communication
base: http://hl7.org/fhir/StructureDefinition/Communication
version: 4.0.3
required: [category, identifier, payload, subject]