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 occurredDateTime: {type: dateTime, short: 'A human readable date and time for when the message is sent. Shall include a date, a time and timezone.', mustSupport: true, index: 4} recorded: {short: A system readable date and time for when the message is sent., mustSupport: true, index: 5} activity: binding: {strength: required, valueSet: 'http://medcomfhir.dk/ig/terminology/ValueSet/medcom-messaging-activityCodes'} mustSupport: true index: 6 elements: coding: mustSupport: true index: 7 elements: code: {mustSupport: true, index: 8} required: [code] required: [coding] agent: short: The actors involved in the activity taking place mustSupport: true index: 9 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: 10 entity: mustSupport: true index: 11 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: 12} 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: 13 elements: reference: {short: 'If the previous message is a FHIR message, this element must hold the MessageHeader.id from previous message.', mustSupport: true, index: 14} 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: 15} package_version: 2.0.0 class: profile kind: resource url: http://medcomfhir.dk/ig/messaging/StructureDefinition/medcom-messaging-provenance base: http://hl7.org/fhir/StructureDefinition/Provenance version: 2.0.0 required: [activity, occurred, occurredDateTime]