/ SONDA · PROTOCOLS

The trading desk and the hospital, on the same desk.

FIX with a real session layer, not a message formatter. HL7 v2 over MLLP in both directions, every segment named. FHIR and OData read the way their specifications mean them, with verdicts and paging. All of it from a project in Sonda, next to the REST calls that surround it.

FIX 4.0 – 5.0 SP2 HL7 2.1 – 2.8.2 FHIR ODATA V4

At a glance

FIXSonda's own engine, initiator role. FIX 4.0 to 4.4 and FIXT.1.1 for 5.0, SP1 and SP2. About 1,600 fields and 117 message types from the QuickFIX dictionaries.
HL7 v2Sender and listener in one item. Twelve versions, 2.1 to 2.8.2, every segment, field, repetition and component named. 16 MB messages.
FHIRA CapabilityStatement becomes a project: search, read, vread, create, update, patch, delete, history, $operations. OperationOutcome and Bundle verdicts.
OData$metadata becomes a project: entity sets with their query options, CRUD, navigations, functions and actions. Error, count and nextLink verdicts.
/ ONE PROJECT, TWO WORLDS

A venue on the left, an engine on the right, the same tree in the middle.

A FIX session and an HL7 listener are items of a project like a REST request is: they share its environment, its auth, its people and its log. The venue sees a counterparty that keeps its sequence, answers its test requests and honours its resends. The hospital engine sees a sender that fills MSH properly and waits for the ACK carrying its control ID — and a listener on a port of its own that acknowledges the way the sender asked.

Every field of every message is named with its value's meaning, on both sides: 54=1 is Buy, PID-5 is the patient's name.

The request and answer panes
/ FIX

A session, kept the way a venue expects.

TCP or TLS with a client certificate, because many venues ask for one. CompIDs and SubIDs, a logon with username and password masked in the log, ResetOnLogon, extra logon fields. Heartbeats and test requests when the counterparty goes quiet; the counterparty's test requests answered. Resend requests honoured — application messages resent with PossDupFlag, administrative ones gap-filled. Gaps in what arrives asked for again. Sequence resets followed, logout both ways, sequence numbers set by hand while disconnected. Garbled messages reported and skipped.

# FIX.4.4 · SONDA → VENUE1 · TLS, client certificate → 35=A Logon 98=0 108=30 141=Y ← 35=A Logon session up · seq 1/1 → 35=D NewOrderSingle 11=ORD-7F2A 55=ACME 54=1 Buy 38=100 40=2 Limit 44=42.10 ← 35=8 ExecutionReport 11=ORD-7F2A 39=0 New 150=0 ← 35=8 ExecutionReport 11=ORD-7F2A 39=2 Filled 32=100 31=42.10 ← 35=1 TestRequest 112=TR-19 → 35=0 Heartbeat 112=TR-19 · 3 ms round trip ← 35=2 ResendRequest 7=12 16=0 → 35=4 SequenceReset 123=Y gap fill · admin → 35=D resent · 43=Y PossDup # filter the log by ClOrdID or symbol · build a cancel from this order

The composer writes what the venue reads.

Tags by number or by name, in the order you give them, repeating groups as written. "now" and "today" filled in. Rows or text, one tag=value per line. Templates for a new order, a cancel, a replace, an order status, market data, a quote request, a security list and a mass status. Paste a message with SOH, pipe or ^A separators. Build a cancel from an order already in the log.

The answer is the reply that matches.

Wait for the reply matched by a shared tag — ClOrdID, MDReqID — with a Reject or a BusinessMessageReject counted as the answer. Every field named, with its value's meaning: 54=1 Buy. Filter the log by ClOrdID or by symbol. A test request with its round-trip time.

/ HL7 V2

Send to the engine. Listen like one.

MLLP over TCP or TLS to Mirth, Rhapsody, Cloverleaf, an EHR or a lab — and a listener that opens a port of its own and acknowledges the way the sender asked.

Sending

Empty MSH fields filled in: the time, a control ID, the applications and facilities, the processing ID, the version. "now" in any date field. Templates for ADT A01, A04, A08 and A03, ORM O01, ORU R01, SIU S12, VXU V04 and MDM T02.

The ACK

The ACK carrying your control ID is waited for: AA, AE or AR, or the enhanced-mode CA, CE and CR. Filter the log by control ID or by patient.

Listening

A port for this computer only or for the LAN, up to 32 peers. Answers AA, AE, AR or nothing, with an MSA-3 text, in original or enhanced mode as MSH-15 and MSH-16 ask. An ERR segment on errors and rejects from 2.5 on. A flow can produce the acknowledgement.

Reading

UTF-8 or ISO-8859-1, MSH-18 respected, escapes handled. A parsed view with every segment, field, repetition and component named for the message's version, coded values explained, problems flagged.

/ FHIR AND ODATA

Read as the specification means it.

Both import into a project from the server's own description, and both get a verdict the HTTP status cannot give.

FHIR · inImport a CapabilityStatement and get every interaction the server declares: search, read, vread, create, update, patch, delete, history, $operations.
FHIR · verdictsAn OperationOutcome in a 200 is named by its worst issue. A Bundle shows its count and a Next page button that follows the link.
OData v4 · inImport $metadata and get entity sets with $filter, $select and the rest, the CRUD calls, navigations, functions and actions.
OData v4 · verdicts@odata.error is a verdict, @odata.count is shown, @odata.nextLink is a button.
/ LOCKFLARE SONDA

FIX, HL7, FHIR and OData, in the free edition.

Listed, line by line →