Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul1 committed May 19, 2023
1 parent e232e87 commit 34adfb7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/examples/lab-integration/README.md
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.

0 comments on commit 34adfb7

Please sign in to comment.