-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from medplum/rahul-hl7-bots
HL7 Lab Integration
- Loading branch information
Showing
7 changed files
with
3,486 additions
and
2,060 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Medplum HL7 Lab Integration Bots | ||
|
||
The bots in this directory demonstrate an example HL7v2 lab integration integration. These bots send and receive HL7 files through an SFTP server and can be automatically triggered by Medplum subscriptions. | ||
|
||
For our purposes, we'll be focusing on two specific types of messages, the ORM and the ORU. | ||
|
||
- **ORM (Order Message)**: These messages are used by healthcare providers to place an order for a lab test or procedure. | ||
|
||
- **ORU (Observation Result Message)**: These messages are used to transmit the results of a lab test or procedure from the performing lab back to the ordering provider. | ||
|
||
## Overview of Bots | ||
|
||
1. **send-orm-message.ts**: This bot demonstrates how to send an HL7 ORM message to a third-party lab using Medplum and SFTP. This can be triggered when a new `ServiceRequest` resource is created in Medplum. | ||
|
||
2. **read-oru-message.ts**: This bot demonstrates how to read results from an HL7 ORU message using Medplum and SFTP. This can be triggered to be [run on a timer](https://www.medplum.com/docs/bots/bot-cron-job) to poll for results periodically. |
Oops, something went wrong.