Skip to content

Transactions

The eMedication service exposes its own endpoints.

The transactions supported by these exposed endpoints can be classified as either belonging to the eMedication service content, that is, document-based (XDS or XDS-like transactions), or of a more infrastructure-like nature (e.g. PIX queries).

XDS and XDS-like transactions

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

Besides the document-based transactions, other transactions are supported as part of the eMedication service.

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 2024-11-05