{"name": "procedure-with-contained-condition", "comment": null, "input": {"file": "fixtures/in/procedure-with-contained-condition.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/procedure-with-contained-condition.json", "text": "{\n  \"resourceType\": \"Procedure\",\n  \"id\": \"proc-echo-1\",\n  \"contained\": [\n    {\n      \"resourceType\": \"Condition\",\n      \"id\": \"reason\",\n      \"code\": {\n        \"coding\": [\n          {\n            \"system\": \"http://snomed.info/sct\",\n            \"code\": \"48867003\",\n            \"display\": \"Bradycardia\"\n          }\n        ],\n        \"text\": \"Bradycardia\"\n      },\n      \"subject\": {\n        \"reference\": \"Patient/pat-conformance-1\"\n      }\n    }\n  ],\n  \"status\": \"completed\",\n  \"code\": {\n    \"coding\": [\n      {\n        \"system\": \"http://snomed.info/sct\",\n        \"code\": \"40701008\",\n        \"display\": \"Echocardiography\"\n      }\n    ],\n    \"text\": \"Echocardiography\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"performedDateTime\": \"2025-06-11\",\n  \"reasonReference\": [\n    {\n      \"reference\": \"#reason\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/procedure-with-contained-condition.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/procedure-with-contained-condition.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;uhq_8eQfP8XFZKsfS92ovppEsT4695BLcELh2G7n_-U> cascade:conditionName \"Bradycardia\" ;\n\tcascade:conditionCode <http://snomed.info/id/48867003> .\n<ni:///sha-256;4ESHtvBNPlnOe5iNQxbU_so_E46Ioq6VnfRvuiiDIAU> cascade:procedureName \"Echocardiography\" ;\n\tcascade:procedureCode <http://snomed.info/id/40701008> ;\n\tcascade:procedureDate \"2025-06-11\"^^xsd:date ;\n\tcascade:workflowStatus \"completed\" .\n<urn:uuid:86875af4-7cd3-86e8-84f4-3e774d5f2947> a cascade:MedicalProcedure ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Procedure/proc-echo-1> ;\n\tcascade:sourceRecordId \"proc-echo-1\" .\n<ni:///sha-256;4ESHtvBNPlnOe5iNQxbU_so_E46Ioq6VnfRvuiiDIAU> prov:specializationOf <urn:uuid:86875af4-7cd3-86e8-84f4-3e774d5f2947> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:5a6fbc8e32766d0087a28e42fd3f6a64 bridge:arrivedAs <ni:///sha-256;4ESHtvBNPlnOe5iNQxbU_so_E46Ioq6VnfRvuiiDIAU> .\n<urn:uuid:3b467c97-4486-877a-bec8-1943b38285b9> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Procedure/proc-echo-1#reason> ;\n\tcascade:sourceRecordId \"reason\" .\n<ni:///sha-256;uhq_8eQfP8XFZKsfS92ovppEsT4695BLcELh2G7n_-U> prov:specializationOf <urn:uuid:3b467c97-4486-877a-bec8-1943b38285b9> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:b0b507ae7b7ebd0431bbe2cdd7fafd39 bridge:arrivedAs <ni:///sha-256;uhq_8eQfP8XFZKsfS92ovppEsT4695BLcELh2G7n_-U> ;\n\toa:hasSelector _:df78062eaff05ed3a250259cc7b6ed4e .\n_:df78062eaff05ed3a250259cc7b6ed4e a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/contained/0\" .\n_:b0b507ae7b7ebd0431bbe2cdd7fafd39 oa:hasSource <ni:///sha-256;FUHhNx_AjRwxhuA4cENG_MWxSjqq_MFNlNiIacktiAE> ;\n\tprov:wasDerivedFrom <ni:///sha-256;FUHhNx_AjRwxhuA4cENG_MWxSjqq_MFNlNiIacktiAE> ;\n\tprov:wasGeneratedBy _:25c073fedacc1f2cdc7adc18b3d15479 .\n_:5a6fbc8e32766d0087a28e42fd3f6a64 oa:hasSelector _:5dab02edcccc93f2ab411fd87a1a6b01 ;\n\toa:hasSource <ni:///sha-256;FUHhNx_AjRwxhuA4cENG_MWxSjqq_MFNlNiIacktiAE> ;\n\tprov:wasDerivedFrom <ni:///sha-256;FUHhNx_AjRwxhuA4cENG_MWxSjqq_MFNlNiIacktiAE> ;\n\tprov:wasGeneratedBy _:25c073fedacc1f2cdc7adc18b3d15479 .\n_:5dab02edcccc93f2ab411fd87a1a6b01 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;FUHhNx_AjRwxhuA4cENG_MWxSjqq_MFNlNiIacktiAE> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedFrom <https://FHIR.Meridian.example/api/FHIR/R4/Procedure/proc-echo-1> ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:6b5bddde546b990da63943285798b422 ;\n\tprov:wasAttributedTo _:5281471d7bf0e9e4b7ebb8ec560666e7 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:74a60a500dee8472f6ce17529f5e1e59 prov:agent _:5281471d7bf0e9e4b7ebb8ec560666e7 ;\n\tprov:hadRole cascade:AuthorRole .\n_:6b5bddde546b990da63943285798b422 prov:qualifiedAssociation _:74a60a500dee8472f6ce17529f5e1e59 .\n_:1d76c548bc66c365cfaaabc37114e401 prov:agent _:1112db9bbb06c085c176bcae926917b2 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:6b5bddde546b990da63943285798b422 prov:qualifiedAssociation _:1d76c548bc66c365cfaaabc37114e401 .\n_:5281471d7bf0e9e4b7ebb8ec560666e7 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:1112db9bbb06c085c176bcae926917b2 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:25c073fedacc1f2cdc7adc18b3d15479 <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;FUHhNx_AjRwxhuA4cENG_MWxSjqq_MFNlNiIacktiAE> a prov:Entity .\n_:25c073fedacc1f2cdc7adc18b3d15479 a prov:Activity ;\n\tprov:used <ni:///sha-256;FUHhNx_AjRwxhuA4cENG_MWxSjqq_MFNlNiIacktiAE> ;\n\tprov:qualifiedAssociation _:f641914c55776fd0a46075673c444131 .\n_:f641914c55776fd0a46075673c444131 prov:hadPlan _:e5bb4c5a53b90c10179b372fc23715d5 .\n_:e5bb4c5a53b90c10179b372fc23715d5 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:f641914c55776fd0a46075673c444131 prov:agent _:e811137573abf179a443953f7faded00 .\n_:e811137573abf179a443953f7faded00 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-with-contained-condition.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/procedure-with-contained-condition.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_:cf142cf71555e9d20820a91e9f607254 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:c15590a90e834408f0db376e55a25017 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/reasonReference/0/reference\" .\n_:cf142cf71555e9d20820a91e9f607254 oa:refinedBy _:c15590a90e834408f0db376e55a25017 .\n_:a8b0831439cce9a4612259fcc6129db2 a oa:Annotation ;\n\toa:hasTarget _:bef15587b21bc3e518df39cb4a29f543 .\n_:bef15587b21bc3e518df39cb4a29f543 oa:hasSource <../in/procedure-with-contained-condition.json> ;\n\toa:hasSelector _:cf142cf71555e9d20820a91e9f607254 .\n_:a8b0831439cce9a4612259fcc6129db2 oa:hasBody fhirr4:procedureReason ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/reasonReference/reference\" ;\n\tsh:resultSeverity sh:Info .\n", "empty": false}}