{"name": "narrative-reference-without-hash", "comment": null, "input": {"file": "fixtures/in/narrative-reference-without-hash.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/narrative-reference-without-hash.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\"/>\n  <id root=\"2.16.840.1.113883.3.88.11.32.1\" extension=\"NARRATIVE-NO-HASH-FIXTURE-001\"/>\n  <code code=\"34133-9\" displayName=\"Summarization of Episode Note\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n  <title>Narrative References Without a Hash</title>\n  <effectiveTime value=\"20260327120000+0000\"/>\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.4.1\" extension=\"000-00-0000\"/>\n      <patient>\n        <name use=\"L\"><given>Jane</given><family>Doe</family></name>\n        <administrativeGenderCode code=\"F\" codeSystem=\"2.16.840.1.113883.5.1\"/>\n        <birthTime value=\"19650101\"/>\n      </patient>\n    </patientRole>\n  </recordTarget>\n  <author>\n    <time value=\"20250901090000-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.3.1\"/>\n          <code code=\"30954-2\" displayName=\"Relevant Diagnostic Tests and/or Laboratory Data\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Results</title>\n          <text>\n            <content ID=\"\">text of the element with an empty ID</content>\n            <content ID=\"n1\">text of the element n1, test</content>\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\"/>\n              <id root=\"2.16.840.1.113883.3.88.11.32.1\" extension=\"NOHASH-ORG-001\"/>\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              <component>\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.2\"/>\n                  <id root=\"2.16.840.1.113883.3.88.11.32.1\" extension=\"NOHASH-OBS-001\"/>\n                  <code code=\"2345-7\" displayName=\"Glucose [Mass/volume] in Serum or Plasma\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\">\n                    <originalText>\n                      <reference value=\"n1\"/>\n                    </originalText>\n                  </code>\n                  <statusCode code=\"completed\"/>\n                  <effectiveTime value=\"20260101\"/>\n                  <value xsi:type=\"PQ\" value=\"95\" unit=\"mg/dL\"/>\n                </observation>\n              </component>\n            </organizer>\n          </entry>\n        </section>\n      </component>\n      <component>\n        <section>\n          <templateId root=\"2.16.840.1.113883.10.20.22.2.5.1\"/>\n          <code code=\"11450-4\" displayName=\"Problem List\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Problems</title>\n          <text>\n            <content ID=\"n2\">text of the element n2, problem</content>\n          </text>\n          <entry typeCode=\"DRIV\">\n            <act classCode=\"ACT\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.3\"/>\n              <id root=\"2.16.840.1.113883.3.88.11.32.1\" extension=\"NOHASH-CONCERN-001\"/>\n              <code code=\"CONC\" codeSystem=\"2.16.840.1.113883.5.6\"/>\n              <statusCode code=\"active\"/>\n              <entryRelationship typeCode=\"SUBJ\">\n                <observation classCode=\"OBS\" moodCode=\"EVN\">\n                  <templateId root=\"2.16.840.1.113883.10.20.22.4.4\"/>\n                  <id root=\"2.16.840.1.113883.3.88.11.32.1\" extension=\"NOHASH-PROBLEM-001\"/>\n                  <code code=\"55607006\" displayName=\"Problem\" codeSystem=\"2.16.840.1.113883.6.96\"/>\n                  <statusCode code=\"completed\"/>\n                  <effectiveTime value=\"20240501\"/>\n                  <value xsi:type=\"CD\" code=\"73211009\" displayName=\"Diabetes mellitus\" codeSystem=\"2.16.840.1.113883.6.96\">\n                    <originalText>\n                      <reference value=\"#\"/>\n                    </originalText>\n                  </value>\n                </observation>\n              </entryRelationship>\n            </act>\n          </entry>\n        </section>\n      </component>\n      <component>\n        <section>\n          <templateId root=\"2.16.840.1.113883.10.20.22.2.7.1\"/>\n          <code code=\"47519-4\" displayName=\"History of Procedures Document\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>Procedures</title>\n          <text>\n            <content ID=\"n3\">text of the element n3, procedure</content>\n          </text>\n          <entry typeCode=\"DRIV\">\n            <procedure classCode=\"PROC\" moodCode=\"EVN\">\n              <templateId root=\"2.16.840.1.113883.10.20.22.4.14\"/>\n              <id root=\"2.16.840.1.113883.3.88.11.32.1\" extension=\"NOHASH-PROC-001\"/>\n              <code code=\"73761001\" displayName=\"Colonoscopy\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\">\n                <originalText>\n                  <reference value=\"other.xml#n3\"/>\n                </originalText>\n              </code>\n              <statusCode code=\"completed\"/>\n              <effectiveTime value=\"20240214\"/>\n            </procedure>\n          </entry>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/narrative-reference-without-hash.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/narrative-reference-without-hash.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<ni:///sha-256;0cb19JrCtQA3TlBj23Uf_-x7VRi3hNTvzhTs75B_Yjg> cascade:onsetDate \"2024-05-01\"^^xsd:date ;\n\tcascade:conditionName \"Diabetes mellitus\" ;\n\tcascade:clinicalStatus \"active\" ;\n\tcascade:conditionCategory \"problem-list-item\" ;\n\tcascade:conditionCode <http://snomed.info/id/73211009> .\n<urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> a cascade:Organization .\n<ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> prov:wasGeneratedBy _:a09c0a759e7e185bd634b5e7d43aee51 ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:a09c0a759e7e185bd634b5e7d43aee51 prov:qualifiedAssociation _:d2c37b5ceba8ae2ef5e4d7e021ebf01a .\n_:d2c37b5ceba8ae2ef5e4d7e021ebf01a 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_:ed9dc4bfe0b5fb479788b81ed2fca961 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:be3e4b16b7297e295b6846d04e60f50 .\n_:be3e4b16b7297e295b6846d04e60f50 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;r5AnYbDQ9atF8vtdBl1amFCRm8ozlB6I5iY9uWwF1Nk> cascade:noteOrDocumentTitle \"Procedures\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeName \"History of Procedures Document\" ;\n\tcascade:noteOrDocumentDate \"2026-03-27T12:00:00Z\"^^xsd:dateTime ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/47519-4> ;\n\tcascade:narrativeText \"text of the element n3, procedure\" .\n<ni:///sha-256;96SkqUBlNrSzh896DzRgrLC_7uo0Br4JaYPgcWWPiag> cascade:noteOrDocumentDate \"2026-03-27T12:00:00Z\"^^xsd:dateTime ;\n\tcascade:noteOrDocumentTitle \"Problems\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeName \"Problem List\" ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/11450-4> ;\n\tcascade:narrativeText \"text of the element n2, problem\" .\n<ni:///sha-256;SyBnVPSKh_j73gDkuo2HdXNkquXH7iR58korIEg-zlo> cascade:noteOrDocumentTypeName \"Relevant Diagnostic Tests and/or Laboratory Data\" ;\n\tcascade:noteOrDocumentTitle \"Results\" ;\n\tcascade:noteOrDocumentDate \"2026-03-27T12:00:00Z\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/30954-2> ;\n\tcascade:narrativeText \"text of the element with an empty ID text of the element n1, test\" .\n<ni:///sha-256;jaWerT6ZaqppGZ45BAvapG6Aao5fY6_W3CpKqwcPTsw> foaf:familyName \"Doe\" ;\n\tfoaf:givenName \"Jane\" ;\n\tcascade:dateOfBirth \"1965-01-01\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<ni:///sha-256;HXuD_-QKvG1D3dSer_HwBmb7_uEw3eNV-sXXCXHSBgU> cascade:workflowStatus \"completed\" ;\n\tcascade:procedureDate \"2024-02-14\"^^xsd:date ;\n\tcascade:procedureName \"Colonoscopy\" ;\n\tcascade:procedureCode <http://snomed.info/id/73761001> .\n<urn:uuid:0ce9c097-11a3-8404-9fce-5d77006a22e6> a cascade:PatientProfile ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.4.1:000-00-0000> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.4.1:000-00-0000\" .\n<ni:///sha-256;jaWerT6ZaqppGZ45BAvapG6Aao5fY6_W3CpKqwcPTsw> prov:specializationOf <urn:uuid:0ce9c097-11a3-8404-9fce-5d77006a22e6> .\n_:f0b26250d16f08de82dbd6a32892ac04 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_:fb1c7a1f8d11bb37b89318e7bf81bf44 bridge:arrivedAs <ni:///sha-256;jaWerT6ZaqppGZ45BAvapG6Aao5fY6_W3CpKqwcPTsw> ;\n\toa:hasSelector _:f0b26250d16f08de82dbd6a32892ac04 .\n<urn:uuid:9adc6826-3de2-807c-a98a-c46fed12d620> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.3.88.11.32.1:NOHASH-PROBLEM-001> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.3.88.11.32.1:NOHASH-PROBLEM-001\" .\n<ni:///sha-256;0cb19JrCtQA3TlBj23Uf_-x7VRi3hNTvzhTs75B_Yjg> prov:specializationOf <urn:uuid:9adc6826-3de2-807c-a98a-c46fed12d620> ;\n\tcascade:patient <urn:uuid:0ce9c097-11a3-8404-9fce-5d77006a22e6> .\n_:ab73d6e5189854eda4b6c2752af55fbd 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()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:22eea5f6b420755b428b4ab18fa3ae9c bridge:arrivedAs <ni:///sha-256;0cb19JrCtQA3TlBj23Uf_-x7VRi3hNTvzhTs75B_Yjg> ;\n\toa:hasSelector _:ab73d6e5189854eda4b6c2752af55fbd .\n<urn:uuid:9ac5607d-4a04-8250-afcf-4a8f3f858af8> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.3.88.11.32.1:NOHASH-PROC-001> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.3.88.11.32.1:NOHASH-PROC-001\" .\n<ni:///sha-256;HXuD_-QKvG1D3dSer_HwBmb7_uEw3eNV-sXXCXHSBgU> prov:specializationOf <urn:uuid:9ac5607d-4a04-8250-afcf-4a8f3f858af8> ;\n\tcascade:patient <urn:uuid:0ce9c097-11a3-8404-9fce-5d77006a22e6> .\n_:dd0317cfec38d1b24671faf2c4419e9 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'][3]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='procedure' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a11a47d7c1cd3a238c477c4ae83b9b9 bridge:arrivedAs <ni:///sha-256;HXuD_-QKvG1D3dSer_HwBmb7_uEw3eNV-sXXCXHSBgU> ;\n\toa:hasSelector _:dd0317cfec38d1b24671faf2c4419e9 .\n<urn:uuid:ddd03ccb-e784-8ef0-95ac-3178316d8b46> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.3.88.11.32.1:NOHASH-OBS-001> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.3.88.11.32.1:NOHASH-OBS-001\" .\n<ni:///sha-256;sYJSkkeAkQ2Gk5eeqAVR8rvqLgmoj_kNpC4GfUIS0zU> prov:specializationOf <urn:uuid:ddd03ccb-e784-8ef0-95ac-3178316d8b46> ;\n\tcascade:patient <urn:uuid:0ce9c097-11a3-8404-9fce-5d77006a22e6> .\n<ni:///sha-256;dYXLGhs0XR0iLUDN8L6uF4MrgjvQvsZ8cp1V-W__WyA> obo:RO_0002351 <urn:uuid:ddd03ccb-e784-8ef0-95ac-3178316d8b46> .\n_:a1ffdf1af6a823e95828a0488cf48480 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()='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_:30b386fa2314ece517239dde8c3c1941 bridge:arrivedAs <ni:///sha-256;sYJSkkeAkQ2Gk5eeqAVR8rvqLgmoj_kNpC4GfUIS0zU> ;\n\toa:hasSelector _:a1ffdf1af6a823e95828a0488cf48480 .\n<urn:uuid:0a8a8aa1-aee0-8073-b477-03fdf4f7e94a> a cascade:DiagnosticReport ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.3.88.11.32.1:NOHASH-ORG-001> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.3.88.11.32.1:NOHASH-ORG-001\" .\n<ni:///sha-256;dYXLGhs0XR0iLUDN8L6uF4MrgjvQvsZ8cp1V-W__WyA> prov:specializationOf <urn:uuid:0a8a8aa1-aee0-8073-b477-03fdf4f7e94a> ;\n\tcascade:patient <urn:uuid:0ce9c097-11a3-8404-9fce-5d77006a22e6> .\n_:ae8cb7f7b24e2bc4a056494cc0ceb364 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()='organizer' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:9b41e49bb4821bf023d712077258b771 bridge:arrivedAs <ni:///sha-256;dYXLGhs0XR0iLUDN8L6uF4MrgjvQvsZ8cp1V-W__WyA> ;\n\toa:hasSelector _:ae8cb7f7b24e2bc4a056494cc0ceb364 .\n<urn:uuid:cd1f5ee7-afea-8175-b870-6e7648eded92> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;r5AnYbDQ9atF8vtdBl1amFCRm8ozlB6I5iY9uWwF1Nk> prov:specializationOf <urn:uuid:cd1f5ee7-afea-8175-b870-6e7648eded92> ;\n\tcascade:patient <urn:uuid:0ce9c097-11a3-8404-9fce-5d77006a22e6> .\n_:fb525e76dbd66599a5d8f3c079fe6114 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'][3]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:7877aa19c29533dd0e8badf66fa3ba5c bridge:arrivedAs <ni:///sha-256;r5AnYbDQ9atF8vtdBl1amFCRm8ozlB6I5iY9uWwF1Nk> ;\n\toa:hasSelector _:fb525e76dbd66599a5d8f3c079fe6114 .\n<urn:uuid:8830768d-0d09-8062-8735-0630e678dcb7> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;96SkqUBlNrSzh896DzRgrLC_7uo0Br4JaYPgcWWPiag> prov:specializationOf <urn:uuid:8830768d-0d09-8062-8735-0630e678dcb7> ;\n\tcascade:patient <urn:uuid:0ce9c097-11a3-8404-9fce-5d77006a22e6> .\n_:f0cf9ccfee99739d1ef16f460686c02f 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_:6485edc68ed4aa8b26e13817c6efc236 bridge:arrivedAs <ni:///sha-256;96SkqUBlNrSzh896DzRgrLC_7uo0Br4JaYPgcWWPiag> ;\n\toa:hasSelector _:f0cf9ccfee99739d1ef16f460686c02f .\n<urn:uuid:f75dd2e9-d95b-8b2a-87fb-6cfee3289377> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;SyBnVPSKh_j73gDkuo2HdXNkquXH7iR58korIEg-zlo> prov:specializationOf <urn:uuid:f75dd2e9-d95b-8b2a-87fb-6cfee3289377> ;\n\tcascade:patient <urn:uuid:0ce9c097-11a3-8404-9fce-5d77006a22e6> .\n_:c7d244b1342aae9b781eb70bfa23655b 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]\" .\n_:7659f00278fe729e01e91b5e5e54a9dd bridge:arrivedAs <ni:///sha-256;SyBnVPSKh_j73gDkuo2HdXNkquXH7iR58korIEg-zlo> ;\n\toa:hasSelector _:c7d244b1342aae9b781eb70bfa23655b .\n<ni:///sha-256;dYXLGhs0XR0iLUDN8L6uF4MrgjvQvsZ8cp1V-W__WyA> cascade:workflowStatus \"final\" ;\n\tcascade:reportName \"Glucose [Mass/volume] in Serum or Plasma\" ;\n\tcascade:reportCode <http://loinc.org/rdf/2345-7> .\n<ni:///sha-256;sYJSkkeAkQ2Gk5eeqAVR8rvqLgmoj_kNpC4GfUIS0zU> dct:identifier \"NOHASH-OBS-001\"^^<urn:oid:2.16.840.1.113883.3.88.11.32.1> ;\n\tcascade:resultQuantity <ni:///sha-256;sYJSkkeAkQ2Gk5eeqAVR8rvqLgmoj_kNpC4GfUIS0zU#value> .\n<ni:///sha-256;sYJSkkeAkQ2Gk5eeqAVR8rvqLgmoj_kNpC4GfUIS0zU#value> cascade:decimalValue \"95\"^^xsd:decimal ;\n\tcascade:writtenValue \"95\" ;\n\tcascade:ucumUnit \"mg/dL\" .\n<ni:///sha-256;sYJSkkeAkQ2Gk5eeqAVR8rvqLgmoj_kNpC4GfUIS0zU> cascade:resultClinicallyRelevantTime \"2026-01-01\"^^xsd:date ;\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:resultValueKind cascade:QuantityResultValue .\n_:9b41e49bb4821bf023d712077258b771 oa:hasSource <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasGeneratedBy _:7a32bba1cb557d55e8cd8e91f12c6ed3 .\n_:fb1c7a1f8d11bb37b89318e7bf81bf44 oa:hasSource <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasGeneratedBy _:7a32bba1cb557d55e8cd8e91f12c6ed3 .\n_:ed9dc4bfe0b5fb479788b81ed2fca961 oa:hasSource <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasGeneratedBy _:7a32bba1cb557d55e8cd8e91f12c6ed3 .\n_:6485edc68ed4aa8b26e13817c6efc236 oa:hasSource <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasGeneratedBy _:7a32bba1cb557d55e8cd8e91f12c6ed3 .\n_:a11a47d7c1cd3a238c477c4ae83b9b9 oa:hasSource <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasGeneratedBy _:7a32bba1cb557d55e8cd8e91f12c6ed3 .\n_:22eea5f6b420755b428b4ab18fa3ae9c oa:hasSource <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasGeneratedBy _:7a32bba1cb557d55e8cd8e91f12c6ed3 .\n_:7877aa19c29533dd0e8badf66fa3ba5c oa:hasSource <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasGeneratedBy _:7a32bba1cb557d55e8cd8e91f12c6ed3 .\n_:30b386fa2314ece517239dde8c3c1941 oa:hasSource <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasGeneratedBy _:7a32bba1cb557d55e8cd8e91f12c6ed3 .\n_:7659f00278fe729e01e91b5e5e54a9dd oa:hasSource <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:wasGeneratedBy _:7a32bba1cb557d55e8cd8e91f12c6ed3 .\n<ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:4793c1621a044240ee8453605894ff42 .\n_:a53398436141b3ab3c1db30424b14a9e prov:agent _:a078ff9730c96333032e8bfbdb9a0092 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:4793c1621a044240ee8453605894ff42 prov:qualifiedAssociation _:a53398436141b3ab3c1db30424b14a9e .\n_:a078ff9730c96333032e8bfbdb9a0092 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:7a32bba1cb557d55e8cd8e91f12c6ed3 <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;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> a prov:Entity .\n_:7a32bba1cb557d55e8cd8e91f12c6ed3 a prov:Activity ;\n\tprov:used <ni:///sha-256;QMg3SFSw_V8EV2uMqkxzh1e-LPTZ14pOmfCC6p78fyU> ;\n\tprov:qualifiedAssociation _:9c766f5de28726a7fc90ade02db16f64 .\n_:9c766f5de28726a7fc90ade02db16f64 prov:hadPlan _:4c0da025259c0274ad302a4b9ee28492 .\n_:4c0da025259c0274ad302a4b9ee28492 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_:9c766f5de28726a7fc90ade02db16f64 prov:agent _:1d6cc6c447f7ffd8d3d1868ad7895eb4 .\n_:1d6cc6c447f7ffd8d3d1868ad7895eb4 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/narrative-reference-without-hash.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/narrative-reference-without-hash.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_:a2ce153382169b6cec169ab2daad6ad3 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b2d6cca56b251d07ef27225724c34559 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]/*[local-name()='text' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='content' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a2ce153382169b6cec169ab2daad6ad3 oa:refinedBy _:b2d6cca56b251d07ef27225724c34559 .\n_:e707115f1965d2d2fda62726b1ca1d72 a oa:Annotation ;\n\toa:hasTarget _:b6f53c6143ad7a683e453cb3f5f39156 .\n_:b6f53c6143ad7a683e453cb3f5f39156 oa:hasSource <../in/narrative-reference-without-hash.xml> ;\n\toa:hasSelector _:a2ce153382169b6cec169ab2daad6ad3 .\n_:e707115f1965d2d2fda62726b1ca1d72 oa:hasBody <https://www.w3.org/TR/xmlschema-2/#cvc-datatype-valid> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:resultSeverity sh:Violation .\n_:d4cc7fb4de3a5fcb9a11995bcddef52c a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:aeb8be8b3918b5642bc499b9b3c40956 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:d4cc7fb4de3a5fcb9a11995bcddef52c oa:refinedBy _:aeb8be8b3918b5642bc499b9b3c40956 .\n_:a91cf05e88236ec227f84ef5088a108d a oa:Annotation ;\n\toa:hasTarget _:f2bbf49e4deb3c32c1d91f96947b323a .\n_:f2bbf49e4deb3c32c1d91f96947b323a oa:hasSource <../in/narrative-reference-without-hash.xml> ;\n\toa:hasSelector _:d4cc7fb4de3a5fcb9a11995bcddef52c .\n_:a91cf05e88236ec227f84ef5088a108d 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_:f6f38e94143d56398be12e1aa74fbe5 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a7e59d62043f49e9d01a9a678568efc3 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()='act' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f6f38e94143d56398be12e1aa74fbe5 oa:refinedBy _:a7e59d62043f49e9d01a9a678568efc3 .\n_:a218c1b741175945e58fe348ef3915f7 a oa:Annotation ;\n\toa:hasTarget _:c4d8df95c0ee7c22044fa47dc5207f9d .\n_:c4d8df95c0ee7c22044fa47dc5207f9d oa:hasSource <../in/narrative-reference-without-hash.xml> ;\n\toa:hasSelector _:f6f38e94143d56398be12e1aa74fbe5 .\n_:a218c1b741175945e58fe348ef3915f7 oa:hasBody ccda:statementCode ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='structuredBody' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='component' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='act' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='entryRelationship' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='observation' and namespace-uri()='urn:hl7-org:v3']/*[local-name()='code' and namespace-uri()='urn:hl7-org:v3']/@code\" ;\n\tsh:resultSeverity sh:Info .\n_:ccd1804e724242f137caeb8b8cc344c7 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b8144fc05ca24e9978b96928ffdcf667 oa:hasSource <../in/narrative-reference-without-hash.xml> .\n_:ccd1804e724242f137caeb8b8cc344c7 oa:refinedBy _:ec6d8535ea2b9b4e73cc54fa9e95601 .\n_:ec6d8535ea2b9b4e73cc54fa9e95601 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b8144fc05ca24e9978b96928ffdcf667 oa:hasSelector _:ccd1804e724242f137caeb8b8cc344c7 .\n_:ae4dd77ca5eaf803d6933a1a41e1a2cd oa:hasTarget _:b8144fc05ca24e9978b96928ffdcf667 .\n_:f05d9b119992e00ce6b0bf5301c815dc a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a911bcddf3ec0a0957ff3be5e4e06746 oa:hasSource <../in/narrative-reference-without-hash.xml> .\n_:f05d9b119992e00ce6b0bf5301c815dc oa:refinedBy _:ef8b52de203dcc5fbd53fa0e66ba9f2f .\n_:ef8b52de203dcc5fbd53fa0e66ba9f2f a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a911bcddf3ec0a0957ff3be5e4e06746 oa:hasSelector _:f05d9b119992e00ce6b0bf5301c815dc .\n_:cde5ea318835abe5bbb55c4bc899b18c oa:hasTarget _:a911bcddf3ec0a0957ff3be5e4e06746 .\n_:ae4dd77ca5eaf803d6933a1a41e1a2cd sh:resultSeverity sh:Info .\n_:cde5ea318835abe5bbb55c4bc899b18c sh:resultSeverity sh:Info .\n_:ae4dd77ca5eaf803d6933a1a41e1a2cd a oa:Annotation ;\n\toa:hasBody ccda:documentId ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2.16.840.1.113883.3.88.11.32.1|NARRATIVE-NO-HASH-FIXTURE-001\" .\n_:cde5ea318835abe5bbb55c4bc899b18c a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"34133-9\" .\n_:a768d3f225847777520fa252ccd3d580 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" ;\n\toa:refinedBy _:a232c9f5685879674995f00a1557effe .\n_:cb6aa6b94de30e2afc8ae29c2e116f44 oa:hasSource <../in/narrative-reference-without-hash.xml> .\n_:a232c9f5685879674995f00a1557effe rdf: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'][3]/*[local-name()='section' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]\" ;\n\ta oa:XPathSelector .\n_:cb6aa6b94de30e2afc8ae29c2e116f44 oa:hasSelector _:a768d3f225847777520fa252ccd3d580 .\n_:d87f6488ab5b9b75ed31b1053355f4be oa:hasTarget _:cb6aa6b94de30e2afc8ae29c2e116f44 .\n_:fb18ea06a68727866cc90c8eb6ce7563 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" ;\n\toa:refinedBy _:c4f2243f33d6a160cf7c3d64fa23fba .\n_:e83d354b251ea7cb3950b1c0ef3285a0 oa:hasSource <../in/narrative-reference-without-hash.xml> .\n_:c4f2243f33d6a160cf7c3d64fa23fba rdf: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]\" ;\n\ta oa:XPathSelector .\n_:e83d354b251ea7cb3950b1c0ef3285a0 oa:hasSelector _:fb18ea06a68727866cc90c8eb6ce7563 .\n_:f2cdb20aca21567cb85c627fb74abc49 oa:hasTarget _:e83d354b251ea7cb3950b1c0ef3285a0 .\n_:d36e9975831b5e3d06caef2340cb7eac a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" ;\n\toa:refinedBy _:f2ab21216514b13eda8876068b65a0f .\n_:f8d52c5079ac39ede1f9685b8b0c064b oa:hasSource <../in/narrative-reference-without-hash.xml> .\n_:f2ab21216514b13eda8876068b65a0f rdf: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]/*[local-name()='entry' and namespace-uri()='urn:hl7-org:v3'][1]\" ;\n\ta oa:XPathSelector .\n_:f8d52c5079ac39ede1f9685b8b0c064b oa:hasSelector _:d36e9975831b5e3d06caef2340cb7eac .\n_:fa00d52043d5189b399229685a2eac20 oa:hasTarget _:f8d52c5079ac39ede1f9685b8b0c064b .\n_:d87f6488ab5b9b75ed31b1053355f4be sh:resultSeverity sh:Warning .\n_:f2cdb20aca21567cb85c627fb74abc49 sh:resultSeverity sh:Warning .\n_:fa00d52043d5189b399229685a2eac20 sh:resultSeverity sh:Warning .\n_:d87f6488ab5b9b75ed31b1053355f4be sh:value \"other.xml#n3\" ;\n\toa:motivatedBy oa:classifying ;\n\toa:hasBody ccda:referenceReadsNothing ;\n\ta oa:Annotation .\n_:f2cdb20aca21567cb85c627fb74abc49 sh:value \"#\" ;\n\toa:motivatedBy oa:classifying ;\n\toa:hasBody ccda:referenceReadsNothing ;\n\ta oa:Annotation .\n_:fa00d52043d5189b399229685a2eac20 sh:value \"n1\" ;\n\toa:motivatedBy oa:classifying ;\n\toa:hasBody ccda:referenceReadsNothing ;\n\ta oa:Annotation .\n", "empty": false}}