Archived 2026-11-20. This is the Simplifier Flow text from before the portal indexes. Current documentation is on NHN Utviklerportal.
Flow description
Read information from national systems (KJ and RF):

- EHR 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.
Submit information to national systems (KJ and RF):

- EHR sends compiled list of Medication as a Bundle with specified format
- SFM analyses content and creates PLL and prescription in national format
- SFM does QA as specified
- OperationOutcome is returned to EHR
- SFM add signing to the new PLL and prescription
- SFM sends one or more M1/prescriptions to RF (in turn also forwarded to KJ)
- SFM sends one or more M5/withdrawals to RF (in turn also forwardet to KJ
- SFM sendt PLL (M25) to RF
- SFM returns response to EHR
Task: Poll for changes on Multidose patients

- EHR reques for list of tasks on changed MD patients based on HPR id
- SFM requests RF for MULTIDOSE patients with changes
- RF returns list of patients with changes
- SFM creates Tasks based on information in previous steps
- SFM returns Task list to EHR
Task: Poll for change in patients in KJ (PLO function)

- EHR requests for changes in given patient list and "changed since" timestamp
- SFM requests KJ for changed patients
- KJ respond with list of changed patients
- SFM creates Tasks based on information in previous steps
- SFM returns Task list to EHR
Register role to patient to national systems
Multidose responsibility

- EHR submits to SFM info about registration or deregistration of multidose responsibility for healtcare professional and individual patient
- SFM submits M27.1 in national format to RF
- RF confirms to SFM with M27.2
- SFM confirms transaction to EPJ
GP subscription to Dispense notifications
- EHR submits to SFM info about registration or deregistration of GP subscription for General Practitoner and individual patient
- SFM submits M24.1 in national format to RF
- RF confirms to SFM with M24.2
- SFM confirms transaction to EPJ
Similar command: deRegisterResponsibility used for de-registration.
Update Organization and user (persons with rights)
Update Organzation

- EPJ creates a new or update current organization
- SFM Basis confirms transaction to EPJ
If new organization is created, then the organization is part of a ยง9 collaboration. SFM-id from Helse-id should be provided as part of idenfiers for new organization. A use with dedicated rights may create new organizations within an existing DB. Current version of SFM only support manual creation of DB contaiing initial organization.
Update Person

- EPJ creates a new or update current person
- SFM Basis confirms transaction to EPJ
Person will be created without any rights in SFM. SFM Organization portal must be accessed in order to identify rights. Any person created through the API are made users of SFM.
Update Practitioner

- EPJ creates a new or update current practitioner
- Getting priveliges from HPR
- HPR returns Practitioenr with privileges
- SFM Basis confirms transaction to EPJ
Practitioner will be created with rights based on HPR. Any practitioner created through the API are made users of SFM.
Task: SFM message forwarding as Tasks to EHR

- Messages received by SFM from RF
- SFM convert messages to tasks
- SFM forwards taskt to EHR system endpoint