Administrator's guide

What every setting does, which values it takes, and what changes when you change it.

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:

ServiceWhat it doesNeeded
HL7ImporterReads HL7 v2 order messages from a folder and, when enabled, from an MLLP (TCP) connection. Stores each order and creates its worklist items.Yes
DicomMwlServerAnswers Modality Worklist queries (C-FIND) and verification requests (C-ECHO) from modalities.Yes
WebDashboardWeb pages for administrators: incoming messages, worklist items, device configuration, diagnostics and the licence.Yes
FhirIntakeReceives 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:

  1. An order message arrives (HL7 file, MLLP or FHIR).
  2. The order is stored. A repeated order with the same placer order number updates the stored order instead of creating a second one.
  3. A routing rule picks the device from a field in the message, such as OBR-18.
  4. A worklist item is created for that device.
  5. 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.json next 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 example Mllp__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

  1. 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.
  2. In every service's appsettings.json, set ConnectionStrings:Sql to that database.
  3. In HL7Importer (and FhirIntake, if used), set DicomUid:Root and DicomUid:SystemId. See Study Instance UIDs.
  4. In HL7Importer, set the three HL7 folders, or enable MLLP.
  5. In DicomMwlServer, set DicomServer:Port and open that port in Windows Firewall for the modalities.
  6. Install and start the services (as Administrator):
    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
    Each service writes start-up problems to the Windows Event Log (Application), under its own name.
  7. Open the dashboard (by default http://localhost:5200 on the server). On the first visit, set the password for the user admin (at least 10 characters).
  8. On the Licence page, copy the installation ID, send it to your supplier, and paste the licence key you receive.
  9. On the Configuration page, add a device for each modality and a routing rule for each value the RIS uses to address it.
  10. 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.
  11. 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:

PageWhat you find there
EventsIncoming 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.
ConfigurationDevices and routing rules. See Devices and Routing rules.
DiagnosticsThe diagnostics mode and the recent worklist queries it recorded. See Diagnostics.
LicenceLicence state, installation ID, licensed devices, and the field to enter a key. See Licence.
Admin guideThis guide.

Import statuses on the Incoming list:

StatusMeaning
ImportedThe order was stored and its worklist items were created or updated.
ImportedWithRoutingWarningsThe 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.
FailedThe 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.

Configuration page with four devices and their routing rules
Configuration page: devices at the top, routing rules below.

Fields set when you add a device

FieldWhat it isOutcome
AliasA 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 AETThe 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 AETThe 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 NameOptional 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.
ModalityThe 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 filterHow 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

ValueOutcome
On (default)A query that does not ask for a scheduled date returns all of the device's current items.
OffA 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.

ValueOutcome
Ignore (default)The calling AE title is not checked. Any modality that queries this WL AET gets the device's items.
IfProvidedIf the query has a calling AE title, it must equal the Device AET. A query without one still gets the items.
RequiredThe 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.

ValueCharactersOutcome
ISO_IR 192UTF-8, all characters (default)Nothing is lost. Use it unless the modality rejects it.
ISO_IR 110Latin-4: Baltic (LV, LT, EE)Baltic letters are kept. Other characters are reduced as described below.
ISO_IR 100Latin-1: Western EuropeCharacters in the set are kept. Others lose their accent ("ฤ€" becomes "A"), a few are spelled out ("รŸ" becomes "ss"), and anything else becomes "?".
ISO_IR 101Latin-2: Central Europe
ISO_IR 144Cyrillic
ISO_IR 6ASCII only, no diacriticsAll 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

ActionOutcome
DeactivateThe 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.
ActivateThe device is served again. Refused if the licence has no free device slot.
DeleteOnly 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:

  1. 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".
  2. 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.
  3. Calling AE title. Each candidate's calling AET filter decides whether it takes part.
  4. Licensed devices. Devices beyond the licensed number are left out.
  5. 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.

FieldWhat to enter
DeviceType the ID, alias or Device AET and pick the device from the list.
Source fieldWhich part of the order to look at. See the table below.
Match valueThe 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.
PriorityA 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 fieldWhere the value comes from
OBR-18HL7 Placer Field 1. The usual choice: most RIS systems put the room or device code here.
OBR-19HL7 Placer Field 2, for senders that use it instead.
IPC-9Scheduled Station AE Title in the IPC segment of OMI^O23 messages.
FHIR-LOCATIONFHIR 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.

SettingDefaultValues and outcome
Hl7Import:CancelOrderControlCodesCA,OC,CR,DC,OD,DRComma-separated ORC-1 codes that cancel. Leave the setting out for the default; set it to an empty string to ignore ORC-1.
Hl7Import:CancelOrderStatusCodesCA,DCComma-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)

SettingDefaultValues and outcome
Hl7Import:InputFolderC:\HL7\InFolder the RIS writes order files to. Created if missing.
Hl7Import:ProcessedFolderC:\HL7\ProcessedImported files (including ImportedWithRoutingWarnings) are moved here.
Hl7Import:ErrorFolderC:\HL7\ErrorFiles that failed are moved here. A file with the same name already there gets a time stamp added.
Hl7Import:FilePattern*.hl7Which files to pick up, for example *.txt. Files are imported in name order.
Hl7Import:PollIntervalSeconds5How often the input folder is checked.
Hl7Import:MinFileAgeSeconds2A 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.

