PackagesCanonicalsLogsProblems
    Packages
    dk.ehmi.eds@1.0.2
    http://medcomehmi.dk/ig/eds/StructureDefinition/EdsBasicDeliveryStatus
description: EdsBasicDeliveryStatus is used to define the basic delivery status reporting for EDS from an EDS Client to the EDS Server.\n\nA basic EdsBasicDeliveryStatus is based on the AuditEvent profile for and is submitted when a EHMI Core Messaging transaction \nfrom one station in the messageflow to another station happens successfully.\n\nEdsBasicDeliveryStatus is only used when a Patient entity is not required, for instance for delivery status reporting of Acknowledgements. \nThe EdsBasicDeliveryStatus does not have a Patient subject or is otherwise associated with a Patient. \nWhen the message transaction is Patient specific then EdsPatientDeliveryStatus is used.\n\nWhen successfully submitted from an EDS Client to the EDS Server then the recorded EdsBasicDeliveryStatus has conformed to the profile otherwise it would \nnot have a successful outcome and the EDS Client will receive an OperationOutcome indicating the failure.\n
package_name: dk.ehmi.eds
derivation: constraint
name: EdsBasicDeliveryStatus
type: AuditEvent
elements:
  outcomeDesc: {index: 8}
  type:
    binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-types-valueset'}
    mustSupport: true
    index: 1
  outcome:
    binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-outcome-valueset'}
    mustSupport: true
    index: 7
  source:
    elements:
      observer:
        type: Reference
        refers: ['http://hl7.org/fhir/StructureDefinition/Device']
        index: 30
        elements:
          type:
            pattern: {type: Uri, value: ehmiDevice}
            index: 31
          identifier: {mustSupport: true, index: 32}
      type:
        binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-source-type-valueset'}
        mustSupport: true
        index: 33
        elements:
          system:
            pattern: {type: Uri, value: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-source-type'}
            index: 34
    required: [type]
  agent:
    array: true
    min: 2
    max: 4
    index: 10
    extensions:
      GLNId: {url: 'http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId', min: 0, type: Extension, mustSupport: true, index: 12}
    elements:
      extension:
        index: 11
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            GLNId:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId', index: 12}
              min: 0
      type:
        binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-participationroletype-valueset'}
        index: 13
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: 2
      max: 4
      slices:
        ehmiSender:
          match:
            type:
              coding:
              - {code: ehmiSender, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-participationroletype', display: Sender}
          schema:
            _required: true
            index: 14
            extensions:
              GLNId:
                url: http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId
                type: Extension
                mustSupport: true
                index: 15
                elements:
                  value[x]:
                    elements:
                      type:
                        short: GLN
                        pattern:
                          type: CodeableConcept
                          value:
                            coding:
                            - {code: GLN, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-agent-who-identifier-types'}
                        index: 16
                      value: {short: equals SBDH/Sender/Identifier, index: 17}
            elements:
              extension:
                type: Extension
                mustSupport: true
                url: http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId
                index: 15
                slicing:
                  slices:
                    GLNId:
                      match: {}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId
                        index: 15
                        elements:
                          value[x]:
                            elements:
                              type:
                                short: GLN
                                pattern:
                                  type: CodeableConcept
                                  value:
                                    coding:
                                    - {code: GLN, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-agent-who-identifier-types'}
                                index: 16
                              value: {short: equals SBDH/Sender/Identifier, index: 17}
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: ehmiSender, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-participationroletype', display: Sender}
                index: 18
              who:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
                index: 19
                elements:
                  identifier: {short: 'equals SBDH/BusinessScope/Scope[Type=Sender]/InstanceIdentifier', mustSupport: true, index: 20}
                required: [identifier]
              name: {mustSupport: true, index: 21}
            required: [who, type]
        ehmiReceiver:
          match:
            type:
              coding:
              - {code: ehmiReceiver, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-participationroletype', display: Receiver}
          schema:
            _required: true
            index: 22
            extensions:
              GLNId:
                url: http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId
                type: Extension
                mustSupport: true
                index: 23
                elements:
                  value[x]:
                    elements:
                      type:
                        short: GLN
                        pattern:
                          type: CodeableConcept
                          value:
                            coding:
                            - {code: GLN, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-agent-who-identifier-types'}
                        index: 24
                      value: {short: equals SBDH/Receiver/Identifier, index: 25}
            elements:
              extension:
                type: Extension
                mustSupport: true
                url: http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId
                index: 23
                slicing:
                  slices:
                    GLNId:
                      match: {}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId
                        index: 23
                        elements:
                          value[x]:
                            elements:
                              type:
                                short: GLN
                                pattern:
                                  type: CodeableConcept
                                  value:
                                    coding:
                                    - {code: GLN, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-agent-who-identifier-types'}
                                index: 24
                              value: {short: equals SBDH/Receiver/Identifier, index: 25}
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: ehmiReceiver, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-participationroletype', display: Receiver}
                index: 26
              who:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
                index: 27
                elements:
                  identifier: {mustSupport: true, index: 28}
                required: [identifier]
              name: {mustSupport: true, index: 29}
            required: [who, type]
  id: {mustSupport: true, index: 0}
  purposeOfEvent: {index: 9}
  action:
    pattern: {type: Code, value: C}
    index: 5
  period: {index: 6}
  entity:
    array: true
    min: 2
    index: 35
    elements:
      what:
        elements:
          identifier: {mustSupport: true, index: 36}
        required: [identifier]
      type:
        binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-entity-type-valueset'}
        mustSupport: true
        index: 37
        elements:
          system:
            pattern: {type: Uri, value: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type'}
            index: 38
          code: {index: 39}
          display: {index: 40}
        required: [display, system, code]
      detail:
        elements:
          value:
            choices: [valueString]
            index: 42
          valueString: {type: string, choiceOf: value, index: 43}
    required: [type]
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: 2
      slices:
        ehmiMessage:
          match:
            type: {code: ehmiMessage, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Message}
          schema:
            _required: true
            index: 44
            elements:
              type:
                pattern:
                  type: Coding
                  value: {code: ehmiMessage, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Message}
                index: 45
              detail:
                array: true
                min: 2
                max: 3
                index: 46
                elements:
                  type:
                    binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-entity-detail-type-valueset'}
                    index: 47
                slicing:
                  rules: closed
                  discriminator:
                  - {path: type, type: value}
                  min: 2
                  max: 3
                  slices:
                    ehmiMessageType:
                      match: {type: ehmiMessageType}
                      schema:
                        _required: true
                        index: 48
                        elements:
                          type:
                            pattern: {type: String, value: ehmiMessageType}
                            index: 49
                          value:
                            short: equals 'SBDH/DocumentIdentification/Standard/[value]' e.g. homecareobservation-message
                            choices: []
                            index: 51
                    ehmiMessageVersion:
                      match: {type: ehmiMessageVersion}
                      schema:
                        _required: true
                        index: 52
                        elements:
                          type:
                            pattern: {type: String, value: ehmiMessageVersion}
                            index: 53
                          value:
                            short: equals 'SBDH/DocumentIdentification/TypeVersion/[value]' e.g. 1.1
                            choices: []
                            index: 55
                    ehmiStatisticalInfo:
                      match: {type: ehmiStatisticalInfo}
                      schema:
                        index: 56
                        elements:
                          type:
                            pattern: {type: String, value: ehmiStatisticalInfo}
                            index: 57
                          value:
                            short: equals 'MCM:' + SBDH/DocumentIdentification/Standard/[value]+'|'+SBDH/DocumentIdentification/TypeVersion/[value]+#[Postfix values]
                            choices: []
                            index: 59
        ehmiMessageEnvelope:
          match:
            type: {code: ehmiMessageEnvelope, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Message Envelope}
          schema:
            index: 60
            elements:
              type:
                pattern:
                  type: Coding
                  value: {code: ehmiMessageEnvelope, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Message Envelope}
                index: 61
              detail:
                index: 62
                elements:
                  type:
                    binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-entity-detail-type-valueset'}
                    index: 63
                slicing:
                  rules: open
                  discriminator:
                  - {path: type, type: value}
                  min: null
                  max: 1
                  slices:
                    ehmiMessageEnvelopeType:
                      match: {type: ehmiMessageEnvelopeType}
                      schema:
                        index: 64
                        elements:
                          type:
                            pattern: {type: String, value: ehmiMessageEnvelopeType}
                            index: 65
                          value:
                            short: equals 'SBDH/DocumentIdentification/Type/[value]' e.g. Bundle
                            choices: []
                            index: 67
        ehmiTransportEnvelope:
          match:
            type: {code: ehmiTransportEnvelope, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Transport Envelope}
          schema:
            index: 68
            elements:
              type:
                pattern:
                  type: Coding
                  value: {code: ehmiTransportEnvelope, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Transport Envelope}
                index: 69
              detail:
                array: true
                max: 2
                index: 70
                elements:
                  type:
                    binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-entity-detail-type-valueset'}
                    index: 71
                slicing:
                  rules: closed
                  discriminator:
                  - {path: type, type: value}
                  min: null
                  max: 2
                  slices:
                    ehmiTransportEnvelopeType:
                      match: {type: ehmiTransportEnvelopeType}
                      schema:
                        index: 72
                        elements:
                          type:
                            pattern: {type: String, value: ehmiTransportEnvelopeType}
                            index: 73
                          value:
                            short: = 'SBDH'
                            choices: []
                            index: 75
                    ehmiTransportEnvelopeVersion:
                      match: {type: ehmiTransportEnvelopeVersion}
                      schema:
                        index: 76
                        elements:
                          type:
                            pattern: {type: String, value: ehmiTransportEnvelopeVersion}
                            index: 77
                          value:
                            short: equals SBDH/HeaderVersion/[value] e.g. 1.2
                            choices: []
                            index: 79
        ehmiOrigMessage:
          match:
            type: {code: ehmiOrigMessage, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Original Message}
          schema:
            index: 80
            elements:
              type:
                pattern:
                  type: Coding
                  value: {code: ehmiOrigMessage, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Original Message}
                index: 81
              detail:
                array: true
                min: 2
                max: 2
                index: 82
                slicing:
                  rules: closed
                  discriminator:
                  - {path: type, type: value}
                  min: 2
                  max: 2
                  slices:
                    ehmiMessageType:
                      match: {type: ehmiMessageType}
                      schema:
                        _required: true
                        index: 83
                        elements:
                          type:
                            pattern: {type: String, value: ehmiMessageType}
                            index: 84
                    ehmiMessageVersion:
                      match: {type: ehmiMessageVersion}
                      schema:
                        _required: true
                        index: 85
                        elements:
                          type:
                            pattern: {type: String, value: ehmiMessageVersion}
                            index: 86
        ehmiOrigTransportEnvelope:
          match:
            type: {code: ehmiOrigTransportEnvelope, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Original Transport Envelope}
          schema:
            index: 87
            elements:
              type:
                pattern:
                  type: Coding
                  value: {code: ehmiOrigTransportEnvelope, system: 'http://medcomehmi.dk/ig/terminology/CodeSystem/ehmi-delivery-status-entity-type', display: Original Transport Envelope}
                index: 88
              detail:
                array: true
                max: 2
                index: 89
                elements:
                  type:
                    binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-entity-detail-type-valueset'}
                    index: 90
                slicing:
                  rules: closed
                  discriminator:
                  - {path: type, type: value}
                  min: null
                  max: 2
                  slices:
                    ehmiTransportEnvelopeType:
                      match: {type: ehmiTransportEnvelopeType}
                      schema:
                        index: 91
                        elements:
                          type:
                            pattern: {type: String, value: ehmiTransportEnvelopeType}
                            index: 92
                    ehmiTransportEnvelopeVersion:
                      match: {type: ehmiTransportEnvelopeVersion}
                      schema:
                        index: 93
                        elements:
                          type:
                            pattern: {type: String, value: ehmiTransportEnvelopeVersion}
                            index: 94
  subtype:
    binding: {strength: required, valueSet: 'http://medcomehmi.dk/ig/terminology/ValueSet/ehmi-delivery-status-sub-types-valueset'}
    mustSupport: true
    index: 2
    elements:
      system: {index: 3}
      code: {index: 4}
    required: [system, code]
package_version: 1.0.2
class: profile
kind: resource
url: http://medcomehmi.dk/ig/eds/StructureDefinition/EdsBasicDeliveryStatus
base: http://hl7.org/fhir/StructureDefinition/AuditEvent
version: 1.0.2
required: [subtype, action, outcome]