← Example Projects

Results Reporting – ORU^R01

ORU^R01OutboundHL7 v2.x

This example goes the other direction from the admission and scheduling examples: instead of parsing an inbound message, ZiKiT generates an outbound ORU^R01 result message directly from rows already sitting in your database – no application code, just a mapping rule.

The Message

The ORU^R01 message ZiKiT generates from the sample database rows:

MSH|^~\&|Sending test|Sending test facility|Receiving test|Receiving test facility|09542013500P|SECURITY|ORU^R01|12345||2.5.1|||
PID|||||John Dow||64121968|M|||Every town, every street||(206)3345232||||||987654321||
OBR|1|845439^GHH OE|1045813^GHH LAB|15545^GLUCOSE|||101020114500|||||||||555-55-5555^PRIMARY^PATRICIA P^^^^MD^^|||||||||F|||||||444-44-4444^HIPPOCRATES^HOWARD H^^^^MD|||||
OBX|1|SN|1554-5^GLUCOSE^POST 12H CFST:MCNC:PT:SER/PLAS:QN||^182|mg/dl|70_105|H|||F||||||||||

How ZiKiT Handles It

  1. Seed the built-in database with one sample record – a script for SQLite, MS SQL Server, or MySQL populates the MESSAGES, N_PATIENT, REPORTS, and REPORT_ITEMS tables with one result.
  2. Open the built-in outbound mapping rule for ORU^R01 in ZiKiT Mapper, switch to outbound mode, and select the ORUR01 event type – the screen shows the destination tables on one side and the message structure on the other.
  3. Run an outbound test against the seeded row and watch the actual HL7 message get generated in a live preview – save it to a file to inspect exactly what will be sent.
  4. For a live end-to-end test, start ZiKiTReceiver and the ZiKiT Runtime Service, then watch the message get generated and delivered automatically once the service polls the database.

Try It Yourself

The seed scripts, mapping rule, and expected output all ship with every ZiKiT evaluation copy.

← Previous: Appointment Scheduling (SIU^S12)  |  Next: Query & Response (QRY^A19) →

DICOM and HL7 are registered trademarks.