This document describes mapping between the OIOXML XCTRL01 (Danish: Kvittering) (XCT01) and the MedCom Acknowledgement message. Not all elements from OIOXML XCTRL01 are relevant in MedCom Acknowledgement message, which is marked with a ‘NA’. The purpose of this document is to help implementers of MedCom Acknowledgement message. The actual implementation guide which includes all requirements for the MedCom Acknowledgement can be found here
Please notice, that the expressions in ‘Actual FHIR path’ are made using the windows app called FHIRPath tester. In other applications, are the apostrophe ( ‘…’ ) might not used.
Data | OIOXML | Pseudo FHIR path | Must Support | Comment |
---|---|---|---|---|
Actual FHIR path | ||||
Date for message sent | Emessage.Envelope.Sent.Dato | MedComAcknowledgementMessage.timestamp | Yes | A FHIR Timestamp contain both date and time, and contain information about when a bundle is created. |
Bundle.timestamp | ||||
Time for message sent | Emessage.Envelope.Sent.Time | MedComAcknowledgementMessage.timestamp | Yes | |
Bundle.timestamp | ||||
Message envelope id | Emessage.Envelope.Identifier | MedComAcknowledgementMessage.id | Yes | A uniqe identifier for a bundle. The MedComAcknowledgementMessage.id must be updated with a new value, each time a new message is sent, or a message is resent. |
Bundle.id | ||||
Acknowledgement Code | Emessage.Envelope. AcknowledgementCode | MedComAcknowledgementMessage.MedComAcknowledgementMessageHeader.response.code And MedComAcknowledgementMEssage.MedComAcknowledgementMessageHeader.response.details.MedComAcknowledgementOperationOutcome.issue | Yes | The main response code is included in the MedComAcknowledgementMessageHeader. When the response code is other than OK, it may be elaborated in the MedComAcknowledgementOperationOutcome profile. |
Bundle.entry.resource.ofType('MessageHeader').response.code And Bundle.entry.resource.of.type('OperationOutcome').issue | ||||
Message letter id | Emessage.PositiveReceipt.Letter.Identifier | MedComAcknowledgementMessage.MedComAcknowledgementMessageHeader.id | Yes | |
Bundle.entry.resource.ofType('MessageHeader').id | ||||
Version code | Emessage.PositiveReceipt.Letter.VersionCode | NA | |
The version of a FHIR message can be found in the respective Implementation Guide but is not included when exchanging a message |
Statistical code | Emessage.PositiveReceipt.Letter.StatisticalCode | NA | Yes | Only VANSEnvlope contains a statistical code. |
EAN id for sender | Emessage.PositivReceipt.Sender.EANIdentifier | MedComAcknowledgementMessage.MedComAcknowledgementMessageHeader.sender.MedComMessagingOrganization.identifier.eanIdentifier | Yes | The EAN identifier for a sending organisation |
Bundle.entry.where(fullUrl=%resource.entry.resource[0].sender.reference).resource.identifier.where(system='https://www.gs1.org/gln').value | ||||
EAN id for receiver | Emessage.PositivReceipt.Receiver.EANIdentifier | MedComAcknowledgementMessage.MedComAcknowledgementMessageHeader.destination.primary.receiver.MedComMessagingOrganization.identifier.eanIdentifier | Yes | The EAN identifier for a receiving organisation. |
Bundle.entry.where(fullUrl=%resource.entry.resource[0].destination.receiver.reference).resource.identifier.where(system='https://www.gs1.org/gln').value | ||||
Orginal Message id | Emessage.PositivReceipt.OriginalEmessage.OriginalLetter | MedComAcknowledgementMessage.MedComMessagingProvenance.entity.what.reference | Yes | |
Bundle.entry.resource.ofType('Provenance').entity.what.reference | ||||
Orginal sender Id | Emessage.PositivReceipt.OriginalEmessage.OriginalSender | MedComAcknowledgementMessage.MedComAcknowledgementMessageHeader.destination.primary.reciver.MedComMessagingOrganization.identifier | Yes | The Id of the original receiver i the same id as for the receiver of the Acknowledgement |
Bundle.entry.where(fullUrl = %resource.entry.resource[0].destination.receiver.reference).resource.identifier.where(system = 'https://www.gs1.org/gln').value | ||||
Orginal reciver Id | Emessage.PositivReceipt.OriginalEmessage.OriginalReceiver | MedComAcknowledgementMessage.MedComAcknowledgementMessageHeader.sender.MedComMessagingOrganization.identifier | Yes | The Id of the original receiver i the same id as for the sender of the Acknowledgement |
Bundle.entry.where(fullUrl = %resource.entry.resource[0].sender.reference).resource.identifier.where(system = 'https://www.gs1.org/gln').value |