Skip to content
Recipes

One SIU component for every clinic

Turn "SIU to appointment row" into a component, drop it into each clinic's workflow at a pinned release, and roll a change out one clinic at a time.

On this page

Each clinic sends its scheduling messages (SIU^S12) to its own workflow, and every one of them turns the message into the same appointment row. This recipe keeps that conversion in one component, so a fix is made once and each clinic takes it when you choose.

Source and destination

flowchart LR
    A[Clinic A, SIU over MLLP] --> C[Component: SIU to appointment row]
    B[Clinic B, SIU over MLLP] --> D[Component: SIU to appointment row]
    C --> E[Appointments API]
    D --> E
  • Source: HL7v2 SIU^S12 over MLLP, one workflow per clinic.
  • Destination: a REST API that takes one appointment row.

Build it

1. The component

Build the steps once in clinic A's workflow, then Save as component on the source transformer.

PartSetting
StepsA data map from SCH.1, SCH.11.4, PID.3.1 and PID.5 to appointmentId, start, mrn, patientName
What it needsNothing: it reads the HL7 message as it arrives
What it gives backappointmentId (text, required), start (text), mrn (text, required), patientName (text)
TestA synthetic SIU^S12 for TESTPATIENT, saved from Add a test

It is released as 1.0.0.

2. Each clinic's workflow

PartSetting
TriggerMLLP, message type SIU, ordered by sender
Source transformer+ Use a component: SIU to appointment row, release 1.0.0
DestinationThe appointments API, sending the row

3. Try it

Send a synthetic SIU^S12 for TESTPATIENT to each clinic. Each run's Steps tab shows the component's steps under its name, and the destination receives only the four declared fields.

Roll out a change

  1. Fix the mapping on the component's page (Edit steps). The clinics keep running 1.0.0.
  2. Publish release… 1.1.0: the component's tests run first.
  3. Used by shows both clinics on 1.0.0, with Update available. Tick clinic A in Impact of 1.1.0, Run tests, Update selected, deploy its draft, watch it, then do clinic B. To test and move every clinic at once, see Roll a shared mapping change out safely.

Reference