How the system fits together
WorklistBridge receives imaging orders from a RIS or EHR, stores them in SQL Server, decides which device each order belongs to, and serves each device its own DICOM Modality Worklist. It runs as Windows services that share one database:
| Service | What it does | Needed |
|---|---|---|
| HL7Importer | Reads HL7 v2 order messages from a folder and, when enabled, from an MLLP (TCP) connection. Stores each order and creates its worklist items. | Yes |
| DicomMwlServer | Answers Modality Worklist queries (C-FIND) and verification requests (C-ECHO) from modalities. | Yes |
| WebDashboard | Web pages for administrators: incoming messages, worklist items, device configuration, diagnostics and the licence. | Yes |
| FhirIntake | Receives orders as FHIR R4 transaction Bundles over HTTP(S) and stores them the same way as HL7 orders. | Only if a sender uses FHIR |
The path of one order:
- An order message arrives (HL7 file, MLLP or FHIR).
- The order is stored. A repeated order with the same placer order number updates the stored order instead of creating a second one.
- A routing rule picks the device from a field in the message, such as OBR-18.
- A worklist item is created for that device.
- The modality queries the worklist server with its own WL AET and receives the items meant for it.
Where settings live
- Devices and routing rules are stored in the database and edited on the dashboard's Configuration page. Changes apply at once; no restart is needed.
- Service settings (database connection, folders, ports, security) are in
appsettings.jsonnext to each service's executable. Restart the service after editing the file. - Any setting can also be given as an environment variable, with
__(two underscores) between the levels, for exampleMllp__Enabled=true. An environment variable overrides the file. - Diagnostics mode and the licence key are stored in the database and changed on the dashboard.
Setting names in this guide are written as Section:Key. In appsettings.json, Mllp:Port means "Mllp": { "Port": 2575 }.
First-time setup
- Create the database on SQL Server 2016 or later with the database script supplied with the release. Change the password of the SQL login the script creates.
- In every service's
appsettings.json, setConnectionStrings:Sqlto that database. - In HL7Importer (and FhirIntake, if used), set
DicomUid:RootandDicomUid:SystemId. See Study Instance UIDs. - In HL7Importer, set the three HL7 folders, or enable MLLP.
- In DicomMwlServer, set
DicomServer:Portand open that port in Windows Firewall for the modalities. - Install and start the services (as Administrator):
Each service writes start-up problems to the Windows Event Log (Application), under its own name.sc.exe create HL7Importer binPath= "C:\WorklistBridge\HL7Importer\HL7Importer.exe" start= auto sc.exe create DicomMwlServer binPath= "C:\WorklistBridge\DicomMwlServer\DicomMwlServer.exe" start= auto sc.exe create WebDashboard binPath= "C:\WorklistBridge\WebDashboard\WebDashboard.exe" start= auto net start HL7Importer & net start DicomMwlServer & net start WebDashboard - Open the dashboard (by default
http://localhost:5200on the server). On the first visit, set the password for the useradmin(at least 10 characters). - On the Licence page, copy the installation ID, send it to your supplier, and paste the licence key you receive.
- On the Configuration page, add a device for each modality and a routing rule for each value the RIS uses to address it.
- On each modality, set the worklist provider: the server's IP address, the port from step 5, the device's WL AET as the called AE title, and the device's Device AET as the modality's own AE title.
- Send a test order, check that it appears under Incoming HL7 messages and Outgoing MWL items, then query the worklist from the modality. If the worklist stays empty, use Diagnostics.
The dashboard
Sign in as admin. A session lasts 8 hours and is extended while you use it. Change the password with the Password button on the Configuration page. The buttons at the top right of every page lead to:
| Page | What you find there |
|---|---|
| Events | Incoming HL7 messages: every received message (HL7 or FHIR) with its import status. Outgoing MWL items: every worklist item, with its device, scheduled start, and whether it is served or cancelled. Event log: worklist queries, refusals and errors. |
| Configuration | Devices and routing rules. See Devices and Routing rules. |
| Diagnostics | The diagnostics mode and the recent worklist queries it recorded. See Diagnostics. |
| Licence | Licence state, installation ID, licensed devices, and the field to enter a key. See Licence. |
| Admin guide | This guide. |
Import statuses on the Incoming list:
| Status | Meaning |
|---|---|
| Imported | The order was stored and its worklist items were created or updated. |
| ImportedWithRoutingWarnings | The order was stored, but at least one order in it matched no routing rule (or matched a device the licence does not cover), so no worklist item was created for it. The message says which values were looked for. |
| Failed | The message could not be imported (for example, an unsupported message type or a missing required field). The error column says why. Nothing from it was stored. |
Devices
A device is one worklist consumer, usually one modality. Add devices in the top section of the Configuration page.
Fields set when you add a device
| Field | What it is | Outcome |
|---|---|---|
| Alias | A name for people, such as "CT Room 1". Required and unique. | Shown on the dashboard and the Licence page. You can rename it at any time (Rename); nothing else changes. |
| WL AET | The called AE title the modality sends its worklist query to. Required. | The worklist server uses it to find the devices a query is for. A query to a WL AET that no active device has returns an empty worklist, recorded in the Event log. |
| Device AET | The modality's own (calling) AE title. Required; must differ from the WL AET. | Written into every item as Scheduled Station AE Title (0040,0001). Used by the calling AET filter and the optional association allow-list. |
| Scheduled Station Name | Optional station name. | Written into every item as Scheduled Station Name (0040,0010). When it is set and the modality's query asks for a station name, only items with the same name are returned. |
| Modality | The modality code, such as CT, MR, CR, DX or US. Required. | Written into every item (0008,0060). A query that asks for another modality gets no items from this device. |
| AET filter | How the calling AE title is checked. See below. | Can be changed later in the device list. |
AE titles are 1 to 16 printable ASCII characters, with no backslash and no leading or trailing spaces. The combination of WL AET and Device AET must be unique.
WL AET, Device AET, Scheduled Station Name and Modality cannot be edited after the device is created. To change one, add a new device, move the routing rules to it, and deactivate the old device.
Settings you change in the device list
Each change is saved immediately and applies to the next worklist query.
Allow WL without date
| Value | Outcome |
|---|---|
| On (default) | A query that does not ask for a scheduled date returns all of the device's current items. |
| Off | A query without a scheduled date returns nothing for this device. Use it for modalities that would otherwise download the whole list. |
Range (โ / + days)
Widens the date a modality asks for, so items scheduled a little earlier or later still appear. Both values are whole days from 0 to 99. New devices start at 0 / 0.
- First value (days before): an item appears this many days before its scheduled date. Use it when patients may be examined early.
- Second value (days after): an item keeps appearing this many days after its scheduled date. Use it for orders that are often done late.
Example: with 0 / 2, a query for 13 October returns items scheduled on 11, 12 and 13 October. The range only applies to queries that ask for a date.
Calling AET filter
Decides whether the device's items are returned, based on the calling AE title of the query. It matters most when several devices share one WL AET.
| Value | Outcome |
|---|---|
| Ignore (default) | The calling AE title is not checked. Any modality that queries this WL AET gets the device's items. |
| IfProvided | If the query has a calling AE title, it must equal the Device AET. A query without one still gets the items. |
| Required | The query must have a calling AE title equal to the Device AET. Any other caller gets nothing from this device. |
WL encoding (Specific Character Set)
The character set (0008,0005) used in worklist responses to this device. Stored data always keeps every character; the conversion happens only when the response is sent.
| Value | Characters | Outcome |
|---|---|---|
| ISO_IR 192 | UTF-8, all characters (default) | Nothing is lost. Use it unless the modality rejects it. |
| ISO_IR 110 | Latin-4: Baltic (LV, LT, EE) | Baltic letters are kept. Other characters are reduced as described below. |
| ISO_IR 100 | Latin-1: Western Europe | Characters in the set are kept. Others lose their accent ("ฤ" becomes "A"), a few are spelled out ("ร" becomes "ss"), and anything else becomes "?". |
| ISO_IR 101 | Latin-2: Central Europe | |
| ISO_IR 144 | Cyrillic | |
| ISO_IR 6 | ASCII only, no diacritics | All accents are removed. The character set element is left out of the response. |
Choose a single-byte set only for older modalities that refuse UTF-8 or show names garbled.
Activate, deactivate and delete
| Action | Outcome |
|---|---|
| Deactivate | The device gets no new orders (its routing rules are skipped), its worklist is no longer served, and it stops counting towards the licence. Its items and rules are kept, so you can activate it again. Tick "Show inactive devices" to see it in the list. |
| Activate | The device is served again. Refused if the licence has no free device slot. |
| Delete | Only possible when no routing rule points to the device. If it still has worklist items, you are asked whether to delete them too or to deactivate the device instead. Deleting cannot be undone; deactivating is usually the better choice. |
How a modality gets its worklist
For every worklist query, the server works through these checks in order:
- Licence. If the licence is stopped, the query is answered with a failure status and a short reason, never with an empty list that could be mistaken for "no patients".
- Called AE title. All active devices whose WL AET equals the called AE title are candidates. None found: empty answer, recorded in the Event log.
- Calling AE title. Each candidate's calling AET filter decides whether it takes part.
- Licensed devices. Devices beyond the licensed number are left out.
- Items. Of the remaining devices' items, cancelled items are never returned. The rest must match what the query asks for: modality, patient ID, patient name, accession number, station AE title, station name (when the device has one), and the scheduled date (widened by the device's range) and time.
Several devices can share one WL AET, for example a department-wide worklist. Each device then contributes its own items, and the calling AET filter controls which modality sees which.
Routing rules
A routing rule says: when this field of an order has this value, the order belongs to this device. Add rules in the lower section of the Configuration page ("HL7 room โ DICOM WL mappings"). A new rule is enabled at once. To change a rule, delete it and add it again.
| Field | What to enter |
|---|---|
| Device | Type the ID, alias or Device AET and pick the device from the list. |
| Source field | Which part of the order to look at. See the table below. |
| Match value | The value exactly as the sender writes it, for example CT_ROOM_1. The whole value must match; spaces at the start and end are ignored. Write it with the same capitals as the sender. |
| Priority | A number, default 100. When an order matches more than one rule, the lowest number wins; on a tie, the older rule (lower Rule ID) wins. |
Source fields
| Source field | Where the value comes from |
|---|---|
| OBR-18 | HL7 Placer Field 1. The usual choice: most RIS systems put the room or device code here. |
| OBR-19 | HL7 Placer Field 2, for senders that use it instead. |
| IPC-9 | Scheduled Station AE Title in the IPC segment of OMI^O23 messages. |
| FHIR-LOCATION | FHIR orders: the ServiceRequest's first locationCode code (or its text), otherwise locationReference identifier or display. |
All four fields of an order are looked up together, so one device can have rules on different fields, and several values (for example two room codes) can lead to the same device. Rules of inactive devices are skipped.
When no rule matches
- The order is still stored, but no worklist item is created. The message shows as ImportedWithRoutingWarnings, and the warning names the placer order number and every routing value it looked for.
- After adding the missing rule, ask the RIS to send the order again. Orders already stored are not routed again on their own.
- A cancellation that matches no rule is still applied: every worklist item of that placer order number is withdrawn.
Changing or deleting a rule does not move items already on a worklist. The next message for that order is routed with the rules in force at that time, and its items move to the new device.
HL7 intake: files and MLLP
What is accepted
- ORM^O01 messages, HL7 v2.3 to v2.5.1, and OMI^O23 messages, v2.5 and later. Other message types are rejected (status Failed).
- One message may contain several OBR segments; each becomes its own worklist item.
- The placer order number (OBR-2) identifies the order. A later message with the same number updates the order and its items.
- The patient ID (PID-3) is kept exactly as sent.
- The scheduled start comes from OBR-36, or from TQ1-7 when OBR-36 is empty (v2.5 and later).
- Text is read as UTF-8. Files that are not valid UTF-8 are read in the character set named in MSH-18 (for example
8859/4), and in Windows-1257 when MSH-18 is empty.
Cancellations
An order is cancelled, and its worklist items withdrawn, when its ORC-1 order control code or its ORC-5 order status is in these lists. A later message for the same order that is not a cancellation brings it back.
| Setting | Default | Values and outcome |
|---|---|---|
Hl7Import:CancelOrderControlCodes | CA,OC,CR,DC,OD,DR | Comma-separated ORC-1 codes that cancel. Leave the setting out for the default; set it to an empty string to ignore ORC-1. |
Hl7Import:CancelOrderStatusCodes | CA,DC | Comma-separated ORC-5 codes that cancel. Leave it out for the default; empty string to ignore ORC-5. |
The codes in use are written to the log when HL7Importer starts.
File import (HL7Importer)
| Setting | Default | Values and outcome |
|---|---|---|
Hl7Import:InputFolder | C:\HL7\In | Folder the RIS writes order files to. Created if missing. |
Hl7Import:ProcessedFolder | C:\HL7\Processed | Imported files (including ImportedWithRoutingWarnings) are moved here. |
Hl7Import:ErrorFolder | C:\HL7\Error | Files that failed are moved here. A file with the same name already there gets a time stamp added. |
Hl7Import:FilePattern | *.hl7 | Which files to pick up, for example *.txt. Files are imported in name order. |
Hl7Import:PollIntervalSeconds | 5 | How often the input folder is checked. |
Hl7Import:MinFileAgeSeconds | 2 | A file is imported only after it has not changed for this long and the sender no longer has it open. Raise it if the RIS writes files slowly. |
While the licence is stopped, files stay in the input folder and are imported once a valid key is entered.
MLLP (HL7 over TCP)
Off by default. File import keeps working when MLLP is on.
| Setting | Default | Values and outcome |
|---|---|---|
Mllp:Enabled | false | true starts the listener when HL7Importer starts. |
Mllp:BindAddress | 0.0.0.0 | IP address to listen on. 0.0.0.0 means all IPv4 interfaces. |
Mllp:Port | 2575 | TCP port, 1 to 65535. |
Mllp:MaxMessageBytes | 1048576 | Larger messages are answered AR and not imported. At least 1024. |
Mllp:ReceiveTimeoutSeconds | 30 | A message that has started must arrive completely within this time, or the connection is closed. Idle time between messages is not limited. |
Mllp:AllowedClients | empty | Comma-separated sender IP addresses. Empty: any address may connect. Connections from other addresses are refused and logged. |
Every message is answered with an ACK:
| ACK | Meaning | Sender should |
|---|---|---|
| AA | Imported (a routing warning, if any, is in the ACK text). | Continue. |
| AE | The message cannot be imported, for example an unsupported type or a missing field. | Fix the message; resending it unchanged will fail again. |
| AR | Temporary refusal: database unreachable, licence stopped, message too large, or not starting with MSH. | Resend later. |
The MLLP listener has no encryption or authentication. Keep it on the hospital network, set Mllp:AllowedClients, and open the port in the firewall for the RIS address only. An invalid MLLP setting, or a port already in use, stops HL7Importer at start-up with the setting named in the log.
FHIR R4 intake
FhirIntake accepts POST /fhir with a FHIR R4 transaction Bundle containing one Patient and one or more ServiceRequests. Orders are stored like HL7 orders and appear on the Incoming list as "FHIR R4 Bundle". Route them with FHIR-LOCATION routing rules. GET /fhir/metadata answers without a token and is a quick health check.
| Setting | Default | Values and outcome |
|---|---|---|
Urls | http://localhost:8085 | Address the service listens on. The default only accepts requests from the same server. |
FhirIntake:BearerTokens | none | List of accepted tokens, one per sending system, each at least 16 characters. The sender puts one in the Authorization: Bearer header. The service will not start without one. |
FhirIntake:AllowAnonymous | false | true accepts requests without a token. For testing only. |
FhirIntake:PatientIdentifierSystem | empty | The Patient identifier system that holds the patient ID. Empty: the identifier marked "official", otherwise the first one. |
FhirIntake:PlacerIdentifierSystem | empty | An identifier system that holds the placer order number, for senders that do not mark it as type PLAC. Empty: only the PLAC identifier is accepted. |
FhirIntake:NotServedStatuses | draft, | ServiceRequest statuses that take the order off the worklist. A later status not in the list brings it back. |
FhirIntake:MaxRequestBytes | 1048576 | Larger requests are refused (413). |
DicomUid:Root, DicomUid:SystemId | none | Must be identical to HL7Importer's values. See Study Instance UIDs. |
Main responses: 200 stored (with a warning for each order that matched no routing rule), 400 not valid FHIR, 401 missing or unknown token, 403 licence stopped, 422 valid FHIR that breaks a rule (for example no placer number), 503 database unreachable (the sender should retry).
Tokens travel in every request. When the sender is on another machine, use HTTPS: add a Kestrel HTTPS endpoint with a certificate, or put the service behind a reverse proxy that handles TLS.
Worklist server settings
In DicomMwlServer's appsettings.json:
| Setting | Default | Values and outcome |
|---|---|---|
DicomServer:Port | 104 | TCP port for worklist queries. Every modality must use the same port. The supplied file sets 4104. |
DicomServer:LogDatasets | false | true writes every query and response dataset to the service log. These contain patient data; use only while troubleshooting. |
DicomServer:CallingAeAllowList:Enabled | false | true refuses connections from calling AE titles that are not allowed (rejected as "calling AE not recognized", shown in the Event log). |
DicomServer:CallingAeAllowList:AllowActiveDevices | true | The Device AET of every active device is allowed, so a device added on the dashboard needs no extra entry. |
DicomServer:CallingAeAllowList:AETitles | empty | Further calling AE titles to allow, such as a test tool: [ "FINDSCU" ]. |
The allow-list ignores capitals. If the database cannot be read for the check, the connection is refused as temporary, so the modality tries again.
Study Instance UIDs
Each order gets a Study Instance UID when its first worklist item is created. It is stored and never regenerated, so later updates of the order keep the same UID.
| Setting | Values and outcome |
|---|---|
DicomUid:Root | Your organisation's DICOM UID root: digits separated by dots, no leading zeros, for example 1.2.840.99999. Required. |
DicomUid:SystemId | A number that tells this installation apart from others under the same root, for example 9. Required. |
- Set both in HL7Importer and FhirIntake, with the same values.
- The service refuses to start if the root is not a valid UID or the generated UIDs would exceed 64 characters; the log says which.
- Keep the values unchanged after go-live. Changing them does not alter existing UIDs; only new orders get UIDs under the new root.
Dashboard settings
In WebDashboard's appsettings.json. Restart the service after a change.
| Setting | Default | Values and outcome |
|---|---|---|
ConnectionStrings:Sql | none | The database. The same setting exists in every service. If the database cannot be reached when the dashboard starts, every page shows "Database unavailable" and the dashboard retries every 15 seconds. |
Kestrel:Endpoints:Http:Url | http://localhost:5200 | Address of the dashboard. localhost means only the server itself can open it. To open it from other computers, use http://0.0.0.0:5200 or the server's address, and open the port in the firewall. |
Kestrel:Endpoints:Https:Url | not set | Adds an HTTPS address, together with Kestrel:Endpoints:Https:Certificate:Path and :Password. When it is set, sign-in cookies are sent only over HTTPS. |
Diagnostics
When a modality's worklist is empty or incomplete, Diagnostics shows why. Choose the mode on the Diagnostics page and press Save. It applies to the next query; no restart is needed. The mode never changes what the modality receives.
| Mode | What is recorded | When to use |
|---|---|---|
| Off | The standard query record in the Event log only. | Normal operation. |
| Debug | Also the interpreted query, and for queries with no results, how many items each check excluded. | A modality gets an empty worklist. |
| Trace | Also the full incoming query and the reason each item was excluded, for every query. | Short troubleshooting sessions only: it stores patient data from the queries. |
Common exclusion reasons and what to check:
| Reason | Check |
|---|---|
| No active device mapped to called AE | The modality's called AE title equals a device's WL AET, and the device is active. |
| No active device matched called AE + calling AE | The device's calling AET filter and Device AET. |
| ModalityMismatch | The modality code the device has against the one the modality asks for. |
| DateOutOfRange | The scheduled date of the order and the device's range. |
| NoDateFilterNotAllowed | The modality sends no date and Allow WL without date is off. |
| MissingScheduledDate | The order has no scheduled start (OBR-36 or TQ1-7), and the modality asks for a date. |
| StationNameMismatch | The device's Scheduled Station Name against what the modality sends. |
| Cancelled, NotServable | The order was cancelled or withdrawn; see the Incoming list for the message that did it. |
Licensing and evaluation
WorklistBridge provides fully functional, time-limited evaluation licences. Evaluation installations can be converted to commercial licences without reinstalling the software or reconfiguring connected modalities.
The web dashboard continuously displays the current licence status and remaining evaluation period.
During the evaluation period, all licensed functionality is available. Advance expiry notifications are shown, followed by a limited grace period during which existing worklist services remain operational.
- EvaluationOrange notice
- Last 7 daysYellow warning
- 14-day graceRed notice
- ExpiredService stopped
During grace, existing order processing and worklist delivery continue, while configuration changes are locked. After grace, a valid licence is required to resume operation.
After the applicable grace period, an expired licence must be renewed or replaced to restore normal operation.
Annual subscriptions and perpetual licences are also available. Perpetual licences continue operating after the maintenance period ends.
Licence activation and renewal are managed through the dashboard.
Troubleshooting
| Symptom | What to check |
|---|---|
| A service does not start | Windows Event Log, Application, source = the service name. The message names the setting at fault (connection string, DicomUid, MLLP or FHIR tokens). |
| Dashboard shows "Database unavailable" | ConnectionStrings:Sql, SQL Server running, firewall. The page recovers on its own once the database is reachable. |
| Dashboard cannot be opened from another computer | Kestrel:Endpoints:Http:Url uses localhost; change it and open the port. |
| Files stay in the input folder | The licence state; Hl7Import:FilePattern; MinFileAgeSeconds; whether the sender still has the file open. |
| Files end up in the Error folder | The Incoming list: status Failed and its error text. |
| Order is on the Incoming list but not on the worklist | Status ImportedWithRoutingWarnings: add the missing routing rule and ask the RIS to resend. Also check that the device is active and licensed. |
| Modality gets an empty worklist | Set Diagnostics to Debug, query again, and read the reason. See Diagnostics. |
| Modality is refused when connecting | The association allow-list (DicomServer:CallingAeAllowList) and the Event log. |
| Modality shows "?" or garbled names, or rejects the response | The device's WL encoding. Try a single-byte set the modality supports. |
| A cancelled order is still on the worklist | The ORC-1 or ORC-5 code the RIS sends against the cancellation codes. |
| Device cannot be added or activated | The Licence page: the number of devices the licence allows. |