SettingDefaultValues and outcome
Mllp:Enabledfalsetrue starts the listener when HL7Importer starts.
Mllp:BindAddress0.0.0.0IP address to listen on. 0.0.0.0 means all IPv4 interfaces.
Mllp:Port2575TCP port, 1 to 65535.
Mllp:MaxMessageBytes1048576Larger messages are answered AR and not imported. At least 1024.
Mllp:ReceiveTimeoutSeconds30A message that has started must arrive completely within this time, or the connection is closed. Idle time between messages is not limited.
Mllp:AllowedClientsemptyComma-separated sender IP addresses. Empty: any address may connect. Connections from other addresses are refused and logged.

Every message is answered with an ACK:

ACKMeaningSender should
AAImported (a routing warning, if any, is in the ACK text).Continue.
AEThe message cannot be imported, for example an unsupported type or a missing field.Fix the message; resending it unchanged will fail again.
ARTemporary 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.

SettingDefaultValues and outcome
Urlshttp://localhost:8085Address the service listens on. The default only accepts requests from the same server.
FhirIntake:BearerTokensnoneList 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:AllowAnonymousfalsetrue accepts requests without a token. For testing only.
FhirIntake:PatientIdentifierSystememptyThe Patient identifier system that holds the patient ID. Empty: the identifier marked "official", otherwise the first one.
FhirIntake:PlacerIdentifierSystememptyAn 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:NotServedStatusesdraft,on-hold,revoked,entered-in-errorServiceRequest statuses that take the order off the worklist. A later status not in the list brings it back.
FhirIntake:MaxRequestBytes1048576Larger requests are refused (413).
DicomUid:Root, DicomUid:SystemIdnoneMust 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:

SettingDefaultValues and outcome
DicomServer:Port104TCP port for worklist queries. Every modality must use the same port. The supplied file sets 4104.
DicomServer:LogDatasetsfalsetrue writes every query and response dataset to the service log. These contain patient data; use only while troubleshooting.
DicomServer:CallingAeAllowList:Enabledfalsetrue refuses connections from calling AE titles that are not allowed (rejected as "calling AE not recognized", shown in the Event log).
DicomServer:CallingAeAllowList:AllowActiveDevicestrueThe Device AET of every active device is allowed, so a device added on the dashboard needs no extra entry.
DicomServer:CallingAeAllowList:AETitlesemptyFurther 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.

SettingValues and outcome
DicomUid:RootYour organisation's DICOM UID root: digits separated by dots, no leading zeros, for example 1.2.840.99999. Required.
DicomUid:SystemIdA 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.

SettingDefaultValues and outcome
ConnectionStrings:SqlnoneThe 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:Urlhttp://localhost:5200Address 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:Urlnot setAdds 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.

ModeWhat is recordedWhen to use
OffThe standard query record in the Event log only.Normal operation.
DebugAlso the interpreted query, and for queries with no results, how many items each check excluded.A modality gets an empty worklist.
TraceAlso 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.
Diagnostics page in Debug mode, listing recent worklist queries
Diagnostics in Debug mode. Click a query to see the interpreted request and the excluded items.

Common exclusion reasons and what to check:

ReasonCheck
No active device mapped to called AEThe modality's called AE title equals a device's WL AET, and the device is active.
No active device matched called AE + calling AEThe device's calling AET filter and Device AET.
ModalityMismatchThe modality code the device has against the one the modality asks for.
DateOutOfRangeThe scheduled date of the order and the device's range.
NoDateFilterNotAllowedThe modality sends no date and Allow WL without date is off.
MissingScheduledDateThe order has no scheduled start (OBR-36 or TQ1-7), and the modality asks for a date.
StationNameMismatchThe device's Scheduled Station Name against what the modality sends.
Cancelled, NotServableThe 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.

Evaluation licence lifecycle
  1. EvaluationOrange notice
  2. Last 7 daysYellow warning
  3. 14-day graceRed notice
  4. 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

SymptomWhat to check
A service does not startWindows 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 computerKestrel:Endpoints:Http:Url uses localhost; change it and open the port.
Files stay in the input folderThe licence state; Hl7Import:FilePattern; MinFileAgeSeconds; whether the sender still has the file open.
Files end up in the Error folderThe Incoming list: status Failed and its error text.
Order is on the Incoming list but not on the worklistStatus 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 worklistSet Diagnostics to Debug, query again, and read the reason. See Diagnostics.
Modality is refused when connectingThe association allow-list (DicomServer:CallingAeAllowList) and the Event log.
Modality shows "?" or garbled names, or rejects the responseThe device's WL encoding. Try a single-byte set the modality supports.
A cancelled order is still on the worklistThe ORC-1 or ORC-5 code the RIS sends against the cancellation codes.
Device cannot be added or activatedThe Licence page: the number of devices the licence allows.