🎙️ The InterSystems Programming Contest: Holiday Rush Supply Chain starts with a live Kick-off Webinar.
📅 December 7, 2026 — 12:00 pm EST | 6:00 pm CET
💬 Meet the author of the contest task and ask your questions directly!
How can InterSystems Supply Chain Orchestrator help developers tackle operational challenges during the busiest season of the year? Join us to take a closer look at the contest tasks and discover possible approaches to building your solution. We'll also cover the participation requirements and share important organizational updates.
In SCO Workbench, a business process turns a standard operating procedure (SOP) into a decision tree, answers each question with SQL against real data, and then applies the tree to every issue SCO raises. This video, part of the Supply Chain Orchestrator Workbench series, builds one for late manufacturing orders. The previous episode imported a spreadsheet of manufacturing orders and built a KPI that raised 131 issues, one per late order, but nothing yet said what to do about them. Issue analysis has now been added to the workbench.
What do you need first?
The latest SCO Workbench from GitHub or Open Exchange (links in the video description)
Business processes use the SCO AI Assistant to write SQL. The Community Edition already includes it, so you only add your Azure OpenAI credentials, which is a single call to the SCO API (shown in Postman, with setup docs linked)
How do you build the decision tree?
The new Business Processes page has four ready-made examples you can duplicate. The video builds one from scratch, starting with an SOP, the simplest form of decision intelligence SCO supports (scenario analysis and machine learning are other options).
The plant's SOP for a late order: did it start late? Then check the parts. If not, how late did it finish? Four hours or less, no action. More than eight hours, add workers. Anything in between, ask the supervisor.
Paste it into the Workbench Bot and it draws the tree:
Element
Meaning
Node
Each question
Branch
Each answer
If
A yes or no question
Switch
A question answered with a number
Otherwise
Catches everything else (here, 4 to 8 hours)
Recommendation
The end of each branch
How does each question get answered with real data?
Click Save, then Create. The plan shows both questions still need SQL, so click Resolve with the Workbench Bot. For each question the SCO AI Assistant writes a SQL query, and the bot tests it on a real order with you before moving on.
SQL summary: explains the query in plain words, so you don't have to read SQL (for example, it checks whether the order started after its planned start). The exact question sent to the assistant is shown too, so nothing is hidden
Run SQL preview: test any query yourself. Order MO-00006 started four hours late, so the answer should be yes, and it is. You see the answer, the branch it takes, and the rows behind it
Frozen queries: once a query is tested, it's frozen. No AI runs when SCO analyses an issue, so the same data always gives the same answer
Then click Deploy v1. SQL is only one way to get an answer. A business process can also pull data from other systems (such as an order's latest status from an ERP, or a file a supplier sends), follow business rules, convert data between formats, and pass work to the right person. Those are built by a developer in SCO, and an SOP is the easiest kind to start with.
How do you run it on an issue?
In Issue Management, open one of the 131 issues, for example order MO-00013, which is late and has no recommendation. In the analysis panel choose Late Manufacturing Order and click Run analysis. SCO picks the run up within about 30 seconds.
Result: the order didn't start late but finished 12 hours late, so the recommendation is a big delay: add extra workers for the next run. The Why section shows the tree with the path this run took. The decision path lists every step with the SQL it ran, the input, the value it got, and a snapshot of the data at that moment. Anyone can check later why the order got this recommendation, even if the data has changed since.
How do you change the SOP?
Say the plant now wants extra workers once an order is more than six hours late, not eight. Ask the bot to make the change, click Update to see exactly what will change before anything goes live, then Deploy v2. Every version is kept in the version picker.
How do you automate it?
Edit the Late Manufacturing Orders KPI, choose the business process as its Analysis Service, and deploy. From then on, each new issue the KPI raises is analysed as soon as it's raised, with no one clicking anything.
One caveat: the 131 earlier issues aren't analysed automatically, because SCO picks the process for an issue at the moment it creates it. You can still analyse any of them with Run analysis. When a planner acts on a recommendation, Close issue records that it was accepted.
A business process can also do more than record a decision. With SCO scenario analysis it can compare options using current data (adding workers, running overtime, or moving the order to another line), show the cost and time of each, and mark the recommended one. Once someone picks an option, the process can carry it out: email the supervisor, create a report of late orders for the morning meeting, or add workers to the next run if the shift plan is kept in SCO. When the action works, SCO closes the issue on its own. If something goes wrong, the issue is flagged for follow-up.
What is the whole flow?
Step
What SCO does in this series
Data
A ready-made data model of 33 linked objects, from manufacturing orders to inventory, suppliers, and shipments. The bot found the Manufacturing Order object that fit the spreadsheet, and the supervisor was added as a custom attribute (a custom object is possible if nothing fits)
Business logic
A cube turns raw orders into measurable numbers, such as average hours by supervisor, and marks each order late (finished after its planned end date) or on time. The KPI counts late orders and warns when there are too many
Identify the risk
The KPI raised an issue for each of the 131 late orders
Take action
The business process applies the SOP to each issue and gives a clear recommendation with the reason behind it
If your supply chain team has written-down SOPs, which one would you turn into a decision tree like this first, and what data would it need?
In SCO Workbench, a business process turns a standard operating procedure (SOP) into a decision tree, answers each question with SQL against real data, and then applies the tree to every issue SCO raises. This video, part of the Supply Chain Orchestrator Workbench series, builds one for late manufacturing orders. The previous episode imported a spreadsheet of manufacturing orders and built a KPI that raised 131 issues, one per late order, but nothing yet said what to do about them. Issue analysis has now been added to the workbench.
What do you need first?
The latest SCO Workbench from GitHub or Open Exchange (links in the video description)
Business processes use the SCO AI Assistant to write SQL. The Community Edition already includes it, so you only add your Azure OpenAI credentials, which is a single call to the SCO API (shown in Postman, with setup docs linked)
How do you build the decision tree?
The new Business Processes page has four ready-made examples you can duplicate. The video builds one from scratch, starting with an SOP, the simplest form of decision intelligence SCO supports (scenario analysis and machine learning are other options).
The plant's SOP for a late order: did it start late? Then check the parts. If not, how late did it finish? Four hours or less, no action. More than eight hours, add workers. Anything in between, ask the supervisor.
Paste it into the Workbench Bot and it draws the tree:
Element
Meaning
Node
Each question
Branch
Each answer
If
A yes or no question
Switch
A question answered with a number
Otherwise
Catches everything else (here, 4 to 8 hours)
Recommendation
The end of each branch
How does each question get answered with real data?
Click Save, then Create. The plan shows both questions still need SQL, so click Resolve with the Workbench Bot. For each question the SCO AI Assistant writes a SQL query, and the bot tests it on a real order with you before moving on.
SQL summary: explains the query in plain words, so you don't have to read SQL (for example, it checks whether the order started after its planned start). The exact question sent to the assistant is shown too, so nothing is hidden
Run SQL preview: test any query yourself. Order MO-00006 started four hours late, so the answer should be yes, and it is. You see the answer, the branch it takes, and the rows behind it
Frozen queries: once a query is tested, it's frozen. No AI runs when SCO analyses an issue, so the same data always gives the same answer
Then click Deploy v1. SQL is only one way to get an answer. A business process can also pull data from other systems (such as an order's latest status from an ERP, or a file a supplier sends), follow business rules, convert data between formats, and pass work to the right person. Those are built by a developer in SCO, and an SOP is the easiest kind to start with.
How do you run it on an issue?
In Issue Management, open one of the 131 issues, for example order MO-00013, which is late and has no recommendation. In the analysis panel choose Late Manufacturing Order and click Run analysis. SCO picks the run up within about 30 seconds.
Result: the order didn't start late but finished 12 hours late, so the recommendation is a big delay: add extra workers for the next run. The Why section shows the tree with the path this run took. The decision path lists every step with the SQL it ran, the input, the value it got, and a snapshot of the data at that moment. Anyone can check later why the order got this recommendation, even if the data has changed since.
How do you change the SOP?
Say the plant now wants extra workers once an order is more than six hours late, not eight. Ask the bot to make the change, click Update to see exactly what will change before anything goes live, then Deploy v2. Every version is kept in the version picker.
How do you automate it?
Edit the Late Manufacturing Orders KPI, choose the business process as its Analysis Service, and deploy. From then on, each new issue the KPI raises is analysed as soon as it's raised, with no one clicking anything.
One caveat: the 131 earlier issues aren't analysed automatically, because SCO picks the process for an issue at the moment it creates it. You can still analyse any of them with Run analysis. When a planner acts on a recommendation, Close issue records that it was accepted.
A business process can also do more than record a decision. With SCO scenario analysis it can compare options using current data (adding workers, running overtime, or moving the order to another line), show the cost and time of each, and mark the recommended one. Once someone picks an option, the process can carry it out: email the supervisor, create a report of late orders for the morning meeting, or add workers to the next run if the shift plan is kept in SCO. When the action works, SCO closes the issue on its own. If something goes wrong, the issue is flagged for follow-up.
What is the whole flow?
Step
What SCO does in this series
Data
A ready-made data model of 33 linked objects, from manufacturing orders to inventory, suppliers, and shipments. The bot found the Manufacturing Order object that fit the spreadsheet, and the supervisor was added as a custom attribute (a custom object is possible if nothing fits)
Business logic
A cube turns raw orders into measurable numbers, such as average hours by supervisor, and marks each order late (finished after its planned end date) or on time. The KPI counts late orders and warns when there are too many
Identify the risk
The KPI raised an issue for each of the 131 late orders
Take action
The business process applies the SOP to each issue and gives a clear recommendation with the reason behind it
If your supply chain team has written-down SOPs, which one would you turn into a decision tree like this first, and what data would it need?
Our final programming contest of 2026 focuses on the operational challenges of supply chain management. The contest puts developers in the context of a distribution company dealing with supplier delays, expiring inventory, and warehouse humidity issues during its busiest season.
The task is to build a functional, open-source application using InterSystems Supply Chain Orchestrator that addresses supply chain problems.
💰 $12,000 prize pool 📅 Submission period: December 7–20, 2026
Modern platforms usually treat observability as three core signals: metrics, logs, and traces. OpenTelemetry (OTel) is the standard way to produce and ship all three. This article sets up InterSystems IRIS in Docker Compose with a full local observability stack.
What does the stack contain?
Component
Role
Prometheus
Metrics
Loki
Logs
Tempo
Traces, for Grafana Traces Drilldown
Jaeger
Optional, alternate trace viewer
Grafana
Unified UI
OpenTelemetry Collector
Receives OTLP from IRIS and routes it
How does the data flow?
- IRIS emits OTLP/HTTP telemetry to the OpenTelemetry Collector - The Collector routes traces to Tempo (for Grafana) and Jaeger (alternate trace UI), metrics to Prometheus, and logs to Loki - Grafana reads from Prometheus, Tempo, Jaeger, and Loki and shows everything in one place
Tempo is the trace backend that Grafana's Traces Drilldown needs. Tempo's metrics generator is enabled so Grafana can build metrics (rate, errors, duration) from traces. Key parts of `tempo.yaml` (excerpts):
The other services use these images: `otel/opentelemetry-collector-contrib:0.143.0`, `grafana/tempo:latest`, `grafana/loki:latest`, `prom/prometheus:v3.9.1`, `jaegertracing/all-in-one:1.76.0`, and `grafana/grafana:12.3.1` (with anonymous Admin access and the `traceqlEditor` feature toggle enabled).
OAuth 2.0 is a standard way to let one application call another application's API without sharing a username and password. The client sends an access token, typically in an `Authorization: Bearer ...` header. Starting in IRIS 2025.2, OAuth2 can be selected as a native authentication method for web applications, so enabling an OAuth2-protected web app is no longer a DIY exercise. IRIS validates the incoming access token for a CSP/Web Application request and establishes a user context (username and roles) from it, like other authentication types do.
OAuth2 covers authorization (what the client is allowed to do). User login and identity claims are usually handled by pairing it with OpenID Connect, which this article leaves out.
## What problem does it solve?
Imagine a REST API for bank account `ACCT-1` under `/bank`:
A third-party app should be able to monitor the balance but not transfer money. Instead of handing it your IRIS password, you give it a token that is scoped (read balance, not transfer), time-limited, and revocable.
Who plays which role?
Role
In the demo
Resource Owner
The owner of the bank account
Client
The third-party app (Postman)
Authorization Server
Keycloak: authenticates the user, decides which scopes the client gets, and issues the token
Resource Server
IRIS: hosts the API, validates the token, and enforces what it allows
The third-party app never sees your IRIS password. It presents a token, and IRIS makes the allow or deny decision.
Step 0: Hostnames and the issuer
Token validation checks the issuer claim (`iss`). If Keycloak issues a token with the issuer `http://localhost:8080/...` but IRIS validates it using `http://keycloak:8080/...`, IRIS rejects the token because the issuers don't match. `localhost` on your host is not the same as `localhost` inside a container. The demo therefore uses the hostname `keycloak` everywhere.
Add this line to your hosts file (Windows: `C:\Windows\System32\drivers\etc\hosts`, Linux or Mac: `/etc/hosts`, usually with sudo):
127.0.0.1 keycloak
From then on use `http://keycloak:8080`, not `http://localhost:8080`. The demo uses HTTP to keep setup simple. In production, use HTTPS with real certificates, otherwise tokens and sessions can be intercepted.
## Step 1: The authorization server
Keycloak is already prepared for the demo (realm, clients, users, scopes). The admin console is at `http://keycloak:8080/keycloak/admin/master/console/` (admin/admin).
Step 2: Tell IRIS who the authorization server is
In the Management Portal go to System Administration > Security > OAuth 2.0 > Client, click Create Server Description, set the Issuer URL (in the demo `http://keycloak:8080/keycloak/realms/bank`), then click Discover and Save. IRIS pulls the endpoints and metadata it needs: authorization endpoint, token endpoint, JWKS URI, and so on.
Step 3: Configure IRIS as the resource server
Create a Resource Server entry:
- Name: IRIS Bank Resource Server - Server Definition: `http://keycloak:8080/keycloak/realms/bank` - Audiences: `bank-demo`, `bank-monitor`
The token's audience (`aud`) is its intended recipient. By configuring audiences, you tell IRIS to accept only tokens issued for this API.
Step 4: Write the authenticator class
The key step: token scopes become IRIS roles, and your web application or REST endpoints can require those roles. That is what makes `/checkbalance` succeed for a monitor token while `/transfer` returns 403 Forbidden unless the token has the transfer scope. A custom class is optional, since you could use `%OAuth2.ResourceServer.SimpleAuthenticator` and specify which token property maps to the user and role, but the article creates one for completeness:
Class Bank.Authenticator Extends %OAuth2.ResourceServer.Authenticator
{
Method Authenticate(claims As %DynamicObject, oidc As %Boolean, Output properties As %String) As %Status
{
// Map token -> IRIS username
Set properties("Username") = claims."preferred_username"
// Map scopes -> IRIS roles
Set scopeList = $ListFromString(claims.scope," ")
Set roles = ""
If $ListFind(scopeList,"bank.balance.read") > 0 {
Set roles = roles_",BankBalanceRead,%DB_USER"
}
If $ListFind(scopeList,"bank.transfer.write") > 0 {
Set roles = roles_",BankTransferWrite,%DB_USER"
}
If $Extract(roles,1)="," Set roles=$Extract(roles,2,*)
Set properties("Roles") = roles
Quit $$$OK
}
}
Compile it, then set it as the authenticator class on your resource server and save.
Step 5: Enable OAuth2 on the web application
First enable it at the system level under System Administration > Security > System Security > Authentication/Web Session Options. Then, on the Web Application definition, select OAuth2 as an allowed authentication method. The dispatch class checks that the client has the necessary roles.
Step 6: Test it
Load the Postman collection and environment. The demo users are `user1/123` (account `ACCT-1`) and `user2/123` (account `ACCT-2`).
In Postman, under Authorization, click Get New Access Token and log in as `user1`, then click Use Token
Send GET to `/checkbalance`: it returns 5 dollars
Clear cookies and log in as `user2`: the balance is 0 dollars
Get a token for `user1` and try to transfer money to `user2`: it fails with 403 Forbidden, because this monitoring app lacks the required scopes
Try requests 3 and 4, which simulate a client with full access: you can both check the balance and transfer funds
What it does not do
From the comments: native OAuth2 authentication lets IRIS validate a bearer token that a client has already obtained and included in the request. It does not initiate the OAuth authorization flow or redirect an unauthenticated browser to the authorization server. For an existing browser-based UI that should redirect users to an OAuth or OIDC identity provider for login, you still need delegated authentication. Scope values are space-delimited, per the OAuth 2.0 standard (RFC 6749, section 3.3).
Organizations that need to capture, store, and share patient-level quality or risk adjustment measure results via FHIR can do it by extending HealthShare SDA and enabling transformation to the FHIR MeasureReport resource. This walkthrough configures HealthShare v2025.1 to support the Da Vinci Risk Adjustment (RA) Implementation Guide: MeasureReport data is persisted in SDA and exposed through FHIR R4.
What is the solution?
A custom SDA3 container stores MeasureReport data for each patient, and HealthShare is configured to transform that data into a FHIR R4 MeasureReport resource. The deliverables:
- A custom SDA container and supporting classes - A custom DTL that transforms SDA to FHIR - Configuration updates to register and enable the transformation - A test patient to validate end-to-end
Afterwards HealthShare stores MeasureReport data per patient in SDA, uses the custom container automatically, and exposes the MeasureReport through the FHIR R4 endpoint in ODS.
- Custom SDA container: `HS.Local.SDA3.ZContainer` - Custom SDA3 MeasureReport classes: `HS.Local.SDA3.ZMeasureReport`, `ZMeasureReportGroup`, `ZMeasureReportExtension`, `HS.Local.SDA3.Streamlet.ZMeasureReport`, and the code table detail classes `ZMeasureReportCategory`, `ZGroupCode`, and `ZccRemark` - Custom DTL: `HS.Local.FHIR.DTL.SDA3.vR4.MeasureReport.MeasureReport`
Step 2: Register the custom SDA container
In HSREGISTRY, add this Configuration Registry entry so HealthShare uses the custom container when processing SDA3 data:
\CustomSDA3Container = HS.Local.SDA3.ZContainer
Step 3: Enable the SDA-to-FHIR transformation
In HSODS, set this global to explicitly enable the transformation from the custom SDA3 container to the FHIR R4 MeasureReport resource:
set ^HS.XF.Transform("SDA3","vR4", "HS.Local.SDA3.ZMeasureReport", "HS.Local.FHIR.DTL.SDA3.vR4.MeasureReport.MeasureReport") = 1
Step 4: Update XFTransform.xml
The file is in the instance directory under `/dev/fhir/gbl/`. You may need to set it to read/write temporarily. Add this node after the SDA4 and vR4 nodes and before `HS.SDA3.Address` (typically around line 7). This makes the transformation recognized at runtime:
Download `TestMeasurePatient.txt` from the same GitHub repo. In a HealthShare demo environment, drop it into the `SDAIn` directory of HSEDGE1 (any Edge configured to accept SDA3 messages works).
Query by patient and profile with Postman or another API tool:
Replace `<your-host>` with your HealthShare URL and `100000012` with the patient's MPIID. To query all MeasureReports, use `https://<your-host>/csp/healthshare/hsods/fhir/r4/MeasureReport`. The expected result is a single MeasureReport resource.
In the Clinical Viewer, look up the patient 'Test MeasureReport' and confirm the SDA record includes the custom MeasureReport container.
Outcome
HealthShare can then persist patient-level MeasureReport data in SDA, transform it into a FHIR R4 MeasureReport resource, and share it via FHIR in line with the Da Vinci Risk Adjustment Implementation Guide. That supports standards-based risk adjustment reporting and interoperability with downstream analytics, payers, and regulatory systems.
FIFO groups let an interoperability production keep First-In, First-Out message processing even when Pool Size is greater than 1, so you get more performance without losing ordering. The feature first appears in InterSystems IRIS data platform, IRIS for Health, and Health Connect in version 2025.3. The article is marked as an InterSystems Data Platform Best Practice.
Why do FIFO groups exist?
FIFO is critical in many integration scenarios, especially healthcare. The traditional way to enforce it is Pool Size = 1 on each business host, which works but limits throughput and underuses resources. FIFO groups preserve order within a defined group of related messages and still allow parallel processing across unrelated groups.
How do FIFO groups work?
Determine a FIFO group identifier. A value in the message that defines dependency, such as the patient MRN. Any business-specific identifier works
Assign messages to FIFO groups. Use a Data Transformation or custom code. Messages with the same identifier are guaranteed to be processed in FIFO order
Process groups in parallel. Messages in different groups can run at the same time. Pool Size determines how many FIFO groups can be processed concurrently
Control when FIFO constraints end. Completion hosts can release the constraints once ordering is no longer required downstream
When should you use them?
- Pool Size = 1 doesn't meet your performance requirements - FIFO is required for subsets of messages, not globally - CPU utilization is below 80% and parallelism would improve throughput - Message dependencies can be identified clearly (Patient ID, Account Number, Order ID)
Example: patient ID as identifier, Pool Size = 2
Patients 55, 66, and 77 each send a Pre-admit, Admit, and Discharge message in that order. Each patient's messages must be processed in order, and the patients are independent of each other. With FIFO groups, each patient's messages run sequentially, while messages for different patients can run in parallel, for example the Pre-admits for 55 and 66 at the same time.
The key rule: a message cannot be dequeued if another message with the same FIFO group identifier is currently being processed. In the article's walkthrough, while the Pre-admit for patient 55 is still running, the Admit and Discharge for 55 stay in the queue, and the next message for a patient with nothing in progress can be dequeued ahead of them.
How do you configure it?
The example production accepts data, transforms it for the downstream system, and sends it on, with per-patient ordering.
Identify the FIFO group identifier. Example: MRN
Choose the starting host. Often a business process or routing engine, the first host where messages must be ordered. Example: `Example.MessageRouter`
Create a Data Transformation for the group calculation: - Source: the request message type - Target: `Ens.Queue.FIFOMessageGroup.Data`, with Create = new - Required property: `Identifier`, a string derived from the message - Optional properties: `Dependencies` (other FIFO groups that must complete first) and `CompletionHosts` (hosts that release FIFO constraints)
Configure the starting host. Set Group Calculation to the Data Transformation name, which activates FIFO grouping
Set Pool Size greater than 1 on the starting host. With Pool Size = 2, up to two FIFO groups are active at once
How do you monitor it?
From the comments: `Ens.MessageHeader` has a new property of type `FIFOMessageGroup`. When it exists for a header, the portal's header display (for example, from the Queues page) shows its data fields. One of them, `QueuedWaitingOnRelease`, is calculated and lists, when appropriate, the Message Header ID with the same identifier that is currently in progress. That answers the question of why a message at the top of a queue gets bypassed.
This hackathon kit is a full series of Jupyter Notebook tutorials for building a medical history chatbot on InterSystems IRIS for Health. It is a worked-through, easy-to-follow demo app that uses FHIR data and AI, and it doubles as an introduction to FHIR and to building a basic RAG system in IRIS.
What do the tutorials cover?
Connecting to IRIS with Python
Using the InterSystems FHIR server
Converting FHIR data into relational data with the FHIR SQL Builder
Using InterSystems Vector Search
Bonus: prompting local AI models with Ollama
The repo also includes other tutorials on using a FHIR server.
Where does the data come from?
The demo needed FHIR data with plain text that could be vectorized. Two problems came up:
Problem
Solution
Real patient data isn't easy to come by
Synthetic patient data generated with Synthea
Plain text in FHIR is generally clinical notes in DocumentReference resources
Clinical notes written with GenAI and loaded into FHIR resource bundles
## Which FHIR server template should you start from?
Two Open Exchange templates were considered: iris-fhir-template and Dockerfhir. The final kit used a combination of both. For a fresh start, the article recommends iris-fhir-template because it has a built-in user interface and Swagger UI for testing FHIR endpoints. Combining the two later was painful because iris-fhir-template has the FHIR server endpoint hardcoded. A side benefit: rebuilding the Docker containers builds familiarity with how a Dockerfile, `module.xml`, and `iris.script` setup works.
How hard is vector search in IRIS?
The basic steps are:
Import a model
Create vectors from plain text
Insert the vectors into a table in IRIS
Convert a query to a vector
Query the database with the query vector
All of that fits in about 50 lines of Python. Refinements like hybrid vector and keyword search or a re-ranking step can come later.
Why Ollama for prompting?
Local models are free, need no API key, and don't send your data elsewhere, which matters for medical records. Models that weigh less than a gigabyte, like gemma-1b, gave surprisingly coherent and even accurate responses. Responses can be slow, especially with large context windows. Earlier attempts with the Hugging Face Transformers module were slow and poor by comparison.
How did it do in practice?
The kit was shared with teams at the Hackjak Brno Healthcare hackathon in November 2025. 11 of 25 teams used aspects of it. Solutions ranged from RAG pipelines on IRIS vector search to tools that fill out medical forms connected directly to a FHIR server back end. One team (VIPIK) published its solution on Open Exchange.
If you were building a first FHIR plus vector search demo on IRIS, would you generate your own clinical notes like this, or look for another source of plain text?
This community article shows how to containerize an InterSystems IRIS instance so that a single command, `docker-compose up --build`, gives you a working data science environment. Embedded Python is ready to use, dependencies from both pip and IPM are installed, and a CSV file is loaded into an IRIS table automatically. The same setup is then used to benchmark how fast different query methods can feed a LightGBM model.
Why containerize IRIS for data science?
The reason is repeatability. Results and application performance should be the same regardless of the hardware running the code, and Docker reduces human error and makes code behave the same way everywhere.
What does the setup include?
- Embedded Python enabled, with the Python runtime configured through environment variables - Python dependencies from `requirements.txt`, installed in a separate build stage - Custom Python packages linked during the build, so `from mypythonpackage import myclassorfunc` works inside Embedded Python methods on ObjectScript classes - IPM (the InterSystems Package Manager) installed automatically, plus the `csvgenpy` utility to create and populate a table from one CSV file - A shared `./dur` folder between host and container for datasets and trained models
- The volume maps `./dur` on the host to `/dur` in the container, read-write, so files can be loaded into IRIS and inspected from the host without copying - `--after` runs a bash script once IRIS is up, and it runs every time the container starts. With `restart: always` that includes every automatic restart, so the script must be safe to run repeatedly, or it can reinstall packages or reset tables
Dockerfile: two stages
Stage 1 (`python:3.12-slim`) installs the Python dependencies into a temporary folder, which keeps build tools out of the final image. Stage 2 uses the `iris-community` image from InterSystems, installs the Python development library, and tells IRIS where Embedded Python lives:
These variables replace a manual change in the Management Portal (System Administration → Configuration → Additional Settings → Advanced Memory). That makes the configuration explicit, reproducible, and version-controlled.
iris_autoconf.sh: idempotent startup
The script opens an IRIS terminal session, installs IPM, configures the registry, installs `csvgenpy`, imports and compiles `MockPackage` (flags `ck`), and creates the table from the mounted CSV only if it doesn't exist yet:
SET exists = ##class(%SYSTEM.SQL.Schema).TableExists("MockPackage.NoShowsAppointments")
IF 'exists { do ##class(shvarov.csvgenpy.csv).Generate("/dur/data/healthcare_noshows_appointments.csv","NoShowsAppointments","MockPackage") }
The benchmark: three ways to pull a table into a DataFrame
`MockDataManager` adjusts the dataset size by duplicating CSV rows and updates the table, `MockModelManager` trains a LightGBM model and saves it to the mounted volume, and `MockInference` compares the three retrieval methods:
| Method | What it does |
|---|---|
| `RunInferenceWDynamicSQL` | An ObjectScript method runs Dynamic SQL and packs the results into a `%DynamicArray` of `%DynamicObject`s, which Python converts into a DataFrame |
| `RunInferenceWIRISSQL` | Python runs the SQL query directly and converts the IRIS SQL iterator into a DataFrame |
| `RunInferenceWGLobals` | Python reads the globals behind the table directly (`^vCVc.Dvei.1`, the `DataLocation` in the table's storage definition) |
The global name comes from the hashed storage IRIS generated when the table was built from the CSV. A `ConsistencyCheck` method asserts that the three DataFrames are identical, so downstream predictions are the same whichever method is used.
Inference time was nearly the same across methods (about 1.1 seconds at 1 million rows), which is expected with identical DataFrames. A power-law fit of the query times gave exponents of about 1.03 for globals (close to linear), 1.48 for IRIS SQL, and 1.82 for Dynamic SQL. Inference itself scaled slightly superlinearly (exponent about 1.3).
A caveat from the comments
Readers pointed out that the 'Dynamic SQL' label can mislead. That path detours through `%DynamicObject` on the way to the DataFrame, so the gap between it and the IRIS SQL option reflects that conversion rather than the SQL engine itself. Another commenter noted that the 'IRIS SQL from Python' path also uses Dynamic SQL on the IRIS side. The author replied that the goal was to measure end-to-end extraction into a Pandas DataFrame, including the required transformation steps, and said he would adjust the wording. Worth keeping in mind before you quote the numbers.
Takeaways
- One `docker-compose up --build` can give you IRIS, Embedded Python, IPM packages, and loaded data - Make the startup script safe to re-run - For large result sets feeding ML inference, direct globals access had the lowest query time in this test, with near-linear scaling
How do you move data from IRIS into Python for ML today: SQL from Python, Dynamic SQL in ObjectScript, or globals? And has the gap mattered at your table sizes
NOAH is a Neighborhood Open Health architecture: a home hub, a community hub, and a neighborhood digital twin on one secure layer built on InterSystems IRIS for Health. It is being developed through a consortium, with InterSystems as a founding member and Ian Sparrow of the Agile Aging Alliance as a key leader, and it is meant to be the operating system for a new global standard for smart, multi-generational neighborhoods and homes. This is a summary of an early preview by Jeff Freed (InterSystems) and Ian Sparrow. It is work in progress.
Why does this problem need a new approach?
The speakers cite about 800 million people over 65 today, and they expect the elderly population to more than double over the next 30 years
Care systems are geared toward long-term care: a nursing home stay of two or three years is the expectation, not twenty
US health care spending is now about 18% of GDP, and essentially all elderly people have some chronic condition that needs management
Social studies show elders in neighborhoods, especially multi-generational ones, have better outcomes: less loneliness, isolation, and depression, and more help with transportation and logistics
What is the standard behind it?
The standard came out of about six years of work. The Agile Aging Alliance began about 10 years ago, from a UK Innovate challenge about 13 years ago on aging demographics and keeping people at home longer. Ian Sparrow describes it as unusual because it cuts across the silos of technology, housing, and health and care. It starts at master planning, puts digital infrastructure (“digital plumbing”) in first at the building level, and is designed for people of any age and ability, not just older adults. A formal launch is planned in London on May 12.
What are NOAH’s three parts?
Part
What it does
Home hub
Many signals from the home (wearables, smart devices) that you can converse with, which requires AI
Community hub
Connects people to neighborhood services, such as a senior center’s activities, in a way elders can actually use
Neighborhood digital twin
The third leg of the architecture, tying the neighborhood together
Jeff’s example for the community hub: a new senior center in Newton, Massachusetts, with ping pong, pool, chair yoga, and a bulletin board, that few people use because its target population struggles with electronic bulletin boards.
What does the demo show?
Frank is 83 and lives alone. His wife Carol died about two years ago, and his son David lives about two hours away. About 8 months ago Frank fell and had knee surgery; recovery is going well but his confidence hasn’t returned. He takes blood pressure medication. Mix post-surgery, age, and a little dehydration, and dizziness becomes a fall. His data comes from a Garmin watch, a smart toilet, and a smart fridge, integrated in IRIS for Health and updated in real time (heart, sleep, nutrition, stress, steps). Medications and appointments come from a FHIR repository holding his shared care record.
Frank doesn’t use the dashboard. He talks to Joy, an AI assistant that analyzes the data overnight.
Morning: Joy notes a more noticeable limp and low morning hydration, names the dizziness-relevant medications (metoprolol, lisinopril, hydrochlorothiazide, and gabapentin), and tells him to move slowly and sit down if lightheaded
Dizzy: Frank says so and asks Joy to call David. The call appears on David’s screen in the same UI
David’s view: he can drill into his dad’s sleep, eating, and hydration, read Joy’s short summary, see upcoming appointments, and share a report with the three data sources he flagged and a note to the clinician. The demo stresses that Frank doesn’t want to feel constantly watched, so Joy’s prompts help without constant updates
Appointment and ride: Joy gives the next appointment (a primary care checkup on Friday, May 1, 2026 at 10:00 with Dr. James Patel at Medfield Family Practice) and the ride options: neighbor Barbara, who gives rides Tuesdays and Fridays, Lyft, or David. Frank doesn’t want to bother David, so Joy connects him with Barbara through a neighborhood board for offers and requests for help (rides, spare soup)
Evening: Frank feels lonely. Joy suggests a healthy soup cooking demo at the community kitchen (Friday, 1:00 to 2:00 p.m.) or a card games afternoon on Sunday, May 3 at the senior lounge, room four, from 2:00 to 4:00 p.m., names the other attendees, and asks Frank to confirm before signing him up
Physician: the AI summary starts with a section based purely on the FHIR record, to avoid any bleed of data, and flags fall risk and dizziness possibly driven by polypharmacy, so the doctor can discuss cutting medications. Home data appears separately by device, so the clinician decides how much to trust each source: the smart toilet shows dehydration, the fridge shows too few calories, and the Garmin shows gait variability
Jeff calls the demonstrator naive on a number of fronts: it is meant to show the art of the possible for the elder, the family, the physician, and the neighborhood.
Why InterSystems?
Decades as a trusted health infrastructure, connected to over a billion health care records, with experience in open interoperability
Over 180 wearable devices exist. Their makers each want to own the data and have diverged from FHIR, but it all fits into FHIR. A customer the speaker names as Roche Health built connections to at least 170 of them on IRIS for Health, similar to medical device integration in acute care
The home hub and neighborhood hub connect to the medical record and intersect with InterSystems’ personal community, care community, Unified Care Record (UCR), and HIE products, all on the same secure layer
Ian adds that security, privacy, and ethics matter to people before they use these systems, and InterSystems provides them
Jeff also points to InterSystems’ ownership structure and culture, and to government programs in the US, UK, EU, and Japan with overlapping goals
What else came up?
Privacy: the sense of Big Brother matters. The technology can scale down to fit in the home, and months of longitudinal device data probably shouldn’t sit near the EHR, but can be used to personalize
Personalization: from Yuri, CEO of Cally Care (a service that phones elders a couple of times a day and has already made 8,000 calls, as a concierge service rather than a medical one): looking at 3,000 elders for patterns found none, so an assistant has to fit the individual
Social services: most US elders don’t know which benefits they’re entitled to, so they don’t use them
Why big tech hasn’t solved this: hubris (thinking technology alone solves it) and no profit model for neighborhood-level engagement. The coalition aims to be cross-sector and includes NatWest, described in the session as a big mortgage company
Next phase: “neighborhoods for life”, improving quality of life for people who aren’t suffering and breaking down barriers between generations
Status: it is still an innovation project, and InterSystems employees can’t sell it today
From the audience: a participant who runs the Gogo project in South Africa teaches grandmothers to use the internet, calls the gap the “gray divide”, builds safe play places with grandmothers (Masidlale Gogo, “let’s play granny”), and even developed a dance with a hip swipe to teach swiping on tablets
We've launched a new free, interactive tutorial on agentic application development directly in IRIS. The tutorial uses a warehouse scenario to demonstrate how AI agents can combine instructions, data access, and business logic to retrieve information and perform actions.
What you'll work with in this tutorial:
AI agents: Configure a warehouse assistant with custom instructions and persistent chat sessions.
SQL and ObjectScript tools: Give the agent access to inventory and sales data.
Interoperability workflows: Enable stock updates and trigger an interoperability workflow.
MCP: Expose the tools through an MCP server and access them from an external client agent.
🕰️ The tutorial takes 15-20 minutes and runs in your browser, with no local setup required.
Agentic AI architecture organizes AI agents and supporting tools into systems capable of handling complex, multi-step workflows. Unlike a single LLM interaction that produces a response to a prompt, agentic systems can distribute tasks across specialized components, maintain context, interact with external systems, and adjust their execution based on intermediate results.
One way to understand this architecture is through the progression from compound AI to dynamically orchestrated systems.
From multiple LLMs to coordinated agents
A simple compound AI system might use three agents:
A Draft Agent generates an initial output.
A Critique Agent evaluates it against the original requirements.
A Final Agent revises the result based on the feedback.
This structure introduces an explicit evaluation and revision process. It can then be extended by integrating external tools, such as search engines, databases, calculators, and APIs.
With dynamic orchestration, the workflow no longer needs to follow a fixed sequence. An orchestrator can select the next agent, repeat a step, or change the execution path depending on the task and intermediate results.
What makes up an agentic AI system?
The architecture typically includes four core modules and an orchestration layer:
Perception: Collects and processes information from external sources.
Reasoning: Interprets information, evaluates options, and determines actions.
Memory: Maintains short-term context and longer-term knowledge.
Action: Executes decisions, including API calls, database updates, and agent handoffs.
Orchestration: Coordinates agents, data exchange, execution sequences, and feedback.
When is a multi-agent architecture justified?
Not every task benefits from multiple agents. Document summarization, basic classification, and translation may be handled adequately by a single LLM call. Multi-agent systems become more relevant when tasks involve several stages, require access to external data, benefit from iterative evaluation, or need coordination across different systems.
The tradeoffs are also important. Each additional agent can introduce latency and cost. Errors can propagate between agents, and debugging becomes more difficult as workflows grow. Reliable coordination, validation at agent handoffs, structured logging, and end-to-end testing are therefore important considerations.
The central design principle is to start with the simplest architecture that meets the task requirements and introduce additional agents or orchestration capabilities when their benefits justify the complexity.
The full article examines these architectural patterns, the challenges of multi-agent collaboration, and the role of enterprise data platforms such as InterSystems IRIS in providing agents with access to data and external systems.
This is a summary of a session on source control and continuous delivery for InterSystems IRIS and Health Connect, given by Eduard Lebedyuk (InterSystems) with Liam Miller, director of IT integration at Albany Med Health System (four regional hospitals, 1,600+ beds). It explains why a trunk-based flow fits interface work better than GitLab flow, shows Albany Med’s variant with one namespace per analyst, and covers deployment details specific to interoperability productions. Most of it applies to self-hosted setups too.
Why use source control and CI/CD?
You can answer “what ran in prod a year ago?”, “who wrote this line?”, and “what changed between two dates?” from the repository
Fewer manual actions means fewer errors: a full deploy is one button
Tighter access: only maintainers press the deploy button and have access to prod
A change record that auditors like, useful for HITRUST, HIPAA, and SOC 2
What is the difference between GitLab flow and trunk-based development?
GitLab flow uses environment branches: what is in the dev branch is what runs in dev. You branch from dev, merge the feature into dev, then promote dev into test and test into prod. This works for application development, but HL7 interfaces land in dev and test in any order and stay in test for a long time, so test is never ready to promote as a whole.
In trunk-based development a feature branch starts from prod and the same branch is merged into dev, then test, then prod. Features are promoted individually, and there are no merge conflicts from merging dev into test.
How does Albany Med run it?
Prod is main (protected), plus test and dev in their cloud tenant. Each analyst (eight today, eleven at the start) has an individual namespace in dev.
Create a feature branch from main and load it into your namespace
Make your changes, then merge the namespace branch into dev (the key step: it avoids constant push and pull and most merge conflicts)
Promote to test, run user testing, get sign-off
Before production, merge main into your feature branch to capture hot fixes, enhancements, and other releases that went live meanwhile
Merge the feature branch directly into prod, bypassing test (never merge test into prod)
Merge the same branch back into test, so test stays in sync while keeping what is still in flight
Their lessons: name branches by type (feature, about 90% of work; hotfix; bugfix; experimental) plus initials, product, date, and ticket number (ServiceNow incident or request number). Segment files into folders (classes, lookup tables, DTLs) so you import and compile only what you need. Hold a daily 3 pm review of dev-to-test merges (5 to 10 minutes). Restrict who can merge into protected branches until the team is comfortable.
Result: for their Epic cutover, 88 interfaces were turned on almost simultaneously, and a production deploy is now a button click.
How do you update a running production?
The simplest way is stop, update, start. Without downtime:
Item
Behavior
Lookup tables and HL7 schemas
Before the latest version they were deleted before import, causing brief errors (missing schema, table, or key), so affected items had to be stopped. Version 2026.1 supports updating in-use ones without stopping items
System default settings
Applied only at job start or on an explicit update production call, so loading is safe
DTLs and business rules
Active immediately after compilation
Business processes, operations, services
Need an item restart
Also export the current configuration at the start of every deploy, to catch changes made directly on a server.
How do you shorten deployment time?
Split item types into folders and split CI jobs by path, so each job runs only when its folder changes
Use git diff between the last deployed commit hash and the new one: load added and modified files, translate deleted file names into item names and delete them, then store the new hash
Load several sources first, get the list of loaded items, and compile once
How do you handle one codebase for many clients?
Use configuration first (system default settings are not tied to interoperability, so you can use them for your own application settings). For custom code, pick one approach: same class name with different versions per client, or different class names (ABC1, ABC2) selected by a setting. A good pattern is a baseline template repository that customization repositories reference as a submodule.
What about containers and Kubernetes?
Building containers is the preferred approach, but an update requires a failover. If you work with TCP devices that cannot renegotiate without a full restart, update the code in place: a GitLab runner container for Kubernetes connects to the IRIS container and updates the code.
Q&A highlights
Tasks are tracked in ServiceNow, not integrated; the ticket number goes in the branch name
Deleting a file from the branch does not delete it from the server. Albany Med runs a SQL report that emails unused classes, lookup tables, and DTLs daily, and analysts delete them manually via VS Code
Other namespaces and repos: dev, test, and prod branches deploy to the same-named namespace; any other branch deploys to dev and switches to the namespace with the branch’s name, exiting if none exists, so new developers need no CI/CD changes
In InterSystems public cloud, SSL configs, web apps, and SQL gateways are defined in a separate control plane and arrive in the data plane already configured
How do you promote interface changes today: whole environments or feature by feature, and how do you clean up items deleted from the repo that still linger on the server?
Most Git workflows assume files are the source of truth. In IRIS the database is. This article, written for developers and DevOps engineers who maintain IRIS or HealthShare applications, covers how to get verifiable Git history and repeatable deployments instead of manual code exports and copy-paste promotions.
The framework has two halves: a server-side source control class that commits every save to Git, and a GitHub Actions pipeline that pushes approved commits to a target namespace via the Atelier REST API. According to the author, the hard parts aren’t the automation itself but running Git as the IRIS service account and rolling back when a compilation fails.
Why can’t you use a normal Git workflow with IRIS?
Classes, routines, DTLs, BPLs, and lookup tables live in the namespace. Developers edit them through VS Code over isfs://, the Management Portal, or Studio, all on the same shared server. A local-clone-and-push model doesn’t describe what actually happens.
So the version control goes inside IRIS. You subclass %Studio.SourceControl.Base, and IRIS calls your methods when a document is saved, deleted, or opened. The hook exports the document to a file on disk and commits it. Every edit path fires the same hook.
What do you have to decide for the server-side hook?
Decision
The trade-off
Check-out locking
Prevents collisions and gives a unit of work, but adds friction and stale locks. No locking works for small teams but gets riskier as they grow
Commit granularity
On check-in only (clean history, unprotected work in progress), on save with squash at check-in, both, or every save (noisy, but an accidental overwrite stays recoverable)
Push timing
On save keeps the remote current but a network issue can hang a save. On a schedule keeps saves fast, but work exists only on that server until the push
Hook failure
Return the error (nothing saved without a commit, but a Git misconfiguration can stop the team) or return success and log it (editing never breaks, but failures can go unnoticed)
Export format
UDL for .cls, .mac, .int, .inc (readable diffs). XML only for types with no UDL form
Layout
Mirror the package hierarchy (MyApp.Billing.Report.Summary.CLS becomes src/MyApp/Billing/Report/Summary.cls) or flatten
Scope
Include list (failures are quiet) or exclude list (failures are loud, which is easier to notice)
Reconciliation
Trust the hooks, or add a scheduled git add -A sweep to catch what they missed
How does promotion work?
The branches mirror the environments: dev (the shared server auto-commits here on every save), test (curated promotions by pull request), and main (production). Promotion doesn’t have to mean merging all of dev into test. If packages are project-named, each one is a directory, and a directory is a shippable unit:
rm -rf src/MyApp/Billing/
git checkout dev -- src/MyApp/Billing/
git add -A src/MyApp/Billing/
The order matters. git checkout dev -- <path> can only write files that exist on dev, so a class deleted during development leaves a stale copy on test. Removing the directory first makes the checkout reproduce dev exactly, and -A records the removals as deletions.
Two habits keep this working:
Don’t edit test or production directly. Fixes go to development first so all environments stay identical
Avoid squash merges between environment branches. A squashed commit on main has a new hash that Git can’t match to anything on test, so the branches look divergent and every later diff includes changes that already shipped. Squashing on a feature branch is fine
Done this way, a pull request from test to main shows exactly what production runs now versus what is about to ship, so the release note assembles itself.
How should the pipeline reach the server?
If your IRIS server runs in a cloud, the Git provider doesn’t need to reach it. The article compares three options:
CI connects over SSH or a remote-execution protocol with a stored key. Fewest moving parts, but the credential doesn’t expire and a listening port has to be defended
CI drives the cloud’s management agent with short-lived federated credentials. No inbound port and no stored key, but one more service to configure. With GitHub Actions and AWS: Actions request an OIDC token, AWS exchanges it for temporary credentials on a deploy role, and the workflow asks Systems Manager to run a registered command on the instance
The server pulls. An agent on the instance polls the branch and deploys. Nothing external authenticates to the server, but you lose the direct line between a merge and a visible pass or fail
Credentials: keep the deploy credential out of the repository, the workflow definition, and the deploy script. Beyond that, it’s a set of dials: where it lives (CI secret versus a cloud-side secret store), how finely it’s partitioned (per environment limits a leak to one environment), and how often it rotates. One constraint can’t be avoided: the deploy user needs write and compile rights in the target namespace. Since application data usually lives in the same namespace as the code, scoping the database resource buys less than it appears to.
How do you deploy and roll back?
Deployment approach
Trade-off
Per-file Atelier PUT, then compile
Simple and debuggable, but a bulk load of tens of thousands of documents will exceed any sane command timeout
Batch Atelier endpoints
Far fewer round trips, but verify the request body format for your IRIS version
Import from a local checkout inside IRIS
Best for the initial load, no HTTP. $system.OBJ.LoadDir(), ImportDir(), and Load() are deprecated in favour of $system.OBJ.Import()
Parallel upload
Not recommended: concurrent writers contend on the class dictionary, locks, and storage assignment
Rollback: reapply Git HEAD. The script only advances HEAD on success, so at failure time HEAD is the last known good state. Re-upload the HEAD versions of modified and deleted files, and delete the files this deploy added. A filesystem backup directory is redundant, and an auto git revert and push was rejected because the deploy box shouldn’t push to a shared branch. EBS snapshot restore is the wrong tool for routine rollback: code and data share the namespace, so restoring discards every transaction since the snapshot. Snapshots belong to disaster recovery.
Deletions: import-style operations only add and update, so a class deleted in development survives on test and production unless the deploy reconciles explicitly. Send additions, copies, and modifications to upload-and-compile, and deletions to a delete call. Use --no-renames, or a rename becomes an update that orphans the old document.
What goes wrong in practice?
Git’s dubious ownership check on Windows. If the repo owner differs from the service account, Git refuses to operate. Without exit-code checks at each step, this shows up as a successful deploy that deployed nothing
Reading git fetch progress as a failure. Git reports progress on the error stream even on success. The exit code is what matters
Assuming Git runs as you. The hook runs as the account the database service runs under, so the SSH key must be in that account’s profile. Specify it explicitly from the repo config rather than relying on HOME, and invoke Git by absolute path, since a service inherits the PATH from when it started. Running the same command interactively as yourself fails on the key and tells you nothing about the hook
Line endings. If the repo stores LF and developers use mixed platforms, set the conversion setting deliberately on the server. Getting it backwards produces a whole-file diff on every save
Quick answers
What should the pipeline deploy first? Classes only. BPLs and DTLs are classes, so they’re covered. Routines and includes can be excluded deliberately, and lookup tables upload like classes but stay out of the compile list
Is it HIPAA-appropriate? The pipeline moves code, not patient data. Guard the leak points: CI logs (a provider’s build logs are generally not covered by a business associate agreement), the repository, and credentials. Confirm every AWS service in the path is HIPAA-eligible and a BAA is in place
The takeaway
Version control for IRIS has to start inside the database, because that’s where the code lives and where every edit path converges. After that, most things are choices rather than requirements, and they should follow from what the namespace holds and who can merge, not from a template. The one constant: every step has to report failure honestly. The dangerous deploy isn’t the one that breaks loudly, it’s the one that reports success and changes nothing.
If several developers share one IRIS server in your team, do you enforce check-out locking, or rely on commit history to untangle collisions? And what made you choose that?
From HL7 message triage and alert investigation to referral review and payment decisions, this contest showed how differently AI agents can fit into real interoperability scenarios. 44 applications explored where agentic decision-making can add value inside #InterSystemsIRIS Interoperability workflows.
The winning projects applied agents to several types of interoperability work:
Message and production operations: triaging failed HL7 messages, detecting unexpected changes in incoming feeds, and investigating alert storms.
Healthcare workflows: reviewing patient identity and insurance cases, assessing referrals, and supporting other decision-heavy clinical or administrative processes.
Risk and transaction decisions: evaluating fraud signals, payments, and other cases where the workflow needs to choose what should happen next.
Several projects treated the agent as part of a larger operational process rather than letting it act independently. Agents investigated failures, interpreted context, or proposed changes, while deterministic checks and human approval controlled sensitive actions. Other projects focused on validating changes before they reached live integrations, exposing existing Interoperability services as MCP tools, or adding reusable agent components directly to productions.
Together, the entries demonstrate different ways agentic decision-making can fit into interoperability, from message triage and operational recovery to healthcare review, integration safety, and workflow automation.
👏 Congratulations to all the winners and participants!
This talk from InterSystems READY 2026, by Elijah Cotterrell (Product Manager, Health Informatics Platform), covers the work to take today’s IRIS for Health FHIR server to petabyte scale. It is at the prototype stage, with productization expected to start in 2027.
Why does FHIR need to scale this far?
Large health systems are onboarding to demanding trust networks and interoperability agreements such as TEFCA, and the European Health Data Space is enabling cross-border data exchange between member states. FHIR is the de facto standard for healthcare interoperability going forward, for exchange, for patient-facing and clinician-facing apps, and for back-end development.
Three deployments the speaker described:
Deployment
What it does
Scale
National health system
FHIR platform as a sidecar to EHRs across the country: an application development and caching layer that interacts with HIEs and QHINs, plus in-house SMART on FHIR apps
Tens of millions of patient records, petabytes of database growth once enriched and indexed
Leading university health system
FHIR-first platform for cohort analysis and AI applications, with a real-time AI layer on top and EHR and non-EHR sources in one repository
7 million patients
National payer-provider exchange
Claims data: remittance advice, prior auth, and claims stored centrally and surfaced in one platform (not necessarily patient-centric)
Hundreds of millions of claims
What are the 2026 goals?
Scale the FHIR database to 1 petabyte. If it works at 1, there is confidence for 2, 5, and 10
Improve ingest speed. At this scale every millisecond cut from a migration matters for go-live
Implement storage tiering with a predefined, out-of-the-box partitioning strategy, because it doesn’t make sense to keep everything on premium storage such as EBS
Provide the observability and management layer needed to operate a multi-node deployment
Why sharding and not ECP alone?
The team considered four architecture approaches. ECP (Enterprise Cache Protocol) is optimized for reads: it caches data blocks across IRIS instances and serves them to many users. For persisting and ingesting at this volume it isn’t the best fit. Sharding was the most comprehensive option, partly because it is natively supported in IRIS, with SQL routing, rebalancing, and ECP transport built in.
The key design choice is a patient-scoped data model. Data is partitioned across shard nodes by patient identifier, so a patient and their medications, observations, and encounters are stored on the same node as far as possible. A full patient history for a chart or clinical app then doesn’t need to query six or seven nodes, which minimizes cross-shard communication. It is tunable per use case: system-level or analytics queries may call for a different sharding structure. The “1 million patients per shard” figure on the speaker’s diagram was an illustrative number, not a design limit. Data nodes are isolated from the application layer, and query nodes can be added separately as a second scalability tier.
How is hot and cold storage decided?
A recurring pattern: the patient population splits into active and inactive. Inactive patients can outnumber active ones, and most of the time you can take a performance hit on them. Active means the medical record is in play, the patient is still part of the population and may be under treatment. Inactive might mean not seen in several years even with ongoing conditions, or deceased. Patients can switch states in either direction.
It isn’t limited to that. Customers may partition by timestamp (for example, the last 3 years hot and older data colder) or by their own business logic as a partition key. The speaker noted that some customer implementation work is always expected at this scale.
How is ingest being sped up?
FHIR ingest is compute-heavy: references within a bundle must be reconciled before the data enters, and indexing happens synchronously so REST queries work immediately. In the benchmark, some bundles needed up to 0.7 seconds of compute.
Make resource validation optional for migrations. Data coming from another FHIR server is probably valid already
Build only the search tables you need. A USCDI implementation might only need the search parameters defined in US Core, a small subset of those built today. These two changes took the measured figure from 715 to 300 (the talk doesn’t state the unit)
Optimize the code. Replace object access with SQL access in the back end to work better with sharding and speed up inserts, and optimize the JSON path engine that extracts indexing data from FHIR elements. The prediction is another 50% ingest improvement
Overall the target is roughly a 5x throughput increase and an 80% reduction in ingest time, with the aim of pushing further.
What does the end-to-end experience need?
Create new nodes when shards reach capacity
Rebalance data safely if it ends up unevenly split
Tier storage per node by partition
Optimize compartment searches in the application layer to minimize cross-shard queries
Operational tier: multi-node management, high availability and disaster recovery, migration-optimized ingest modes, and observability across the multi-node architecture
Q&A highlights
Question
Answer
How will it be tested at scale?
The team is working closely with a few customers already operating at this scale and de-identifying their data to validate
Upgrade path for existing FHIR servers?
No synchronous upgrade step. It requires schema evolution to support shard and partition keys, so a built-in migration process (like the earlier FHIR search table upgrade) moves the data and cuts over. It is opt-in
Geo-fencing and data location?
Up to the customer. Multi-availability-zone support is being evaluated, with no definitive answer. Data isn’t placed by state or geography at this stage
Multi-tenancy with namespaces?
Multi-tenancy between namespaces is supported today, but this design is single-tenant for now and still needs multiple servers
New FHIR versions?
The US is mostly on R4. The speaker expects US Core 10 or 11 to cut over to R6, skipping R5. Schema changes between normative versions aren’t guaranteed to be backward compatible, so expect custom transformation, though the roughly 80% of unchanged elements might be bridged
Documents in blob storage?
FHIR already lets a DocumentReference point at an S3 bucket but doesn’t put anything there. Mounting blob storage may be looked at later, not now
Timeline
Prototyping now. Productization of these enhancements starts in 2027, with some ingest improvements and new cluster strategies coming first, in an iterative process.
If you run a FHIR server at large scale, how do you decide what counts as cold data: patient status, record age, or something specific to your business?
InterSystems Open Exchange is a gallery of open-source applications built by the Developer Community. If you've published or updated an application on the platform, we'd love to hear your feedback!
Our new Sweepstakes focuses on improving the UI/UX of the application publishing process on Open Exchange. Have ideas for a smoother workflow, clearer instructions, or a more intuitive interface? Share them with us!
🎁 Each eligible idea earns an entry into a raffle for a special prize.
Don Woodlock did an 11-minute walkthrough of the Microsoft AI sequential diagnosis study in his Code to Care series, and the architecture is the interesting part.
The setup copies the clinical pathological conferences at Mass General (the NEJM case records):
- Gatekeeper agent: has the full patient chart, including the final diagnosis, and only answers what it is asked
- Diagnostic agent: starts from a short case summary, then asks questions or orders labs and imaging each turn
- Judge agent: scores the final diagnosis 1-5 against the chart, 4 or 5 counts as correct
On every turn the diagnostic agent consults a panel of five agents, each with its own prompt and its own chat history:
Hypothesis: keeps a running top 3 of diagnoses with probabilities
Test chooser: picks tests that discriminate between those three
Devil's advocate: looks for facts that contradict what the others are anchoring on
Stewardship: suggests cheaper tests with the same clinical value
Checker: reviews the panel's output before it goes back to the diagnostic agent
Don ran the system in different configurations to see where the accuracy comes from:
- Short case summary only: 1
- Full chart minus the diagnosis, one shot: 2, sometimes 3
- Multi-turn questions and tests, no panel: usually 3
- Multi-turn plus the panel: almost always 5
So feeding the whole chart in one prompt did worse than making the model work for the information, and the panel added more than iteration alone.
Headline number from the paper: 80% on 300 cases, against 20% for 20 general practitioners. Big caveat that Don points out himself: the physicians were not allowed to use the internet or any reference material, so this is not what normal practice looks like.
Has anyone here built a multi-agent setup like this over clinical data (FHIR or otherwise)? Curious whether a critic agent paid off for you, or whether it mostly added latency and cost.
Generative AI is changing how developers write code, from intelligent autocomplete to AI-enabled IDEs that can create substantial parts of an application. But as these tools become more capable, an important question remains: how much development work should we delegate to AI, and what are the long-term consequences?
In this article, I share my thoughts on coding with GenAI and the four rules for it I think are worth considering.
The Risks of Relying on GenAI for Coding
Modern AI-enabled IDEs can take on coding tasks traditionally assigned to entry-level developers, especially in mainstream programming languages such as Python. However, relying on AI-generated code comes with several risks.
One major concern is technical debt. AI can generate large amounts of code that may contain serious flaws. Even more concerning is code that appears mostly correct but contains small problems that are difficult to detect.
Another risk is the impact on developers' skills and professional growth. If AI increasingly handles foundational programming tasks, how will early-career developers build the knowledge and practical experience needed to become senior engineers and software architects?
So, reflecting on the growing reliance on GenAI in software development, I came up with four rules that may help mitigate these risks.
Rule 1: Keep AI-Generated Code Within Your Expertise
Don't use GenAI to perform work that exceeds or approaches the limits of your own understanding. Think of AI-assisted coding as delegation. You should be able to perform the delegated task yourself and evaluate whether the result is correct. For developers at different experience levels, this leads to different approaches:
Interns and entry-level developers: Avoid using AI to generate new code that would otherwise be part of your own development work. Using it as an advanced search tool is fine, and intelligent autocomplete may also be appropriate.
Senior developers: Delegate simpler coding tasks in technologies where you already have substantial expertise. Review the output as you would review code written by an entry-level developer.
I've used Windsurf for AI-assisted development and found it helpful in this context. It lets me provide rules and guidance that the assistant can remember and follow. However, much like an entry-level developer, it can occasionally apply those instructions in the wrong context.
The important distinction is between delegating work you understand and depending on AI to perform work you cannot reliably evaluate or do yourself.
Rule 2: Clearly Attribute AI-Generated Code
When GenAI produces a substantial amount of code, make its involvement explicit. That means identifying AI-generated contributions in:
Commit messages.
The code itself.
Associated human-readable documentation.
Attribution helps reviewers understand the origin of the code. Instead of assuming it reflects your expertise, they can review it with greater caution towards AI-specific mistakes. It also helps future maintainers assess the code.
And there is another consideration: future AI training datasets. Identifying AI-generated code may help those assembling training data distinguish human-written material from model-generated output. This relates to concerns about model collapse, where training successive models on generated data can introduce irreversible defects.
Rule 3: Use AI for Guidance When Your Goal Is Learning
AI assistance can make development faster, but completing a task and learning how to complete it are different objectives. When the primary goal is to learn something new or reinforce existing programming skills, doing the work yourself is more valuable.
One feature I'd like to see in AI-enabled IDEs is a dedicated learning mode. Rather than generating the code, the assistant would observe the developer's work and offer guidance. But even without a specific IDE feature, developers can choose to interact with AI this way: asking for explanations and feedback instead of requesting complete implementations.
For example, GenAI could make specific programming languages, such as ObjectScript, easier to learn. Developers could use its guidance to become familiar with a new language and build their skills.
Rule 4: Reflect on the Impact of AI on Your Work
It's easy to get lost in deliverables, deadlines, and the amount of code being produced without considering how AI assistance affects your work and skills. Take time to reflect on both.
Some useful questions to think of:
Is this technology making my life better or worse?
Is it making me smarter or dumber?
Am I producing more value or just more output?
Does that output include technical debt incurred for the sake of expediency?
Am I learning more effectively or forgetting how to learn?
Conclusion
As GenAI becomes more capable of handling development tasks, it's worth considering not only what we can delegate to it, but also what we should continue doing ourselves. The ability to generate code faster doesn't necessarily mean we're producing better results or becoming better developers.
The challenge is to benefit from these tools without losing the understanding and experience that allow us to evaluate their output in the first place. This matters not only for individual developers but also for the next generation of engineers who need opportunities to practice their skills.
Where do you draw the line between using GenAI to accelerate development and relying on it too heavily?
A step-by-step guide on the InterSystems Developer Community builds an OpenAI agent that knows InterSystems technology. The documentation is chunked, embedded, stored in IRIS, and pulled back with vector search.
The pipeline in five steps:
Chunk.RecursiveCharacterTextSplitter with 300-token chunks and 50-token overlap. Smaller chunks mean more accurate retrieval and less text per query, so lower cost
Embed. The example uses OpenAI’s text-embedding-3-small. Local Ollama models such as nomic-embed-text are an option. Chunks and embeddings are saved to Parquet
Store. The Python DB-API driver writes them to a table with a VECTOR(FLOAT, 1536) column, inserting with TO_VECTOR. The 1536 must match your embedding model’s dimensions
Search. Embed the user’s question with the same model and order by similarity
Agent. Expose the search as a tool (search_business_docs) through the OpenAI Responses API. The model decides when to call it, your code runs the IRIS query, and a second call answers from the results
The search is a single query:
python
search_sql = f"""
SELECT TOP {top_k} ID, chunk_text FROM {TABLE_NAME}
ORDER BY VECTOR_DOT_PRODUCT((embedding), TO_VECTOR(('{emb_str}'), FLOAT)) DESC
"""
Two details worth noticing:
The author’s point on data: embeddings are only as good as the data behind them, so prepare it first (clean the text, chunk it)
The agent’s instructions tell it to ground answers in the retrieved context. If nothing relevant is found, it says so and answers from general knowledge with a disclaimer
Other uses the author lists for the same setup: a knowledge store for customer support agents, conversational context storage for personalized agents, anomaly detection in text, and clustering analysis.
Been using AI assistants ChatGPT, Claude, Gemini for a while now and my experience is pretty split.
At work they help with drafts, summarizing long docs, debugging and research. But I go through everything they suggest line by line before using it. They sound confident even when they're wrong, and with IRIS, FHIR and healthcare data one wrong detail can be a real problem.
In my personal life it's a different story. AI agents took over so much boring routine:
- meal planning,
- trip planning,
- reminders,
- budgeting, whatever is true for you.
I barely think about that stuff anymore, and if it gets something wrong it costs me nothing.
Curious how it looks for you. Where do you let AI agents run on their own, and where do you always verify? And what routine did automation take off your plate in daily life?
IRIS Managed Services is InterSystems’ fully managed offering of IRIS and IRIS for Health. It is not just hosting. InterSystems runs the networking, failover, security protocols, upgrades, and infrastructure so customers can focus on what only they can do. According to the presenters, pretty much any InterSystems product can be delivered as a managed service, with some differences across international markets. This session focuses on IRIS.
What “managed service” means here
InterSystems handles networking, failover, security, upgrades, and infrastructure, in line with HIPAA and, for government customers, GovCloud
It is available in pretty much any region, mostly hosted on AWS, with other options where they make more sense
Solution partners who build on IRIS can have their solutions hosted for their own customers. Customers range from small and medium to very large
Upgrades cover the IRIS application and the infrastructure underneath it, scheduled with the customer
Applications are built the same way (Python, ObjectScript), so little reskilling is needed
Hybrid setups work: an external tool or application can stay local while IRIS moves to the managed service
Prod, test, and other environments are included
Five benefits, as described
Benefit
What it means
Single point of contact
Self-hosted deployments involve many vendors (hardware, system integrator, network, security software, operating system). With the managed service there is one number to call
Single pane of glass
A control plane to see the environment in one place, a button to engage InterSystems, and proactive monitoring, for example warnings before memory use hits 95%
Purpose-built for InterSystems
Environments are configured by a team that has done this “10,000 times”
Enterprise-grade resilience
High availability, continuous backups during the day, automatic failover, plus validating, documenting, and auditing
Operations at customer speed
New environments (test, failover, and so on) in minutes, with consistent configuration
SLA and availability
99.9% availability SLA, counting both planned and unplanned downtime
Uptime runs on a 24-hour clock. There is no weekly maintenance window carved out. Changes are made in a parallel environment and then switched over
Over at least the last 12 months, availability exceeded four nines. The presenters say this is not guaranteed
Hardware is updated at least once a year. For example, a four-core environment should perform better the following year
Security and compliance
Encryption in transit and at rest on everything. It is the only option
JDBC connections get a certificate so traffic is encrypted over TLS. VPN options are available
Firewalls are on by default and everything is locked down. Customers open the ports they need and specify who has access
Each customer gets a dedicated AWS account and a dedicated portal, for isolation at all layers
Audits and attestations include SOC 2 Type 2 and ISO 27001 and ISO 27018, among others
Penetration tests run internally and externally at least once a year, or when the architecture changes
The presenters’ view of the threat landscape: five years ago a vulnerability took about 500 days to be exploited, a few years ago a few days, and now zero-day vulnerabilities are exploited immediately
Control plane and provisioning
IRIS Managed Services is provided to end users and solution partners
Sign-up is by username and password
Creating a deployment is a click on a tile. About 15 to 20 minutes later the deployment is ready, in the size you choose
Functionality matches on-premises IRIS. The presenters noted that some features are not yet available, partly driven by Mount Sinai’s needs
Pricing and commitment
Sizing comes from a conversation about capacity: formulas based on number of users, messages to be pushed through, and data volume
The package includes a test environment, failover, and other non-production environments
The goal is “no surprises”: customers know their monthly cost, rather than usage-metered billing
More capacity can be added monthly. Dynamic scaling is expected to come
No limit on the number of environments. Minimum size is 4 CPUs. The default maximum is 192 cores, and more can be discussed
If a customer later wants to leave, data can be transferred back or kept in a cold storage archive
Some customers went from contract signing to ready environments within hours, and several went from signing to go-live in less than a month. Marketplace sign-up on AWS or Azure is expected to come
Case study: Mount Sinai Health System
Mount Sinai is a five-hospital teaching health system in New York City with a medical school. The speaker described a very competitive market where everyone has the same core tools, so speed of response matters.
Why InterSystems. In 2022, a system managing 35 TB through HealthShare went down. InterSystems came on board and worked for 24 to 36 hours to diagnose and fix it without data loss. Redundancy through the connections to Epic and other software allowed the data to be rebuilt.
Why IRIS. HealthConnect offered more functionality available at a moment’s notice than the competitors they evaluated. The team also already had institutional knowledge of the InterSystems stack, so no retooling from scratch.
Why managed services. The team builds interfaces and solutions rather than running systems. Their analysis showed time to value more than 50% shorter than building it themselves. It also let them run a proof of concept without committing to long-term infrastructure. Weekly meetings with the InterSystems team continued after the contract was signed.
Lessons shared by Mount Sinai
Assess core capabilities today. Institutions have fewer network and Linux administrators than five years ago
Decide what you are trying to achieve. Is it a migration of something that exists, or a platform for innovation? Mount Sinai wanted capabilities to “pick up like Legos”
Blueprint networking early. They assumed a site-to-site connection would cover it, without digging two levels deeper, and found some network pieces were abstractions that sat outside their own network. They would spend a few more weeks on this before starting
Q&A
Do customer conversations include managed services? Per the presenters, every single customer conversation asks whether InterSystems can provide the product as a service
Is IRIS Managed Services cloud-only? Yes, it is 100% in the cloud
If you run IRIS yourself today, which part of the stack would you hand off first: upgrades, security and compliance, or networking? And which would you keep in-house?
Vector embeddings encode the semantics of text as high-dimensional numeric vectors. An approximate nearest neighbor algorithm like Hierarchical Navigable Small World (HNSW) can then search that text by context and meaning, beyond what keywords capture literally. This article walks through a simple implementation in InterSystems IRIS for Health using Embedded Python. It also covers Embedded Python and Dynamic SQL in general, and how to use IRIS’s native vector search features.
Environment
Component
Version / detail
OS
Windows Server 2025
Database
InterSystems IRIS for Health 2025.1
IDE
VS Code with InterSystems Server Manager
Python
3.13.7
Python libraries
pandas, ollama, iris
Embeddings
Ollama 0.12.3 with the all-minilm model, run locally (no API key needed)
SQL
Dynamic SQL
Sample data
A database of classic poems (unstructured text)
Step 1: Define an auxiliary table
The embeddings table User.SamplePoetryVectors has a foreign key on User.SamplePoetry and an EMBEDDING property of type %Library.Vector. Ollama’s all-minilm generates 384-dimension embeddings, so the vector length is constrained to 384.
To use IRIS’s native HNSW index and vector search methods, you need a column of type %Library.Vector (or %Library.Embedding) of fixed length, with type decimal or double, to index on.
Step 2: Vectorize the table with Embedded Python
A RegisteredObject class holds the vectorization methods. The VectorizeTable() class method calls a driver function that does four things:
Loads the table from IRIS into a pandas DataFrame
Generates an embedding column and converts it to a string compatible with the IRIS vector type
Writes the DataFrame into the auxiliary table
Creates an HNSW index
Load the table into a DataFrame
python
def load_table(sample_size='*') -> pd.DataFrame:
sql = f"SELECT * FROM SQLUser.SamplePoetry{f' LIMIT {sample_size}' if sample_size != '*' else ''}"
result_set = iris.sql.exec(sql)
df = result_set.dataframe()
# Entries without text will not be vectorized nor searchable
for index, row in df.iterrows():
if row['poem'] == ' ' or row['poem'] is None:
df = df.drop(index)
return df
This uses the dataframe() method of the Embedded Python SQLResultSet object. The optional sample_size argument is for testing. Rows without text are excluded from vector search rather than given a null or empty vector. That helps with datasets where not every row has data in every column, such as survey responses with skipped questions.
Generate embeddings
objectscript
The method returns the embedding as a string because TO_VECTOR expects its data argument to be a string by default. The same method is later reused to embed search queries.ClassMethod GetEmbeddingString(aurg As %String) As %String [ Language = python ]
{
import iris
import ollama
response = ollama.embed(model='all-minilm',input=[ aurg ])
embedding_str = str(response.embeddings[0])
return embedding_str
}
Write embeddings to the table
python
# Write dataframe into new table
print("Loading data into table...")
for index, row in df.iterrows():
sql = iris.sql.prepare("INSERT INTO SQLUser.SamplePoetryVectors (ID, EMBEDDING) VALUES (?, TO_VECTOR(?, decimal))")
rs = sql.execute(row['id'], row['embedding'])
print("Data loaded into table.")
Dynamic SQL populates the table row by row. Because EMBEDDING is declared as %Library.Vector, TO_VECTOR converts each embedding string to the native VECTOR datatype on insertion.
Create the HNSW index
python
# Create Index
iris.sql.exec("CREATE INDEX HNSWIndex ON TABLE SQLUser.SamplePoetryVectors (EMBEDDING) AS HNSW(Distance='Cosine')")
print("Index created.")
When an HNSW index is created on a compatible column, IRIS natively builds an HNSW graph. The vector search methods are VECTOR_DOT_PRODUCT and VECTOR_COSINE. Once the index exists, IRIS automatically uses it to optimize the corresponding method in later queries. The HNSW defaults are Distance = Cosine, M = 16, and efConstruction = 200.
VECTOR_COSINE implicitly normalizes its input vectors, so embeddings do not need to be normalized before insertion for queries to be scored correctly.
Step 3: Implement VectorSearch()
Generate an embedding for the query string by reusing GetEmbeddingString:
python
# Generate embedding of search parameter
search_vector = iris.cls(__name__).GetEmbeddingString(aurg)
Run a query that ranks results with VECTOR_COSINE. The JOIN combines each poem’s text with its embedding so results are ordered by semantic similarity:
python
# Prepare and execute SQL statement
stmt = iris.sql.prepare(
"""SELECT top 5 p.poem, p.title, p.author
FROM SQLUser.SamplePoetry AS p
JOIN SQLUser.SamplePoetryVectors AS v
ON p.ID = v.ID
ORDER BY VECTOR_COSINE(v.embedding, TO_VECTOR(?)) DESC"""
)
results = stmt.execute(search_vector)
Format the output with pandas for the IRIS Terminal:
python
Good to knowresults_df = pd.DataFrame(results)
pd.set_option('display.max_colwidth', 25)
results_df.rename(columns={0: 'Poem', 1: 'Title', 2: 'Author'}, inplace=True)
print(results_df)
iris is the InterSystems IRIS Python Module. It is the API for accessing IRIS classes and methods and for working with the database
SQLUser is the system-wide default SQL schema, which corresponds to the default package User
If you’re adding semantic search to existing IRIS tables, do you generate embeddings locally with something like Ollama or call a hosted embedding API? And how do you handle rows that have no text?
⏳ The deadline is approaching for the InterSystems Programming Contest: AI Agents in Interoperability Workflows.
There’s still time to join the competition and get your project ready before the submissions close. Build an #InterSystemsIRIS Interoperability solution where an AI Hub agent handles a decision-making task, and show how agentic logic fits into your workflow.