SFM Basis API Implementation Guide

Create SFM database

Before an organization can use SFM Basis API, a database, organization and users must be created.

This functionality is to be implemented in the EHR system using the SFM Basis API.

Prerequisites

  • The SFM Datadeling API requires that an admin user in EHR is logged-in with HelseID.

Create Organization

  • Register sfm-Organization with active = false.
  • The user identified in the token is created as an admin user (sfm-Person) in SFM and is used to write other users (health personnel) to SFM.

Write user

  • sfm-Practitioner (users who should have rights as healthcare professionals)
  • sfm-Person (users who should have administrative rights).

Activate the organization in SFM

  • Write sfm_Organization with active = true.

When the organization is activated, a verify message is sendt to Reseptformidleren (the prescription broker), and Reseptformidleren is set up to communicate asynchronous messages to SFM and not to the specified edi address in the Address Register (AR).