Record Linking
This guide explains how Orchestrate Server handles patient record linking.
Patient Records, Record Groups, and the MPI
A patient record is Orchestrate Server’s basic storage unit for patient data. All FHIR patient compartment resources (AllergyIntolerance, Condition, Encounter, ExplanationOfBenefit, etc.) are associated with an Orchestrate patient record. Each patient record has a unique Record ID.
Note
Although patient records share similar characteristics with and serve a similar function to FHIR Patient resources, they are not the same thing.
The diagram below shows a few patient records and their associated resources:
When a Master Patient Index (MPI) such as Orchestrate Identity identifies which person a record is associated with, that record is assigned a Resource ID. All patient records that belong to the same person share the same Resource ID, and together they form a record group. Even if a person has only a single record (like Helen in the example below), they would still have a record grouup of one.
Any subsequent MPI change, like splitting or joining records as demographics change, can update the Resource ID associated with the patient records, effectively moving them in/out of record groups.
Managing Record Groups
There are two options for managing record groups, depending on whether your environment utilizes a Master Patient Index (whether that is Orchestrate Identity or your own):
- If your environment has an MPI, you are responsible for updating the Resource ID in response to MPI updates. You can update the Person resource on an endpoint configured for records management. See Separate Records Endpoints for details.
- If your environment has no MPI, you can configure Orchestrate to automatically create a record group for each record. The record groups are not meaningful for analysis (since each group has only a single record), but ensure there are no orphaned records.
Note
A record without a record group is effectively orphaned, inaccessible through searches and indices until it is assigned a resource ID.
Contact Orchestrate Support for more information on setting up your server with one of these options.
Endpoint Types
Orchestrate Server has two different types of endpoints:
- Separate - Each Patient resource represents a single patient record, reflecting the data the way it is stored.
- Merged - Each Patient resource represents a record group, providing an easy way to get a complete person view.
Merged endpoints are typically used for external clients, since patient applications, payers, and providers often want complete person data. Separate endpoints are used for fine-grained record management.
Tip
Merged endpoints are always read-only. Separate endpoints can be read-only or read/write depending on the endpoint configuration.
Separate Records Endpoints
In an endpoint configured with “separate” patient record handling:
- Each Patient resource represents a patient record, mirroring the way they’re stored.
- The
Patient.id property is the Record ID.
- The operations can be read/write (depending on specific user/token permissions).
- The default separate record endpoint name is
r4records, but this is configurable.
For example, given the following patient data:
A separate records endpoint would return five Patient resources:
- P123 (John)
- P345 (Helen)
- P567 (Jonathan)
- P678 (Helen F)
- P890 (HF)
Patient compartment resources will reference the Record ID. For example, an encounter associated with John’s P123 record would use Patient/P123 as the subject.
Person Resource
On separate records endpoints, the Person resource allows you to view and manipulate the record groups. The Person.id field reflects the MPI-assigned Resource ID for the record group. For example, John’s record group would be:
{
"resourceType": "Person",
"id": "R01",
"link": [
{
"target": {
"reference": "Patient/P123"
}
},
{
"target": {
"reference": "Patient/P567"
}
}
]
}
{
"resourceType": "Person",
"id": "R01",
"link": [
{
"target": {
"reference": "Patient/P123"
}
},
{
"target": {
"reference": "Patient/P567"
}
}
]
}
Merged Endpoints
In an endpoint configured with “merged” patient record handling:
- Each Patient resource represents a record group, i.e., a person.
- The
Patient.id property is the MPI-assigned Resource ID.
- The operations are read-only.
- Patient compartment resources will reference the Resource ID (e.g., in an Encounter subject).
- The default merged record endpoint name is
r4, but this is configurable.
For example, given the following patient data:
A merged records endpoint would return two Patient resources:
- R01 (John’s record group, representing patient records P123 and P567)
- R02 (Helen’s record group, representing patient records P345, P678, and P890)
The merged Patient record will combine the demographics from each associated record. For example, if John’s P123 record has one phone number and his P567 record has a different one, the merged record will contain both. Each record has an order determined by the MPI, which can be used for context.
Patient compartment resources will reference the Resource ID. For example, an encounter associated with John’s P123 record would use Patient/R01 as the subject.