MPI for integrators premium

What registration and clinical systems need to know to work with the Master Patient Index: checking before creating a patient, and handling records that were merged. See the API specification for full details.

Check before creating a patient

POST /identity/match takes the same PERSON JSON used to create an actor, and answers whether it looks like someone already registered. No patient is created. Atomik records only an audit entry of the call, without the submitted data. The optional X-System-Id header identifies the calling system.

The response lists, for each identity definition of the template, the candidates with their score:

{
  "identityName": "default",
  "duplicateThreshold": 90.0,
  "candidates": [
    { "actorUid": "d290f1ee-...::CABOLABS_ATOMIK_SERVER::1",
      "score": 96.4,
      "potentialDuplicate": true }
  ]
}

Your system then uses the existing patient or creates a new one.

Merged patient records

After a merge, the secondary record is inactive. Calls that touch it are answered with the primary patient ID in the X-Person-Primary header.

Operation on a secondary patientStatusError codeHeaders
Read actor or versioned actor3013062X-Person-Primary, Location
Create, update or delete the actor, its roles or relationships4093061X-Person-Primary

Your system has to handle these answers: follow the redirect on reads, and on writes switch to the primary patient ID and send the request again after checking it still applies.

Merged EHRs

Operation on a secondary EHRStatusHeaders
Read200, with the dataX-EHR-Canonical
Write301, error code 3060X-EHR-Canonical, Location

Reads and queries on the primary EHR include the merged information. A remote system can also request an EHR merge with POST /ehr/{ehr_id}/merge-request and get the merge history with GET /ehr/{ehr_id}/merge-lineage.

Merge notifications

Out of the box, a system learns that an identity changed when it next uses it, through the answers above. Atomik does not currently push notifications. Active notification of merges, through a hook or an integration, can be built for your organization: the mechanism is agreed according to what your systems can receive. Get in contact to discuss it.

Let us hear from you!

We love to hear from you, let us know how we can be of help.

WhatsApp Start a chat!