Modifying HL7 Messages - rbeckman-nextgen/test-mc GitHub Wiki
Created by Jacob Brauer, last modified on Mar 23, 2009
This is my not so valid HL7 v22 sample message:
MSH|^~\&|SUNS1|OPN01|AZIS|CMD|200607261151||ADT^A01|1342749200|P|2.2
EVN|A01|200607270800
PID||4509276047^^58276|0187214^51286||JOHNSON^MARINA||19451027|F|||Townstreet 53PARIS8800^150||777/789456~0476 357737||N|W|||45092711880||""^^""|||||B
ZPA|""|04693^DECROIX^ERNY^DR.|""|""|||""|""|""|""
PV1||O|5501^0113^02|U|00060292||00276^DELBARE^POL^^DR.|00276^DELBARE^POL^^DR.||1901|||N|01||||""|0161782703
PV2|||06^^AZIS||N|||200607270800
ZVI|""""""|06|09|A|02|""||||""|||||""
I can play with it with this transform ECMA script:
// modifying content
msg'MSH''MSH.12' = '2.1'; //now it is a HL7 v21 message
msg'MSH''MSH.5' = 'TEST';
//deleting content
delete msg'ZPA';
delete msg'ZVI';
//adding content
msg'ZZZ''ZZZ.2' = 'Test data';
//put the modified message back to the map
//localMap.put("HL7 XML", msg); //DOESN'T WORK
hl7_xml = msg;
Seems like Confluence scrambled the "['" sequence in the arrays ! ![]() |
Document generated by Confluence on Nov 11, 2019 08:40