Package com.framed.interop.hl7
Class InboundRouter
java.lang.Object
com.framed.interop.hl7.InboundRouter
Parses inbound HL7 messages and routes their content onto the FRAMED bus as EAV observations,
returning the HL7 acknowledgement to send back.
ORU^R01— eachOBXis reverse-mapped by code to a FRAMED channel and handed to theObservationSink.ADT^A01/ADT^A08— when ADT ingestion is enabled, patient demographics are published as EAV observations under thePatientclass.
Well-formed messages are answered with AA; a parse failure yields AE.
-
Constructor Summary
ConstructorsConstructorDescriptionInboundRouter(ObservationMapping mapping, ObservationSink sink, String inboundDeviceId, boolean ingestAdt) -
Method Summary
-
Constructor Details
-
InboundRouter
public InboundRouter(ObservationMapping mapping, ObservationSink sink, String inboundDeviceId, boolean ingestAdt) - Parameters:
mapping- the bidirectional code mappingsink- where decoded observations are deliveredinboundDeviceId- fallback device id when a mapping key has no device componentingestAdt- whether to publish ADT demographics
-
-
Method Details
-
handle
Handles one raw HL7 message.- Parameters:
raw- the received HL7 message text- Returns:
- the acknowledgement message text to send back
-
