ERA FHIR specification
1.0.0 - draft

ERA FHIR specification - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

OperationDefinition: MedicationListFI Get Discontinued Medications

Official URL: https://eradocumentation.atostek.com/OperationDefinition/MedicationListFi-get-discontinued-medications Version: 1.0.0
Draft as of 2026-10-28 Computable Name: MedicationListFi-Get-Discontinued-Medications

The operation makes a request to the Kanta Prescription Centre and retrieves a list of discontinued medications and completed discontinuation notes. In addition, the latest dispense records and prescriptions that have been cancelled for a therapeutic reason are returned.

The operation requires an active ERA session and the client registry ID. Please provide these in the request header.

The search result is stored in the client's registry in ERA's database and returned to the client. If the search is performed successfully but returns no results, an empty Bundle is returned. The search results can be limited if the patient has restricted the sharing of their personal health information.

URL: [base]/$MedicationListFi-get-discontinued-medications

Parameters

UseNameScopeCardinalityTypeBindingDocumentation
INrequestPurpose1..1Coding

Purpose of requesting medication information. Expressed using a code from the Kanta code system 'urn:oid:1.2.246.537.5.40110.2006' (Sähköinen lääkemääräys - Reseptikyselyn syy). Provide both the system and the code.

INconsentType1..1Coding

Type of consent received from the patient or his/her trustee. Expressed using a code from the Kanta code system 'urn:oid:1.2.246.537.5.40119.2006' (Sähköinen lääkemääräys - Suostumustyypit). Provide both the system and the code.

INserviceEventId0..1Identifier

Identifier of a service event, if request is done from a open service event.

INpatientIdentifier1..1Identifier

Identifier of the patient. Provide both the system 'urn:oid:1.2.246.21' and the identifier.

INdiscontinuedAfter0..1date

Limit the search results to include only medications discontinued on this date and after it.

INcategory0..*Coding

Category of the prescription. The parameter is required for pharmacies and hospital pharmacies and optional for patient information systems. The category is expressed using a code from the Kanta code system 'urn:oid:1.2.246.537.6.605.2014' (THL - Reseptin laji 2014). Provide both the system and the code.

OUTreturn1..1Bundle

Kanta medication list