Originally posted by Mike Kim
Hi All, I'm an XML novice/Cloverleaf veteran trying to convert XML to HL7. I have successfully (I think) imported my DTD and have started to write my Xlate. However, there are some XML elements with attributes that I need for the Xlate. For example:
<Physicians>
<Physician ENGINE="Attend" ID="27762">
<Name Last="DODSON" First="THOMAS" MI="" Suffix="" Prefix=""/>
</Physician>
<Physician ENGINE="Refer" ID="99993">
<Name Last="UNKNOWN" First="PHYSICIAN" MI="" Suffix="" Prefix=""/>
</Physician>
<Physician ENGINE="Admit" ID="27762">
<Name Last="DODSON" First="THOMAS" MI="" Suffix="" Prefix=""/>
</Physician>
<Physician ENGINE="PCP" ID="99993">
<Name Last="UNKNOWN" First="PHYSICIAN" MI="" Suffix="" Prefix=""/>
</Physician>
</Physicians>
I need to grab the Physician ENGINE=Attend and stuff it in PV1.7, ENGINE=Admit to PV1.17, etc. In my Xlate, do I iterate through Physicians and use an IF for ENGINE=Attend? Does anyone have an example of the syntax?
Thanks and have a nice weekend!
Mike