473,698 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading an xml string

JRD
Greetings,

I would like to search down through the following xml string that is returned to my calling app via a webservice.
What I am trying to get is the following section from the xml string

<component><sec tion><code code="8716-3" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC" displayName="Vi talSigns" /><title>Vital Signs</title><text><ta ble><thead><tr> <th>Date</th><th>Descript ion</th><th>Test</th><th>Result</th></tr></thead><tbody><t r><td rowspan="5">17 Nov 2006 03:39 PM</td><td rowspan="5">rec orded by: jmedici</td></tr><tr><td>BP SYS</td><td>120 mm Hg LUE, Standing</td></tr><tr><td>BP DIAS</td><td>60 mm Hg LUE, Standing</td></tr><tr><td>PUL RATE</td><td>60 bpm L Carotid</td></tr><tr><td>PUL QUAL</td><td>Irregula r</td></tr></tbody></table></text></section></component>

And this is how I am trying to do it: (any help would be appreciated

Dim xpathDoc As Xml.XPath.XPath Document
Dim xmlNavigator As Xml.XPath.XPath Navigator

Dim xmlNI As Xml.XPath.XPath NodeIterator

Try

xpathDoc = New Xml.XPath.XPath Document(TextBo x1.Text)

With xpathDoc

xmlNavigator = .CreateNavigato r

xmlNI = xmlNavigator.Se lect("")

While (xmlNI.MoveNext )

MsgBox(xmlNI.Cu rrent.Name & "=" & xmlNI.Current.V alue)

End While

End With

xmlNI = Nothing

xmlNavigator = Nothing

xpathDoc = Nothing

Catch ex As Exception

Label1.Text = ex.Message

End Try

the xml

<ClinicalDocume nt xmlns="urn:hl7-org:v3" xmlns:voc="urn: hl7-org:v3/voc" xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocat ion="urn:hl7-org:v3 CDA.xsd">
<!--
*************** *************** *************** ***********
CDA Header
*************** *************** *************** ***********
-->
<typeId root="2.16.840. 1.113883.1.3" extension="POCD _HD000040"/>
<templateId root="2.16.840. 1.113883.3.27.1 776"/>
<id extension="c266 " root="2.16.840. 1.113883.19.4"/>
<code code="11488-4" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC" displayName="Co nsultation note"/>
<title>Good Health Clinic Consultation Note</title>
<effectiveTim e value="20000407 "/>
<confidentialit yCode code="N" codeSystem="2.1 6.840.1.113883. 5.25"/>
<languageCode code="en-US"/>
<setId extension="BB35 " root="2.16.840. 1.113883.19.7"/>
<versionNumbe r value="2"/>
<recordTarget >
<patientRole>
<id extension="1234 5" root="2.16.840. 1.113883.19.5"/>
<patient>
<name>
<given>Henry</given>
<family>Levin </family>
<suffix>the 7th</suffix>
</name>
<administrative GenderCode code="M" codeSystem="2.1 6.840.1.113883. 5.1"/>
<birthTime value="19320924 "/>
</patient>
<providerOrgani zation>
<id root="2.16.840. 1.113883.19.5"/>
</providerOrganiz ation>
</patientRole>
</recordTarget>
<author>
<time value="20000407 14"/>
<assignedAuthor >
<id extension="KP00 017" root="2.16.840. 1.113883.19.5"/>
<assignedPerson >
<name>
<given>Robert </given>
<family>Dolin </family>
<suffix>MD</suffix>
</name>
</assignedPerson>
<representedOrg anization>
<id root="2.16.840. 1.113883.19.5"/>
</representedOrga nization>
</assignedAuthor>
</author>
<custodian>
<assignedCustod ian>
<representedCus todianOrganizat ion>
<id root="2.16.840. 1.113883.19.5"/>
<name>Good Health Clinic</name>
</representedCust odianOrganizati on>
</assignedCustodi an>
</custodian>
<legalAuthentic ator>
<time value="20000408 "/>
<signatureCod e code="S"/>
<assignedEntity >
<id extension="KP00 017" root="2.16.840. 1.113883.19.5"/>
<assignedPerson >
<name>
<given>Robert </given>
<family>Dolin </family>
<suffix>MD</suffix>
</name>
</assignedPerson>
<representedOrg anization>
<id root="2.16.840. 1.113883.19.5"/>
</representedOrga nization>
</assignedEntity>
</legalAuthentica tor>
<relatedDocumen t typeCode="RPLC" >
<parentDocument >
<id extension="a123 " root="2.16.840. 1.113883.19.4"/>
<setId extension="BB35 " root="2.16.840. 1.113883.19.7"/>
<versionNumbe r value="1"/>
</parentDocument>
</relatedDocument >
<componentOf>
<encompassingEn counter>
<id extension="KPEN C1332" root="2.16.840. 1.113883.19.6"/>
<effectiveTim e value="20000407 "/>
<encounterParti cipant typeCode="CON">
<time value="20000407 "/>
<assignedEntity >
<id extension="KP00 017" root="2.16.840. 1.113883.19.5"/>
<assignedPerson >
<name>
<given>Robert </given>
<family>Dolin </family>
<suffix>MD</suffix>
</name>
</assignedPerson>
<representedOrg anization>
<id root="2.16.840. 1.113883.19.5"/>
</representedOrga nization>
</assignedEntity>
</encounterPartic ipant>
<location>
<healthCareFaci lity classCode="DSDL OC">
<code code="GIM" codeSystem="2.1 6.840.1.113883. 5.10588" displayName="Ge neral internal medicine clinic"/>
</healthCareFacil ity>
</location>
</encompassingEnc ounter>
</componentOf>
<!--
*************** *************** *************** ***********
CDA Body
*************** *************** *************** ***********
-->
<component>
<structuredBody >
<!--
*************** *************** *************** ***********
History of Present Illness section
*************** *************** *************** ***********
-->
<component>
<section>
<code code="10164-2" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC"/>
<title>Histor y of Present Illness</title>
<text>
<content styleCode="Bold ">Henry Levin, the 7<sup>th</sup>
</contentis a 67 year old male referred for further asthma management. Onset of asthma in his <content revised="delete ">twenties</content>
<content revised="insert ">teens</content>. He was hospitalized twice last year, and already twice this year. He has not been able to be weaned off steroids for the past several months.
</text>
</section>
</component>
<!--
*************** *************** *************** ***********
Past Medical History section
*************** *************** *************** ***********
-->
<component>
<section>
<code code="10153-2" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC"/>
<title>Past Medical History</title>
<text>
<list>
<item>
<content ID="a1">Asthma </content>
</item>
<item>
<content ID="a2">Hyperte nsion (see HTN.cda for details)</content>
</item>
<item>
<content ID="a3">Osteoar thritis,
<content ID="a4">right knee</content>
</content>
</item>
</list>
</text>
<entry>
<observation classCode="COND " moodCode="EVN">
<code code="195967001 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="As thma">
<originalText >
<reference value="#a1"/>
</originalText>
</code>
<statusCode code="completed "/>
<effectiveTim e value="1950"/>
<reference typeCode="XCRPT ">
<externalObserv ation>
<id root="2.16.840. 1.113883.19.1.2 765"/>
</externalObserva tion>
</reference>
</observation>
</entry>
<entry>
<observation classCode="COND " moodCode="EVN">
<code code="59621000" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="HT N">
<originalText >
<reference value="#a2"/>
</originalText>
</code>
<statusCode code="completed "/>
<reference typeCode="SPRT" >
<seperatableI nd value="false"/>
<externalDocume nt>
<id root="2.16.840. 1.113883.19.4.7 89"/>
<text mediaType="mult ipart/related">
<reference value="HTN.cda"/>
</text>
<setId root="2.16.840. 1.113883.19.7.2 465"/>
<versionNumbe r value="1"/>
</externalDocumen t>
</reference>
<reference typeCode="XCRPT ">
<externalObserv ation>
<id root="2.16.840. 1.113883.19.1.2 005"/>
</externalObserva tion>
</reference>
</observation>
</entry>
<entry>
<observation classCode="COND " moodCode="EVN">
<code xsi:type="CD" code="396275006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Os teoarthritis">
<originalText >
<reference value="#a3"/>
</originalText>
</code>
<statusCode code="completed "/>
<targetSiteCo de code="49076000" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Kn ee joint">
<originalText >
<reference value="#a4"/>
</originalText>
<qualifier>
<name code="78615007" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="wi th laterality"/>
<value code="24028007" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="ri ght"/>
</qualifier>
</targetSiteCode>
<reference typeCode="XCRPT ">
<externalObserv ation>
<id root="2.16.840. 1.113883.19.1.1 805"/>
</externalObserva tion>
</reference>
</observation>
</entry>
</section>
</component>
<!--
*************** *************** *************** ***********
Medications section
*************** *************** *************** ***********
-->
<component>
<section>
<code code="10160-0" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC"/>
<title>Medicati ons</title>
<text>
<list>
<item>Theodur 200mg BID</item>
<item>Provent il inhaler 2puffs QID PRN</item>
<item>Prednison e 20mg qd</item>
<item>HCTZ 25mg qd</item>
</list>
</text>
<entry>
<substanceAdmin istration classCode="SBAD M" moodCode="EVN">
<text>Theodur 200mg BID</text>
<effectiveTim e xsi:type="PIVL_ TS" institutionSpec ified="true">
<period value="12" unit="h"/>
</effectiveTime>
<routeCode code="PO" codeSystem="2.1 6.840.1.113883. 5.112" codeSystemName= "RouteOfAdminis tration"/>
<doseQuantity value="200" unit="mg"/>
<consumable>
<manufacturedPr oduct>
<manufacturedLa beledDrug>
<code code="66493003" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Th eophylline"/>
</manufacturedLab eledDrug>
</manufacturedPro duct>
</consumable>
</substanceAdmini stration>
</entry>
<entry>
<substanceAdmin istration classCode="SBAD M" moodCode="EVN">
<text>Provent il inhaler 2puffs QID PRN</text>
<effectiveTim e xsi:type="PIVL_ TS" institutionSpec ified="true">
<period value="6" unit="h"/>
</effectiveTime>
<priorityCode code="PRN"/>
<routeCode code="IPINHL" codeSystem="2.1 6.840.1.113883. 5.112" codeSystemName= "RouteOfAdminis tration" displayName="In halation, oral"/>
<doseQuantity value="2"/>
<consumable>
<manufacturedPr oduct>
<manufacturedLa beledDrug>
<code code="91143003" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Al buterol"/>
</manufacturedLab eledDrug>
</manufacturedPro duct>
</consumable>
</substanceAdmini stration>
</entry>
<entry>
<substanceAdmin istration classCode="SBAD M" moodCode="EVN">
<id root="2.16.840. 1.113883.19.8.1 "/>
<text>Prednison e 20mg qd</text>
<effectiveTim e xsi:type="PIVL_ TS" institutionSpec ified="true">
<period value="24" unit="h"/>
</effectiveTime>
<routeCode code="PO" codeSystem="2.1 6.840.1.113883. 5.112" codeSystemName= "RouteOfAdminis tration"/>
<doseQuantity value="20" unit="mg"/>
<consumable>
<manufacturedPr oduct>
<manufacturedLa beledDrug>
<code code="10312003" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Pr ednisone preparation"/>
</manufacturedLab eledDrug>
</manufacturedPro duct>
</consumable>
</substanceAdmini stration>
</entry>
<entry>
<substanceAdmin istration classCode="SBAD M" moodCode="EVN">
<text>HCTZ 25mg qd</text>
<effectiveTim e xsi:type="PIVL_ TS" institutionSpec ified="true">
<period value="24" unit="h"/>
</effectiveTime>
<routeCode code="PO" codeSystem="2.1 6.840.1.113883. 5.112" codeSystemName= "RouteOfAdminis tration"/>
<consumable>
<manufacturedPr oduct>
<manufacturedLa beledDrug>
<code code="376209006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Hy drochlorothiazi de 25mg tablet"/>
</manufacturedLab eledDrug>
</manufacturedPro duct>
</consumable>
</substanceAdmini stration>
</entry>
</section>
</component>
<!--
*************** *************** *************** ***********
Allergies & Adverse Reactions section
*************** *************** *************** ***********
-->
<component>
<section>
<code code="10155-0" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC"/>
<title>Allergie s and Adverse Reactions</title>
<text>
<list>
<item>Penicilli n - Hives</item>
<item>Aspirin - Wheezing</item>
<item>Codeine - Itching and nausea</item>
</list>
</text>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code xsi:type="CD" code="247472004 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Hi ves"/>
<statusCode code="completed "/>
<entryRelations hip typeCode="MFST" >
<observation classCode="OBS" moodCode="EVN">
<code xsi:type="CD" code="91936005" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Al lergy to penicillin"/>
<statusCode code="completed "/>
</observation>
</entryRelationsh ip>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="56018004" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Wh eezing"/>
<statusCode code="completed "/>
<entryRelations hip typeCode="MFST" >
<observation classCode="OBS" moodCode="EVN">
<code code="293586001 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Al lergy to aspirin"/>
<statusCode code="completed "/>
</observation>
</entryRelationsh ip>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="32738000" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Pr uritis"/>
<statusCode code="completed "/>
<entryRelations hip typeCode="MFST" >
<observation classCode="OBS" moodCode="EVN">
<id root="2.16.840. 1.113883.19.1.2 010"/>
<code code="62014003" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Ad verse reaction to drug">
<qualifier>
<name code="246075003 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="ca usative agent"/>
<value code="1476002" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="co deine"/>
</qualifier>
</code>
<statusCode code="completed "/>
</observation>
</entryRelationsh ip>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="73879007" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Na usea"/>
<statusCode code="completed "/>
<entryRelations hip typeCode="MFST" >
<observation classCode="OBS" moodCode="EVN">
<id root="2.16.840. 1.113883.19.1.2 010"/>
<code code="84100007" codeSystem="2.1 6.840.1.113883. 6.96"/>
</observation>
</entryRelationsh ip>
</observation>
</entry>
</section>
</component>
<!--
*************** *************** *************** ***********
Family History section
*************** *************** *************** ***********
-->
<component>
<section>
<code code="10157-2" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC"/>
<title>Family history</title>
<text>
<list>
<item>Father had fatal MI in his early 50's.</item>
<item>No cancer or diabetes.</item>
</list>
</text>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="22298006" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="MI "/>
<statusCode code="completed "/>
<effectiveTim e value="1970"/>
<subject>
<relatedSubje ct classCode="PRS" >
<code code="FTH" codeSystem="2.1 6.840.1.113883. 5.111"/>
</relatedSubject>
</subject>
<entryRelations hip typeCode="CAUS" >
<observation classCode="OBS" moodCode="EVN">
<code code="399347008 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="de ath"/>
<statusCode code="completed "/>
<effectiveTim e value="1970"/>
</observation>
</entryRelationsh ip>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN" negationInd="tr ue">
<code code="275937001 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Fa mily history of cancer"/>
<statusCode code="completed "/>
<effectiveTim e>
<high value="20000407 " inclusive="true "/>
</effectiveTime>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="160274005 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="No family history of diabetes"/>
<statusCode code="completed "/>
<effectiveTim e>
<high value="20000407 " inclusive="true "/>
</effectiveTime>
</observation>
</entry>
</section>
</component>
<!--
*************** *************** *************** ***********
Social History section
*************** *************** *************** ***********
-->
<component>
<section>
<code code="29762-2" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC"/>
<title>Social History</title>
<text>
<list>
<item>Smoking :: 1 PPD between the ages of 20 and 55, and then he quit.</item>
<item>Alcohol :: rare</item>
</list>
</text>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="266924008 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="ex-heavy cigarette smoker (20-39/day)"/>
<statusCode code="completed "/>
<effectiveTim e>
<low value="1955"/>
<high value="1990"/>
</effectiveTime>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="160625004 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Da te ceased smoking"/>
<statusCode code="completed "/>
<value xsi:type="TS" value="1990"/>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="266917007 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Tr ivial drinker - less than 1/day"/>
<statusCode code="completed "/>
</observation>
</entry>
</section>
</component>
<!--
*************** *************** *************** ***********
Physical Exam section
*************** *************** *************** ***********
-->
<component>
<section>
<code code="11384-5" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC"/>
<title>Physic al Examination</title>
<!--
*************** *************** *************** ***********
Physical Exam - Vital Signs
*************** *************** *************** ***********
-->
<component>
<section>
<code code="8716-3" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC"/>
<title>Vital Signs</title>
<text>
<table>
<tbody>
<tr>
<th>Date / Time</th>
<th>April 7, 2000 14:30</th>
<th>April 7, 2000 15:30</th>
</tr>
<tr>
<th>Height</th>
<td>177 cm (69.7 in)</td>
</tr>
<tr>
<th>Weight</th>
<td>194.0 lbs (88.0 kg)</td>
</tr>
<tr>
<th>BMI</th>
<td>28.1 kg/m2</td>
</tr>
<tr>
<th>BSA</th>
<td>2.05 m2</td>
</tr>
<tr>
<th>Temperature </th>
<td>36.9 C (98.5 F)</td>
<td>36.9 C (98.5 F)</td>
</tr>
<tr>
<th>Pulse</th>
<td>86 / minute</td>
<td>84 / minute</td>
</tr>
<tr>
<th>Rhythm</th>
<td>Regular</td>
<td>Regular</td>
</tr>
<tr>
<th>Respiration s</th>
<td>16 / minute, unlabored</td>
<td>14 / minute</td>
</tr>
<tr>
<th>Systolic</th>
<td>132 mmHg</td>
<td>135 mmHg</td>
</tr>
<tr>
<th>Diastolic </th>
<td>86 mmHg</td>
<td>88 mmHg</td>
</tr>
<tr>
<th>Position / Cuff</th>
<td>Left Arm</td>
<td>Left Arm</td>
</tr>
</tbody>
</table>
</text>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="50373000" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Bo dy height measure"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
<value xsi:type="PQ" value="1.77" unit="m">
<translation value="69.7" code="[in_I]" codeSystem="2.1 6.840.1.113883. 6.8" codeSystemName= "UCUM"/>
</value>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="363808001 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Bo dy weight measure"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
<value xsi:type="PQ" value="194.0" unit="[lb_ap]">
<translation value="88.0" code="kg" codeSystem="2.1 6.840.1.113883. 6.8" codeSystemName= "UCUM"/>
</value>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="60621009" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Bo dy mass index"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
<value xsi:type="RTO_P Q_PQ">
<numerator value="28.1" unit="kg"/>
<denominator value="1" unit="ar"/>
</value>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="301898006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Bo dy surface area"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
<value xsi:type="PQ" value="2.05" unit="ar"/>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="386725007 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Bo dy temperature"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
<value xsi:type="PQ" value="36.9" unit="Cel">
<translation value="98.5" code="[degF]" codeSystem="2.1 6.840.1.113883. 6.8" codeSystemName= "UCUM"/>
</value>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="364075005 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="He art rate"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
<value xsi:type="RTO_P Q_PQ">
<numerator value="86"/>
<denominator value="1" unit="min"/>
</value>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="364075005 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="He art rate"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1530"/>
<value xsi:type="RTO_P Q_PQ">
<numerator value="84"/>
<denominator value="1" unit="min"/>
</value>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="364074009 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Re gularity of heart rhythm"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
<value xsi:type="CD" code="248649006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="He art regular"/>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="364074009 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Re gularity of heart rhythm"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1530"/>
<value xsi:type="CD" code="248649006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="He art regular"/>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="86290005" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Re spiratory rate"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
<value xsi:type="RTO_P Q_PQ">
<numerator value="16"/>
<denominator value="1" unit="min"/>
</value>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="276362002 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Br eathing easily"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="86290005" codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Re spiratory rate"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1530"/>
<value xsi:type="RTO_P Q_PQ">
<numerator value="14"/>
<denominator value="1" unit="min"/>
</value>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="251076008 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Cu ff blood pressure"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1430"/>
<targetSiteCo de code="368208006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Le ft arm"/>
<entryRelations hip typeCode="COMP" >
<observation classCode="OBS" moodCode="EVN">
<code code="271649006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Sy stolic BP"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1530"/>
<value xsi:type="PQ" value="132" unit="mm[Hg]"/>
</observation>
</entryRelationsh ip>
<entryRelations hip typeCode="COMP" >
<observation classCode="OBS" moodCode="EVN">
<code code="271650006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Di astolic BP"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1530"/>
<value xsi:type="PQ" value="86" unit="mm[Hg]"/>
</observation>
</entryRelationsh ip>
</observation>
</entry>
<entry>
<observation classCode="OBS" moodCode="EVN">
<code code="251076008 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Cu ff blood pressure"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1530"/>
<targetSiteCo de code="368208006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Le ft arm"/>
<entryRelations hip typeCode="COMP" >
<observation classCode="OBS" moodCode="EVN">
<code code="271649006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Sy stolic BP"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1530"/>
<value xsi:type="PQ" value="135" unit="mm[Hg]"/>
</observation>
</entryRelationsh ip>
<entryRelations hip typeCode="COMP" >
<observation classCode="OBS" moodCode="EVN">
<code code="271650006 " codeSystem="2.1 6.840.1.113883. 6.96" codeSystemName= "SNOMED CT" displayName="Di astolic BP"/>
<statusCode code="completed "/>
<effectiveTim e value="20000407 1530"/>
<value xsi:type="PQ" value="88" unit="mm[Hg]"/>
</observation>
</entryRelationsh ip>
</observation>
</entry>
</section>
</component>
<component><sec tion><code code="8716-3" codeSystem="2.1 6.840.1.113883. 6.1" codeSystemName= "LOINC" displayName="Vi talSigns" /><title>Vital Signs</title><text><ta ble><thead><tr> <th>Date</th><th>Descript ion</th><th>Test</th><th>Result</th></tr></thead><tbody><t r><td rowspan="5">17 Nov 2006 03:39 PM</td><td rowspan="5">rec orded by: jmedici</td></tr><tr><td>BP SYS</td><td>120 mm Hg LUE, Standing</td></tr><tr><td>BP DIAS</td><td>60 mm Hg LUE, Standing</td></tr><tr><td>PUL RATE</td><td>60 bpm L Carotid</td></tr><tr><td>PUL QUAL</td><td>Irregula r</td></tr></tbody></table></text></section></component>
</structuredBody>
</component>
</ClinicalDocumen t>

Jan 11 '07 #1
1 4274
It looks like you're trying to iterate through the entire document's nodes, matching it yourself when you find it. A more direct route would be to reference the specific node you want via XPath:
myNavigator.Sel ect("//ClinicalDocumen t/Component[Section/Code/@Code='10164-2']")

This says "select the ClinicalDocumen t/Component node whose Section/Code subnode has an attribute where @Code='10164-2'

Jan 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7047
by: fabrice | last post by:
Hello, I've got trouble reading a text file (event viewer dump) by using the getline() function... After 200 - 300 lines that are read correctly, it suddenly stops reading the rest of the file... Thank you to all of you who can help me with this one...
19
10323
by: Lionel B | last post by:
Greetings, I need to read (unformatted text) from stdin up to EOF into a char buffer; of course I cannot allocate my buffer until I know how much text is available, and I do not know how much text is available until I have read it... which seems to imply that multiple reads of the input stream will be inevitable. Now I can correctly find the number of characters available by: |
0
1746
by: Eric Lilja | last post by:
Hello, I have a text file that contains a number of entries describing a recipe. Each entry consists of a number of strings. Here's an example file with only one entry (recipe): Name=Maple Quill Process=Interim Level=10 Technique=Fletching Knowledge=Woodworking Device=Sawhorse Primary components=Refined Maple
21
13085
by: JoKur | last post by:
Hello, First let me tell you that I'm very new to C# and learning as I go. I'm trying to write a client application to communicate with a server (that I didn't write). Each message from the server is on one line (\r\n at end) and is formed as - each of which is seperated by a space. Arguments with spaces in them are enclosed in quotations. So, I'm able to open a connection to the server. When I send a message to
4
3294
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any errors. After reading the ole object from db, I saved it to C: as file1.bmp and displayed on the web. But it can not be displayed. After I manually sent the file to wordpad, it shows
4
8367
by: Jason Kumpf | last post by:
OK I've been staring at this code all day and still with everything I have tried I cannot figure out two problems I am having. Once is why the space limit for the directory I create in the code fails. Second, why the data reader is reading every other record. Here is all of the source code for my little application followed by the contents of the log file that it dumps out:...
2
7531
by: Joe | last post by:
Anyone can suggest the best method of reading XML and adding data to ListView? Here is the xml data structure:: <xml> <site> <url>http://www.yahoo.com</url> <lastupdate></lastupdate> <check>1</check>
7
3062
by: random guy | last post by:
Hi, I'm writing a program which creates an index of text files. For each file it processes, the program records the start and end positions (as returned by tellg()) of sections of interest, and then some time later uses these positions to read the interesting sections from the file.
6
3526
by: efrenba | last post by:
Hi, I came from delphi world and now I'm doing my first steps in C++. I'm using C++builder because its ide is like delphi although I'm trying to avoid the vcl. I need to insert new features to an old program that I wrote in delphi and it's a good opportunity to start with c++.
4
2024
by: dacuteangel04 | last post by:
ok what my program is suppost to do is open a file - Grades.txt and read each line the breaking the lines down w/ tokens so i may later average some numbers an example some of the lines from the text is: 234-42-1111 90 80 23 67 214-77-2222 12 45 80 112-45-7689 99 82 71 45 it has a id number on the left and grades on the right.
0
8608
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9029
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7732
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6522
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.