{"name": "unstructured-document-reference-untyped", "comment": "An Unstructured Document whose nonXMLBody references a file and states no media type: one note whose attachment holds the file's address and no media type, no text, and the finding ccda:noteDataNotRead with no value, since nothing says what the file is.", "input": {"file": "fixtures/in/unstructured-document-reference-untyped.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/unstructured-document-reference-untyped.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.10\" extension=\"2015-08-01\"/>\n  <id root=\"2.16.840.1.113883.19.5.99999.1\" extension=\"UD-2026-1030-U\"/>\n  <code code=\"18842-5\" displayName=\"Discharge summary\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n  <title>Discharge Summary</title>\n  <effectiveTime value=\"20261030090000-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=\"20261030090000-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    <nonXMLBody>\n      <text><reference value=\"discharge-summary-2026-10-24.pdf\"/></text>\n    </nonXMLBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/unstructured-document-reference-untyped.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/unstructured-document-reference-untyped.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 foaf: <http://xmlns.com/foaf/0.1/> .\n@prefix prov: <http://www.w3.org/ns/prov#> .\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;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> prov:wasGeneratedBy _:da152403d6fc7467c29376adbce42b22 ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:da152403d6fc7467c29376adbce42b22 prov:qualifiedAssociation _:b2e131e4e8bbb7fd68dec6de0384a486 .\n_:b2e131e4e8bbb7fd68dec6de0384a486 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_:75c9795b6d3989044a1bec0f24997fe7 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:e4819e6abf3e22f2681317ed109887a4 .\n_:e4819e6abf3e22f2681317ed109887a4 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;s3aQ8vjT1pzWeqL9VJaG6w2qBvp3jE_8Pr5ty8f_N1A> cascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentDate \"2026-10-30T09:00:00-05:00\"^^xsd:dateTime ;\n\tcascade:noteOrDocumentTypeName \"Discharge summary\" ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/18842-5> ;\n\tcascade:noteOrDocumentMasterIdentifier \"UD-2026-1030-U\"^^<urn:oid:2.16.840.1.113883.19.5.99999.1> ;\n\tcascade:attachment <ni:///sha-256;s3aQ8vjT1pzWeqL9VJaG6w2qBvp3jE_8Pr5ty8f_N1A#attachment-1> .\n<ni:///sha-256;s3aQ8vjT1pzWeqL9VJaG6w2qBvp3jE_8Pr5ty8f_N1A#attachment-1> cascade:attachmentUrl \"discharge-summary-2026-10-24.pdf\"^^xsd:anyURI .\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_:e6180c3bfbeec91304e4e55cd1ac8bdc 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_:2776c28eb3705a5462b70c821005db86 bridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> ;\n\toa:hasSelector _:e6180c3bfbeec91304e4e55cd1ac8bdc .\n<urn:uuid:d1694f70-cc82-807d-a8ec-df95d3c602d1> a cascade:ClinicalNoteOrDocument ;\n\tcascade:sourceUrl <urn:hl7ii:2.16.840.1.113883.19.5.99999.1:UD-2026-1030-U> ;\n\tcascade:sourceRecordId \"2.16.840.1.113883.19.5.99999.1:UD-2026-1030-U\" .\n<ni:///sha-256;s3aQ8vjT1pzWeqL9VJaG6w2qBvp3jE_8Pr5ty8f_N1A> prov:specializationOf <urn:uuid:d1694f70-cc82-807d-a8ec-df95d3c602d1> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:ae8e4968eb392b9388f74988eaa3b6eb 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()='nonXMLBody' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:c183dc1972ea0a8bf7a323f8b9756432 bridge:arrivedAs <ni:///sha-256;s3aQ8vjT1pzWeqL9VJaG6w2qBvp3jE_8Pr5ty8f_N1A> ;\n\toa:hasSelector _:ae8e4968eb392b9388f74988eaa3b6eb .\n_:75c9795b6d3989044a1bec0f24997fe7 oa:hasSource <ni:///sha-256;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> ;\n\tprov:wasGeneratedBy _:daa9957b25ae2c063d4c83d2f865e91d .\n_:c183dc1972ea0a8bf7a323f8b9756432 oa:hasSource <ni:///sha-256;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> ;\n\tprov:wasGeneratedBy _:daa9957b25ae2c063d4c83d2f865e91d .\n_:2776c28eb3705a5462b70c821005db86 oa:hasSource <ni:///sha-256;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> ;\n\tprov:wasGeneratedBy _:daa9957b25ae2c063d4c83d2f865e91d .\n<ni:///sha-256;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:97cdadfb64828fd076345367ce18d5c8 .\n_:8455802ed7b1ce6db033f244ae64e05 prov:agent _:4286c35a6c920a8dabe6483812c67296 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:97cdadfb64828fd076345367ce18d5c8 prov:qualifiedAssociation _:8455802ed7b1ce6db033f244ae64e05 .\n_:4286c35a6c920a8dabe6483812c67296 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:daa9957b25ae2c063d4c83d2f865e91d <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;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> a prov:Entity .\n_:daa9957b25ae2c063d4c83d2f865e91d a prov:Activity ;\n\tprov:used <ni:///sha-256;Z1s_0I7_aAD2L823IE6fJFgCc1Fjx6ljR8ChBemKWj8> ;\n\tprov:qualifiedAssociation _:39927a62d14cbff8983d7f08d0bcebf3 .\n_:39927a62d14cbff8983d7f08d0bcebf3 prov:hadPlan _:6fb21c6659f885224e1cd1a0fc022d8f .\n_:6fb21c6659f885224e1cd1a0fc022d8f 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_:39927a62d14cbff8983d7f08d0bcebf3 prov:agent _:cc1fc07d8b64d3d0ef606754c3eed550 .\n_:cc1fc07d8b64d3d0ef606754c3eed550 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/unstructured-document-reference-untyped.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/unstructured-document-reference-untyped.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_:b2b5c26141d14094014c95f3eeeb8539 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b1570c964225ee0754fd511bac72406c a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b2b5c26141d14094014c95f3eeeb8539 oa:refinedBy _:b1570c964225ee0754fd511bac72406c .\n_:bfb358f8e55b3d6c83df2f4b91a25c9d a oa:Annotation ;\n\toa:hasTarget _:d1fdd319aa09efb044aa140a44c8a0be .\n_:d1fdd319aa09efb044aa140a44c8a0be oa:hasSource <../in/unstructured-document-reference-untyped.xml> ;\n\toa:hasSelector _:b2b5c26141d14094014c95f3eeeb8539 .\n_:bfb358f8e55b3d6c83df2f4b91a25c9d 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_:b88270955dc963c3528c3fca694aa675 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:a99d8b5e2de8fe7ab7f6a0f8f06f7d1a oa:hasSource <../in/unstructured-document-reference-untyped.xml> .\n_:b88270955dc963c3528c3fca694aa675 oa:refinedBy _:e1f9cb75de1f315075a7ec2d25d30c05 .\n_:e1f9cb75de1f315075a7ec2d25d30c05 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='component' and namespace-uri()='urn:hl7-org:v3'][1]/*[local-name()='nonXMLBody' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:a99d8b5e2de8fe7ab7f6a0f8f06f7d1a oa:hasSelector _:b88270955dc963c3528c3fca694aa675 .\n_:ce571f8a36b586579e28605fd19f9860 oa:hasTarget _:a99d8b5e2de8fe7ab7f6a0f8f06f7d1a ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody ccda:noteDataNotRead ;\n\toa:motivatedBy oa:classifying .\n", "empty": false}}