Skip to content

Troubleshooting: Analyzer Issues

Diagnose and fix analyzer integration problems: connectivity, authentication, barcode matching, and result parsing.

Quick checklist

StepCheck
1Plan includes analyzer integration
2Device exists and is not revoked
3API key correct in middleware
4HTTPS connectivity from analyzer PC
5Barcode on sample matches invoice
6Invoice status allows result entry

HTTP 401 Unauthorized

CauseFix
Missing headerAdd X-Analyzer-Key: <key>
Wrong header nameMust be exact X-Analyzer-Key
Revoked deviceCreate new device; update middleware
Typo in keyRe-copy key from device creation

Test: GET /integrations/v1/health with key header.

HTTP 422 Unprocessable Entity

Parse or matching failure. Response includes logId:

json
{
  "message": "Could not match barcode SAMPLE-12345.",
  "logId": "abc-guid"
}
CauseFix
Barcode not in systemVerify invoice has sample with that barcode
Barcode format mismatchCheck leading zeros, prefixes
Wrong protocolSet device protocol to match message format
Malformed HL7/ASTMValidate message structure

Find details in Admin → Analyzers → Logs using logId.

HTTP 400 Bad Request

CauseFix
Empty bodyMiddleware must send raw message content
Wrong Content-TypeUse text/plain or application/hl7

Results imported but not visible

CheckAction
Wrong invoiceVerify barcode → invoice mapping in log
Invoice statusMay need manual review before display
Parameter mappingTest code in message must match catalog codes
Pending reviewSome configs require manual confirmation

Connectivity issues

SymptomFix
Connection timeoutCheck firewall allows outbound 443
SSL errorInstall trusted CA on middleware PC
DNS failureUse IP or fix DNS on analyzer PC
Proxy blockingWhitelist API domain in proxy

Protocol-specific issues

HL7

IssueFix
Wrong message typeSend ORU^R01
EncodingUse UTF-8
Segment terminatorCR (\r) not LF
Barcode in wrong fieldMap OBR-3 or PID per device manual

ASTM

IssueFix
Checksum errorsEnable checksum in middleware
Frame numberingSequential frame numbers required
Barcode in O recordVerify sample ID field

Plan feature blocked

403 on /lab/analyzers routes:

  • Subscription plan does not include analyzer integration.
  • Upgrade plan or contact platform admin.

Integration endpoint (/integrations/v1/results) still validates API key — device must exist.

Key rotation procedure

  1. Create new device in EaseLab.
  2. Copy new API key.
  3. Update middleware configuration.
  4. Test with health endpoint.
  5. Revoke old device.

Log analysis

Log fieldMeaning
StatusSuccess / Error
BarcodeMatched sample ID
Results countParameters imported
Raw payloadFirst N chars of message (for debug)
ErrorParse or match failure reason

Ease Lab — Cloud Pathology Lab Management