-
I would like to create a channel that detects a pdf file with a filename *.pdf. I would like to build an hl7 message from scratch where the PatientIdentification goes to the PID segment. And The bed goes to PV1. And the pdf file is encapsulated in ORU. I am used to receive hl7 messages and transform them. Not to create from scratch. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is my final message Even after transforming and had adding msg['PID']['PID.2']['PID.2.1']='1' msg['PV1']['PV1.2']['PV1.2.1']='I'; |
Beta Was this translation helpful? Give feedback.
This is my final message
MSH|^~&|App||NUR||20210522200||ORU^R01|10072020530100004593|P|2.5||||AL|ER
Even after transforming and had adding
filename=sourceMap.get('originalFilename');
var parts= filename.split('_');
var pid=parts[0];
var bed=parts[1];
msg['PID']['PID.2']['PID.2.1']='1'
msg['PID']['PID.3']['PID.3.1']=pid;
msg['PV1']['PV1.2']['PV1.2.1']='I';
msg['PV1']['PV1.3']=bed;