{"name": "procedure-performed-date-and-period", "comment": "A Procedure that states both a performedDateTime and a performedPeriod, which FHIR allows only one of and real feeds send: its date is the performedDateTime alone, one cascade:procedureDate, and the period start is not a second one; the period end is reported.", "input": {"file": "fixtures/in/procedure-performed-date-and-period.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/procedure-performed-date-and-period.json", "text": "{\n  \"resourceType\": \"Procedure\",\n  \"id\": \"proc-both-1\",\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-03-05T09: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-performed-date-and-period.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/procedure-performed-date-and-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;9f_PkPx9TrYEdH6Z28AhTpletpARP1n6SuEfuv-x3qc> cascade:procedureName \"Colonoscopy\" ;\n\tcascade:procedureCode <http://snomed.info/id/73761001> ;\n\tcascade:procedureDate \"2026-03-05T09:00:00-05:00\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"completed\" .\n<urn:uuid:f6f8134c-b346-8c9f-ae57-8313172e1de7> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Procedure/proc-both-1> ;\n\tcascade:sourceRecordId \"proc-both-1\" .\n<ni:///sha-256;9f_PkPx9TrYEdH6Z28AhTpletpARP1n6SuEfuv-x3qc> prov:specializationOf <urn:uuid:f6f8134c-b346-8c9f-ae57-8313172e1de7> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:ad54748bcdb6b34faad01d355533e478 bridge:arrivedAs <ni:///sha-256;9f_PkPx9TrYEdH6Z28AhTpletpARP1n6SuEfuv-x3qc> ;\n\toa:hasSelector _:d777175907e263ac7f2cde87d9f43e04 ;\n\toa:hasSource <ni:///sha-256;Vm0IV5GbDA4QiWkUz1oGoLAZ-mVmFY_zCkf9vAKV-AU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Vm0IV5GbDA4QiWkUz1oGoLAZ-mVmFY_zCkf9vAKV-AU> ;\n\tprov:wasGeneratedBy _:5851c572f2c79436d8d82a492c2e23f .\n_:d777175907e263ac7f2cde87d9f43e04 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;Vm0IV5GbDA4QiWkUz1oGoLAZ-mVmFY_zCkf9vAKV-AU> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:fb04f87c97a9ec88e30f9aa2ca1730ca ;\n\tprov:wasAttributedTo _:a82ef4d040281f6b24d716632590ae54 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:9124178bf5bc93e7af01717179b6a627 prov:agent _:a82ef4d040281f6b24d716632590ae54 ;\n\tprov:hadRole cascade:AuthorRole .\n_:fb04f87c97a9ec88e30f9aa2ca1730ca prov:qualifiedAssociation _:9124178bf5bc93e7af01717179b6a627 .\n_:65c6d6ae0619589eb515b061dbbcc495 prov:agent _:88547bd439131a4f5005d1a5a60a9181 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:fb04f87c97a9ec88e30f9aa2ca1730ca prov:qualifiedAssociation _:65c6d6ae0619589eb515b061dbbcc495 .\n_:a82ef4d040281f6b24d716632590ae54 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:88547bd439131a4f5005d1a5a60a9181 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:5851c572f2c79436d8d82a492c2e23f <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;Vm0IV5GbDA4QiWkUz1oGoLAZ-mVmFY_zCkf9vAKV-AU> a prov:Entity .\n_:5851c572f2c79436d8d82a492c2e23f a prov:Activity ;\n\tprov:used <ni:///sha-256;Vm0IV5GbDA4QiWkUz1oGoLAZ-mVmFY_zCkf9vAKV-AU> ;\n\tprov:qualifiedAssociation _:50adbfea1cfab33f1350dbc3aad04637 .\n_:50adbfea1cfab33f1350dbc3aad04637 prov:hadPlan _:5a25128597c8a05cf88c927298f37c4 .\n_:5a25128597c8a05cf88c927298f37c4 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:50adbfea1cfab33f1350dbc3aad04637 prov:agent _:3502cb0ecda9381bb3830d256eb3c108 .\n_:3502cb0ecda9381bb3830d256eb3c108 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-performed-date-and-period.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/procedure-performed-date-and-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_:bbf2935f216c29cb0e566c73a7717db3 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:b1f4ff0cdbe49950785afc5b9ba17c38 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/performedPeriod/end\" .\n_:bbf2935f216c29cb0e566c73a7717db3 oa:refinedBy _:b1f4ff0cdbe49950785afc5b9ba17c38 .\n_:dd1d67e0898a79de38ce59ff1c1ceda1 a oa:Annotation ;\n\toa:hasTarget _:c538d47aeefc65cc2cdcc3c6d9d63688 .\n_:c538d47aeefc65cc2cdcc3c6d9d63688 oa:hasSource <../in/procedure-performed-date-and-period.json> ;\n\toa:hasSelector _:bbf2935f216c29cb0e566c73a7717db3 .\n_:dd1d67e0898a79de38ce59ff1c1ceda1 oa:hasBody fhirr4:procedurePeriodEnd ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/performedPeriod/end\" ;\n\tsh:resultSeverity sh:Info .\n", "empty": false}}