Get medical information (getMedication)
Prescriptions and medication list is read from national systems Kjernejournal (KJ) and Reseptformidleren (RF)
Based on input parameters in $getMedication, patient information and user rights, SFM Basis API look up in RF and/or KJ.
- EHR (EPJ) request information from national systems for a particular patient
- SFM retreives PLL from RF
- RF returns message with PLL
- SFM retreives prescriptions from RF
- RF returns the patients prescriptions
- SFM performs a lookup for the patients medication in KJ
- KJ returns medication info
- SFM processes and compiles info from both RF and KJ
- SFM converts information to FHIR format
- SFM returns a Bundle containing the processed information to EHR (also containg any info on anomalies)
- On error, SFM will return an error message.
Compilation of information (Step 8)
- Compile M25 messages
- Compile prescriptions (M1) and
deliveriesdispence reports (M6) - Compile the two list from 1 and 2, then clean up inconsistency
From this a list of medication statements are created, and connected prescriptions (renewals) are chained. MedicationStatements are either head of chain or part previous statements identified as tail and connected to a head of chain. Other prescriptions that are not medications are represented as BandaPrescriptions. Prescriptions not representing the "head" will have these properties:
status=completed
part-of=<reference to another presecription in the bundle>
- The prescriptions representing the head will NOT have a
part-of
reference.
If the patient has M25 (PLL), then PLL item identifier is identified for the head of chain.