The HL7 v2 face
The HL7 v2 face is a second listener in the ferrobridge serve process. It
accepts HL7 v2 messages over MLLP, turns each one into an R4 message Bundle
with the ConceptMaps of the HL7 v2-to-FHIR implementation guide, and writes the
Bundle’s resources into the CDR through the same ingest service the FHIR
facade’s transaction uses. It answers each message with an original-mode
acknowledgment once the CDR has committed or refused it.
No specification governs the hand-off from a message Bundle to the CDR. It is FerroBRIDGE’s own design, and this page states it.
- Turning it on
- The keys
- Devices without TLS
- What happens to one message
- Corrections to the guide
- Sibling resources of one value
- The acknowledgment
- What is logged
- Limits
- Until a mapping context covers the guide’s resources
Turning it on
The face is off until [hl7v2] enabled is true, and it needs the FHIR facade:
the programs, the identity map and the ingest service it writes through are the
facade’s. [hl7v2] enabled with the facade off is a boot error, and so is a
port that cannot be bound. The guide’s message, segment and data type maps are
built into the bridge. Every table value is translated on the [terminology]
server, so load the guide’s package and FerroBRIDGE’s value package into it
(Loading the value maps). Without a [terminology]
section every table value is a counted no-terminology outcome.
[facade]
enabled = true
ehr_policy = "existing"
composition_language = "en"
composition_territory = "GB"
[hl7v2]
enabled = true
listen = "0.0.0.0:2575"
ehr_policy = "create_on_first_write"
profiles = [
{ resource_type = "Observation", profile = "https://example.org/fhir/StructureDefinition/lab-result" },
]
senders = [
{ namespace_id = "NORTHLAB", certificate_subject = "northlab.example.org" },
]
[hl7v2.tls]
certificate_file = "/run/secrets/mllp_chain.pem"
key_file = "/run/secrets/mllp_key.pem"
client_ca_file = "/run/secrets/mllp_clients_ca.pem"
The keys
Every key is settable as FERROBRIDGE__HL7V2__<KEY>, and a list takes TOML
syntax in the variable. The section holds no secret; the TLS key is read
from the file tls.key_file names.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the MLLP listener runs |
listen | 127.0.0.1:2575 | The socket address the TLS listener binds, when a sender sends over TLS |
default_charset | ASCII | The HL7 table 0211 code a message with an empty MSH-18 is read in: ASCII, UNICODE UTF-8, 8859/1 to 8859/9 or 8859/15 |
unmapped_entries | skip_and_count | What an entry no program maps does: skip_and_count commits the others, refuse refuses the message |
ehr_policy | the facade’s | existing or create_on_first_write, for the face alone |
profiles | [] | A list of { resource_type, profile }: the profile a resource of that type claims in meta.profile when the guide’s maps wrote none |
idle_timeout | "5min" | How long a connection may sit between messages before it is closed; "0s" keeps it open |
frame_timeout | "30s" | How long one message may take from its first byte to its trailer before it is answered AR; "0s" waits |
frame_limit | "1MiB" | The largest message one frame may carry |
log_outcomes | false | Whether an AE or AR also logs the counted outcomes of the run, by kind, at debug level |
facility_identifier_issuer | none | The DV_IDENTIFIER.issuer a facility’s namespace id (HD.1) is written under: the issuer the CDR client’s declared facilities name it by. Unset, the identifier names no issuer, and a CDR that checks facilities refuses the commit |
senders | none, required | The sending facilities (MSH-4) the face accepts, at least one, each { namespace_id = "..." } (HD.1) or { universal_id = "...", universal_id_type = "..." } (HD.2 and HD.3) with certificate_subject = "...", the DNS name its client certificate carries in its subject alternative name; a facility a composition names is one of them too. A sender may add origin = "device" with device_identifier_issuer = "..." (the namespace of its device identifiers, one of the CDR client’s device_identifier_issuers) for an analyser feed with no human |
tls.certificate_file | none, required with a TLS sender | The PEM certificate chain the listener serves |
tls.key_file | none, required with a TLS sender | The PEM private key of that chain |
tls.client_ca_file | none, required with a TLS sender | The PEM authorities a sender’s client certificate must chain to |
senders[].transport | tls | How the sender reaches the face: tls on the TLS listener, or plain on [hl7v2.plain] for a device that cannot speak TLS (Devices without TLS) |
senders[].source_addresses | none | The networks a plain sender connects from, in CIDR notation (10.20.0.21/32); required with transport = "plain" and refused otherwise |
plain.bind | none | The socket address the plain listener binds; required while a sender is plain, and never the TLS listener’s address |
The TLS listener serves MLLP over TLS and requires a client certificate that
chains to tls.client_ca_file; a peer without one never completes the
handshake. A message is accepted only on a connection whose certificate
carries the certificate_subject of the sender its MSH-4 names, so a
sender cannot send as another. The bridge refuses to start without a
sender, without the [hl7v2.tls] files while a sender sends over TLS, or
with a TLS sender that names no certificate_subject.
Devices without TLS
Some lab analysers have no TLS stack, no certificate store and no client certificate, so they cannot reach the TLS listener. HL7 MLLP Release 2 defines no security layer of its own, and IHE ITI ATNA (ITI TF-2, ITI-19) adds TLS for a node that supports it. For such a device the face runs a second listener with no TLS, and the device is admitted by the network address it connects from. The exception is FerroBRIDGE’s own design.
[hl7v2]
enabled = true
listen = "0.0.0.0:2575"
senders = [
{ namespace_id = "NORTHLAB", certificate_subject = "northlab.example.org" },
{ namespace_id = "LAB-1", origin = "device", device_identifier_issuer = "urn:example:devices",
transport = "plain", source_addresses = ["10.20.0.21/32", "10.20.0.22/32"] },
]
[hl7v2.plain]
bind = "10.20.0.5:2576"
- A plain sender is
origin = "device"and names itssource_addresses. Each is a network in CIDR notation with no bits set past its prefix; a single analyser is a/32(or a/128for IPv6). - The plain listener accepts a connection only from an address inside some plain sender’s networks. Any other connection is closed before a byte is read, and a warning names the peer address.
- A message is taken only when its MSH-4 names a plain sender whose networks
hold the peer address. Otherwise it is answered
AR, and the connection closes. A TLS sender’s facility on the plain listener is refused the same way, and a plain sender’s facility on the TLS listener is refused for its missing client certificate. - The device identifier in OBX-18 is written under the sender’s
device_identifier_issuer, as for a device on TLS. - The plain listener runs under the same
idle_timeout,frame_timeout,frame_limitand drain as the TLS listener. - The TLS listener runs only while a sender has
transport = "tls", and only then does it need[hl7v2.tls]and its files. A lab whose only senders are plain devices sets no[hl7v2.tls]and gets no TLS listener;listenthen binds nothing.
A lab with one analyser and nothing else:
[hl7v2]
enabled = true
senders = [
{ namespace_id = "LAB-1", origin = "device", device_identifier_issuer = "urn:example:devices",
transport = "plain", source_addresses = ["10.20.0.21/32"] },
]
[hl7v2.plain]
bind = "10.20.0.5:2575"
The bridge refuses to start with a plain sender that is no device, names no
networks or names a certificate_subject; with a network that does not
read; with [hl7v2.plain] and no plain sender, or a plain sender and no
[hl7v2.plain]; with a [hl7v2.tls] that names a file while no sender
sends over TLS; and with a plain.bind on the running TLS listener’s port at
the same address or at an unspecified address (0.0.0.0, [::]) on either
side.
The residual risk
Plain MLLP gives no confidentiality and no integrity on the wire: anyone on the path reads the results and can change them. The sender’s identity is its network address alone, which any host on that network can claim. Put the analyser and the bridge’s plain address on an isolated VLAN that carries nothing else, and let only the analyser reach the plain port. The bridge logs one warning per plain sender at boot, naming its facility and networks, so the route is never silent.
The alternative: a TLS sidecar
A TLS-terminating proxy next to each device keeps the TLS listener the only
way in. The device speaks plain MLLP to the proxy on its own host or cable,
and the proxy connects to the TLS listener with a client certificate of its
own, named as the sender’s certificate_subject. It needs a host per
analyser, a certificate per proxy and someone to run both. Choose it when you
can run it, and the plain listener when you cannot.
What happens to one message
- The listener reads one MLLP Release 1 frame. A frame that is malformed,
larger than
frame_limit, or not complete withinframe_timeoutis answeredARwhen a header can be read from it, and the connection closes. - The message is decoded in the character set its MSH-18 names, split by
position and grouped by its message structure. With
sendersset, a message whose MSH-4 names none of them is answeredARhere and is never mapped. - The guide’s message, segment and data type maps, with FerroBRIDGE’s
corrections over them, write an R4 message Bundle, and each table value is
translated by
ConceptMap/$translateon the terminology server. Every row the run cannot carry is a counted outcome, and every correction the run used is counted once assupplemented. - Every entry whose resource type is listed under
profilesand that claims no profile gets that profile inmeta.profile, and every entry with asubjectorpatientreference and none set references the message’s onePatient. The guide leaves the relationships between the resources of one message to the implementer, and the facade selects a program bymeta.profile, so these two steps are what let a message reach a mapping. - The Bundle’s entries go through the ingest service as one transaction. The
programs are selected as the facade selects them, and the subject is read
from the
Patiententry’s first identifier. Each composition’sFEEDER_AUDITnames where it came from: the sending application (MSH-3) asoriginating_system_audit.system_idand the bridge asfeeder_system_audit.system_id; the placer and filler numbers (ORC-2, ORC-3, OBR-2, OBR-3, typedPLACandFILLfrom HL7 table 0203 and issued by their namespace) asoriginating_system_item_ids; and MSH-10, typed by the message type (ORU^R01), as the firstfeeder_system_item_idsentry. A message without order numbers records none. The health care facility (EVENT_CONTEXT.health_care_facility) is read from the first field that names one: the assigned location’s facility (PV1-3.4), the servicing facility (PV1-39), the ordering facility (ORC-21), and the sending facility (MSH-4) last. A composition with noEVENT_CONTEXTnames it asoriginating_system_audit.locationinstead. With[[hl7v2.senders]]set, a facility no sender names is answeredAEwith anERRat its field naming it, and nothing is committed. The Each facility identifier names its issuer: a namespace id (HD.1)facility_identifier_issuer, a universal id (HD.2) its type (HD.3), and an organisation identifier (XON.10) its assigning authority (XON.6), orfacility_identifier_issuerwhen it names none. performing organisation (OBX-23) isoriginating_system_audit.provider, never the facility or the composer. The composer is the clinician the message names, from the first of EVN-5, OBX-16, ORC-12 and OBR-16 (XCN: the given and family name, XCN.1 as the identifier in the namespace XCN.9), never the committer. With an assigning authority (XCN.9) the composer also carries XCN.1 as an identifier issued by it, typed by XCN.13 orXCN, so a CDR that checks for the professional finds one. A message carrying a result (anOBX) that names no clinician is answeredAE. A device sender’s result is an act of the device: the composer is the equipment instance (OBX-18), or MSH-3 when none, in the sender’sdevice_identifier_issuer, and the device is the originating system. The device’s identifier is a composer identifier issued bydevice_identifier_issuer. - The acknowledgment is sent once the ingest settled, so
AAmeans the CDR holds the message’s compositions.
Corrections to the guide
The guide invites an implementation to add a mapping it needs locally
(mapping_guidelines.md, General Format/Approach). FerroBRIDGE does that with
ConceptMaps in the guide’s own shape that override a map of the guide or add
one it lacks. No specification governs how they load or how they are marked;
that is FerroBRIDGE’s own design, and it works as follows.
- The guide’s maps split by what they are. A message, segment or data type map
says which field goes where, so it is mapping logic: the bridge is built
with every one of them, generated from the pinned
hl7.fhir.uv.v2mappings1.0.0 package, and reads none from a directory or a server. A table map says which code stands for which, so it is terminology: the bridge translates every table value byConceptMap/$translateon the terminology server, and carries no copy of a table. - FerroBRIDGE’s structure corrections are generated into the bridge beside
the guide’s maps. Its value corrections are the FHIR package under
terminology/hl7v2-values/in the repository, which you load into the terminology server beside the guide’s package. - A structure correction with the id or the canonical url of a guide map replaces that map whole. A value correction never takes a guide map’s id, since the terminology server holds one resource per id: a corrected table map is added under an id of its own, and the structure correction that uses it names that id. Any other correction is added.
- Each correction names FerroBRIDGE in its
title. Itsdescriptionnames the guide map it overrides, or the structure it adds, the rows it changes and why, and the tracker issue that records the defect. A structure override keeps the guide map’s id and url, since the guide’s rows name it. Every added map takes a url underhttps://ferrobridge.eu/fhir/v2mappings/, so the terminology server holds the guide’s table map and FerroBRIDGE’s side by side, and the bridge asks for FerroBRIDGE’s by its url. - The run counts each correction it uses once per message, as
supplementednaming the map, so an outcome list shows which values a correction wrote.
Loading the value maps
Load three directories into the terminology server, each the package
directory of a FHIR package: HL7 Terminology (hl7.terminology, which holds
the v2 tables’ code systems and the value sets the guide’s table maps name
as their source), hl7.fhir.uv.v2mappings 1.0.0 (both from the FHIR package
registry), and FerroBRIDGE’s value package, which you pack from
terminology/hl7v2-values/ of the FerroBRIDGE release you run. None of their
ConceptMaps share an id or a canonical url. FerroTERM refuses a translation
through a map whose source value set it does not hold, so HL7 Terminology is
not optional.
The value package’s manifest is kept in the source tree as
fhir-package.json, since a file named package.json is read as an npm
manifest. Pack it, which writes package/package.json beside the maps and
the FHIR package tarball:
scripts/terminology/pack-hl7v2-values.sh /tmp/hl7v2-values
# /tmp/hl7v2-values/package/ and /tmp/hl7v2-values/eu.ferrobridge.hl7v2.values-0.2.0.tgz
Copy package/ (or unpack the tarball) to the server. For FerroTERM, name
all three in terminology.code_systems:
[terminology]
code_systems = [
"/srv/hl7.terminology/package",
"/srv/hl7.fhir.uv.v2mappings/package",
"/srv/ferrobridge-hl7v2-values/package",
]
Then point the bridge’s [terminology] section at the server’s R4 base. The
value package holds these maps:
| Map | Kind | What it changes, and why |
|---|---|---|
table-hl70202-equipment-to-contact-point-system | added | The guide’s table-hl70202-to-contact-point-system corrected: its system group with CP as phone. The guide’s second group maps CP to the contact-point-use code mobile, which the required binding of ContactPoint.system does not hold; the XTN override names this map in place of the guide’s (#1762) |
table-hl70202-to-contact-point-use | added | CP to mobile, the use the guide’s second group meant, which the XTN override writes into ContactPoint.use (#1762) |
table-administrative-gender-to-hl70001, table-name-use-to-hl70200, table-address-use-to-hl70190, table-address-type-to-hl70190, table-contact-point-system-to-hl70202 | added | The FHIR-to-v2 direction the PID inverse translates back through, where reading the guide’s map in reverse gives several codes (#1716) |
The structure corrections built into the bridge:
| Map | Kind | What it changes, and why |
|---|---|---|
datatype-cwe-to-codeableconcept | override | Runs the CWE.1 row into coding[1].code with no condition. The guide gates it on a Narrative-Condition no machine evaluates, so no Coding it writes carries a code (#332) |
datatype-ce-to-codeableconcept | override | The same row for CE, the type HL7 v2.3 and earlier give most coded fields (#332) |
datatype-cf-to-codeableconcept | override | Names the sources CF.1 to CF.13, where the guide names them CWE.1 to CWE.13 so no CF row runs, and runs CF.1 with no condition (#332) |
datatype-cwe-to-quantity | override | Names the targets code, unit and system, where the guide writes Quantity.code and so on, which the element table cannot find under the Quantity the row fills; OBX-6 units are kept (#332) |
datatype-hd-name-to-messageheader-source | override | Drops the row that writes HD.2, a universal ID, into MessageHeader.source.software, which R4 defines as the software’s name (#324) |
datatype-hd-name-to-messageheader-destination | override | Writes HD.1 into destination.name, as the endpoint map does, where the guide writes HD.2 and the two maps disagree (#332) |
datatype-xtn-to-contactpoint | override | Writes XTN.3 into use through table-hl70202-to-contact-point-use when XTN.2 is empty, so a cell phone is a phone in mobile use, and writes a system with no XTN.3 and no XTN.4 as the R4 data-absent-reason extension in the two-row form the MSH-24 rows use, so the ContactPoint keeps cpt-2 (#1762, #1763) |
datatype-pl-to-location | override | Links the six Locations of a PL (bed, room, point of care, floor, building, facility) into one partOf chain in the order the guide’s PL.10 rows give the finest level, where the guide’s partOf rows disagree with it and the building’s names itself; writes the point of care’s mode and physicalType (wa, the code the guide repository’s MDM^T02 sample gives PL.1) at elements Location has; names the point of care and the building in the PL.10 rows as their second set does; and writes PL.9 into the finest valued level (#342, #332) |
segment-msh-to-messageheader | override | With both MSH-3 and MSH-24 valued, MSH-3 names the source and MSH-24 gives its endpoint; with one of them empty, the other runs as the guide writes it (#311) |
segment-orc-to-diagnosticreport | override | Writes ORC-2 into basedOn.identifier (R4 Reference.identifier), where the guide writes basedOn(ServiceRequest) with no map to fill it (#336) |
segment-sch-to-appointment | override | Writes SCH-26 and SCH-27 into basedOn[1].identifier and basedOn[2].identifier for the same reason (#336) |
segment-pid-to-appointment | override | Writes PID-2, PID-3 and PID-4 into the identifier of the Appointment’s patient references, so the message keeps one Patient where the guide’s (Patient) rows would create one per row (#336) |
message-adt-a05-to-bundle, message-adt-a09-to-bundle | override | Names the PD1 row ADT_A05.PD1 and ADT_A09.PD1, where the guide names it ADT_A01.PD1, which leaves ADT_A05 and ADT_A09 with no message map (#332) |
message-adt-a03-to-bundle | added | ADT_A03 (A03 discharge), from the rows of the guide’s ADT_A01 map at the same paths (#256) |
message-bar-p01-to-bundle | added | BAR_P01 (P01 add patient accounts), from the ADT_A01 rows for the segments the two share, the visit segments under VISIT; GT1, UB1, UB2, ACC and DRG have no segment map in the guide and are counted unmapped (#256) |
message-orl-o22-to-bundle | added | ORL_O22 (the laboratory order response), from the guide’s OML_O21 rows under RESPONSE, with the MSA row into MessageHeader.response (#256) |
message-oul-r22-to-bundle | added | OUL_R22 (the specimen-oriented observation), from the guide’s ORU_R01 rows at the OUL_R22 paths; the OBR row into a Specimen is left out, since SPM carries the specimen (#256) |
The operator console’s HL7 v2 page lists every map the face runs on its
ConceptMaps tab, the guide’s and the corrections alike, from
GET /operator/hl7v2/concept-maps.
What the corrections leave to the guide, and what stays open:
- CWE.3 is written into
Coding.systemas the sender sends it (LN). The guide’s comment on that row says a vocabulary table gives the URI, and the guide ships no table map for HL7 table 0396, so the value stays the v2 mnemonic until one exists. - DFT_P03 has no message map. Its defining segment, FT1, has no segment map in the guide, so a map for the rest would acknowledge a charge message without its charges.
- The
PLtoLocationmap’s PL.11 rows write[1-6].identifier[n].assigner, one value spread over six Locations, which the interpreter refuses as it refuses every spreading label, so a location’s assigning authority is counted and not written.
Sibling resources of one value
The PL to Location map writes one Location per level of a patient
location through rows prefixed [1]. to [6]., and links them with
partOf.reference(Location[k]) rows. The guide’s notation says the prefix
applies where the data type is used (mapping_guidelines.md, [n] Notation),
which for a map into a resource is the resource, and leaves the rest to the
implementer. FerroBRIDGE’s own design, for any data type map whose rows
reference a labelled instance of the resource type they fill:
- A
[k].row writes into thek-th sibling of the resource the(Type)row created, and the sibling exists once a value reaches it.[1].is that resource itself. A sibling no value reaches never enters the Bundle. - A
(Location[k])reference between siblings points at siblingkwhen it holds a value. When it holds none, the reference climbs to the sibling thatk’s own row names, and so on up the chain, so a PL without a floor has its point of care in its building, or in its facility. A reference that climbs past the last valued level, loops, or names its own sibling is counted assibling-unresolvedand not written. - Every reference to the family (
Encounter.location.location, and any other reference to the Location the row created) takes the finest valued level: the sibling no other valued sibling is part of. For a PL that is the bed, else the room, else the point of care. It is counted once asfinest-siblingnaming the level. When the chain leaves more than one such sibling, the references stay at the Location the guide’s(Type)row names, or are dropped when that Location holds no value, counted assibling-ambiguous.
The acknowledgment
The codes are HL7 table 0008 in original mode (HL7 v2.5.1 chapter 2
§2.9.2.2). MSA-2 echoes MSH-10, and each ERR carries its table 0357 code in
ERR-3 and the text in ERR-8.
| Outcome | Code | ERR |
|---|---|---|
| The ingest committed the message | AA | none |
| The same message was committed before (same MSH-10 and message type) | AA | none, and nothing is committed again |
| No header can be read at all | none | the connection closes unanswered |
| Delimiters that do not declare themselves, a byte outside the declared character set, a version outside 2.x | AR | 207 or 203 |
| A message structure the definitions or the guide do not carry | AR | 200 |
| A required field or segment missing, an undecoded escape | AE | 101, 100 or 102, located |
MSH-4 names a sending facility senders does not list | AR | 207 at MSH^1^4 |
The connection’s client certificate does not carry the certificate_subject of the sender MSH-4 names | AR | 207 at MSH^1^4 |
On the plain listener, MSH-4 names no plain sender whose source_addresses hold the peer address; the connection then closes | AR | 207 at MSH^1^4 |
| MSH-10 empty | AE | 101 at MSH-10 |
| A result whose message names no clinician, from a sender that is no device | AE | 101 at OBX^1^16 |
| A health care facility no listed sender names | AE | 207 at its field |
A condition of the guide that stops the mapper, a Bundle with no MessageHeader | AE | 101 or 207 |
| No program maps any entry, an entry that does not map, a second subject, a conflict with the identity map | AE | 207, one per refused entry, naming its fullUrl |
| The terminology server refused or did not answer a translation | AR | 207 |
The CDR failed, was unreachable, timed out, or refused the bridge’s credentials (5xx, 401, 403, 407, 408, 429) | AR | 207 |
An AR asks the sender to resend later; an AE says the message itself cannot
be taken as it is. A message that arrives while another delivery of the same
message is still in flight is AE naming the entries, and commits nothing.
Resend it after the first delivery answered. The ERR-8 text is printable ASCII,
so it encodes in every character set a message can declare.
A batch file
A frame that opens with FHS or BHS is read as an HL7 batch file (HL7 v2 chapter 2 §2.10.3): an optional file header, one or more batches each with an optional BHS and BTS around their messages, and an optional file trailer. Each message is decoded, mapped and committed as if it had arrived alone, and the face answers with one response batch that acknowledges every message, in order (§2.10.3.2). The response carries an FHS and an FTS when the file did, a BHS for each batch that had one, and a BTS for every batch whose BTS-1 counts the acknowledgments in it. Each response header swaps the sending and receiving application and facility and echoes the file’s FHS-11 or BHS-11 in its FHS-12 or BHS-12.
A file whose segments stand outside that structure (a second FHS, a segment
before a batch’s first MSH other than its BHS, anything after the FTS) is not
answered, since no header addresses an answer, and a warning names the
segment. A BTS-1 or FTS-1 count that disagrees with the file is logged as a
warning, and the messages are answered all the same. A message in the batch
that cannot be answered (no readable MSH) is left out of the response and
counted in the batch’s log event as unanswered.
What is logged
Each connection runs in an mllp_connection span naming the peer, with the
count of messages it answered (messages) and of messages refused for their
sender (refused), and each
message in an hl7v2_message span naming its MSH-10 and message type. One
event per message names the acknowledgment code and how many entries were
committed and skipped. With log_outcomes an AE or AR also logs, at debug
level, each outcome kind of the run with its count. No byte of a message, no
FHIR resource and no CDR error body reaches a log line; the ERR segments
travel only to the sender. A plain connection refused for its address, and
a plain message refused for its MSH-4, each log a warning naming the peer
address and nothing of the message.
The boot banner has an hl7v2 line naming the address the listener binds and
the CDR and terminology hosts it reaches, and /health/readiness carries an
hl7v2-listener indicator that is down from the stop signal on.
/health/info lists every lane under lanes; the hl7v2 lane carries its
listen address and up, whether the TLS listener accepts connections now
(both absent when no TLS listener runs),
plain with the plain listener’s listen and up when one is configured,
and senders, each with its facility and its transport (tls or
plain). Readiness carries an hl7v2-plain-listener indicator beside the
hl7v2-listener of the TLS one, each only while its listener is configured. The operator API’s running configuration names each sender’s
transport and source_addresses. The
facade’s CapabilityStatement adds one sentence to implementation.description
naming the HL7 v2 face as another inbound path under the same identity and
replay rules, only when the face is configured. On SIGTERM
the listener stops accepting, every message in flight is mapped, committed and
acknowledged, and the connection closes, within the same
[server] shutdown_timeout as the HTTP drain.
Limits
- The face runs in one process. The claims that hold a message in flight and the identity map that recognises a resent one live in that process, so run one process per identity store and point every sender of a feed at it.
- MLLP Release 2’s commit acknowledgment is not spoken, and enhanced-mode acknowledgments are not sent.
- The allow list matches MSH-4, tied to the client certificate of the connection, or for a plain device to the network address it connects from; the sending application (MSH-3) is not checked.
Until a mapping context covers the guide’s resources
No published FHIRconnect context in the tree maps the resources the guide and
its corrections write for the message families (ADT, BAR, ORU, OUL, ORM, OML
and ORL, MDM, SIU, VXU):
the published contexts do not compile in-tree for lack of their templates
(issue #258). Until one does, a message’s Bundle reaches the ingest service and
is refused for lack of a program: the sender gets AE with one ERR per
entry, and nothing is committed. To take messages before then, write a context
for the resources you need, claim its profile under profiles, and load it
with the facade’s mapping set.