GoogleCloudPlatform / mllp

The MLLP (Short for "Minimal Lower Layer Protocol") adapter is a component that runs on GKE (https://cloud.google.com/kubernetes-engine/), receives HL7v2 messages via MLLP/TCP, and forwards messages received to Cloud HL7v2 API.
Apache License 2.0
68 stars 29 forks source link

HL7 ingest error message #21

Closed lidpee closed 3 years ago

lidpee commented 4 years ago

Hi

How can we get the payload data for hl7 ingest error message. Sometimes the care system get NACK with AE and the error message. How to get that payload to check what is the problem. Below given a sample NACK received by the care system.

MSA|AE|Q2827650752T3305190973|unsupported encoding in message, only ASCII and UTF-8 are supported

Thanks & Regards Dileep. O

paulchurch commented 3 years ago

The API doesn't store payloads of messages it rejects, but you can log them by configuring an intermediate component such as the MLLP adapter or an interface engine to store failed messages in a location of your choice.

The most common cause of "unsupported encoding" is an unexpected line delimiter, as the encoding is typically the last field in the MSH segment and parsing can run into the next segment if the line is not split.