Skip to content

Working with multiple HL7 messages in one Json message #4889

Answered by pacmano1
rutledj asked this question in Q&A
Discussion options

You must be logged in to vote
var serializationProperties = SerializerFactory.getDefaultSerializationProperties('HL7V2');

$c('msg1', new XML(SerializerFactory.getSerializer('HL7V2', serializationProperties, null).toXML(escape(msg['acknowledgement']))))
$c('msg2', new XML(SerializerFactory.getSerializer('HL7V2', serializationProperties, null).toXML(escape(msg['message_data']))))

$c('msg1_PID3', $c('msg1')['PID']['PID.3']['PID.3.1'].toString())
$c('msg2_PID3', $c('msg2')['PID']['PID.3']['PID.3.1'].toString())

Replies: 13 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@pacmano1
Comment options

@pacmano1
Comment options

@pacmano1
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@pacmano1
Comment options

@pacmano1
Comment options

Comment options

You must be logged in to vote
1 reply
@pacmano1
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rutledj
Comment options

You must be logged in to vote
2 replies
@pacmano1
Comment options

@pacmano1
Comment options

Comment options

You must be logged in to vote
1 reply
@pacmano1
Comment options

Comment options

You must be logged in to vote
1 reply
@jonbartels
Comment options

Comment options

You must be logged in to vote
1 reply
@pacmano1
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants