It is a bit confusing when it comes to ORCgrp for XML Path. I have tried this one and it works well for OBR segment. Probably you can apply the similar path to OBX iteration to get what you want.
set msg = ##class(EnsLib.HL7.Message).%OpenId(id)
if (msg.GetValueAt("MSH:SendingApplication") [ "APOLLO") {
...
if (auth["AUSNATA") {
set un=msg.GetValueAt("PIDgrp.PID:PatientIDInternalID(1).ID")
set rq=msg.GetValueAt("ORCgrp(1).OBRuniongrp.OBRunion.OBR:FillerField1")
...
}
}
If you need more references for this XMLPath, try this one which I found the most useful:
https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KE…
- Log in to post comments