PackagesCanonicalsLogsProblems
    Packages
    rs/medcom.fhir.dk.carecommunication@2.1.0
    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: 3
  payload:
    short: Each payload corresponds to a message segment with a signature and a message text or attachment. At least one payload with a message text shall be included.
    index: 9
    extensions:
      date: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-datetime-extension', min: 0, max: 1, type: Extension, index: 11}
      author: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-extension', min: 0, max: 1, type: Extension, index: 12}
      authorContact: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-contact-extension', min: 0, max: 1, type: Extension, index: 13}
      identifier: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-attachment-identifier-extension', min: 0, max: 1, type: Extension, index: 14}
    elements:
      extension:
        index: 10
        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/carecommunication/StructureDefinition/medcom-carecommunication-datetime-extension', index: 11}
              min: 0
              max: 1
            author:
              match: {url: null}
              schema: {type: Extension, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-extension', index: 12}
              min: 0
              max: 1
            authorContact:
              match: {url: null}
              schema: {type: Extension, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-contact-extension', index: 13}
              min: 0
              max: 1
            identifier:
              match: {url: null}
              schema: {type: Extension, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-attachment-identifier-extension', index: 14}
              min: 0
              max: 1
    slicing:
      rules: open
      ordered: true
      discriminator:
      - {path: $this.content, type: type}
      min: 1
      slices:
        string:
          match: {}
          schema:
            short: xhtml content of the message
            mustSupport: true
            array: true
            min: 1
            _required: true
            index: 15
            extensions:
              date: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-datetime-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 17}
              author: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 18}
              authorContact: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-contact-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 19}
              identifier: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-attachment-identifier-extension', min: 0, max: 0, type: Extension, index: 20}
            elements:
              extension:
                array: true
                min: 3
                index: 16
                slicing:
                  slices:
                    date:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-datetime-extension', index: 17}
                      min: 1
                      max: 1
                    author:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-extension', index: 18}
                      min: 1
                      max: 1
                    authorContact:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-contact-extension', index: 19}
                      min: 1
                      max: 1
                    identifier:
                      match: {}
                      schema: {type: Extension, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-attachment-identifier-extension', index: 20}
                      min: 0
                      max: 0
              content:
                mustSupport: true
                choices: [contentString]
                index: 22
              contentString: {type: string, mustSupport: true, choiceOf: content, index: 23}
        attachment:
          match: {}
          schema:
            short: The payload with an attachment shall contain all links or content attached to the message.
            mustSupport: true
            array: true
            index: 24
            extensions:
              date: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-datetime-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 26}
              author: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 27}
              authorContact: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-contact-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 28}
              identifier: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-attachment-identifier-extension', min: 1, max: 1, type: Extension, isSummary: true, mustSupport: true, index: 29}
            elements:
              extension:
                array: true
                min: 2
                index: 25
                slicing:
                  slices:
                    date:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-datetime-extension', index: 26}
                      min: 1
                      max: 1
                    author:
                      match: {}
                      schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-extension', index: 27}
                      min: 0
                      max: 1
                    authorContact:
                      match: {}
                      schema: {type: Extension, mustSupport: true, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-author-contact-extension', index: 28}
                      min: 0
                      max: 1
                    identifier:
                      match: {}
                      schema: {type: Extension, isSummary: true, mustSupport: true, url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-attachment-identifier-extension', index: 29}
                      min: 1
                      max: 1
              content:
                mustSupport: true
                choices: [contentAttachment]
                index: 31
              contentAttachment:
                type: Attachment
                mustSupport: true
                choiceOf: content
                index: 32
                elements:
                  contentType:
                    short: The content type shall be present in case the content is provided as an attached document in the data element.
                    binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-core-attachmentMimeTypes'}
                    mustSupport: true
                    index: 34
                  data: {short: Shall be present and contain the base64 encoded content if the attachment is an attached document, mustSupport: true, index: 35}
                  url: {short: Shall be present if the attachment is a link to a document or a web page., mustSupport: true, index: 36}
                  title: {mustSupport: true, index: 37}
                  creation: {short: The time the attachment was created, mustSupport: true, index: 38}
                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: 7
  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: 8
  topic: {short: 'The topic (Danish: emne) may be added as a supplement to the category.', mustSupport: true, index: 6}
  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/carecommunication/StructureDefinition/medcom-carecommunication-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: 4
  status: {short: 'The status may be ''unknown'' or ''entered-in-error'', dependning on the type of message. status is required because of basic FHIR profile requirement', mustSupport: true, index: 2}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://medcomfhir.dk/ig/core/StructureDefinition/medcom-core-patient']
    index: 5
package_version: 2.1.0
extensions:
  sender: {url: 'http://medcomfhir.dk/ig/carecommunication/StructureDefinition/medcom-carecommunication-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: 2.1.0
required: [category, payload, subject]