{"name": "bundle-interpretation-performers", "comment": "Two Diagnostic Implications and their performers: one names a resource the document does not hold and Lab A, and is attributed to Lab A's organization record; one names Lab A and Lab B, two records, so it is attributed to neither and each performer's reference is a finding. Each lab a performer names is an organization record.", "input": {"file": "fixtures/in/bundle-interpretation-performers.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-interpretation-performers.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c01\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"status\": \"final\",\n        \"code\": { \"coding\": [{ \"system\": \"http://loinc.org\", \"code\": \"69548-6\", \"display\": \"Genetic variant assessment\" }] },\n        \"valueCodeableConcept\": { \"coding\": [{ \"system\": \"http://loinc.org\", \"code\": \"LA9633-4\", \"display\": \"Present\" }] },\n        \"component\": [\n          {\n            \"code\": { \"coding\": [{ \"system\": \"http://loinc.org\", \"code\": \"48004-6\" }] },\n            \"valueCodeableConcept\": { \"coding\": [{ \"system\": \"http://varnomen.hgvs.org\", \"code\": \"NM_000249.4:c.2042C>T\" }] }\n          }\n        ]\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c02\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"status\": \"final\",\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://hl7.org/fhir/uv/genomics-reporting/CodeSystem/tbd-codes-cs\",\n              \"code\": \"diagnostic-implication\",\n              \"display\": \"Diagnostic Implication\"\n            }\n          ]\n        },\n        \"performer\": [\n          { \"reference\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c09\" },\n          { \"reference\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c11\" }\n        ],\n        \"derivedFrom\": [{ \"reference\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c01\" }],\n        \"component\": [\n          {\n            \"code\": { \"coding\": [{ \"system\": \"http://loinc.org\", \"code\": \"53037-8\" }] },\n            \"valueCodeableConcept\": { \"coding\": [{ \"system\": \"http://loinc.org\", \"code\": \"LA6668-3\", \"display\": \"Pathogenic\" }] }\n          }\n        ]\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c03\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"status\": \"final\",\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://hl7.org/fhir/uv/genomics-reporting/CodeSystem/tbd-codes-cs\",\n              \"code\": \"diagnostic-implication\",\n              \"display\": \"Diagnostic Implication\"\n            }\n          ]\n        },\n        \"performer\": [\n          { \"reference\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c11\" },\n          { \"reference\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c12\" }\n        ],\n        \"derivedFrom\": [{ \"reference\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c01\" }],\n        \"component\": [\n          {\n            \"code\": { \"coding\": [{ \"system\": \"http://loinc.org\", \"code\": \"53037-8\" }] },\n            \"valueCodeableConcept\": { \"coding\": [{ \"system\": \"http://loinc.org\", \"code\": \"LA26332-9\", \"display\": \"Likely pathogenic\" }] }\n          }\n        ]\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c11\",\n      \"resource\": {\n        \"resourceType\": \"Organization\",\n        \"identifier\": [{ \"system\": \"urn:oid:2.16.840.1.113883.19.5\", \"value\": \"lab-a\" }],\n        \"name\": \"Lab A\"\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c12\",\n      \"resource\": {\n        \"resourceType\": \"Organization\",\n        \"identifier\": [{ \"system\": \"urn:oid:2.16.840.1.113883.19.5\", \"value\": \"lab-b\" }],\n        \"name\": \"Lab B\"\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-interpretation-performers.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-interpretation-performers.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 foaf: <http://xmlns.com/foaf/0.1/> .\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 org: <http://www.w3.org/ns/org#> .\n@prefix oa: <http://www.w3.org/ns/oa#> .\n@prefix pav: <http://purl.org/pav/> .\n<urn:uuid:f788afd2-8515-8310-aab8-3f38f13d9871> a cascade:GeneticVariantFinding .\n<ni:///sha-256;FsVGr1JQtfk3IF0Ga8nBEk9Sw_MrpBzTsNZsUyvCzMI> prov:specializationOf <urn:uuid:f788afd2-8515-8310-aab8-3f38f13d9871> .\n_:7b8be5a3fefcf0814aad932f076eca22 bridge:arrivedAs <ni:///sha-256;FsVGr1JQtfk3IF0Ga8nBEk9Sw_MrpBzTsNZsUyvCzMI> .\n<ni:///sha-256;FsVGr1JQtfk3IF0Ga8nBEk9Sw_MrpBzTsNZsUyvCzMI> cascade:hgvsCodingDnaExpression \"NM_000249.4:c.2042C>T\" ;\n\tcascade:workflowStatus \"final\" .\n_:7b8be5a3fefcf0814aad932f076eca22 oa:hasSelector _:90d3e18d0485b4ba1623720883ac50c9 ;\n\toa:hasSource <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasGeneratedBy _:8e12176de486f1a7e155d1864961d01a .\n_:90d3e18d0485b4ba1623720883ac50c9 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<urn:uuid:18aec17a-a8a2-8a8b-b407-01e590a10211> a cascade:VariantInterpretation .\n<ni:///sha-256;mh73rsUoseOVsvABMZyxKChokm8KNoctwK_gb981dsc> prov:specializationOf <urn:uuid:18aec17a-a8a2-8a8b-b407-01e590a10211> .\n_:26e5af3debc74ae92933eabafc76190c bridge:arrivedAs <ni:///sha-256;mh73rsUoseOVsvABMZyxKChokm8KNoctwK_gb981dsc> .\n<ni:///sha-256;mh73rsUoseOVsvABMZyxKChokm8KNoctwK_gb981dsc> cascade:acmgClassification cascade:Pathogenic ;\n\tcascade:subjectVariant <urn:uuid:f788afd2-8515-8310-aab8-3f38f13d9871> ;\n\tcascade:workflowStatus \"final\" ;\n\tprov:wasAttributedTo <urn:uuid:acc3bc83-b03e-8384-acef-7e277f227424> .\n_:26e5af3debc74ae92933eabafc76190c oa:hasSelector _:ba5663741e80f9ac564c21941788fb8c ;\n\toa:hasSource <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasGeneratedBy _:8e12176de486f1a7e155d1864961d01a .\n_:ba5663741e80f9ac564c21941788fb8c a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<urn:uuid:e5d33de9-0646-8dcb-bc5f-a40aa5818325> a cascade:VariantInterpretation .\n<ni:///sha-256;YHbfCH8GRbgF5FExPMbzHqv8M8SQgWDcOCCpSaIzb_I> prov:specializationOf <urn:uuid:e5d33de9-0646-8dcb-bc5f-a40aa5818325> .\n_:7fd6b52323945d965abbe0f3a0d471 bridge:arrivedAs <ni:///sha-256;YHbfCH8GRbgF5FExPMbzHqv8M8SQgWDcOCCpSaIzb_I> .\n<ni:///sha-256;YHbfCH8GRbgF5FExPMbzHqv8M8SQgWDcOCCpSaIzb_I> cascade:acmgClassification cascade:LikelyPathogenic ;\n\tcascade:subjectVariant <urn:uuid:f788afd2-8515-8310-aab8-3f38f13d9871> ;\n\tcascade:workflowStatus \"final\" .\n_:7fd6b52323945d965abbe0f3a0d471 oa:hasSelector _:2cb300307d2402505c2fdc03a52d91f9 ;\n\toa:hasSource <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasGeneratedBy _:8e12176de486f1a7e155d1864961d01a .\n_:2cb300307d2402505c2fdc03a52d91f9 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n<urn:uuid:acc3bc83-b03e-8384-acef-7e277f227424> a cascade:Organization .\n<ni:///sha-256;xKCCjCtAKX_sGIo4sy68PqIXICntX6K-pCxI1nEusqw> prov:specializationOf <urn:uuid:acc3bc83-b03e-8384-acef-7e277f227424> .\n_:3cf99b76dd6c1566d01fdd494aa0aeb4 bridge:arrivedAs <ni:///sha-256;xKCCjCtAKX_sGIo4sy68PqIXICntX6K-pCxI1nEusqw> .\n<ni:///sha-256;xKCCjCtAKX_sGIo4sy68PqIXICntX6K-pCxI1nEusqw> foaf:name \"Lab A\" ;\n\torg:identifier \"lab-a\"^^<urn:oid:2.16.840.1.113883.19.5> .\n_:3cf99b76dd6c1566d01fdd494aa0aeb4 oa:hasSelector _:a5385a14c75d01718f46dfccdedd3785 ;\n\toa:hasSource <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasGeneratedBy _:8e12176de486f1a7e155d1864961d01a .\n_:a5385a14c75d01718f46dfccdedd3785 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/3\" .\n<urn:uuid:e8acb147-2cdf-8a31-a947-6f840d2b188d> a cascade:Organization .\n<ni:///sha-256;IXxUED0uKEDrLnuBjsKWE1PGlhqxV-kNL1gevzULAJw> prov:specializationOf <urn:uuid:e8acb147-2cdf-8a31-a947-6f840d2b188d> .\n_:fa6a92b5670e2b16569a4ec3c789fea3 bridge:arrivedAs <ni:///sha-256;IXxUED0uKEDrLnuBjsKWE1PGlhqxV-kNL1gevzULAJw> .\n<ni:///sha-256;IXxUED0uKEDrLnuBjsKWE1PGlhqxV-kNL1gevzULAJw> foaf:name \"Lab B\" ;\n\torg:identifier \"lab-b\"^^<urn:oid:2.16.840.1.113883.19.5> .\n_:fa6a92b5670e2b16569a4ec3c789fea3 oa:hasSelector _:80527104a359da2349fc3bcec322175d ;\n\toa:hasSource <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasDerivedFrom <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:wasGeneratedBy _:8e12176de486f1a7e155d1864961d01a .\n_:80527104a359da2349fc3bcec322175d a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/4\" .\n<ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> pav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:93384178bf3f4db3b34c3e2ed81b183f ;\n\tprov:wasAttributedTo _:ea3f415de4f56eb979fceb63d97168e6 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:d164fdf2558f11a91edc71ae31ca58c4 prov:agent _:ea3f415de4f56eb979fceb63d97168e6 ;\n\tprov:hadRole cascade:AuthorRole .\n_:93384178bf3f4db3b34c3e2ed81b183f prov:qualifiedAssociation _:d164fdf2558f11a91edc71ae31ca58c4 .\n_:9ff527fbfe5dac7c5afff2815d9900a4 prov:agent _:72cffd0fda994c0457ae04362c0cced7 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:93384178bf3f4db3b34c3e2ed81b183f prov:qualifiedAssociation _:9ff527fbfe5dac7c5afff2815d9900a4 .\n_:ea3f415de4f56eb979fceb63d97168e6 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:72cffd0fda994c0457ae04362c0cced7 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:8e12176de486f1a7e155d1864961d01a <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;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> a prov:Entity .\n_:8e12176de486f1a7e155d1864961d01a a prov:Activity ;\n\tprov:used <ni:///sha-256;4LrApPVw1UYJ3zz3aXJ_ZHtvpQWxedYFTVkyBlR2Ams> ;\n\tprov:qualifiedAssociation _:aaf5e483e3c452ec13051cf02fd00f87 .\n_:aaf5e483e3c452ec13051cf02fd00f87 prov:hadPlan _:3fbe739c627cfaa5561045d59ec56dd7 .\n_:3fbe739c627cfaa5561045d59ec56dd7 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:aaf5e483e3c452ec13051cf02fd00f87 prov:agent _:5ba7b1aff261d8b177aa7302226d69f4 .\n_:5ba7b1aff261d8b177aa7302226d69f4 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/bundle-interpretation-performers.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-interpretation-performers.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_:fa3d1d6626179f8fb51801810bee4316 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n_:eccb350d7b6f844707cf0e0fdcf1bb9e oa:hasSource <../in/bundle-interpretation-performers.json> .\n_:fa3d1d6626179f8fb51801810bee4316 oa:refinedBy _:beddb6b185cd2a2ba6e9de6e326840d4 .\n_:beddb6b185cd2a2ba6e9de6e326840d4 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/performer/1/reference\" .\n_:eccb350d7b6f844707cf0e0fdcf1bb9e oa:hasSelector _:fa3d1d6626179f8fb51801810bee4316 .\n_:d4c93ac49c1eed95c4aae7375c3bdf57 oa:hasTarget _:eccb350d7b6f844707cf0e0fdcf1bb9e .\n_:c9a3375a32a3e7f2385cd55b0fa663b2 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n_:b2ffc440be7b881d9acae7fa0e49df5e oa:hasSource <../in/bundle-interpretation-performers.json> .\n_:c9a3375a32a3e7f2385cd55b0fa663b2 oa:refinedBy _:ab59c29cc6edb4ba256a3cdcc46e9050 .\n_:ab59c29cc6edb4ba256a3cdcc46e9050 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/performer/0/reference\" .\n_:b2ffc440be7b881d9acae7fa0e49df5e oa:hasSelector _:c9a3375a32a3e7f2385cd55b0fa663b2 .\n_:f735180059c2adfc2889e7bb05812472 oa:hasTarget _:b2ffc440be7b881d9acae7fa0e49df5e .\n_:d4c93ac49c1eed95c4aae7375c3bdf57 sh:resultSeverity sh:Warning .\n_:f735180059c2adfc2889e7bb05812472 sh:resultSeverity sh:Warning .\n_:d4c93ac49c1eed95c4aae7375c3bdf57 a oa:Annotation ;\n\toa:hasBody fhirr4:performerCarriedOnlyAsOneOrganizationRecord ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c12\" .\n_:f735180059c2adfc2889e7bb05812472 a oa:Annotation ;\n\toa:hasBody fhirr4:performerCarriedOnlyAsOneOrganizationRecord ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"urn:uuid:5d0f2a7c-81e3-4b96-a4c2-9e7b3f1d6c11\" .\n", "empty": false}}