{"name": "diagnostic-report-times-absent-for-reason", "comment": "A DiagnosticReport whose effective time and issued time are absent, each for a reason the data-absent-reason extension gives: a cascade:ValueAbsentForReason node for each, as for any other date.", "input": {"file": "fixtures/in/diagnostic-report-times-absent-for-reason.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/diagnostic-report-times-absent-for-reason.json", "text": "{\n  \"resourceType\": \"DiagnosticReport\",\n  \"id\": \"b12-report-times-absent\",\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  \"_effectiveDateTime\": {\n    \"extension\": [\n      {\n        \"url\": \"http://hl7.org/fhir/StructureDefinition/data-absent-reason\",\n        \"valueCode\": \"unknown\"\n      }\n    ]\n  },\n  \"_issued\": {\n    \"extension\": [\n      {\n        \"url\": \"http://hl7.org/fhir/StructureDefinition/data-absent-reason\",\n        \"valueCode\": \"masked\"\n      }\n    ]\n  },\n  \"presentedForm\": [\n    {\n      \"contentType\": \"application/pdf\",\n      \"url\": \"Binary/b12-times-absent\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/diagnostic-report-times-absent-for-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/diagnostic-report-times-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;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g> cascade:valueAbsentForReason <ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g#absent-reportEffectiveTime> .\n<ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g#absent-reportEffectiveTime> cascade:absentValueProperty cascade:reportEffectiveTime ;\n\tcascade:absentReasonCode <https://ns.cascadeprotocol.org/codes/data-absent-reason/unknown> .\n<ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g> cascade:valueAbsentForReason <ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g#absent-reportIssuedTime> .\n<ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g#absent-reportIssuedTime> cascade:absentValueProperty cascade:reportIssuedTime ;\n\tcascade:absentReasonCode <https://ns.cascadeprotocol.org/codes/data-absent-reason/masked> .\n<ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g> cascade:attachment <ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g#attachment-1> .\n<ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g#attachment-1> cascade:attachmentContentType \"application/pdf\" ;\n\tcascade:attachmentUrl \"Binary/b12-times-absent\"^^xsd:anyURI .\n<urn:uuid:e9020e80-29c8-8916-b4b6-892029a0d327> a cascade:DiagnosticReport ;\n\tcascade:sourceUrl <http://example.org/fhir/DiagnosticReport/b12-report-times-absent> ;\n\tcascade:sourceRecordId \"b12-report-times-absent\" .\n<ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g> prov:specializationOf <urn:uuid:e9020e80-29c8-8916-b4b6-892029a0d327> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:b1981c2fccb37a06e7312326fc2637fb bridge:arrivedAs <ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g> .\n<ni:///sha-256;hc4bg5tpODWKBjo7SvTsaZXy_KA49NDBWlFNmp1vm9g> cascade:workflowStatus \"final\" ;\n\tcascade:reportCode <http://loinc.org/rdf/2132-9> ;\n\tcascade:reportName \"Cobalamin (Vitamin B12) [Mass/volume] in Serum or Plasma\" .\n_:b1981c2fccb37a06e7312326fc2637fb oa:hasSelector _:9ead756b6353ae7456472b804b90fbd2 ;\n\toa:hasSource <ni:///sha-256;elGufAxc0yc46HRHJvTxBWvjMiow5ap1DXW6njRZ3kk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;elGufAxc0yc46HRHJvTxBWvjMiow5ap1DXW6njRZ3kk> ;\n\tprov:wasGeneratedBy _:3a32e19537b3c0d1d5ec1320194a9f5e .\n_:9ead756b6353ae7456472b804b90fbd2 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;elGufAxc0yc46HRHJvTxBWvjMiow5ap1DXW6njRZ3kk> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:3a32e19537b3c0d1d5ec1320194a9f5e <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;elGufAxc0yc46HRHJvTxBWvjMiow5ap1DXW6njRZ3kk> a prov:Entity .\n_:3a32e19537b3c0d1d5ec1320194a9f5e a prov:Activity ;\n\tprov:used <ni:///sha-256;elGufAxc0yc46HRHJvTxBWvjMiow5ap1DXW6njRZ3kk> ;\n\tprov:qualifiedAssociation _:156cc71685f5df6bc6a06f28350f83ef .\n_:156cc71685f5df6bc6a06f28350f83ef prov:hadPlan _:50155a7fa0c1c7bdf90435ecad783721 .\n_:50155a7fa0c1c7bdf90435ecad783721 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:156cc71685f5df6bc6a06f28350f83ef prov:agent _:1ef78864356b0276529d47ad699c630e .\n_:1ef78864356b0276529d47ad699c630e 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-times-absent-for-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/diagnostic-report-times-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_:a19e8706a3267f12ff71d4cdfa54bd7c a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:ba75d90a02bc4a185ddba4cbe668348c oa:hasSource <../in/diagnostic-report-times-absent-for-reason.json> .\n_:a19e8706a3267f12ff71d4cdfa54bd7c oa:refinedBy _:e35f2e3c99074d489a3eaa0eb9cd318 .\n_:e35f2e3c99074d489a3eaa0eb9cd318 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/presentedForm/0/url\" .\n_:ba75d90a02bc4a185ddba4cbe668348c oa:hasSelector _:a19e8706a3267f12ff71d4cdfa54bd7c .\n_:b558f0f86bbec13bdbcf011a85e71e97 oa:hasTarget _:ba75d90a02bc4a185ddba4cbe668348c ;\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}}