description: Provenance information about the messages preceeding the current message package_name: medcom.fhir.dk.messaging derivation: constraint name: MedComMessagingProvenance type: Provenance elements: occurred: mustSupport: true choices: [] index: 6 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: 8 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: 9 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: 9} min: 1 max: 1 recorded: {short: A system readable date and time for when the message is sent., mustSupport: true, index: 10} agent: short: The actors involved in the activity taking place mustSupport: true index: 15 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: 16 activity: binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-messaging-activityCodes'} mustSupport: true index: 11 elements: coding: mustSupport: true index: 12 elements: system: {mustSupport: true, index: 13} code: {mustSupport: true, index: 14} required: [system, code] required: [coding] id: {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: 4 entity: mustSupport: true index: 17 elements: role: {mustSupport: true, index: 18} 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: 19 elements: reference: {short: 'If the previous message is a FHIR message, this element must hold the MessageHeader.id from previous message, formatted as MessageHeader/[id].', mustSupport: true, index: 20} 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: 21} text: short: The narrative text SHALL always be included when exchanging a MedCom FHIR Bundle. mustSupport: true index: 1 elements: status: {mustSupport: true, index: 2} div: {mustSupport: true, index: 3} package_version: 4.0.1 class: profile kind: resource url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-provenance base: http://hl7.org/fhir/StructureDefinition/Provenance version: 4.0.1 required: [activity, occurred, occurredDateTime]