Re: display an array of telephonnumbers
hi,
okay, now i know that i have to make is a "javascript step" in the transformer.
But how can i acces the step? or can someone tell me how to use it the right way?
i am still trying...
Jörg
Announcement
Collapse
No announcement yet.
display an array of telephonnumbers
Collapse
X
-
Re: display an array of telephonnumbers
Hello,
i tried to build a new Transformer like this:
for (var i=0; i<2;i++){
msg['PID']['PID.13']['XTN.1'][i].toString()
}
But this is not correct, do you have any suggestions? (i<2 is just for testing)
Jörg
Leave a comment:
-
Re: display an array of telephonnumbers
Thank you,
i`ll try this immediately.
Jörg Orlowski
Leave a comment:
-
Re: display an array of telephonnumbers
What do you need exactlty
to get each one of the numbers you need a for loop
for (...){
msg['PID']['PID.13']['XTN.1'][i].toString()
}
Leave a comment:
-
display an array of telephonnumbers
Hello,
in HL7 it is possible to put Arrays od telephonnumbers in the statement.
Now my question: if i receive such a statement, how can i built a transformer to get all telephonenumbers.
If i make a transformer e.g msg['PID']['PID.13']['XTN.1'].toString()
as result i get something like this:
<XTN.1 xmlns="urn:hl7-org:v2xml">(301)444-5473B951</XTN.1>
<XTN.1 xmlns="urn:hl7-org:v2xml">(240)765-1455</XTN.1>
<XTN.1 xmlns="urn:hl7-org:v2xml">(972)666-1992x6444C Press 2</XTN.1>
<XTN.1 xmlns="urn:hl7-org:v2xml">(240)222-1212</XTN.1>
<XTN.1 xmlns="urn:hl7-org:v2xml">(301)444-5473B951</XTN.1>
Thanks
Jörg OrlowskiTags: None
Leave a comment: