{"name": "document-reference-progress-note", "comment": "A DocumentReference of a progress note: a note or document record with its LOINC type, type name, title, date, status, author and its inline text/plain attachment's decoded text as its narrative text; its narrative div, not that text, is reported.", "input": {"file": "fixtures/in/document-reference-progress-note.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/document-reference-progress-note.json", "text": "{\n  \"resourceType\": \"DocumentReference\",\n  \"id\": \"progress-note-1\",\n  \"text\": {\n    \"status\": \"generated\",\n    \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\">Progress note, 20 August 2026</div>\"\n  },\n  \"status\": \"current\",\n  \"docStatus\": \"final\",\n  \"type\": {\n    \"coding\": [\n      {\n        \"system\": \"http://loinc.org\",\n        \"code\": \"11506-3\",\n        \"display\": \"Progress note\"\n      }\n    ],\n    \"text\": \"Progress note\"\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  \"author\": [\n    {\n      \"reference\": \"Organization/clinic-1\"\n    }\n  ],\n  \"description\": \"Follow-up visit\",\n  \"content\": [\n    {\n      \"attachment\": {\n        \"contentType\": \"text/plain\",\n        \"data\": \"U2VlbiBmb3IgZm9sbG93LXVwIG9mIGEgbG93IHZpdGFtaW4gQjEyLgpTdGFydGVkIG9yYWwgY3lhbm9jb2JhbGFtaW4u\",\n        \"title\": \"Progress note\"\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/document-reference-progress-note.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/document-reference-progress-note.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;t3CA4BNoWGoptvMbxpaoCWrPglfgEh1a4l9uBEqM7lo> cascade:attachment <ni:///sha-256;t3CA4BNoWGoptvMbxpaoCWrPglfgEh1a4l9uBEqM7lo#attachment-1> .\n<ni:///sha-256;t3CA4BNoWGoptvMbxpaoCWrPglfgEh1a4l9uBEqM7lo#attachment-1> cascade:attachmentContentType \"text/plain\" ;\n\tcascade:attachmentTitle \"Progress note\" .\n<ni:///sha-256;t3CA4BNoWGoptvMbxpaoCWrPglfgEh1a4l9uBEqM7lo> cascade:narrativeText \"Seen for follow-up of a low vitamin B12.\\nStarted oral cyanocobalamin.\" ;\n\tcascade:noteOrDocumentTypeName \"Progress note\" ;\n\tcascade:noteOrDocumentTitle \"Follow-up visit\" ;\n\tcascade:noteOrDocumentContentStatus \"final\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentDate \"2026-08-20T14:05:00Z\"^^xsd:dateTime ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/11506-3> .\n<urn:uuid:7eeb6238-cd05-8f8c-95c0-a8ec8ee0be79> a cascade:ClinicalNoteOrDocument ;\n\tcascade:sourceUrl <http://example.org/fhir/DocumentReference/progress-note-1> ;\n\tcascade:sourceRecordId \"progress-note-1\" .\n<ni:///sha-256;t3CA4BNoWGoptvMbxpaoCWrPglfgEh1a4l9uBEqM7lo> prov:specializationOf <urn:uuid:7eeb6238-cd05-8f8c-95c0-a8ec8ee0be79> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:5770bc98002ee559d6d2588bfeb17e24 bridge:arrivedAs <ni:///sha-256;t3CA4BNoWGoptvMbxpaoCWrPglfgEh1a4l9uBEqM7lo> .\n<ni:///sha-256;t3CA4BNoWGoptvMbxpaoCWrPglfgEh1a4l9uBEqM7lo> prov:wasAttributedTo <urn:uuid:38dc4c6f-afed-8906-9d10-6b16ca99a434> .\n_:5770bc98002ee559d6d2588bfeb17e24 oa:hasSelector _:f4e5e59994ed2898b4bde4583cb919b7 ;\n\toa:hasSource <ni:///sha-256;HwCFzVLILCJchLVnE3gXQRAf2NVbtB-kmTsJCjlx6Z0> ;\n\tprov:wasDerivedFrom <ni:///sha-256;HwCFzVLILCJchLVnE3gXQRAf2NVbtB-kmTsJCjlx6Z0> ;\n\tprov:wasGeneratedBy _:2163857f3821c5c006bc16d554db3010 .\n_:f4e5e59994ed2898b4bde4583cb919b7 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;HwCFzVLILCJchLVnE3gXQRAf2NVbtB-kmTsJCjlx6Z0> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:2163857f3821c5c006bc16d554db3010 <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;HwCFzVLILCJchLVnE3gXQRAf2NVbtB-kmTsJCjlx6Z0> a prov:Entity .\n_:2163857f3821c5c006bc16d554db3010 a prov:Activity ;\n\tprov:used <ni:///sha-256;HwCFzVLILCJchLVnE3gXQRAf2NVbtB-kmTsJCjlx6Z0> ;\n\tprov:qualifiedAssociation _:15c98e8f5bcbb7363aa9e64e9fdec828 .\n_:15c98e8f5bcbb7363aa9e64e9fdec828 prov:hadPlan _:2713704d1d43a58a1cf59ba8b162adcf .\n_:2713704d1d43a58a1cf59ba8b162adcf a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:15c98e8f5bcbb7363aa9e64e9fdec828 prov:agent _:7b0305905024a1eb4dacacc1a99918c5 .\n_:7b0305905024a1eb4dacacc1a99918c5 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-progress-note.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/document-reference-progress-note.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_:cc73d845b505e3d7b5d417502c7fb781 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:d7a1be5145bdea315ba2f18505542846 oa:hasSource <../in/document-reference-progress-note.json> .\n_:cc73d845b505e3d7b5d417502c7fb781 oa:refinedBy _:f61cb5a9621afc0d73f2070b9af40b22 .\n_:f61cb5a9621afc0d73f2070b9af40b22 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/text/div\" .\n_:d7a1be5145bdea315ba2f18505542846 oa:hasSelector _:cc73d845b505e3d7b5d417502c7fb781 .\n_:ea16a5cb2fe85d994ffbbfca840e72f8 oa:hasTarget _:d7a1be5145bdea315ba2f18505542846 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:narrative ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/text/div\" .\n", "empty": false}}