PackagesCanonicalsLogsProblems
    Packages
    dk.ehealth.sundhed.fhir.ig.core@10.0.1
    http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication
description: null
package_name: dk.ehealth.sundhed.fhir.ig.core
derivation: constraint
name: ehealth-carecommunication
type: Communication
elements:
  category:
    binding: {strength: required, valueSet: 'http://ehealth.sundhed.dk/vs/ehealth-carecommunication-category'}
    mustSupport: true
    index: 18
    elements:
      coding:
        mustSupport: true
        index: 19
        elements:
          system:
            pattern: {type: Uri, value: 'http://ehealth.sundhed.dk/cs/ehealth-carecommunication-category'}
            mustSupport: true
            index: 20
          code: {mustSupport: true, index: 21}
        required: [system, code]
    required: [coding]
  payload:
    index: 29
    slicing:
      rules: open
      discriminator:
      - {path: $this.content, type: type}
      min: 1
      slices:
        string:
          match: {}
          schema:
            array: true
            min: 1
            _required: true
            index: 30
            extensions:
              date: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-datetime', min: 1, max: 1, type: Extension, mustSupport: true, index: 32}
              identifier: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-payload-identifier', min: 1, max: 1, type: Extension, mustSupport: true, index: 33}
            elements:
              extension:
                array: true
                min: 2
                index: 31
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 2
                  slices:
                    date:
                      match: {url: null}
                      schema: {type: Extension, mustSupport: true, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-datetime', index: 32}
                      min: 1
                      max: 1
                    identifier:
                      match: {url: null}
                      schema: {type: Extension, mustSupport: true, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-payload-identifier', index: 33}
                      min: 1
                      max: 1
              content:
                choices: []
                index: 35
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    contentString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [contentString]
                        _required: true
                        index: 37
                      min: 1
                      max: 1
              contentString:
                type: string
                mustSupport: true
                choiceOf: content
                index: 38
                slicing:
                  slices:
                    contentString:
                      match: {}
                      schema: {type: string, mustSupport: true, choiceOf: content, _required: true, index: 38}
                      min: 1
                      max: 1
            required: [contentString]
        attachment:
          match: {}
          schema:
            array: true
            index: 39
            extensions:
              date: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-datetime', min: 1, max: 1, type: Extension, mustSupport: true, index: 41}
              identifier: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-payload-identifier', min: 1, max: 1, type: Extension, mustSupport: true, index: 42}
            elements:
              extension:
                array: true
                min: 2
                index: 40
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 2
                  slices:
                    date:
                      match: {url: null}
                      schema: {type: Extension, mustSupport: true, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-datetime', index: 41}
                      min: 1
                      max: 1
                    identifier:
                      match: {url: null}
                      schema: {type: Extension, mustSupport: true, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-payload-identifier', index: 42}
                      min: 1
                      max: 1
              content:
                mustSupport: true
                choices: [contentAttachment]
                index: 44
              contentAttachment: {type: Attachment, mustSupport: true, choiceOf: content, index: 45}
              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://ehealth.sundhed.dk/vs/ehealth-carecommunication-mimetypes'}
                    mustSupport: true
                    index: 46
                  data: {short: Shall be present and contain the base64 encoded content of the attachment., mustSupport: true, index: 47}
                  url: {short: Shall be present if the attachment is a link to a web page., mustSupport: true, index: 48}
                  title: {short: 'Note: it is not allowed for the system to automatically include ''.filetype'' in the title.', mustSupport: true, index: 49}
                  creation: {short: The time the attachment was created, mustSupport: true, index: 50}
                required: [title]
  encounter: {short: 'Shall contain a reference to an Encounter resource with a episodeOfCare-identifier, if the identifier is included in a previous message.', mustSupport: true, index: 26}
  recipient:
    type: Reference
    short: The recieving actor of the message
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole']
    index: 27
  topic:
    short: Must be added when category is "other". Topic must be added in the text-element.
    mustSupport: true
    index: 24
    elements:
      text: {short: Plain text representation of the concept., mustSupport: true, index: 25}
    required: [text]
  extension:
    array: true
    min: 4
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 4
      slices:
        sender:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-sender', index: 1}
          min: 0
          max: 1
        destination:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-destination', index: 2}
          min: 1
          max: 1
        origin:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-origin', index: 3}
          min: 1
          max: 1
        messageType:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-message-Type', index: 4}
          min: 1
          max: 1
        administrativeStatus:
          match: {url: null}
          schema: {type: Extension, url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-administrative-status', index: 5}
          min: 1
          max: 1
  priority:
    short: Only used when the category is 'regarding referral', see priority-category-invariant.
    binding: {strength: required, valueSet: 'http://ehealth.sundhed.dk/vs/ehealth-carecommunication-priority'}
    mustSupport: true
    index: 22
  status: {mustSupport: true, index: 17}
  sender: {index: 28}
  identifier:
    mustSupport: true
    array: true
    min: 1
    max: 2
    index: 6
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      max: 2
      slices:
        communicationId:
          match: {system: 'http://ehealth.sundhed.dk/id/ehealth-carecommunication-identifier'}
          schema:
            short: The communication identifier
            constraint:
              uuidv4: {human: 'identifier.value SHALL be a valid UUID v4 in URN form (urn:uuid:)', source: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication', severity: error, expression: 'value.matches(''^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'')'}
            mustSupport: true
            _required: true
            index: 7
            elements:
              use:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/identifier-use'}
                index: 8
              system:
                pattern: {type: Uri, value: 'http://ehealth.sundhed.dk/id/ehealth-carecommunication-identifier'}
                mustSupport: true
                index: 9
              value: {short: 'UUID v4 in URN form (urn:uuid:)', mustSupport: true, index: 10}
            required: [value, system]
        messageHeaderId:
          match: {system: 'http://ehealth.sundhed.dk/fhir/system/medcom-message-header-id'}
          schema:
            short: The ID of the originating MessageHeader resource
            mustSupport: true
            index: 11
            elements:
              system:
                pattern: {type: Uri, value: 'http://ehealth.sundhed.dk/fhir/system/medcom-message-header-id'}
                mustSupport: true
                index: 12
              value: {mustSupport: true, index: 13}
            required: [value, system]
  inResponseTo: {short: 'references the Ehealth-CareCommunication Communication.id, which this message is a response to.', mustSupport: true, index: 16}
  basedOn: {index: 14}
  partOf: {index: 15}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 23
package_version: 10.0.1
extensions:
  sender: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-sender', min: 0, max: 1, type: Extension, mustSupport: true, index: 1}
  destination: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-destination', min: 1, max: 1, type: Extension, mustSupport: true, index: 2}
  origin: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-origin', min: 1, max: 1, type: Extension, mustSupport: true, index: 3}
  messageType: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication-message-Type', min: 1, max: 1, type: Extension, mustSupport: true, index: 4}
  administrativeStatus: {url: 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-administrative-status', min: 1, max: 1, type: Extension, index: 5}
class: profile
kind: resource
url: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-carecommunication
base: http://hl7.org/fhir/StructureDefinition/Communication
version: 10.0.1
required: [identifier, subject, category, payload]