{"name": "document-reference-date-absent-for-reason", "comment": "A DocumentReference of a progress note whose date is absent for a reason the data-absent-reason extension gives: a cascade:ValueAbsentForReason node naming cascade:noteOrDocumentDate.", "input": {"file": "fixtures/in/document-reference-date-absent-for-reason.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/document-reference-date-absent-for-reason.json", "text": "{\n  \"resourceType\": \"DocumentReference\",\n  \"id\": \"progress-note-date-absent\",\n  \"status\": \"current\",\n  \"type\": {\n    \"coding\": [\n      {\n        \"system\": \"http://loinc.org\",\n        \"code\": \"11506-3\",\n        \"display\": \"Progress note\"\n      }\n    ]\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-1\"\n  },\n  \"_date\": {\n    \"extension\": [\n      {\n        \"url\": \"http://hl7.org/fhir/StructureDefinition/data-absent-reason\",\n        \"valueCode\": \"unknown\"\n      }\n    ]\n  },\n  \"content\": [\n    {\n      \"attachment\": {\n        \"contentType\": \"application/pdf\",\n        \"url\": \"Binary/progress-note-date-absent\"\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/document-reference-date-absent-for-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/document-reference-date-absent-for-reason.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;LOPIZ06-tQZpLvMu1wV-LLVBCK6eCLhX17OKxAPimIw> cascade:valueAbsentForReason <ni:///sha-256;LOPIZ06-tQZpLvMu1wV-LLVBCK6eCLhX17OKxAPimIw#absent-noteOrDocumentDate> .\n<ni:///sha-256;LOPIZ06-tQZpLvMu1wV-LLVBCK6eCLhX17OKxAPimIw#absent-noteOrDocumentDate> cascade:absentValueProperty cascade:noteOrDocumentDate ;\n\tcascade:absentReasonCode <https://ns.cascadeprotocol.org/codes/data-absent-reason/unknown> .\n<ni:///sha-256;LOPIZ06-tQZpLvMu1wV-LLVBCK6eCLhX17OKxAPimIw> cascade:attachment <ni:///sha-256;LOPIZ06-tQZpLvMu1wV-LLVBCK6eCLhX17OKxAPimIw#attachment-1> .\n<ni:///sha-256;LOPIZ06-tQZpLvMu1wV-LLVBCK6eCLhX17OKxAPimIw#attachment-1> cascade:attachmentContentType \"application/pdf\" ;\n\tcascade:attachmentUrl \"Binary/progress-note-date-absent\"^^xsd:anyURI .\n<ni:///sha-256;LOPIZ06-tQZpLvMu1wV-LLVBCK6eCLhX17OKxAPimIw> cascade:noteOrDocumentTypeName \"Progress note\" ;\n\tcascade:workflowStatus \"current\" ;\n\tcascade:noteOrDocumentTypeCode <http://loinc.org/rdf/11506-3> .\n<urn:uuid:11ff43a0-8e90-891f-a9c3-3739466588ad> a cascade:ClinicalNoteOrDocument ;\n\tcascade:sourceUrl <http://example.org/fhir/DocumentReference/progress-note-date-absent> ;\n\tcascade:sourceRecordId \"progress-note-date-absent\" .\n<ni:///sha-256;LOPIZ06-tQZpLvMu1wV-LLVBCK6eCLhX17OKxAPimIw> prov:specializationOf <urn:uuid:11ff43a0-8e90-891f-a9c3-3739466588ad> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:e45ba7de86ade038c3794943c82f1684 bridge:arrivedAs <ni:///sha-256;LOPIZ06-tQZpLvMu1wV-LLVBCK6eCLhX17OKxAPimIw> ;\n\toa:hasSelector _:1738f386c4228231ea1b6fe02a2f7401 ;\n\toa:hasSource <ni:///sha-256;owyiTvsi1TgFWHKhIxGyQWKt-QoQGF-1w8SQP5jU5RM> ;\n\tprov:wasDerivedFrom <ni:///sha-256;owyiTvsi1TgFWHKhIxGyQWKt-QoQGF-1w8SQP5jU5RM> ;\n\tprov:wasGeneratedBy _:28f2f10bf7bfb6dc301cb3903b0fb36a .\n_:1738f386c4228231ea1b6fe02a2f7401 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;owyiTvsi1TgFWHKhIxGyQWKt-QoQGF-1w8SQP5jU5RM> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:28f2f10bf7bfb6dc301cb3903b0fb36a <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;owyiTvsi1TgFWHKhIxGyQWKt-QoQGF-1w8SQP5jU5RM> a prov:Entity .\n_:28f2f10bf7bfb6dc301cb3903b0fb36a a prov:Activity ;\n\tprov:used <ni:///sha-256;owyiTvsi1TgFWHKhIxGyQWKt-QoQGF-1w8SQP5jU5RM> ;\n\tprov:qualifiedAssociation _:b6ee99be6ce9d5203d5a15eaa83bb878 .\n_:b6ee99be6ce9d5203d5a15eaa83bb878 prov:hadPlan _:aa19dfb9aab2f4aa737096ad5193af3 .\n_:aa19dfb9aab2f4aa737096ad5193af3 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:b6ee99be6ce9d5203d5a15eaa83bb878 prov:agent _:ddccd87124d38b9601cdb9b22e7d3513 .\n_:ddccd87124d38b9601cdb9b22e7d3513 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-date-absent-for-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/document-reference-date-absent-for-reason.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_:f010ebc18c4e5bfd1ff696633fe31e22 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:f1dfb36162020df0f5dbe3de2b908392 oa:hasSource <../in/document-reference-date-absent-for-reason.json> .\n_:f010ebc18c4e5bfd1ff696633fe31e22 oa:refinedBy _:e5ebbe964acf0bafcd8c3a4f39f618dc .\n_:e5ebbe964acf0bafcd8c3a4f39f618dc a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/content/0/attachment/url\" .\n_:f1dfb36162020df0f5dbe3de2b908392 oa:hasSelector _:f010ebc18c4e5bfd1ff696633fe31e22 .\n_:ae1f9108209b243bf73b6eb21bb98011 oa:hasTarget _:f1dfb36162020df0f5dbe3de2b908392 ;\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}}