{"name": "document-reference-ccd", "comment": "A DocumentReference whose content is a C-CDA document, format urn:hl7-org:sdwg:ccda-structuredBody:2.1 as US Core codes a CCD: no record, and the format code reported.", "input": {"file": "fixtures/in/document-reference-ccd.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/document-reference-ccd.json", "text": "{\n  \"resourceType\": \"DocumentReference\",\n  \"id\": \"ccd-1\",\n  \"status\": \"current\",\n  \"type\": {\n    \"coding\": [\n      {\n        \"system\": \"http://loinc.org\",\n        \"code\": \"34133-9\",\n        \"display\": \"Summary of episode note\"\n      }\n    ]\n  },\n  \"category\": [\n    {\n      \"coding\": [\n        {\n          \"system\": \"http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category\",\n          \"code\": \"clinical-note\"\n        }\n      ]\n    }\n  ],\n  \"subject\": {\n    \"reference\": \"Patient/pat-1\"\n  },\n  \"date\": \"2026-08-20T14:05:00Z\",\n  \"content\": [\n    {\n      \"attachment\": {\n        \"contentType\": \"application/xml\",\n        \"url\": \"Binary/ccd-1\"\n      },\n      \"format\": {\n        \"system\": \"http://terminology.hl7.org/CodeSystem/v3-HL7DocumentFormatCodes\",\n        \"code\": \"urn:hl7-org:sdwg:ccda-structuredBody:2.1\"\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/document-reference-ccd.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/document-reference-ccd.ttl", "text": "@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 pav: <http://purl.org/pav/> .\n<ni:///sha-256;pt5foGPFXqX0OIltXQ6FhVZ2_XpNP8VK1xYR3ux0b9o> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:67480f77fa68fe1b5d4726494e06567e <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;pt5foGPFXqX0OIltXQ6FhVZ2_XpNP8VK1xYR3ux0b9o> a prov:Entity .\n_:67480f77fa68fe1b5d4726494e06567e a prov:Activity ;\n\tprov:used <ni:///sha-256;pt5foGPFXqX0OIltXQ6FhVZ2_XpNP8VK1xYR3ux0b9o> ;\n\tprov:qualifiedAssociation _:73c2dbe629e98e4646300add0204745d .\n_:73c2dbe629e98e4646300add0204745d prov:hadPlan _:f0b818e32fdc1950db77f84dfac59c51 .\n_:f0b818e32fdc1950db77f84dfac59c51 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:73c2dbe629e98e4646300add0204745d prov:agent _:100c8fda23174a7635d8e6c1f153d334 .\n_:100c8fda23174a7635d8e6c1f153d334 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-ccd.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/document-reference-ccd.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_:a23e2e624b6cccc824dfc6d4e9da9563 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:fd178d761e7ceebb9c493318b6d73dc4 oa:hasSource <../in/document-reference-ccd.json> .\n_:a23e2e624b6cccc824dfc6d4e9da9563 oa:refinedBy _:eeb78b9fd9133b34d36813ab35c79e14 .\n_:eeb78b9fd9133b34d36813ab35c79e14 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/content/0/format/code\" .\n_:fd178d761e7ceebb9c493318b6d73dc4 oa:hasSelector _:a23e2e624b6cccc824dfc6d4e9da9563 .\n_:c48b0e9a65a3db5272fa8d000fb0af0b oa:hasTarget _:fd178d761e7ceebb9c493318b6d73dc4 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:documentReferenceToCcdaDocument ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"urn:hl7-org:sdwg:ccda-structuredBody:2.1\" .\n", "empty": false}}