---
title: "Electronic Patient Record (EPR) Partners"
canonical: "https://wiki.patientsknowbest.com/space/api/4085284889/Electronic%20Patient%20Record%20(EPR)%20Partners"
format: markdown
---
> Macro (toc)

# Why

Organisations need an EPR copy of data about the patient so they can manage care efficiently and safely.

Patients need a PHR copy of data about the patient so they can manage health safely and efficiently.

PKB’s APIs allow synchronisation between the PKB PHR and the organisational EPR. 

# What

Releasing data from an EPR to a PHR allows a patient to know what has been done and what they need to do next. Releasing data from a PHR to an EPR allows the patient to do things for their clinical teams and for clinicians to know when they need to help.

# How

## Releasing Data From EPR to PHR

### HL7

Using a <u>[partner connection](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3365012161)</u> and an alias for a customer Alcidion will be sending data on behalf of, data will be sent to PKB using the appropriate <u>[PKB HL7 APIs](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3365012127)</u>.  Here are links to information about <u>[endpoints](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3363995659)</u> and <u>[network connectivity information](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3364585480)</u>. PKB will provide the credentials required and set up a test organisation in Sandbox to be used for the proof of concept phase.  All of our HL7 messages have <u>[MSH](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3365012972)</u> and <u>[PID](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3364849216)</u> segments.  Details of the types of messages, with links to the dev wiki, that will be used for phase 1 along with credentials are below:

- <u>[ADT^A28](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3365078168)</u> - used to create a new PKB record or to update a patient’s demographics.
- <u>[SIU^S12](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3364947182)</u> - used to create appointments that appear in the diary section of the record. The information in the table on <u>[this page](https://pkbdev.atlassian.net/wiki/spaces/DEPLOY/pages/3543597064/Appointment+Integration#Sending-a-new-appointment)</u> will help you to map your appointment fields to the appropriate fields in the HL7 message. There are other message types for updating, cancelling, and setting a DNA for an appointment, but we can include those for phase 2.
- <u>[MDM^T02](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3364848787)</u> - used to send in documents that appear in the Events & Messages section of the UI.  We have <u>[specific values](https://pkbdev.atlassian.net/wiki/spaces/api/pages/3365012136/Code+sets#PKBCS05)</u> for the types of documents that can be sent in. These values set the name of the document and determine the icon displayed next to the name  in the UI. A few that would work well for this demo would be Appointment letter (AL), Clinic letter (CL), or Discharge summary (DS).  Which document type will you send?
- <u>[ORU^R01](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/3364848908)</u> - used to send in test results that appear in the Health / Tests section of the UI.  Which test results will you send?

## Collecting Data From PHR For EPR

### FHIR questionnaire resource