{"name": "procedure-performed-period", "comment": "A Procedure performed over a period with a start and an end: its date is the period's start, as cascade:procedureDate, the vocabulary's procedure date taking the low of a C-CDA effectiveTime; the end has no Cascade predicate and is reported, as is the reference to its encounter.", "input": {"file": "fixtures/in/procedure-performed-period.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/procedure-performed-period.json", "text": "{\n  \"resourceType\": \"Procedure\",\n  \"id\": \"proc-period-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  \"encounter\": {\n    \"reference\": \"Encounter/enc-visit-1\"\n  },\n  \"performedPeriod\": {\n    \"start\": \"2026-02-18T09:30:00-05:00\",\n    \"end\": \"2026-02-18T10:45:00-05:00\"\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/procedure-performed-period.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/procedure-performed-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;jh-12YSUh6rmr9YheT3fg2-GVhpejWqLB6eOJ8xph_c> cascade:procedureName \"Colonoscopy\" ;\n\tcascade:procedureCode <http://snomed.info/id/73761001> ;\n\tcascade:procedureDate \"2026-02-18T09:30:00-05:00\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"completed\" .\n<urn:uuid:d532332e-0b6b-875f-bdd7-db814c70a32b> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Procedure/proc-period-1> ;\n\tcascade:sourceRecordId \"proc-period-1\" .\n<ni:///sha-256;jh-12YSUh6rmr9YheT3fg2-GVhpejWqLB6eOJ8xph_c> prov:specializationOf <urn:uuid:d532332e-0b6b-875f-bdd7-db814c70a32b> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:c143037c9459efcf654f933dfcbcbf1c bridge:arrivedAs <ni:///sha-256;jh-12YSUh6rmr9YheT3fg2-GVhpejWqLB6eOJ8xph_c> ;\n\toa:hasSelector _:f3c94ceeeea12e1920b544b6bd342e24 ;\n\toa:hasSource <ni:///sha-256;JdhNgnqLlfg4T-FDJM3lLeWCzWoDyemK5mEsi1t9YXU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;JdhNgnqLlfg4T-FDJM3lLeWCzWoDyemK5mEsi1t9YXU> ;\n\tprov:wasGeneratedBy _:a295070f09f101fd7c9fc5822c8595bf .\n_:f3c94ceeeea12e1920b544b6bd342e24 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;JdhNgnqLlfg4T-FDJM3lLeWCzWoDyemK5mEsi1t9YXU> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:3b877758eadd68d7e59b1c299471335 ;\n\tprov:wasAttributedTo _:b3260e229597953805c5f2e8ea8fa4ee ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:1ab40fb349db90fee7e45839ff4b27fb prov:agent _:b3260e229597953805c5f2e8ea8fa4ee ;\n\tprov:hadRole cascade:AuthorRole .\n_:3b877758eadd68d7e59b1c299471335 prov:qualifiedAssociation _:1ab40fb349db90fee7e45839ff4b27fb .\n_:ebfab94b34cc5a3922b68d6ecc1a94e4 prov:agent _:c5fb795e13404cbef7030812f11d358b ;\n\tprov:hadRole cascade:TransmitterRole .\n_:3b877758eadd68d7e59b1c299471335 prov:qualifiedAssociation _:ebfab94b34cc5a3922b68d6ecc1a94e4 .\n_:b3260e229597953805c5f2e8ea8fa4ee <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:c5fb795e13404cbef7030812f11d358b <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:a295070f09f101fd7c9fc5822c8595bf <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;JdhNgnqLlfg4T-FDJM3lLeWCzWoDyemK5mEsi1t9YXU> a prov:Entity .\n_:a295070f09f101fd7c9fc5822c8595bf a prov:Activity ;\n\tprov:used <ni:///sha-256;JdhNgnqLlfg4T-FDJM3lLeWCzWoDyemK5mEsi1t9YXU> ;\n\tprov:qualifiedAssociation _:78e6480c8bb4e499a48a5ef99564138d .\n_:78e6480c8bb4e499a48a5ef99564138d prov:hadPlan _:ce402da1b61b7cf608decc0d99c4d792 .\n_:ce402da1b61b7cf608decc0d99c4d792 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:78e6480c8bb4e499a48a5ef99564138d prov:agent _:e66a9bd38e5e40ca1c4347fe31a8dec9 .\n_:e66a9bd38e5e40ca1c4347fe31a8dec9 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-period.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/procedure-performed-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_:f80ac24d5aa01fb1f34b46113d220f48 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:df871124921b90e0411bddbd95a19ee5 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/encounter/reference\" .\n_:f80ac24d5aa01fb1f34b46113d220f48 oa:refinedBy _:df871124921b90e0411bddbd95a19ee5 .\n_:d2dd5fde3ea15ef9ea44d305e4b9335c a oa:Annotation ;\n\toa:hasTarget _:f27f33e78cbeb2e61499601380603f19 .\n_:f27f33e78cbeb2e61499601380603f19 oa:hasSource <../in/procedure-performed-period.json> ;\n\toa:hasSelector _:f80ac24d5aa01fb1f34b46113d220f48 .\n_:d2dd5fde3ea15ef9ea44d305e4b9335c oa:hasBody fhirr4:encounterNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/encounter/reference\" ;\n\tsh:resultSeverity sh:Info .\n_:fe4bad6d7826ee34e9cd0ca6e693c1b1 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:a2eeb7343049b83de18d986d2935061d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/performedPeriod/end\" .\n_:fe4bad6d7826ee34e9cd0ca6e693c1b1 oa:refinedBy _:a2eeb7343049b83de18d986d2935061d .\n_:cec0fb5894b2b413d6195af491ee0fab a oa:Annotation ;\n\toa:hasTarget _:c7b5cfd6a56788ed84b2500c9e896af5 .\n_:c7b5cfd6a56788ed84b2500c9e896af5 oa:hasSource <../in/procedure-performed-period.json> ;\n\toa:hasSelector _:fe4bad6d7826ee34e9cd0ca6e693c1b1 .\n_:cec0fb5894b2b413d6195af491ee0fab oa:hasBody fhirr4:procedurePeriodEnd ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/performedPeriod/end\" ;\n\tsh:resultSeverity sh:Info .\n", "empty": false}}