Showing posts with label PID. Show all posts
Showing posts with label PID. Show all posts

Monday, 20 April 2015

Handling incoming repeating PID internal identifier fields using MIRTH Connect

Having previously explored how you can handle repeating segments in MIRTH Connect, I found that you can also handle repeating fields in the same way.

Suppose you have a PID segment with an internal patient ID list field containing 3 IDs, as in this example data:

PID|1|9081717170830.105031|9081717170830.105031~9081717170830.105032~9081717170830.105033||VELD^MOSHE^JESSIE^^^AE||19750626|M|||1954 WINTER PK  48^FRESNO^CLOVIS^CA^93612^USA|||||||731-31-6668|731-31-6668


You can use the same 'for each' code structure in the destination transformer that you use for repeating segments:


This will create an object in the channel map which you can use in a javascript destination step to write to the database...


Three records will be created for the above HL7 segment...