{"name": "diagnostic-report-pdf-only", "comment": "A DiagnosticReport whose vitamin B12 result is only a PDF (presentedForm), with no Observation: a report record with its code, category, time, status, performer and the PDF as an attachment, whose data is reported as not read.", "input": {"file": "fixtures/in/diagnostic-report-pdf-only.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/diagnostic-report-pdf-only.json", "text": "{\n  \"resourceType\": \"DiagnosticReport\",\n  \"id\": \"b12-report\",\n  \"status\": \"final\",\n  \"category\": [\n    {\n      \"coding\": [\n        {\n          \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0074\",\n          \"code\": \"LAB\"\n        }\n      ]\n    }\n  ],\n  \"code\": {\n    \"coding\": [\n      {\n        \"system\": \"http://loinc.org\",\n        \"code\": \"2132-9\",\n        \"display\": \"Cobalamin (Vitamin B12) [Mass/volume] in Serum or Plasma\"\n      }\n    ],\n    \"text\": \"Vitamin B12\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-1\"\n  },\n  \"effectiveDateTime\": \"2026-08-14\",\n  \"issued\": \"2026-08-15T10:12:00Z\",\n  \"performer\": [\n    {\n      \"reference\": \"Organization/lab-1\"\n    }\n  ],\n  \"presentedForm\": [\n    {\n      \"contentType\": \"application/pdf\",\n      \"data\": \"JVBERi0xLjQK\",\n      \"title\": \"Vitamin B12 report\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/diagnostic-report-pdf-only.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/diagnostic-report-pdf-only.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;4e7RMHL31sRxX-rW8ll5r9I0N7tlAfoYvjcBe6q66ys> cascade:attachment <ni:///sha-256;4e7RMHL31sRxX-rW8ll5r9I0N7tlAfoYvjcBe6q66ys#attachment-1> .\n<ni:///sha-256;4e7RMHL31sRxX-rW8ll5r9I0N7tlAfoYvjcBe6q66ys#attachment-1> cascade:attachmentContentType \"application/pdf\" ;\n\tcascade:attachmentTitle \"Vitamin B12 report\" .\n<urn:uuid:e7ddfe09-2789-8e33-8fdf-6274d8b4d2e6> a cascade:DiagnosticReport ;\n\tcascade:sourceUrl <http://example.org/fhir/DiagnosticReport/b12-report> ;\n\tcascade:sourceRecordId \"b12-report\" .\n<ni:///sha-256;4e7RMHL31sRxX-rW8ll5r9I0N7tlAfoYvjcBe6q66ys> prov:specializationOf <urn:uuid:e7ddfe09-2789-8e33-8fdf-6274d8b4d2e6> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:b65817fa80856a2ddf5105c7a0bc4cf6 bridge:arrivedAs <ni:///sha-256;4e7RMHL31sRxX-rW8ll5r9I0N7tlAfoYvjcBe6q66ys> .\n<ni:///sha-256;4e7RMHL31sRxX-rW8ll5r9I0N7tlAfoYvjcBe6q66ys> prov:wasAttributedTo <urn:uuid:5fac9be0-2d3f-8756-b148-cccf855fa378> ;\n\tcascade:workflowStatus \"final\" ;\n\tcascade:reportIssuedTime \"2026-08-15T10:12:00Z\"^^xsd:dateTime ;\n\tcascade:reportCategory \"LAB\"^^<http://terminology.hl7.org/CodeSystem/v2-0074> ;\n\tcascade:reportCode <http://loinc.org/rdf/2132-9> ;\n\tcascade:reportEffectiveTime \"2026-08-14\"^^xsd:date ;\n\tcascade:reportName \"Vitamin B12\" .\n_:b65817fa80856a2ddf5105c7a0bc4cf6 oa:hasSelector _:cdced08646fe57605ce6a89382e1894d ;\n\toa:hasSource <ni:///sha-256;g0Cfmz0eIvtpSn4XqJGwdqiq9wk2JCy7uT_7nKbQQ3g> ;\n\tprov:wasDerivedFrom <ni:///sha-256;g0Cfmz0eIvtpSn4XqJGwdqiq9wk2JCy7uT_7nKbQQ3g> ;\n\tprov:wasGeneratedBy _:706eef5ad3ed896198eae55f8729a20f .\n_:cdced08646fe57605ce6a89382e1894d a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;g0Cfmz0eIvtpSn4XqJGwdqiq9wk2JCy7uT_7nKbQQ3g> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:706eef5ad3ed896198eae55f8729a20f <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;g0Cfmz0eIvtpSn4XqJGwdqiq9wk2JCy7uT_7nKbQQ3g> a prov:Entity .\n_:706eef5ad3ed896198eae55f8729a20f a prov:Activity ;\n\tprov:used <ni:///sha-256;g0Cfmz0eIvtpSn4XqJGwdqiq9wk2JCy7uT_7nKbQQ3g> ;\n\tprov:qualifiedAssociation _:53e71b2410922e11340d41588aeb247f .\n_:53e71b2410922e11340d41588aeb247f prov:hadPlan _:a574498710500477aaaa5ce630073a4 .\n_:a574498710500477aaaa5ce630073a4 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:53e71b2410922e11340d41588aeb247f prov:agent _:fbde853f8f44e15eb9618a0babeea188 .\n_:fbde853f8f44e15eb9618a0babeea188 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/diagnostic-report-pdf-only.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/diagnostic-report-pdf-only.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_:d516886eb74d58d5a5f38d9b1899cbe a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:e55c09d7b94f857acce08e52f2076462 oa:hasSource <../in/diagnostic-report-pdf-only.json> .\n_:d516886eb74d58d5a5f38d9b1899cbe oa:refinedBy _:ad6fdcdbf53337b6bc012768eb4c868a .\n_:ad6fdcdbf53337b6bc012768eb4c868a a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/presentedForm/0/data\" .\n_:e55c09d7b94f857acce08e52f2076462 oa:hasSelector _:d516886eb74d58d5a5f38d9b1899cbe .\n_:c13c59d1db62078d79d1ebac4f360340 oa:hasTarget _:e55c09d7b94f857acce08e52f2076462 ;\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}}