Announcement

Collapse
No announcement yet.

display an array of telephonnumbers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • orlowjb3
    replied
    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

    Leave a comment:


  • orlowjb3
    replied
    Re: display an array of telephonnumbers

    Hello,
    i tried to build a new Transformer like this:

    for (var i=0; i<2;i++){
    msg[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.1&#039;][i].toString()
    }

    But this is not correct, do you have any suggestions? (i<2 is just for testing)

    Jörg

    Leave a comment:


  • orlowjb3
    replied
    Re: display an array of telephonnumbers

    Thank you,
    i`ll try this immediately.

    Jörg Orlowski

    Leave a comment:


  • albertosaez
    replied
    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[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.1&#039;][i].toString()
    }

    Leave a comment:


  • orlowjb3
    started a topic display an array of telephonnumbers

    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[&#039;PID&#039;][&#039;PID.13&#039;][&#039;XTN.1&#039;].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 Orlowski
Working...
X