{"name": "diagnostic-report-narrative-markup", "comment": "A DiagnosticReport whose only text is its narrative div, with a line break, a table, the XML entities, &nbsp; and numeric references: its text a line to each, the references read.", "input": {"file": "fixtures/in/diagnostic-report-narrative-markup.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/diagnostic-report-narrative-markup.json", "text": "{\n  \"resourceType\": \"DiagnosticReport\",\n  \"id\": \"narrative-markup\",\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\\\"><p>B12 &lt; 200 pg/mL&#160;&amp; folate &quot;normal&quot;, the patient&apos;s diet &#39;mixed&#39;&nbsp;&#x2014; repeat<br/>in 3 months</p><table><tr><td>B12</td><td>150 pg/mL</td></tr></table></div>\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/diagnostic-report-narrative-markup.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/diagnostic-report-narrative-markup.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;Q6-w2VI3eRAurKDxP9BI7n_-utmUAPauZDH_kx09JLw> cascade:narrativeText \"B12 < 200 pg/mL & folate \\\"normal\\\", the patient's diet 'mixed' — repeat\\nin 3 months\\nB12\\n150 pg/mL\" .\n<urn:uuid:474cc339-337a-89df-b9a4-2aad3efa61f1> a cascade:DiagnosticReport ;\n\tcascade:sourceUrl <http://example.org/fhir/DiagnosticReport/narrative-markup> ;\n\tcascade:sourceRecordId \"narrative-markup\" .\n<ni:///sha-256;Q6-w2VI3eRAurKDxP9BI7n_-utmUAPauZDH_kx09JLw> prov:specializationOf <urn:uuid:474cc339-337a-89df-b9a4-2aad3efa61f1> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:f3af86b855ddbe84d777bced2c7b4c00 bridge:arrivedAs <ni:///sha-256;Q6-w2VI3eRAurKDxP9BI7n_-utmUAPauZDH_kx09JLw> .\n<ni:///sha-256;Q6-w2VI3eRAurKDxP9BI7n_-utmUAPauZDH_kx09JLw> 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_:f3af86b855ddbe84d777bced2c7b4c00 oa:hasSelector _:2b1f9e34c2a1a08457c49b1ea4778eba ;\n\toa:hasSource <ni:///sha-256;qWoy0494hFtRv1v5-BXFj26U2A7b0i8hD-VEL7tpSIg> ;\n\tprov:wasDerivedFrom <ni:///sha-256;qWoy0494hFtRv1v5-BXFj26U2A7b0i8hD-VEL7tpSIg> ;\n\tprov:wasGeneratedBy _:5be93a3e3b432a8f5304c9c0b47021e0 .\n_:2b1f9e34c2a1a08457c49b1ea4778eba a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;qWoy0494hFtRv1v5-BXFj26U2A7b0i8hD-VEL7tpSIg> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:5be93a3e3b432a8f5304c9c0b47021e0 <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;qWoy0494hFtRv1v5-BXFj26U2A7b0i8hD-VEL7tpSIg> a prov:Entity .\n_:5be93a3e3b432a8f5304c9c0b47021e0 a prov:Activity ;\n\tprov:used <ni:///sha-256;qWoy0494hFtRv1v5-BXFj26U2A7b0i8hD-VEL7tpSIg> ;\n\tprov:qualifiedAssociation _:6c5b6e7b16933bba579cf7e44bb25793 .\n_:6c5b6e7b16933bba579cf7e44bb25793 prov:hadPlan _:9818eb2517e0a1456427674d90d0b1f6 .\n_:9818eb2517e0a1456427674d90d0b1f6 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:6c5b6e7b16933bba579cf7e44bb25793 prov:agent _:c69649d49d4b5859d16afb3a78f7e8b4 .\n_:c69649d49d4b5859d16afb3a78f7e8b4 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-narrative-markup.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/diagnostic-report-narrative-markup.ttl", "text": "", "empty": true}}