web stats
Create OBR with values - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 11-25-2018, 03:17 PM
mberges mberges is offline
OBX.1 Kenobi
Join Date: Jan 2018
Posts: 44
mberges is on a distinguished road
Default Create OBR with values

Good. I have a function in codetemplate and I want to load in the OBR segment of outbound values. This is the function

function OBR(host){

for (var i = 0; i < host.result.size(); i++)
var index = 1;
xxxx= bbbb.result.get(i);

tmp["OBR"]["OBR.1"] = index++;


This generates me only one OBR
MSH|^~\&|B26342339||DKV|DKV|20181126000730||OUL^R2 2|20181126000730186|P|2.5|1||AL|ER
PID|1|AR900280379P|424324324||BERGES^MENDEZ|Powell |1981-09-02 12:00:00.0|M|||null null null^^boston^^^usa||null^^^null^^^^^^^^6175096995
PV1|1|U|^^4969404306040|||||||SUR|||||||||23435436 ^^^clinic_A^^^^^lab_B
ORC|CO|78|575487487||CA||||20110602120415|||123^Je kyll|||||SUR^surgery
OBR|1||575487487 |CREAT|||||||||||||||||||||A

Can you help me
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 03:32 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation