Workflow catalog
The built-in templates and the common healthcare integration recipes, with what works on this release and what is in progress or planned.
On this page
This page lists every workflow you can start from, and the common healthcare integrations MedHook is building toward. Each card says whether it works on this release. An In progress or Planned card links a page that describes what's coming. It is not a set of working instructions.
A built-in template is a workflow you create with Workflows → Templates in the engine. The gallery filters templates by shape (Receive and forward, Request and respond, Poll and push, Keep in sync, Batch file) and by category, and each card says what it needs set up first. See The Templates gallery. A recipe is a common integration, such as ADT to FHIR or 837 claims intake. A recipe that is available names the template or guide that builds it end to end.
Some recipes show how to build a piece once and reuse it: a patient lookup other workflows call, steps saved as a component, one admission published to a topic, one workflow for many senders, a test of a few steps, and a promotion to production. Build it once, reuse it everywhere says which one fits and links each of them.
Ready to use
HL7v2
Keep one FHIR server's Patient and Encounter current through the visit: A01, A04, A02 (transfer), A03 (discharge) and A08, as conditional updates.
adt-to-fhir-patient-encounter
Match admit, discharge and transfer events against a subscriber roster kept as a multi-column code table, and notify the care team that follows the patient.
adt-encounter-notifications
- ADT router with archive
Route by event type to different systems and archive every message as it arrived. Use it when ADT admits and updates go to different systems.
adt-router-with-archive
Receive FHIR Bulk NDJSON on a webhook and send each Patient, Encounter and Appointment as HL7v2 over MLLP.
fhir-bulk-webhook-to-hl7v2-mllp
Insert one BigQuery row per ADT admit, transfer, discharge, registration, update or cancel: patient, visit, location and admit and discharge times.
hl7v2-adt-to-bigquery
Insert one BigQuery row per lab result (OBX) in an ORU^R01, with its order, value, units, reference range and flag.
hl7v2-oru-to-bigquery
Convert ADT, SIU and ORU messages to FHIR R4 and POST each as one transaction Bundle. Use it when one feed carries several message types.
hl7v2-mllp-to-fhir-r4
Listen on the MLLP port and POST every HL7v2 message as JSON to your URL.
hl7v2-mllp-to-json-webhook
Insert one BigQuery row per SIU^S12-S15 appointment message, with the FHIR R4 Appointment in a JSON column.
hl7v2-siu-to-bigquery
Make the appointments feed a template made of components, then each new customer's feed is one form; a component fix reaches every feed as Update available, tested first.
new-customer-feed-in-one-form
Publish each ADT admission once to a topic and fan it out to a FHIR store, a warehouse and notifications, each retried and dead-lettered on its own.
adt-admit-fan-out
Keep the post in one component, send each sender's messages through its own connection, and promote the workflow with its component from dev to staging.
one-component-every-customer
Keep the SIU to appointment row conversion in one component, pinned by each clinic's workflow, and roll a fix out one clinic at a time.
siu-appointment-component
- ORM radiology to PACS
Orders forwarded to PACS over MLLP with ACK tracking.
orm-radiology-to-pacs
Turn ORU^R01 lab results into FHIR R4 Observations linked to the ServiceRequest they answer.
oru-results-to-fhir-observation
Render each ORU^R01 result as a password-protected PDF report and email it to a clinic mailbox, as a Mirth Document Writer and SMTP Sender channel does.
oru-results-to-pdf-email
- ORU results to Epic
Lab results as a FHIR DiagnosticReport with an Observation per OBX, as conditional updates, so resends and corrections never duplicate.
oru-results-to-epic
Change a shared component once, see the workflows it touches, run their tests against the new release and update the ones that pass; failures are held back with the reason.
roll-out-a-shared-mapping-change
- SIU appointments to REST
Book, reschedule and cancel events as JSON for a scheduling API.
siu-appointments-to-rest
Turn SIU^S12 bookings into FHIR R4 Appointments with their patient, participants and location.
siu-scheduling-to-fhir-appointment
- Webhook JSON to HL7 over MLLP
Accept signed JSON and send HL7v2 to a legacy system.
webhook-json-to-hl7-mllp
FHIR
- Conditional Patient Processing
Read a patient from a FHIR server and send it to one of two APIs by its age, worked out from birthDate.
conditional-patient-processing
- FHIR Bulk Data Export
Export all patients from a FHIR server with the Bulk Data Access specification.
fhir-bulk-export
- FHIR Patient Sync
Read every patient from a FHIR server, page by page, and POST a short list (id, name, birth date) to an API.
fhir-patient-sync
- FHIR subscription to BigQuery
Stream Encounter creates and updates on the engine's bundled Medplum into BigQuery. Other FHIR servers are not supported yet.
fhir-subscription-to-bigquery
- Keep appointments in sync
Each change in the scheduling system updates the matching Appointment in Epic, one way, keyed on the scheduling system's id.
appointments-sync
- Scheduled FHIR Sync
Every 6 hours, copy recently updated patients from a source FHIR server to a different destination FHIR server.
scheduled-fhir-sync
- Webhook to FHIR
Receive webhook data and create FHIR resources.
webhook-to-fhir
EHR
- Epic Patient Sync to Medplum
Read patients from Epic FHIR and write them to Medplum.
epic-patient-sync-to-medplum
- Oracle Clinical Data Extract
Read a patient summary from Oracle Health and write it to SFTP as a new JSON file each run.
oracle-clinical-data-extract
X12
- 270/271 eligibility over SFTP
Pick up 270 files, ask the payer about every subscriber, and write each 271 back under its own name.
x12-270-271-eligibility-sftp
- Real-time eligibility proxy
Your portal asks MedHook; MedHook asks the payer's JSON eligibility API and answers in under a second.
realtime-eligibility-proxy
Documents
- C-CDA → FHIR Patient Sync
Parse a C-CDA document and write the patient, conditions, medications and observations to Medplum.
ccda-to-fhir-patient-sync
Parse a C-CDA document and write the patient, problems, medications, allergies, procedures and results as FHIR R4.
ccda-to-fhir
Imaging
Take DICOM objects a modality sends by C-STORE, record each new study as a FHIR ImagingStudy, and optionally forward every object to a PACS.
imaging-study-to-fhir-imagingstudy
Files
Pick up a CSV roster from an SFTP folder and create a FHIR Patient per row, with a conditional create so a resent roster makes no duplicates.
csv-roster-to-fhir
Pick up HL7v2 result files from an SMB share (or FTP, WebDAV, S3 or a mounted folder), convert each to FHIR R4 and POST it as one transaction, with processed and error folders.
lab-results-from-windows-share
- Nightly CSV census
Query the census at 02:00 in the trigger's timezone and drop a dated CSV on the healthcare organization's SFTP.
nightly-csv-census
Pick up patient CSV files from an SFTP folder and create a FHIR Patient per row, once per MRN.
sftp-file-import-to-fhir
Migration
Stage 1 of a strangler migration: MedHook answers the ACK and forwards each HL7v2 message unchanged to the legacy engine.
legacy-engine-passthrough
Turn a Mirth Connect channel export into disabled draft workflows with a review report; export workflows back to Mirth for a rollback.
mirth-channel-import
Poll a results table on SQL Server, MySQL or Oracle by a cursor column, create a FHIR Observation per row, and mark each row processed afterwards, as a Mirth Database Reader did.
mirth-database-reader-to-fhir
Keep a Mirth transformer that looks a patient up in a database and routes the message to another channel: DatabaseConnectionFactory and router.routeMessage run in the sandbox.
mirth-javascript-lookup-and-route
Import a Mirth channel that reads a JMS queue or answers SOAP requests, complete the broker and sender credentials, and cut the senders over.
mirth-jms-web-service-listener
Read a Rhapsody configuration export and turn routes and communication points into disabled draft workflows, with a review report per route.
rhapsody-route-import
General
Run a parameterized GoogleSQL query that reads the newest appointments of the last 24 hours back from BigQuery.
bigquery-appointments-report
Poll a PostgreSQL results table with a cursor, write each row to FHIR as an Observation with a conditional create, and mark the row processed.
database-reader-to-fhir
Take records a device or legacy system sends over plain TCP with its own start and end bytes, and write each one to FHIR as an Observation.
raw-tcp-non-hl7-feed
Read a paginated REST API page by page and insert each record as a row in a BigQuery table.
paginated-rest-to-bigquery
On a schedule, read every page of a REST API and handle each record with one destination call.
scheduled-rest-sweep
In progress
Work has started. Part of the flow runs today, and the recipe page says which part.
HL7v2
- ORM and OML orders ↔ FHIR ServiceRequestIn progress
Orders to FHIR ServiceRequest and back. ORC/OBR conversion works today; a template, specimen mapping and the return direction are in progress.
orm-oml-orders
FHIR
- FHIR bulk export → data warehouseIn progress
Run FHIR bulk export on a schedule and load the NDJSON into BigQuery, Redshift or Synapse.
fhir-bulk-to-warehouse
X12
- X12 270/271 eligibilityIn progress
Send a 270 eligibility inquiry to a payer and return the 271 as JSON. X12 parse and generate work; real-time exchange is in progress.
x12-270-271-eligibility
- X12 837 claims intake → 835 remittanceIn progress
837 intake with 999 acknowledgments works today; 835 remittance to JSON and loop-aware claim mapping are in progress.
x12-837-claims-835-remittance
Planned
Scoped, not started. The recipe page lists the building blocks that exist today.
HL7v2
- DFT charges → billingPlanned
Route DFT^P03 charge lines to a billing system with charge-code translation, or as FHIR ChargeItem.
dft-charges
Turn MDM document notifications, with their text or PDF content, into FHIR DocumentReference.
mdm-documents
Feed a master patient index from ADT, apply merges, and stamp the enterprise identifier on messages.
patient-matching-mpi-feed
- VXU immunizations → registryPlanned
Submit immunizations to a public health immunization registry as VXU^V04 and surface the registry's errors.
vxu-immunizations-to-registry
X12
Answer each 837 claim with a 277CA accept or reject, and read received 277CA files into per-claim status.
x12-277ca-claim-acknowledgment
Recipes
Available:
- ADT encounter notifications
- ADT to FHIR Patient and Encounter
- ADT with a patient lookup workflow
- API to API
- C-CDA documents to FHIR
- CSV roster to FHIR
- Database Reader to FHIR
- Imaging study arrival to FHIR ImagingStudy
- Lab results from a Windows share
- Migrate a Mirth Database Reader on SQL Server, MySQL or Oracle
- Migrate a Mirth JMS or Web Service Listener channel
- New customer feed in one form
- One admission, three destinations
- One component, every customer's API
- One SIU component for every clinic
- ORU lab results to a PDF report and email
- ORU lab results to FHIR Observation
- Port a Mirth JavaScript transformer that looks up a database and routes to another channel
- Post each sender's messages to its own API
- Promote ADT to FHIR from staging to production
- Receive a non-HL7 feed over raw TCP
- Roll a shared mapping change out safely
- SIU scheduling to FHIR Appointment
- Test the mapping steps of an ADT feed
In progress:
- FHIR bulk export to a data warehouse
- ORM and OML orders
- X12 270/271 eligibility
- X12 837 claims intake to 835 remittance
Planned:
- DFT charges
- MDM documents
- Patient matching and MPI feed
- VXU immunizations to a registry
- X12 277CA claim acknowledgment