Skip to content

Transactions

The eMedication service exposes its own endpoints.

Implemented transactions are XDS ITI-18, ITI-41, ITI-43, ITI-57 and CH:PHARM-1. MHD equivalents are given here for information but are not supported yet by the eMedication service.

For details about documents (content and metadata), see the Documents page.

Generic rules about transactions

Tip

MHD-equivalent transactions will be implemented in the future.

XDS vs. MHD

IHE provides different profiles, among which XDS and MHD make it possible to exchange documents:

XDS is the profile prescribed by the Swiss EPR ordinance, but MHD is simpler to implement, as it doesn’t require the complex XDS stack (SOAP, WSSE, MIME-Multipart, MTOM/XOP, ebRIM, and multi-depth XML), and relies on a lighter REST interface.

Even though the eMedication service doesn’t support it yet, it is possible to use the MHD profile though a third party component named mobile access gateway. This component is not affiliated with this service, but referenced here for information purpose.

Generic error codes

XDS error code Details
XDSRegistryError In case of business rule error, missing/invalid XUA (authentication errors), unexpected exception.
XDSUnknownPatientId If the patient ID is unknown (i.e. the patient has not registered), if the subjects is missing rights to preform the action (authorization errors).

Other transactions

In addition to the XDS transactions implemented by the service, implementers may find it useful to check out the following profiles and transactions:

The EPD-by-example github project provides guidance and examples about these transactions and others, especially:


This page was updated 2023-12-01