{"name": "diagnostic-report-numeric-references", "comment": "A report whose div holds every numeric reference the text reads, decimal and hexadecimal, and whose PDF is given both inline and by URL: the references read, and the PDF reported at its data alone.", "input": {"file": "fixtures/in/diagnostic-report-numeric-references.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/diagnostic-report-numeric-references.json", "text": "{\n  \"resourceType\": \"DiagnosticReport\",\n  \"id\": \"numeric-references\",\n  \"status\": \"final\",\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  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-1\"\n  },\n  \"text\": {\n    \"status\": \"generated\",\n    \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\">a&#60;b&#x3C;c&#62;d&#x3E;e&#34;f&#x22;g&#x27;h&#38;i&#x26;j&#xA0;k&#8212;l&#8211;m&#x2013;n</div>\"\n  },\n  \"presentedForm\": [\n    {\n      \"contentType\": \"application/pdf\",\n      \"data\": \"JVBERi0xLjQK\",\n      \"url\": \"Binary/numeric-references\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/diagnostic-report-numeric-references.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/diagnostic-report-numeric-references.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;DlIfyypEBFCpowTf6DfkRQ1F5ELPP-qM2lpAND8iaFA> cascade:attachment <ni:///sha-256;DlIfyypEBFCpowTf6DfkRQ1F5ELPP-qM2lpAND8iaFA#attachment-1> .\n<ni:///sha-256;DlIfyypEBFCpowTf6DfkRQ1F5ELPP-qM2lpAND8iaFA#attachment-1> cascade:attachmentContentType \"application/pdf\" ;\n\tcascade:attachmentUrl \"Binary/numeric-references\"^^xsd:anyURI .\n<ni:///sha-256;DlIfyypEBFCpowTf6DfkRQ1F5ELPP-qM2lpAND8iaFA> cascade:narrativeText \"a<b<c>d>e\\\"f\\\"g'h&i&j k—l–m–n\" .\n<urn:uuid:b29ac418-b483-89a3-a0f1-58d5a0457717> a cascade:DiagnosticReport ;\n\tcascade:sourceUrl <http://example.org/fhir/DiagnosticReport/numeric-references> ;\n\tcascade:sourceRecordId \"numeric-references\" .\n<ni:///sha-256;DlIfyypEBFCpowTf6DfkRQ1F5ELPP-qM2lpAND8iaFA> prov:specializationOf <urn:uuid:b29ac418-b483-89a3-a0f1-58d5a0457717> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:987da61b3a85d423dc841a5ae2d8fcec bridge:arrivedAs <ni:///sha-256;DlIfyypEBFCpowTf6DfkRQ1F5ELPP-qM2lpAND8iaFA> .\n<ni:///sha-256;DlIfyypEBFCpowTf6DfkRQ1F5ELPP-qM2lpAND8iaFA> cascade:reportName \"Cobalamin (Vitamin B12) [Mass/volume] in Serum or Plasma\" ;\n\tcascade:workflowStatus \"final\" ;\n\tcascade:reportCode <http://loinc.org/rdf/2132-9> .\n_:987da61b3a85d423dc841a5ae2d8fcec oa:hasSelector _:2efd73f187b6d494027ff40ba6bb5ec2 ;\n\toa:hasSource <ni:///sha-256;fhg4_r2dxDg3b-1sAkuXxSqWj2p-Kb9RTkw3syBTZnM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;fhg4_r2dxDg3b-1sAkuXxSqWj2p-Kb9RTkw3syBTZnM> ;\n\tprov:wasGeneratedBy _:36e0588af5fee6b1be4cee5f361eac2d .\n_:2efd73f187b6d494027ff40ba6bb5ec2 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;fhg4_r2dxDg3b-1sAkuXxSqWj2p-Kb9RTkw3syBTZnM> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:36e0588af5fee6b1be4cee5f361eac2d <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;fhg4_r2dxDg3b-1sAkuXxSqWj2p-Kb9RTkw3syBTZnM> a prov:Entity .\n_:36e0588af5fee6b1be4cee5f361eac2d a prov:Activity ;\n\tprov:used <ni:///sha-256;fhg4_r2dxDg3b-1sAkuXxSqWj2p-Kb9RTkw3syBTZnM> ;\n\tprov:qualifiedAssociation _:c371673e52efbd7932c544a6746361e0 .\n_:c371673e52efbd7932c544a6746361e0 prov:hadPlan _:cd5e1baf7bac8ec7a7bbb9c54c8cdae7 .\n_:cd5e1baf7bac8ec7a7bbb9c54c8cdae7 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:c371673e52efbd7932c544a6746361e0 prov:agent _:42e59ee37ad413682991ac8076777d66 .\n_:42e59ee37ad413682991ac8076777d66 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-numeric-references.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/diagnostic-report-numeric-references.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_:b9f8b426fdf80332041b2a7d059d8a3e a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:a8470d364b97dd706918282e0a0b29e1 oa:hasSource <../in/diagnostic-report-numeric-references.json> .\n_:b9f8b426fdf80332041b2a7d059d8a3e oa:refinedBy _:b82b85885e82386bc18b8ca2cdaa63f0 .\n_:b82b85885e82386bc18b8ca2cdaa63f0 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_:a8470d364b97dd706918282e0a0b29e1 oa:hasSelector _:b9f8b426fdf80332041b2a7d059d8a3e .\n_:ef0ac56c15ef4289fd8f17d4ad40594d oa:hasTarget _:a8470d364b97dd706918282e0a0b29e1 ;\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}}