{"name": "procedure-unreadable-performed-date-beside-a-period", "comment": "A Procedure whose performedDateTime is a day the calendar lacks, beside a performedPeriod with a readable start: the performedDateTime is the date the source states, so the procedure has none and the date is reported; the period start does not stand in for it.", "input": {"file": "fixtures/in/procedure-unreadable-performed-date-beside-a-period.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/procedure-unreadable-performed-date-beside-a-period.json", "text": "{\n  \"resourceType\": \"Procedure\",\n  \"id\": \"proc-both-3\",\n  \"status\": \"completed\",\n  \"code\": {\n    \"coding\": [\n      {\n        \"system\": \"http://snomed.info/sct\",\n        \"code\": \"73761001\",\n        \"display\": \"Colonoscopy\"\n      }\n    ],\n    \"text\": \"Colonoscopy\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"performedDateTime\": \"2026-02-30T09:00:00-05:00\",\n  \"performedPeriod\": {\n    \"start\": \"2026-03-04T08:00:00-05:00\",\n    \"end\": \"2026-03-04T09:30:00-05:00\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/procedure-unreadable-performed-date-beside-a-period.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/procedure-unreadable-performed-date-beside-a-period.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;tiQymQsegfGLs3MHSwHJcUQfp_LY8MWJxpTdY_BjAKo> cascade:procedureName \"Colonoscopy\" ;\n\tcascade:procedureCode <http://snomed.info/id/73761001> ;\n\tcascade:workflowStatus \"completed\" .\n<urn:uuid:c980abdd-6360-8659-84a4-ae53fd8fe7ca> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Procedure/proc-both-3> ;\n\tcascade:sourceRecordId \"proc-both-3\" .\n<ni:///sha-256;tiQymQsegfGLs3MHSwHJcUQfp_LY8MWJxpTdY_BjAKo> prov:specializationOf <urn:uuid:c980abdd-6360-8659-84a4-ae53fd8fe7ca> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:20375da238d1db5bf67ae7a8b638caad bridge:arrivedAs <ni:///sha-256;tiQymQsegfGLs3MHSwHJcUQfp_LY8MWJxpTdY_BjAKo> ;\n\toa:hasSelector _:32b494b8cf6f0f6f4a8736ddf8ca8ac2 ;\n\toa:hasSource <ni:///sha-256;CIcxi4B7t79E83ZMB3lkPAPxX4MB2Vo1tKtLOHPh-sg> ;\n\tprov:wasDerivedFrom <ni:///sha-256;CIcxi4B7t79E83ZMB3lkPAPxX4MB2Vo1tKtLOHPh-sg> ;\n\tprov:wasGeneratedBy _:24824123114546dac450d7d32c2c12f5 .\n_:32b494b8cf6f0f6f4a8736ddf8ca8ac2 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;CIcxi4B7t79E83ZMB3lkPAPxX4MB2Vo1tKtLOHPh-sg> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:d5358c39dd65a15eb921f38c1357f450 ;\n\tprov:wasAttributedTo _:2dfa4e4d0d852ddb6dd7b3ec2f3d8517 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:635033a5c43c3c722d4fb1e8cdeb1337 prov:agent _:2dfa4e4d0d852ddb6dd7b3ec2f3d8517 ;\n\tprov:hadRole cascade:AuthorRole .\n_:d5358c39dd65a15eb921f38c1357f450 prov:qualifiedAssociation _:635033a5c43c3c722d4fb1e8cdeb1337 .\n_:ea378819535bfe986541917d542f3ed0 prov:agent _:48236fe3c66a71261a02fb55652cbb4f ;\n\tprov:hadRole cascade:TransmitterRole .\n_:d5358c39dd65a15eb921f38c1357f450 prov:qualifiedAssociation _:ea378819535bfe986541917d542f3ed0 .\n_:2dfa4e4d0d852ddb6dd7b3ec2f3d8517 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:48236fe3c66a71261a02fb55652cbb4f <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:24824123114546dac450d7d32c2c12f5 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health export\" ;\n\tprov:startedAtTime \"2026-09-01T10:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;CIcxi4B7t79E83ZMB3lkPAPxX4MB2Vo1tKtLOHPh-sg> a prov:Entity .\n_:24824123114546dac450d7d32c2c12f5 a prov:Activity ;\n\tprov:used <ni:///sha-256;CIcxi4B7t79E83ZMB3lkPAPxX4MB2Vo1tKtLOHPh-sg> ;\n\tprov:qualifiedAssociation _:78b715e47075c861f1234a47631136e3 .\n_:78b715e47075c861f1234a47631136e3 prov:hadPlan _:1f9cd48ee0c3b2d01800f6ff3e5cd970 .\n_:1f9cd48ee0c3b2d01800f6ff3e5cd970 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:78b715e47075c861f1234a47631136e3 prov:agent _:daaa0c5905394d220ce8ffd812ffa6d6 .\n_:daaa0c5905394d220ce8ffd812ffa6d6 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/procedure-unreadable-performed-date-beside-a-period.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/procedure-unreadable-performed-date-beside-a-period.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_:c44279e7a592a17bfc6eb40d2a1ca43f a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:c5a7f4299a3624378e2fe9ee45c65773 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/performedPeriod/end\" .\n_:c44279e7a592a17bfc6eb40d2a1ca43f oa:refinedBy _:c5a7f4299a3624378e2fe9ee45c65773 .\n_:b72cd0408cd553319999c14e9f329b2e a oa:Annotation ;\n\toa:hasTarget _:f9ee85100b9b897128475931978c09ba .\n_:f9ee85100b9b897128475931978c09ba oa:hasSource <../in/procedure-unreadable-performed-date-beside-a-period.json> ;\n\toa:hasSelector _:c44279e7a592a17bfc6eb40d2a1ca43f .\n_:b72cd0408cd553319999c14e9f329b2e oa:hasBody fhirr4:procedurePeriodEnd ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/performedPeriod/end\" ;\n\tsh:resultSeverity sh:Info .\n_:bcd02603c0b01a5b958df3969c572298 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:d418d57519d797144ce228925001f0aa oa:hasSource <../in/procedure-unreadable-performed-date-beside-a-period.json> .\n_:bcd02603c0b01a5b958df3969c572298 oa:refinedBy _:aa15aea0d271ea9719ae1b0d421aa773 .\n_:aa15aea0d271ea9719ae1b0d421aa773 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/performedDateTime\" .\n_:d418d57519d797144ce228925001f0aa oa:hasSelector _:bcd02603c0b01a5b958df3969c572298 .\n_:c63a7e38de7caaab645a52f3b315f4ce oa:hasTarget _:d418d57519d797144ce228925001f0aa ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:dateNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2026-02-30T09:00:00-05:00\" .\n", "empty": false}}