PackagesCanonicalsLogsProblems
    Packages
    rs/medcom.fhir.dk.messaging@3.0.0
    http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-provenance
description: Provenance information about the messages preceeding the current message
package_name: rs/medcom.fhir.dk.messaging
derivation: constraint
name: MedComMessagingProvenance
type: Provenance
elements:
  text: {mustSupport: true, index: 0}
  target:
    type: Reference
    short: Targets the MedComMessagingMessageHeader from the current message.
    mustSupport: true
    refers: ['http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-messageHeader']
    index: 1
  occurred:
    choices: []
    index: 3
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: 1
      slices:
        occurredDateTime:
          match: {}
          schema:
            short: A human readable date and time for when the message is sent. Shall include a date, a time and timezone.
            mustSupport: true
            choices: [occurredDateTime]
            _required: true
            index: 5
          min: 1
          max: 1
  occurredDateTime:
    short: A human readable date and time for when the message is sent. Shall include a date, a time and timezone.
    type: dateTime
    mustSupport: true
    choiceOf: occurred
    index: 6
    slicing:
      slices:
        occurredDateTime:
          match: {}
          schema: {short: 'A human readable date and time for when the message is sent. Shall include a date, a time and timezone.', type: dateTime, mustSupport: true, _required: true, choiceOf: occurred, index: 6}
          min: 1
          max: 1
  recorded: {short: A system readable date and time for when the message is sent., mustSupport: true, index: 7}
  activity:
    binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-messaging-activityCodes'}
    mustSupport: true
    index: 8
    elements:
      coding:
        mustSupport: true
        index: 9
        elements:
          code: {mustSupport: true, index: 10}
        required: [code]
    required: [coding]
  agent:
    short: The actors involved in the activity taking place
    mustSupport: true
    index: 11
    elements:
      who:
        type: Reference
        short: A reference to the actor of the activity, which shall be a MedComMessagingOrganization. If more actors has been involved, the element must be sliced.
        mustSupport: true
        refers: ['http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-organization']
        index: 12
  entity:
    mustSupport: true
    index: 13
    elements:
      role: {short: 'When a message is a response, a correction or a forwarding message the role shall be ''revision'' and when the message is a cancellation the role shall be ''removal''.', mustSupport: true, index: 14}
      what:
        short: A reference to the previous message. If the previous message is a FHIR message, the reference element must be used and if the previous message is an EDIFACT or OIOXML, the identifier element must be used.
        mustSupport: true
        index: 15
        elements:
          reference: {short: 'If the previous message is a FHIR message, this element must hold the MessageHeader.id from previous message.', mustSupport: true, index: 16}
          identifier: {short: 'If previous message is EDIFACT or OIOXML, this element must be expressed as [lokationsnummer]#[brevid] from the EDIFACT or OIOXML message.', mustSupport: true, index: 17}
package_version: 3.0.0
class: profile
kind: resource
url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-provenance
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: 3.0.0
required: [activity, occurred, occurredDateTime]