{"name": "document-reference-inline-pdf", "comment": "A note whose content is an inline PDF with an empty title, beside text/plain of white space only: its data reported as not read, its title not carried, and its text its narrative div; FHIR's schema refuses the empty title.", "input": {"file": "fixtures/in/document-reference-inline-pdf.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/document-reference-inline-pdf.json", "text": "{\n  \"resourceType\": \"DocumentReference\",\n  \"id\": \"inline-pdf\",\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        \"data\": \"JVBERi0xLjQK\",\n        \"title\": \"\"\n      }\n    },\n    {\n      \"attachment\": {\n        \"contentType\": \"text/plain\",\n        \"data\": \"IAog\"\n      }\n    }\n  ],\n  \"text\": {\n    \"status\": \"generated\",\n    \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\">Discharge summary, in the PDF</div>\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/document-reference-inline-pdf.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/document-reference-inline-pdf.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;9Hj5WkKd7p0OXxxNoH5PDoI4FVZ9STu_93P2G4yfqkI> cascade:attachment <ni:///sha-256;9Hj5WkKd7p0OXxxNoH5PDoI4FVZ9STu_93P2G4yfqkI#attachment-2> .\n<ni:///sha-256;9Hj5WkKd7p0OXxxNoH5PDoI4FVZ9STu_93P2G4yfqkI#attachment-2> cascade:attachmentContentType \"text/plain\" .\n<ni:///sha-256;9Hj5WkKd7p0OXxxNoH5PDoI4FVZ9STu_93P2G4yfqkI> cascade:attachment <ni:///sha-256;9Hj5WkKd7p0OXxxNoH5PDoI4FVZ9STu_93P2G4yfqkI#attachment-1> .\n<ni:///sha-256;9Hj5WkKd7p0OXxxNoH5PDoI4FVZ9STu_93P2G4yfqkI#attachment-1> cascade:attachmentContentType \"application/pdf\" .\n<ni:///sha-256;9Hj5WkKd7p0OXxxNoH5PDoI4FVZ9STu_93P2G4yfqkI> cascade:narrativeText \"Discharge summary, in the PDF\" ;\n\tcascade:noteOrDocumentTypeName \"Discharge summary\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/18842-5> .\n<urn:uuid:5447b638-74ff-87d0-84df-8884fcb0935b> a cascade:ClinicalNoteOrDocument ;\n\tcascade:sourceUrl <http://example.org/fhir/DocumentReference/inline-pdf> ;\n\tcascade:sourceRecordId \"inline-pdf\" .\n<ni:///sha-256;9Hj5WkKd7p0OXxxNoH5PDoI4FVZ9STu_93P2G4yfqkI> prov:specializationOf <urn:uuid:5447b638-74ff-87d0-84df-8884fcb0935b> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:107926707c8d793b2d0d4d7535ea703e bridge:arrivedAs <ni:///sha-256;9Hj5WkKd7p0OXxxNoH5PDoI4FVZ9STu_93P2G4yfqkI> ;\n\toa:hasSelector _:ec7e8fc823f511981a53e1af229c3420 ;\n\toa:hasSource <ni:///sha-256;_r70mmoYtvt90RKnzGXTo-jUiWBRzZLDZs4C0MkjRPQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;_r70mmoYtvt90RKnzGXTo-jUiWBRzZLDZs4C0MkjRPQ> ;\n\tprov:wasGeneratedBy _:bc78e9da59cc34106f8e2fa91516f5c8 .\n_:ec7e8fc823f511981a53e1af229c3420 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;_r70mmoYtvt90RKnzGXTo-jUiWBRzZLDZs4C0MkjRPQ> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:bc78e9da59cc34106f8e2fa91516f5c8 <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;_r70mmoYtvt90RKnzGXTo-jUiWBRzZLDZs4C0MkjRPQ> a prov:Entity .\n_:bc78e9da59cc34106f8e2fa91516f5c8 a prov:Activity ;\n\tprov:used <ni:///sha-256;_r70mmoYtvt90RKnzGXTo-jUiWBRzZLDZs4C0MkjRPQ> ;\n\tprov:qualifiedAssociation _:59fc7165f7b7fdbb2e0ef82f7f967d18 .\n_:59fc7165f7b7fdbb2e0ef82f7f967d18 prov:hadPlan _:ede15b41465ca59a88322b8cdfd2b381 .\n_:ede15b41465ca59a88322b8cdfd2b381 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:59fc7165f7b7fdbb2e0ef82f7f967d18 prov:agent _:ebcdb1603c262f69e7e0903e383df54b .\n_:ebcdb1603c262f69e7e0903e383df54b 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-inline-pdf.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/document-reference-inline-pdf.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_:b416cef4a4c08a160cbfeb3978ed787 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:ac59b7e848d52b4eaf9289025ebb3473 a oa:Annotation ;\n\toa:hasTarget _:d10ef52a8b6f72e009dcdc7dbebcaf2 .\n_:d10ef52a8b6f72e009dcdc7dbebcaf2 oa:hasSource <../in/document-reference-inline-pdf.json> ;\n\toa:hasSelector _:b416cef4a4c08a160cbfeb3978ed787 .\n_:ac59b7e848d52b4eaf9289025ebb3473 oa:hasBody <https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-01#section-6.28> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:resultSeverity sh:Violation .\n_:e73bc56a18b704b3168ea9f4a386b035 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:ab4a63b19ed396d9c265b4f0382ba3ff oa:hasSource <../in/document-reference-inline-pdf.json> .\n_:e73bc56a18b704b3168ea9f4a386b035 oa:refinedBy _:e674751defc8611dfcf2fb3a52a7835a .\n_:e674751defc8611dfcf2fb3a52a7835a a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/content/0/attachment/data\" .\n_:ab4a63b19ed396d9c265b4f0382ba3ff oa:hasSelector _:e73bc56a18b704b3168ea9f4a386b035 .\n_:cd905ca998b4d8e35ebd9beb591e0483 oa:hasTarget _:ab4a63b19ed396d9c265b4f0382ba3ff ;\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}}