Package com.framed.interop.hl7
Class Hl7v2Protocol
java.lang.Object
com.framed.core.Service
com.framed.io.protocol.Protocol
com.framed.interop.hl7.Hl7v2Protocol
Inbound HL7 v2 source: runs an MLLP server, parses received
ORU/ADT messages and
publishes their observations onto the bus in the standard "<className>.<deviceID>.<channelID>.parsed"
convention, so existing reactors and dispatchers consume external data transparently.-
Field Summary
Fields inherited from class com.framed.core.Service
ADDRESS_REGISTRY_SUFFIX, eventBus, formatter, logger -
Constructor Summary
ConstructorsConstructorDescriptionHl7v2Protocol(String id, EventBus eventBus, int port, String mappingPath, String inboundDeviceId, boolean ingestADT) -
Method Summary
Methods inherited from class com.framed.core.Service
addressRegistry, announceAddress, subscribeToAnnouncements
-
Constructor Details
-
Hl7v2Protocol
public Hl7v2Protocol(String id, EventBus eventBus, int port, String mappingPath, String inboundDeviceId, boolean ingestADT) - Parameters:
id- the service ideventBus- the event busport- MLLP listen port (0for an ephemeral port; seegetPort())mappingPath- path to the interop mapping JSONinboundDeviceId- device id used for inbound channels whose mapping key has no deviceingestADT- whether to publish ADT patient demographics
-
-
Method Details
-
connect
public void connect()Description copied from class:ProtocolEstablishes a connection using the specific protocol implementation and starts the configured data export. Concrete subclasses must provide the logic for connecting. -
getPort
public int getPort()- Returns:
- the actual bound port (useful when constructed with port 0).
-
stop
public void stop()Description copied from class:ServiceStops the service.By default, this method logs a message indicating that no stop logic is implemented. Subclasses should override this method to provide custom shutdown behavior when necessary.
-
