{"name": "medications-and-results-edges", "comment": null, "input": {"file": "fixtures/in/medications-and-results-edges.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/medications-and-results-edges.xml", "text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ClinicalDocument xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n  <realmCode code=\"US\"/>\n  <typeId root=\"2.16.840.1.113883.1.3\" extension=\"POCD_HD000040\"/>\n  <templateId root=\"2.16.840.1.113883.10.20.22.1.1\" extension=\"2015-08-01\"/>\n  <templateId root=\"2.16.840.1.113883.10.20.22.1.2\" extension=\"2015-08-01\"/>\n  <id root=\"2.16.840.1.113883.19.5.99999.1\" extension=\"CCD-2025-0902-E\"/>\n  <code code=\"34133-9\" displayName=\"Summarization of Episode Note\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n  <title>Continuity of Care Document</title>\n  <effectiveTime value=\"20250902090000-0500\"/>\n  <confidentialityCode code=\"N\" codeSystem=\"2.16.840.1.113883.5.25\"/>\n  <languageCode code=\"en-US\"/>\n  <recordTarget>\n    <patientRole>\n      <id root=\"2.16.840.1.113883.19.5.99999.2\" extension=\"MRN-448120\"/>\n      <patient>\n        <name use=\"L\">\n          <given>Robin</given>\n          <family>Ahmadi</family>\n        </name>\n        <administrativeGenderCode code=\"F\" codeSystem=\"2.16.840.1.113883.5.1\"/>\n        <birthTime value=\"19780214\"/>\n      </patient>\n    </patientRole>\n  </recordTarget>\n  <author>\n    <time value=\"20250902090000-0500\"/>\n    <assignedAuthor>\n      <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\n      <representedOrganization>\n        <name>Riverside Community Hospital</name>\n      </representedOrganization>\n    </assignedAuthor>\n  </author>\n  <custodian>\n    <assignedCustodian>\n      <representedCustodianOrganization>\n        <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\n        <name>Riverside Community Hospital</name>\n      </representedCustodianOrganization>\n    </assignedCustodian>\n  </custodian>\n  <component>\n    <structuredBody>\n      <component>\n        <section>\n          <templateId root=\"2.16.840.1.113883.10.20.22.2.1.1\" extension=\"2014-06-09\"/>\n          <code code=\"10160-0\" displayName=\"History of Medication use Narrative\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Medications</title>\n          <text>\n            <table border=\"1\" width=\"100%\">\n              <thead>\n                <tr><th>Medication</th><th>Start</th></tr>\n              </thead>\n              <tbody>\n                <tr>\n                  <td ID=\"med-e-1\">lisinopril <content styleCode=\"Bold\">10 mg</content> tablet</td>\n                  <td>March 1, 2024</td>\n                </tr>\n              </tbody>\n            </table>\n          </text>\n          <entry typeCode=\"DRIV\">\n            <substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.16\" extension=\"2014-06-09\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.5\" extension=\"MED-3401\"/>\n              <statusCode code=\"active\"/>\n              <effectiveTime xsi:type=\"IVL_TS\">\n                <low value=\"20240301\"/>\n              </effectiveTime>\n              <consumable>\n                <manufacturedProduct classCode=\"MANU\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.23\" extension=\"2014-06-09\"/>\n                  <manufacturedMaterial>\n                    <code code=\"314076\" displayName=\"lisinopril 10 MG Oral Tablet\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\">\n                      <originalText>\n                        <reference value=\"#med-e-1\"/>\n                      </originalText>\n                    </code>\n                  </manufacturedMaterial>\n                </manufacturedProduct>\n              </consumable>\n            </substanceAdministration>\n          </entry>\n        </section>\n      </component>\n      <component>\n        <section>\n          <templateId root=\"2.16.840.1.113883.10.20.22.2.3.1\" extension=\"2015-08-01\"/>\n          <code code=\"30954-2\" displayName=\"Relevant diagnostic tests/laboratory data Narrative\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Results</title>\n          <text>\n            <paragraph>Glucose 182 mg/dL (high, abnormal; at most 99 mg/dL). Protein in urine: negative. Creatinine 0.9 mg/dL, 80 umol/L (at least 0.6 mg/dL).</paragraph>\n          </text>\n          <entry typeCode=\"DRIV\">\n            <organizer classCode=\"BATTERY\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.1\" extension=\"2015-08-01\"/>\n              <id root=\"2.16.840.1.113883.19.5.99999.6\" extension=\"LABP-9500\"/>\n              <code code=\"24323-8\" displayName=\"Comprehensive metabolic 2000 panel - Serum or Plasma\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n              <statusCode code=\"completed\"/>\n              <effectiveTime value=\"20250901083000-0500\"/>\n              <component>\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.2\" extension=\"2015-08-01\"/>\n                  <id root=\"2.16.840.1.113883.19.5.99999.6\" extension=\"LAB-9501\"/>\n                  <code code=\"2345-7\" displayName=\"Glucose [Mass/volume] in Serum or Plasma\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n                  <statusCode code=\"completed\"/>\n                  <effectiveTime value=\"20250901083000-0500\"/>\n                  <value xsi:type=\"PQ\" value=\"182\" unit=\"mg/dL\"/>\n                  <interpretationCode code=\"H\" displayName=\"High\" codeSystem=\"2.16.840.1.113883.5.83\" codeSystemName=\"ObservationInterpretation\"/>\n                  <interpretationCode code=\"A\" displayName=\"Abnormal\" codeSystem=\"2.16.840.1.113883.5.83\" codeSystemName=\"ObservationInterpretation\"/>\n                  <referenceRange>\n                    <observationRange>\n                      <value xsi:type=\"IVL_PQ\">\n                        <high value=\"99\" unit=\"mg/dL\"/>\n                      </value>\n                    </observationRange>\n                  </referenceRange>\n                </observation>\n              </component>\n              <component>\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.2\" extension=\"2015-08-01\"/>\n                  <id root=\"2.16.840.1.113883.19.5.99999.6\" extension=\"LAB-9502\"/>\n                  <code code=\"20454-5\" displayName=\"Protein [Presence] in Urine by Test strip\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n                  <statusCode code=\"completed\"/>\n                  <effectiveTime value=\"20250901\"/>\n                  <value xsi:type=\"CD\" code=\"260385009\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                </observation>\n              </component>\n              <component>\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.2\" extension=\"2015-08-01\"/>\n                  <id root=\"2.16.840.1.113883.19.5.99999.6\" extension=\"LAB-9503\"/>\n                  <code code=\"2160-0\" displayName=\"Creatinine [Mass/volume] in Serum or Plasma\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n                  <statusCode code=\"completed\"/>\n                  <effectiveTime value=\"20250901083000-0500\"/>\n                  <value xsi:type=\"PQ\" value=\"0.9\" unit=\"mg/dL\"/>\n                  <value xsi:type=\"PQ\" value=\"80\" unit=\"umol/L\"/>\n                  <referenceRange>\n                    <observationRange>\n                      <value xsi:type=\"IVL_PQ\">\n                        <low value=\"0.6\" unit=\"mg/dL\"/>\n                      </value>\n                    </observationRange>\n                  </referenceRange>\n                </observation>\n              </component>\n            </organizer>\n          </entry>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/medications-and-results-edges.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/medications-and-results-edges.ttl", "text": "@prefix bridge: <https://ns.cascadeprotocol.org/bridge/v1-draft#> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix cascade: <https://ns.cascadeprotocol.org/cascade#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n@prefix obo: <http://purl.obolibrary.org/obo/> .\n@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n@prefix prov: <http://www.w3.org/ns/prov#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix org: <http://www.w3.org/ns/org#> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> prov:wasGeneratedBy _:a7458ea7e42784660785239f88c9af2e ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:a7458ea7e42784660785239f88c9af2e prov:qualifiedAssociation _:f6d6e53a25000d98523fe7f7b5baaf8e .\n_:f6d6e53a25000d98523fe7f7b5baaf8e prov:agent <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> ;\n\tprov:hadRole cascade:CustodianRole .\n<ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> prov:specializationOf <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:1dd50a816f0cba9e41e173b0afb68e05 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:b1d4725bc8e44153fbf642942d39b0be .\n_:b1d4725bc8e44153fbf642942d39b0be a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='custodian' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='assignedCustodian' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='representedCustodianOrganization' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n<ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> foaf:name \"Riverside Community Hospital\" ;\n\torg:identifier \"urn:oid:2.16.840.1.113883.19.5.99999.3\"^^<urn:ietf:rfc:3986> .\n<ni:///sha-256;lP3f4o3M8nphBHgP_EYSMt2UsSza115eE9FjOIgJb7E> cascade:prescribedOrReported \"reportedUse\" ;\n\tcascade:medicationUseStartDate \"2024-03-01\"^^xsd:date ;\n\tcascade:workflowStatus \"active\" ;\n\tcascade:drugName \"lisinopril 10 mg tablet\" ;\n\tcascade:rxNormCode <https://ns.cascadeprotocol.org/codes/rxnorm/314076> .\n<ni:///sha-256;2HSBe9gcO3m8A4DeyL_Vp1cUao7OvGgSgxOIJxdNR38> cascade:noteOrDocumentTitle \"Results\" ;\n\tcascade:noteOrDocumentDate \"2025-09-02T09:00:00-05:00\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeName \"Relevant diagnostic tests/laboratory data Narrative\" ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/30954-2> ;\n\tcascade:narrativeText \"Glucose 182 mg/dL (high, abnormal; at most 99 mg/dL). Protein in urine: negative. Creatinine 0.9 mg/dL, 80 umol/L (at least 0.6 mg/dL).\" .\n<ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> foaf:familyName \"Ahmadi\" ;\n\tfoaf:givenName \"Robin\" ;\n\tcascade:dateOfBirth \"1978-02-14\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> a cascade:PatientProfile ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.2:MRN-448120> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.2:MRN-448120\" .\n<ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> prov:specializationOf <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:b8347550eb611352533629e9beccf264 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='recordTarget' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='patientRole' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:55b37c6b408ef040186f8597fbc0421d bridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> ;\n\toa:hasSelector _:b8347550eb611352533629e9beccf264 .\n<urn:uuid:f9b941bf-ddd9-8f31-b52f-0dceff55d9c1> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.5:MED-3401> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.5:MED-3401\" .\n<ni:///sha-256;lP3f4o3M8nphBHgP_EYSMt2UsSza115eE9FjOIgJb7E> prov:specializationOf <urn:uuid:f9b941bf-ddd9-8f31-b52f-0dceff55d9c1> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:e96a89ebf4328929801fd2a769a0278e a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='substanceAdministration' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:2ee6117431350868a2b8d8c235eb3011 bridge:arrivedAs <ni:///sha-256;lP3f4o3M8nphBHgP_EYSMt2UsSza115eE9FjOIgJb7E> ;\n\toa:hasSelector _:e96a89ebf4328929801fd2a769a0278e .\n<urn:uuid:b5c37a40-cc7e-8b48-8f27-d22d4ec9e133> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.6:LAB-9503> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.6:LAB-9503\" .\n<ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto> prov:specializationOf <urn:uuid:b5c37a40-cc7e-8b48-8f27-d22d4ec9e133> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n<ni:///sha-256;JyWf7A4DzKuZKnGj4pOGN6uJgYVcQn-8stskqUIg6Rk> obo:RO_0002351 <urn:uuid:b5c37a40-cc7e-8b48-8f27-d22d4ec9e133> .\n_:aa98ef14b712732ce8037ed85d7fa864 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][2]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='organizer' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][3]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:69f933e51ee186d09f05ab9a4abf64e1 bridge:arrivedAs <ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto> ;\n\toa:hasSelector _:aa98ef14b712732ce8037ed85d7fa864 .\n<urn:uuid:3807a595-5efa-8053-bb45-8000a249574c> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.6:LAB-9502> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.6:LAB-9502\" .\n<ni:///sha-256;SrvIOWkgHfeQ5J8d3jjes6fZNs7TAhTlZdyAcbLOyJo> prov:specializationOf <urn:uuid:3807a595-5efa-8053-bb45-8000a249574c> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n<ni:///sha-256;JyWf7A4DzKuZKnGj4pOGN6uJgYVcQn-8stskqUIg6Rk> obo:RO_0002351 <urn:uuid:3807a595-5efa-8053-bb45-8000a249574c> .\n_:d18cae64ccc5b622c7155b42e2c162bc a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][2]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='organizer' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][2]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:c9dc170bb0f53ba57833393fca359f19 bridge:arrivedAs <ni:///sha-256;SrvIOWkgHfeQ5J8d3jjes6fZNs7TAhTlZdyAcbLOyJo> ;\n\toa:hasSelector _:d18cae64ccc5b622c7155b42e2c162bc .\n<urn:uuid:9b21b4f1-3794-847b-a2f3-bbbda44ea5b1> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.6:LAB-9501> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.6:LAB-9501\" .\n<ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k> prov:specializationOf <urn:uuid:9b21b4f1-3794-847b-a2f3-bbbda44ea5b1> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n<ni:///sha-256;JyWf7A4DzKuZKnGj4pOGN6uJgYVcQn-8stskqUIg6Rk> obo:RO_0002351 <urn:uuid:9b21b4f1-3794-847b-a2f3-bbbda44ea5b1> .\n_:d3dc984e0c62c36adf340325d794fee6 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][2]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='organizer' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b3646669fa778d3a97648b3e1884d2e1 bridge:arrivedAs <ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k> ;\n\toa:hasSelector _:d3dc984e0c62c36adf340325d794fee6 .\n<urn:uuid:118dd917-3280-8276-8b13-bc392905f37e> a cascade:DiagnosticReport ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.6:LABP-9500> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.6:LABP-9500\" .\n<ni:///sha-256;JyWf7A4DzKuZKnGj4pOGN6uJgYVcQn-8stskqUIg6Rk> prov:specializationOf <urn:uuid:118dd917-3280-8276-8b13-bc392905f37e> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:a538d11508cfc45ae939c9d2b8fb426c a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][2]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='organizer' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:faf06f560d385b6f4c04275f270c0d88 bridge:arrivedAs <ni:///sha-256;JyWf7A4DzKuZKnGj4pOGN6uJgYVcQn-8stskqUIg6Rk> ;\n\toa:hasSelector _:a538d11508cfc45ae939c9d2b8fb426c .\n<urn:uuid:e6ef11b0-b0b3-86c7-8fd9-06fb55223149> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;2HSBe9gcO3m8A4DeyL_Vp1cUao7OvGgSgxOIJxdNR38> prov:specializationOf <urn:uuid:e6ef11b0-b0b3-86c7-8fd9-06fb55223149> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:b0b4c3f1adf6d69176d659e5aebfed6c a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][2]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b8ea5d3b16f8ae9bcf02a9d788d4a5b7 bridge:arrivedAs <ni:///sha-256;2HSBe9gcO3m8A4DeyL_Vp1cUao7OvGgSgxOIJxdNR38> ;\n\toa:hasSelector _:b0b4c3f1adf6d69176d659e5aebfed6c .\n<ni:///sha-256;JyWf7A4DzKuZKnGj4pOGN6uJgYVcQn-8stskqUIg6Rk> cascade:reportEffectiveTime \"2025-09-01T08:30:00-05:00\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"final\" ;\n\tcascade:reportName \"Comprehensive metabolic 2000 panel - Serum or Plasma\" ;\n\tcascade:reportCode <http://loinc.org/rdf/24323-8> .\n<ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto> dct:identifier \"LAB-9503\"^^<urn:oid:2.16.840.1.113883.19.5.99999.6> .\n<ni:///sha-256;SrvIOWkgHfeQ5J8d3jjes6fZNs7TAhTlZdyAcbLOyJo> dct:identifier \"LAB-9502\"^^<urn:oid:2.16.840.1.113883.19.5.99999.6> .\n<ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k> dct:identifier \"LAB-9501\"^^<urn:oid:2.16.840.1.113883.19.5.99999.6> .\n<ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto> cascade:resultQuantity <ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto#value> .\n<ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto#value> cascade:decimalValue 0.9 ;\n\tcascade:writtenValue \"0.9\" ;\n\tcascade:ucumUnit \"mg/dL\" .\n<ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto> cascade:referenceRangeLow <ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto#reference-low> .\n<ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto#reference-low> cascade:decimalValue 0.6 ;\n\tcascade:writtenValue \"0.6\" ;\n\tcascade:ucumUnit \"mg/dL\" .\n<ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k> cascade:resultQuantity <ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k#value> .\n<ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k#value> cascade:decimalValue \"182\"^^xsd:decimal ;\n\tcascade:writtenValue \"182\" ;\n\tcascade:ucumUnit \"mg/dL\" .\n<ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k> cascade:referenceRangeHigh <ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k#reference-high> .\n<ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k#reference-high> cascade:decimalValue \"99\"^^xsd:decimal ;\n\tcascade:writtenValue \"99\" ;\n\tcascade:ucumUnit \"mg/dL\" .\n<ni:///sha-256;z09aIPWkzSk4TO8Vw7XkW5UOcQzV3Sn_QSoi9YAFLto> cascade:workflowStatus \"final\" ;\n\tcascade:testName \"Creatinine [Mass/volume] in Serum or Plasma\" ;\n\tcascade:resultClinicallyRelevantTime \"2025-09-01T08:30:00-05:00\"^^xsd:dateTime ;\n\tcascade:referenceRangeText \">=0.6 mg/dL\" ;\n\tcascade:testCode <http://loinc.org/rdf/2160-0> ;\n\tcascade:resultValueKind cascade:QuantityResultValue .\n<ni:///sha-256;SrvIOWkgHfeQ5J8d3jjes6fZNs7TAhTlZdyAcbLOyJo> cascade:resultClinicallyRelevantTime \"2025-09-01\"^^xsd:date ;\n\tcascade:testName \"Protein [Presence] in Urine by Test strip\" ;\n\tcascade:workflowStatus \"final\" ;\n\tcascade:testCode <http://loinc.org/rdf/20454-5> ;\n\tcascade:resultValueKind cascade:CodedResultValue ;\n\tcascade:resultValueCode <http://snomed.info/id/260385009> .\n<ni:///sha-256;IEBuHkNfs9RQGjgbVr-IIIazuKhQtq2BKFDqztXVD4k> cascade:referenceRangeText \"<=99 mg/dL\" ;\n\tcascade:resultClinicallyRelevantTime \"2025-09-01T08:30:00-05:00\"^^xsd:dateTime ;\n\tcascade:testName \"Glucose [Mass/volume] in Serum or Plasma\" ;\n\tcascade:workflowStatus \"final\" ;\n\tcascade:testCode <http://loinc.org/rdf/2345-7> ;\n\tcascade:resultInterpretationCode <https://ns.cascadeprotocol.org/codes/observationinterpretation/A> , <https://ns.cascadeprotocol.org/codes/observationinterpretation/H> ;\n\tcascade:resultValueKind cascade:QuantityResultValue .\n_:faf06f560d385b6f4c04275f270c0d88 oa:hasSource <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasGeneratedBy _:37d946fca0a0a51f89d39beed1b49c56 .\n_:c9dc170bb0f53ba57833393fca359f19 oa:hasSource <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasGeneratedBy _:37d946fca0a0a51f89d39beed1b49c56 .\n_:1dd50a816f0cba9e41e173b0afb68e05 oa:hasSource <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasGeneratedBy _:37d946fca0a0a51f89d39beed1b49c56 .\n_:b3646669fa778d3a97648b3e1884d2e1 oa:hasSource <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasGeneratedBy _:37d946fca0a0a51f89d39beed1b49c56 .\n_:69f933e51ee186d09f05ab9a4abf64e1 oa:hasSource <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasGeneratedBy _:37d946fca0a0a51f89d39beed1b49c56 .\n_:b8ea5d3b16f8ae9bcf02a9d788d4a5b7 oa:hasSource <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasGeneratedBy _:37d946fca0a0a51f89d39beed1b49c56 .\n_:55b37c6b408ef040186f8597fbc0421d oa:hasSource <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasGeneratedBy _:37d946fca0a0a51f89d39beed1b49c56 .\n_:2ee6117431350868a2b8d8c235eb3011 oa:hasSource <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:wasGeneratedBy _:37d946fca0a0a51f89d39beed1b49c56 .\n<ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:6f12c8ada60046a37d185651cd04931e .\n_:9074130eca5b8f8678b505517b9e04eb prov:agent _:1fb345f8e0b684a6d5b598f2a14dbe4f ;\n\tprov:hadRole cascade:TransmitterRole .\n_:6f12c8ada60046a37d185651cd04931e prov:qualifiedAssociation _:9074130eca5b8f8678b505517b9e04eb .\n_:1fb345f8e0b684a6d5b598f2a14dbe4f <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:37d946fca0a0a51f89d39beed1b49c56 <http://www.w3.org/2000/01/rdf-schema#label> \"C-CDA download\" ;\n\tprov:startedAtTime \"2025-07-02T09:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> a prov:Entity .\n_:37d946fca0a0a51f89d39beed1b49c56 a prov:Activity ;\n\tprov:used <ni:///sha-256;xATCSl4iOFUpJ_5-RLYk9aeMPxXJl6GN8g1kjIMxwTY> ;\n\tprov:qualifiedAssociation _:cdcca6b76662076d01a72509a1f641e8 .\n_:cdcca6b76662076d01a72509a1f641e8 prov:hadPlan _:229156253ea13076f01acc6105de111c .\n_:229156253ea13076f01acc6105de111c a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"ccda\" ;\n\t<http://purl.org/pav/version> \"0.1.0\" .\n_:cdcca6b76662076d01a72509a1f641e8 prov:agent _:12630d2d6edb4181e468fc442ae3978e .\n_:12630d2d6edb4181e468fc442ae3978e a prov:SoftwareAgent ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"Cascade Bridge for Rust\" ;\n\t<http://purl.org/pav/version> \"0.1.0\" .\n"}, "expectedFindings": {"file": "fixtures/findings/medications-and-results-edges.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/medications-and-results-edges.ttl", "text": "@prefix ccda: <https://ns.cascadeprotocol.org/adapter/ccda/v1-draft#> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n_:e864e6b1525e58cea2de2eb8d5cdc773 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:da43a69b11fb532c568a3b65349a0e45 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e864e6b1525e58cea2de2eb8d5cdc773 oa:refinedBy _:da43a69b11fb532c568a3b65349a0e45 .\n_:bf1dd925e80f54ba79082b3cc979b3d4 a oa:Annotation ;\n\toa:hasTarget _:f18909298e1fe3450e3116d278415a14 .\n_:f18909298e1fe3450e3116d278415a14 oa:hasSource <../in/medications-and-results-edges.xml> ;\n\toa:hasSelector _:e864e6b1525e58cea2de2eb8d5cdc773 .\n_:bf1dd925e80f54ba79082b3cc979b3d4 oa:hasBody ccda:documentAuthor ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='author' and namespace-uri()='urn:hl7-org:v3']\" ;\n\tsh:resultSeverity sh:Info .\n_:ff06b2ab9ad5fbedc8e8f2768b08ef0f a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:bc1fff24508e23042ea7a8d1c1c2d3e6 oa:hasSource <../in/medications-and-results-edges.xml> .\n_:ff06b2ab9ad5fbedc8e8f2768b08ef0f oa:refinedBy _:da9bebc2bb3ce9b4b92263bf6522ea3f .\n_:da9bebc2bb3ce9b4b92263bf6522ea3f a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:bc1fff24508e23042ea7a8d1c1c2d3e6 oa:hasSelector _:ff06b2ab9ad5fbedc8e8f2768b08ef0f .\n_:c4bff2062ab24d9008a1f1a5257d662 oa:hasTarget _:bc1fff24508e23042ea7a8d1c1c2d3e6 .\n_:a5426355c328e9075d3f1be05c4dff02 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:aa266139055c5a569a5c0a4002aabc79 oa:hasSource <../in/medications-and-results-edges.xml> .\n_:a5426355c328e9075d3f1be05c4dff02 oa:refinedBy _:e42e8f689f7185845064e43d8f7a3630 .\n_:e42e8f689f7185845064e43d8f7a3630 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:aa266139055c5a569a5c0a4002aabc79 oa:hasSelector _:a5426355c328e9075d3f1be05c4dff02 .\n_:c67c510f48e305bae513d7af93889420 oa:hasTarget _:aa266139055c5a569a5c0a4002aabc79 .\n_:c4bff2062ab24d9008a1f1a5257d662 sh:resultSeverity sh:Info .\n_:c67c510f48e305bae513d7af93889420 sh:resultSeverity sh:Info .\n_:c4bff2062ab24d9008a1f1a5257d662 a oa:Annotation ;\n\toa:hasBody ccda:documentId ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2.16.840.1.113883.19.5.99999.1|CCD-2025-0902-E\" .\n_:c67c510f48e305bae513d7af93889420 a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:e2e87829258ca68a25bfd8421a5b7ece a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f4c3d751d764e65f3a08b7864e031f2e oa:hasSource <../in/medications-and-results-edges.xml> .\n_:e2e87829258ca68a25bfd8421a5b7ece oa:refinedBy _:ad96441d2c83d5c14da8c2acb468f64b .\n_:ad96441d2c83d5c14da8c2acb468f64b a oa:XPathSelector ;\n\trdf:value \"*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f4c3d751d764e65f3a08b7864e031f2e oa:hasSelector _:e2e87829258ca68a25bfd8421a5b7ece .\n_:df1c0c7a3d03783efc02ae12533cb610 oa:hasTarget _:f4c3d751d764e65f3a08b7864e031f2e ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody ccda:narrative ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Medication\\nStart\\nMarch 1, 2024\" .\n_:c6bab94c281c7a73a6f564237825c9ad a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:ed06664aa4c144bde5e2d4167bf18e93 oa:hasSource <../in/medications-and-results-edges.xml> .\n_:c6bab94c281c7a73a6f564237825c9ad oa:refinedBy _:fff33d4191f0eb5f361a1c3e49595a30 .\n_:fff33d4191f0eb5f361a1c3e49595a30 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][2]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='organizer' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][3]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:ed06664aa4c144bde5e2d4167bf18e93 oa:hasSelector _:c6bab94c281c7a73a6f564237825c9ad .\n_:ea311b407efb47e5a0d1a54d443e23e6 oa:hasTarget _:ed06664aa4c144bde5e2d4167bf18e93 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody ccda:onlyFirstCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"value\" .\n", "empty": false}}