Promote ADT to FHIR from staging to production
Move a tested ADT to FHIR workflow, with the topic it publishes to, from the staging workspace to production. Check the diff, map production's own connection, deploy with approval, and roll back in one click.
On this page
Your ADT to FHIR workflow passes its test cases in the staging workspace. It publishes each admission to the adt.admit topic and sends a FHIR bundle to Demo Health's API. This recipe moves it to production without copying staging's connection, and with a way back.
Source and destination
sequenceDiagram
participant Staging as Staging workspace
participant Engine as MedHook engine
participant Prod as Production workspace
Staging->>Engine: Promote ADT to FHIR
Engine-->>Staging: Diff, topic adt.admit, connection mapping
Engine->>Prod: Topic and workflow (draft)
Prod->>Prod: Deploy: test cases, approvalBefore you start
- Two workspaces, for example Staging and Production. An admin creates them under Settings.
- In Staging: the ADT to FHIR workflow, deployed, and the
adt.admittopic. - In Production: a connection for Demo Health's production API (for example
Demo Health FHIR (production)), with production's host and credentials. - At least one saved test case on the workflow, and a second admin to approve.
Steps
1. Open Promote
Open the workflow in Staging, choose its Versions tab, open ··· (More version actions) and choose Promote to another workspace. Pick Production under Promote to.
2. Read the diff
The first time, the dialog says New in Production: there is no copy there yet. and every line is new. Later promotions compare with the version Production runs, so you see only what changes.
3. Check what goes with it
Goes with it lists the adt.admit topic. Created there means Production does not have it yet; Already there means it has the same settings. If it says Differs there: kept as is, Production's topic has other settings, and other workflows may rely on them: change it on the Topics page if needed.
4. Map the connection
Under Connections, pick Demo Health FHIR (production) for staging's Demo Health FHIR (staging). Staging's host and credentials never leave staging. Next time, the mapping is Remembered from the last promotion.
5. Promote
Choose Promote to Production. The dialog says Promoted. v1 is a draft in Production. Nothing runs in Production yet.
6. Deploy in Production
Choose Open Versions there. Run a test with a sample message (for example a TESTPATIENT admission), request approval, and have the second admin approve. Deploy v1 to all messages runs the workflow's saved test cases, then deploys.
7. Roll back if needed
On the Versions tab, ··· › Environments shows Production's deployments. If a later version misbehaves, choose Roll back to v1: the previous deployed version is restored and deployed again, and the rollback is recorded in the audit log.
🎉 ADT to FHIR now runs in Production with production's own connection, and every later change follows the same path: promote, read the diff, deploy with approval.