I have a xml file with the following elements:
<telecom use="HP" value="tel:+1-512-555-1212" />
<telecom use="WP" value="tel:+1-512-123-4567" />
this returns the value of the first node:
$qrda.ClinicalDocument.recordTarget.patientRole.telecom[0].value
However I need to be able to return the node where use="HP" and I'm not certain they'll always be in the correct order.
Any help is much appreciated.