{"name": "document-reference-unstructured-ccda", "comment": "A DocumentReference whose content is an unstructured C-CDA document (ccda-nonXMLBody), which no C-CDA adapter reads entries from: a note, its PDF by URL reported as not read.", "input": {"file": "fixtures/in/document-reference-unstructured-ccda.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/document-reference-unstructured-ccda.json", "text": "{\n  \"resourceType\": \"DocumentReference\",\n  \"id\": \"unstructured\",\n  \"status\": \"current\",\n  \"type\": {\n    \"coding\": [\n      {\n        \"system\": \"http://loinc.org\",\n        \"code\": \"18842-5\",\n        \"display\": \"Discharge summary\"\n      }\n    ]\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-1\"\n  },\n  \"content\": [\n    {\n      \"attachment\": {\n        \"contentType\": \"application/pdf\",\n        \"url\": \"Binary/unstructured\"\n      },\n      \"format\": {\n        \"system\": \"http://terminology.hl7.org/CodeSystem/v3-HL7DocumentFormatCodes\",\n        \"code\": \"urn:hl7-org:sdwg:ccda-nonXMLBody:2.1\"\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/document-reference-unstructured-ccda.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/document-reference-unstructured-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 prov: <http://www.w3.org/ns/prov#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix dcterms: <http://purl.org/dc/terms/> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n@prefix pav: <http://purl.org/pav/> .\n<ni:///sha-256;4VtDAvrAdhRVny_zw_A8IcFzvwAADRUPeGFZQ3ihtDk> cascade:attachment <ni:///sha-256;4VtDAvrAdhRVny_zw_A8IcFzvwAADRUPeGFZQ3ihtDk#attachment-1> .\n<ni:///sha-256;4VtDAvrAdhRVny_zw_A8IcFzvwAADRUPeGFZQ3ihtDk#attachment-1> cascade:attachmentContentType \"application/pdf\" ;\n\tcascade:attachmentUrl \"Binary/unstructured\"^^xsd:anyURI .\n<ni:///sha-256;4VtDAvrAdhRVny_zw_A8IcFzvwAADRUPeGFZQ3ihtDk> cascade:noteOrDocumentTypeName \"Discharge summary\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/18842-5> .\n<urn:uuid:31ebe9e2-9a9f-83fc-bcf5-76492c79bafb> a cascade:ClinicalNoteOrDocument ;\n\tcascade:sourceUrl <http://example.org/fhir/DocumentReference/unstructured> ;\n\tcascade:sourceRecordId \"unstructured\" .\n<ni:///sha-256;4VtDAvrAdhRVny_zw_A8IcFzvwAADRUPeGFZQ3ihtDk> prov:specializationOf <urn:uuid:31ebe9e2-9a9f-83fc-bcf5-76492c79bafb> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:50e360432b05f9057c1059146105337a bridge:arrivedAs <ni:///sha-256;4VtDAvrAdhRVny_zw_A8IcFzvwAADRUPeGFZQ3ihtDk> ;\n\toa:hasSelector _:c0f6014ce751f98a203023affd05161c ;\n\toa:hasSource <ni:///sha-256;kE8chhXloZvJmpdWkkcXAB2MjK5f1fVqlYppZAeFqCQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;kE8chhXloZvJmpdWkkcXAB2MjK5f1fVqlYppZAeFqCQ> ;\n\tprov:wasGeneratedBy _:b9ae3d14e1e8913924fc2d6a7795d1a4 .\n_:c0f6014ce751f98a203023affd05161c a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;kE8chhXloZvJmpdWkkcXAB2MjK5f1fVqlYppZAeFqCQ> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:b9ae3d14e1e8913924fc2d6a7795d1a4 <http://www.w3.org/2000/01/rdf-schema#label> \"Example server export\" ;\n\tprov:startedAtTime \"2026-10-13T09:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;kE8chhXloZvJmpdWkkcXAB2MjK5f1fVqlYppZAeFqCQ> a prov:Entity .\n_:b9ae3d14e1e8913924fc2d6a7795d1a4 a prov:Activity ;\n\tprov:used <ni:///sha-256;kE8chhXloZvJmpdWkkcXAB2MjK5f1fVqlYppZAeFqCQ> ;\n\tprov:qualifiedAssociation _:3384dedcd46d926308939102e5bc47df .\n_:3384dedcd46d926308939102e5bc47df prov:hadPlan _:92adf5b61635ffc03c4c57723c810c0e .\n_:92adf5b61635ffc03c4c57723c810c0e a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:3384dedcd46d926308939102e5bc47df prov:agent _:e530f7391c4aff3f12597e5676e9271d .\n_:e530f7391c4aff3f12597e5676e9271d a prov:SoftwareAgent ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"Cascade Bridge for Rust\" ;\n\tpav:version \"0.1.0\" .\n"}, "expectedFindings": {"file": "fixtures/findings/document-reference-unstructured-ccda.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/document-reference-unstructured-ccda.ttl", "text": "@prefix fhirr4: <https://ns.cascadeprotocol.org/adapter/fhir-r4/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_:bb92706cf426c7ca002bbc2385cafbe3 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:ff55d7878625e2531f7499b46aba32b5 oa:hasSource <../in/document-reference-unstructured-ccda.json> .\n_:bb92706cf426c7ca002bbc2385cafbe3 oa:refinedBy _:f883d0f7f25289bc26c32bbad7cc6ea6 .\n_:f883d0f7f25289bc26c32bbad7cc6ea6 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/content/0/attachment/url\" .\n_:ff55d7878625e2531f7499b46aba32b5 oa:hasSelector _:bb92706cf426c7ca002bbc2385cafbe3 .\n_:c81d5f1cd16f7115fb9b40c695315232 oa:hasTarget _:ff55d7878625e2531f7499b46aba32b5 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:attachmentDataNotRead ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"application/pdf\" .\n", "empty": false}}