{"name": "not-a-ccda", "comment": null, "input": {"file": "fixtures/in/not-a-ccda.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/not-a-ccda.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  <id root=\"2.16.840.1.113883.19.5.99999.1\" extension=\"NOTE-2025-0801\"/>\n  <code code=\"11506-3\" displayName=\"Progress note\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n  <title>Progress Note</title>\n  <effectiveTime value=\"20250801140000-0500\"/>\n  <confidentialityCode code=\"N\" codeSystem=\"2.16.840.1.113883.5.25\"/>\n  <recordTarget>\n    <patientRole>\n      <id root=\"2.16.840.1.113883.19.5.99999.2\" extension=\"MRN-448120\"/>\n      <patient>\n        <name>\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=\"20250801140000-0500\"/>\n    <assignedAuthor>\n      <id root=\"2.16.840.1.113883.19.5.99999.3\"/>\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          <code code=\"10164-2\" displayName=\"History of present illness\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/>\n          <title>History of Present Illness</title>\n          <text>Seen for a follow-up of seasonal allergic rhinitis.</text>\n        </section>\n      </component>\n    </structuredBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/not-a-ccda.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/not-a-ccda.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;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> prov:wasGeneratedBy _:deb0324a2f8268049fdf5fabd6baaf2c ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:deb0324a2f8268049fdf5fabd6baaf2c prov:qualifiedAssociation _:f918085998c63624b85dbfc857d6b094 .\n_:f918085998c63624b85dbfc857d6b094 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_:62fd0fec69bf423b5dcd9b7a1061e327 bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:d9c3993c38d87726eacf6cf7e7354b48 .\n_:d9c3993c38d87726eacf6cf7e7354b48 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;3zusjtN2oK2H2O_rvsaHzFSlBxT0BsNOjT8JYSQTemg> cascade:noteOrDocumentTypeName \"History of present illness\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTitle \"History of Present Illness\" ;\n\tcascade:noteOrDocumentDate \"2025-08-01T14:00:00-05:00\"^^xsd:dateTime ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/10164-2> ;\n\tcascade:narrativeText \"Seen for a follow-up of seasonal allergic rhinitis.\" .\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_:a60ca510f017f135d6bd40bfd2489ab5 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_:fe9d7ea5d9679f341c6380268a10c3c8 bridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> ;\n\toa:hasSelector _:a60ca510f017f135d6bd40bfd2489ab5 .\n<urn:uuid:485953f5-8129-830a-960c-a24ba2e06dfb> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;3zusjtN2oK2H2O_rvsaHzFSlBxT0BsNOjT8JYSQTemg> prov:specializationOf <urn:uuid:485953f5-8129-830a-960c-a24ba2e06dfb> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:f66686381bebc6f3790b79bdbfacdd83 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_:4f3e6c5d862c9f3c44d519ac6b54d398 bridge:arrivedAs <ni:///sha-256;3zusjtN2oK2H2O_rvsaHzFSlBxT0BsNOjT8JYSQTemg> ;\n\toa:hasSelector _:f66686381bebc6f3790b79bdbfacdd83 ;\n\toa:hasSource <ni:///sha-256;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> ;\n\tprov:wasGeneratedBy _:8574673059ff9a3ef1df3850471fe4c .\n_:62fd0fec69bf423b5dcd9b7a1061e327 oa:hasSource <ni:///sha-256;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> ;\n\tprov:wasGeneratedBy _:8574673059ff9a3ef1df3850471fe4c .\n_:fe9d7ea5d9679f341c6380268a10c3c8 oa:hasSource <ni:///sha-256;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> ;\n\tprov:wasGeneratedBy _:8574673059ff9a3ef1df3850471fe4c .\n<ni:///sha-256;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:7d7f1515d547f63cccad35cce6bd63b5 .\n_:b15f4593c9e10ff0b18c9141ad6fb5b3 prov:agent _:73eaf4bc7da8a2db063f260688fd7412 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:7d7f1515d547f63cccad35cce6bd63b5 prov:qualifiedAssociation _:b15f4593c9e10ff0b18c9141ad6fb5b3 .\n_:73eaf4bc7da8a2db063f260688fd7412 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:8574673059ff9a3ef1df3850471fe4c <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;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> a prov:Entity .\n_:8574673059ff9a3ef1df3850471fe4c a prov:Activity ;\n\tprov:used <ni:///sha-256;6z1zr7DOJzqc34TB-FP1PJVX2RllsNfNt0I9bPa0pXQ> ;\n\tprov:qualifiedAssociation _:6647c9d58a8b6e3a0d36fdab1a4541d8 .\n_:6647c9d58a8b6e3a0d36fdab1a4541d8 prov:hadPlan _:6e4065443cc3811898e0e95c49be382c .\n_:6e4065443cc3811898e0e95c49be382c 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_:6647c9d58a8b6e3a0d36fdab1a4541d8 prov:agent _:910c0f85ba35aee4d9a0661b8af8c9c2 .\n_:910c0f85ba35aee4d9a0661b8af8c9c2 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/not-a-ccda.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/not-a-ccda.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_:ecc5f4ed776a6ca5ac52b3ba2d1137be a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b6be7d4d9ef193dec5ff48cf4ba045db a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:ecc5f4ed776a6ca5ac52b3ba2d1137be oa:refinedBy _:b6be7d4d9ef193dec5ff48cf4ba045db .\n_:f63a8102da33728abee75fb51ea50adb a oa:Annotation ;\n\toa:hasTarget _:e8e15ee68dfc30f12935938c4695b817 .\n_:e8e15ee68dfc30f12935938c4695b817 oa:hasSource <../in/not-a-ccda.xml> ;\n\toa:hasSelector _:ecc5f4ed776a6ca5ac52b3ba2d1137be .\n_:f63a8102da33728abee75fb51ea50adb 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_:ce1c6b17f353470c97afcb2f888b8c72 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:eb615cc4804289978d303e2bcfea5d45 oa:hasSource <../in/not-a-ccda.xml> .\n_:ce1c6b17f353470c97afcb2f888b8c72 oa:refinedBy _:eb3f9de0c7036b2a0f9d41c864e4ed96 .\n_:eb3f9de0c7036b2a0f9d41c864e4ed96 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:eb615cc4804289978d303e2bcfea5d45 oa:hasSelector _:ce1c6b17f353470c97afcb2f888b8c72 .\n_:f1ccd228e36d5b520a8711dc897d195d oa:hasTarget _:eb615cc4804289978d303e2bcfea5d45 .\n_:fb41a5b2008896b666aa58bd45dabfab a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:dcbefeba4608f94e35268ce3daa850da oa:hasSource <../in/not-a-ccda.xml> .\n_:fb41a5b2008896b666aa58bd45dabfab oa:refinedBy _:cd4151f9d3dbbcf2c8882e9c70acff0 .\n_:cd4151f9d3dbbcf2c8882e9c70acff0 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:dcbefeba4608f94e35268ce3daa850da oa:hasSelector _:fb41a5b2008896b666aa58bd45dabfab .\n_:c924843ae4d90d46c51b8b6065e8590a oa:hasTarget _:dcbefeba4608f94e35268ce3daa850da .\n_:f1ccd228e36d5b520a8711dc897d195d sh:resultSeverity sh:Info .\n_:c924843ae4d90d46c51b8b6065e8590a sh:resultSeverity sh:Info .\n_:f1ccd228e36d5b520a8711dc897d195d 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|NOTE-2025-0801\" .\n_:c924843ae4d90d46c51b8b6065e8590a a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"11506-3\" .\n", "empty": false}}