{"name": "unstructured-document-header-partly-stated", "comment": "An Unstructured Document whose id states only an extension, whose code states only an originalText and whose effectiveTime states nothing: none is carried by its note, so the document's id and type are findings valued by what the document wrote, the extension and the originalText's text, and its time is a finding with no value, the document having written none.", "input": {"file": "fixtures/in/unstructured-document-header-partly-stated.xml", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/in/unstructured-document-header-partly-stated.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 extension=\"UD-2026-1104-V\"/>\n  <code><originalText>Discharge summary</originalText></code>\n  <title>Discharge Summary</title>\n  <effectiveTime/>\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 mediaType=\"text/plain\" representation=\"B64\">RGlzY2hhcmdlIHN1bW1hcnkKQWRtaXR0ZWQgMjAyNi0xMC0yMCB3aXRoIGFuYWVtaWE7IEIxMiBsb3c7IHN0YXJ0ZWQgY3lhbm9jb2JhbGFtaW4u</text>\n    </nonXMLBody>\n  </component>\n</ClinicalDocument>\n"}, "expectedGraph": {"file": "fixtures/expected/unstructured-document-header-partly-stated.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/expected/unstructured-document-header-partly-stated.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;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> prov:wasGeneratedBy _:b03d6d9d3b1bc63ae81e9c274c35699d ;\n\tprov:wasAttributedTo <urn:uuid:5769da63-d46b-8c66-b381-d00b2f7ccadb> .\n_:b03d6d9d3b1bc63ae81e9c274c35699d prov:qualifiedAssociation _:d27ae2c74c31357f50d84845dabf3fb4 .\n_:d27ae2c74c31357f50d84845dabf3fb4 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_:ccd651a795070f07694c42cd853f22ac bridge:arrivedAs <ni:///sha-256;grKi0ms_W2WGoIJBSajj9WqQqFYdSHTIaehKWGv5yRg> ;\n\toa:hasSelector _:a0bbf4b454adbeb0ebfd716251ede680 .\n_:a0bbf4b454adbeb0ebfd716251ede680 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;LLjTWZIfHfsbeY12oO65MLr5lb4cYoV49jjLAbE35FA> cascade:narrativeText \"Discharge summary\\nAdmitted 2026-10-20 with anaemia; B12 low; started cyanocobalamin.\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:attachment <ni:///sha-256;LLjTWZIfHfsbeY12oO65MLr5lb4cYoV49jjLAbE35FA#attachment-1> .\n<ni:///sha-256;LLjTWZIfHfsbeY12oO65MLr5lb4cYoV49jjLAbE35FA#attachment-1> cascade:attachmentContentType \"text/plain\" .\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_:a5a0c42be0eba717f849cfaf1b088833 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_:fe08013034412859119766a3314d8f2 bridge:arrivedAs <ni:///sha-256;8OhFhApPXbNaEpnniPsDDmUOh7GZ3tQ3brvo1CVgP0c> ;\n\toa:hasSelector _:a5a0c42be0eba717f849cfaf1b088833 .\n<urn:uuid:28511049-cc3b-8db1-9e3c-8676a6b10a4b> a cascade:ClinicalNoteOrDocument .\n<ni:///sha-256;LLjTWZIfHfsbeY12oO65MLr5lb4cYoV49jjLAbE35FA> prov:specializationOf <urn:uuid:28511049-cc3b-8db1-9e3c-8676a6b10a4b> ;\n\tcascade:patient <urn:uuid:ed62f5a3-7994-8c3c-9b4a-9f1f41a1aba4> .\n_:b8e72d8754ce678609fee1f3a2fbf143 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_:70942c7a6a6451840ae7e8db9dc328f0 bridge:arrivedAs <ni:///sha-256;LLjTWZIfHfsbeY12oO65MLr5lb4cYoV49jjLAbE35FA> ;\n\toa:hasSelector _:b8e72d8754ce678609fee1f3a2fbf143 ;\n\toa:hasSource <ni:///sha-256;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> ;\n\tprov:wasGeneratedBy _:6e42b395648d4a9c40178ca28d174120 .\n_:ccd651a795070f07694c42cd853f22ac oa:hasSource <ni:///sha-256;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> ;\n\tprov:wasGeneratedBy _:6e42b395648d4a9c40178ca28d174120 .\n_:fe08013034412859119766a3314d8f2 oa:hasSource <ni:///sha-256;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> ;\n\tprov:wasGeneratedBy _:6e42b395648d4a9c40178ca28d174120 .\n<ni:///sha-256;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> <http://purl.org/pav/retrievedOn> \"2025-07-02T09:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:69009488f05ac29fa099c8b4fab7fa89 .\n_:96faa8a950bb7f725dd81c6ca788c489 prov:agent _:909bca622dba1cf3a75f207792f999a1 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:69009488f05ac29fa099c8b4fab7fa89 prov:qualifiedAssociation _:96faa8a950bb7f725dd81c6ca788c489 .\n_:909bca622dba1cf3a75f207792f999a1 <http://www.w3.org/2000/01/rdf-schema#label> \"Riverside patient portal\" .\n_:6e42b395648d4a9c40178ca28d174120 <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;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> a prov:Entity .\n_:6e42b395648d4a9c40178ca28d174120 a prov:Activity ;\n\tprov:used <ni:///sha-256;Q9X_VhqdNbCLl6G5ymxc--TX9vtIIulFWue7BIvK5yM> ;\n\tprov:qualifiedAssociation _:1e641ac5099db302f2c81213c2cb1559 .\n_:1e641ac5099db302f2c81213c2cb1559 prov:hadPlan _:250d58943ce2f005e80a211d5777d200 .\n_:250d58943ce2f005e80a211d5777d200 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_:1e641ac5099db302f2c81213c2cb1559 prov:agent _:3f26626d3e0e17c241247b6fe7d712c7 .\n_:3f26626d3e0e17c241247b6fe7d712c7 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-header-partly-stated.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-ccda/blob/0c6ffe52b3c3d2dcd0dfaf3f0b9e00b69bf2ba96/fixtures/findings/unstructured-document-header-partly-stated.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_:afe16315d472d0d5ebb347024aefcf0a a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f23c093c3dc8187ed39675d9e80639cd a oa:XPathSelector ;\n\trdf:value \"*[local-name()='author' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:afe16315d472d0d5ebb347024aefcf0a oa:refinedBy _:f23c093c3dc8187ed39675d9e80639cd .\n_:e08d6f89f5b04b13ee1bfddc1c14ae60 a oa:Annotation ;\n\toa:hasTarget _:b721acce3110abb4700413f56fc4a605 .\n_:b721acce3110abb4700413f56fc4a605 oa:hasSource <../in/unstructured-document-header-partly-stated.xml> ;\n\toa:hasSelector _:afe16315d472d0d5ebb347024aefcf0a .\n_:e08d6f89f5b04b13ee1bfddc1c14ae60 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_:aae55834450c48c2eafbe9c6993ca907 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:e2491cc902b93649c2a7f6f9a703da12 oa:hasSource <../in/unstructured-document-header-partly-stated.xml> .\n_:aae55834450c48c2eafbe9c6993ca907 oa:refinedBy _:aa107fb05164350228f5d272826ec6ec .\n_:aa107fb05164350228f5d272826ec6ec a oa:XPathSelector ;\n\trdf:value \"*[local-name()='id' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:e2491cc902b93649c2a7f6f9a703da12 oa:hasSelector _:aae55834450c48c2eafbe9c6993ca907 .\n_:ef184f483458642daa01e6660c9a45af oa:hasTarget _:e2491cc902b93649c2a7f6f9a703da12 .\n_:c9fba4868fcc3ae87b5732f31ff7d0e0 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:b4b2cc33ce09897461b13b9a43a54150 oa:hasSource <../in/unstructured-document-header-partly-stated.xml> .\n_:c9fba4868fcc3ae87b5732f31ff7d0e0 oa:refinedBy _:f29ac955eea4d30d538fb64220941e90 .\n_:f29ac955eea4d30d538fb64220941e90 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='code' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:b4b2cc33ce09897461b13b9a43a54150 oa:hasSelector _:c9fba4868fcc3ae87b5732f31ff7d0e0 .\n_:dec498326ca7f55d96c95c3f283dc41c oa:hasTarget _:b4b2cc33ce09897461b13b9a43a54150 .\n_:cc9ef84249e5173b0b7694a7c3d8a797 a oa:XPathSelector ;\n\trdf:value \"/*[local-name()='ClinicalDocument' and namespace-uri()='urn:hl7-org:v3']\" .\n_:f6d9d242d37ce18fe65b06215ce58cf3 oa:hasSource <../in/unstructured-document-header-partly-stated.xml> .\n_:cc9ef84249e5173b0b7694a7c3d8a797 oa:refinedBy _:a4f5ff42c23d4c75b86e4f8998568fb4 .\n_:a4f5ff42c23d4c75b86e4f8998568fb4 a oa:XPathSelector ;\n\trdf:value \"*[local-name()='effectiveTime' and namespace-uri()='urn:hl7-org:v3'][1]\" .\n_:f6d9d242d37ce18fe65b06215ce58cf3 oa:hasSelector _:cc9ef84249e5173b0b7694a7c3d8a797 .\n_:ee88901d76976f7b140a084c3d47e3f4 oa:hasTarget _:f6d9d242d37ce18fe65b06215ce58cf3 .\n_:ef184f483458642daa01e6660c9a45af sh:resultSeverity sh:Info .\n_:dec498326ca7f55d96c95c3f283dc41c sh:resultSeverity sh:Info .\n_:ee88901d76976f7b140a084c3d47e3f4 sh:resultSeverity sh:Info .\n_:ef184f483458642daa01e6660c9a45af a oa:Annotation ;\n\toa:hasBody ccda:documentId ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"UD-2026-1104-V\" .\n_:dec498326ca7f55d96c95c3f283dc41c a oa:Annotation ;\n\toa:hasBody ccda:documentType ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Discharge summary\" .\n_:ee88901d76976f7b140a084c3d47e3f4 a oa:Annotation ;\n\toa:hasBody ccda:documentTime ;\n\toa:motivatedBy oa:classifying .\n", "empty": false}}