{"name": "bundle-interpretation-performer-is-custodian", "comment": "A document whose custodian, also its author, is the Organization a Diagnostic Implication's performer names: one organization record, one version, named in each role, and the interpretation attributed to it.", "input": {"file": "fixtures/in/bundle-interpretation-performer-is-custodian.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-interpretation-performer-is-custodian.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"document\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c01\",\n      \"resource\": {\n        \"resourceType\": \"Composition\",\n        \"status\": \"final\",\n        \"type\": { \"coding\": [{ \"system\": \"http://loinc.org\", \"code\": \"51969-4\" }] },\n        \"subject\": { \"reference\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c02\" },\n        \"date\": \"2024-03-21\",\n        \"author\": [{ \"reference\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c03\" }],\n        \"title\": \"Genetic analysis report\",\n        \"custodian\": { \"reference\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c03\" }\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c02\",\n      \"resource\": {\n        \"resourceType\": \"Patient\",\n        \"name\": [{ \"family\": \"Okonkwo\", \"given\": [\"Ada\"] }],\n        \"gender\": \"female\",\n        \"birthDate\": \"1979-06-02\"\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c03\",\n      \"resource\": {\n        \"resourceType\": \"Organization\",\n        \"identifier\": [{ \"system\": \"http://hl7.org/fhir/sid/us-npi\", \"value\": \"1234567893\" }],\n        \"name\": \"Kestrel Genomics Laboratory\"\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c04\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"status\": \"final\",\n        \"code\": { \"coding\": [{ \"system\": \"http://loinc.org\", \"code\": \"69548-6\", \"display\": \"Genetic variant assessment\" }] },\n        \"subject\": { \"reference\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c02\" },\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:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c05\",\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        \"subject\": { \"reference\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c02\" },\n        \"performer\": [{ \"reference\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c03\" }],\n        \"derivedFrom\": [{ \"reference\": \"urn:uuid:6e1a3b5c-7d9f-4a2b-8c4d-6e8f0a2b4c04\" }],\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}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-interpretation-performer-is-custodian.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-interpretation-performer-is-custodian.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<ni:///sha-256;fqLMNzbkWY2O5bNqIQR4csx23JVHrPgTXuMcV-AmWAQ> foaf:familyName \"Okonkwo\" ;\n\tfoaf:givenName \"Ada\" ;\n\tcascade:dateOfBirth \"1979-06-02\"^^xsd:date ;\n\tcascade:administrativeGender \"female\" .\n<urn:uuid:c9851730-7f75-8333-b0d3-4d7a0d92a182> a cascade:PatientProfile .\n<ni:///sha-256;fqLMNzbkWY2O5bNqIQR4csx23JVHrPgTXuMcV-AmWAQ> prov:specializationOf <urn:uuid:c9851730-7f75-8333-b0d3-4d7a0d92a182> .\n_:487d1c637444986c12ef47c3bf4d4471 bridge:arrivedAs <ni:///sha-256;fqLMNzbkWY2O5bNqIQR4csx23JVHrPgTXuMcV-AmWAQ> ;\n\toa:hasSelector _:a40bc78231bccfd6a24c643b782812a9 ;\n\toa:hasSource <ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> ;\n\tprov:wasGeneratedBy _:d2d0a9f607d6d52b5e73684854984ffc .\n_:a40bc78231bccfd6a24c643b782812a9 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> a cascade:Organization .\n<ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> prov:wasGeneratedBy _:ffb6dd3b26ce7669170ef434ee9b3eeb ;\n\tprov:wasAttributedTo <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> .\n_:ffb6dd3b26ce7669170ef434ee9b3eeb prov:qualifiedAssociation _:a862420ccc32dad5c80996fa489cc0cf .\n_:a862420ccc32dad5c80996fa489cc0cf prov:agent <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> ;\n\tprov:hadRole cascade:CustodianRole .\n<ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> prov:wasGeneratedBy _:c9f762d1d8ee9b7e50395cb928fe3e0a .\n_:c9f762d1d8ee9b7e50395cb928fe3e0a prov:qualifiedAssociation _:d5f6f6695e136317dde1494ef0bbdd2d .\n_:d5f6f6695e136317dde1494ef0bbdd2d prov:agent <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> ;\n\tprov:hadRole cascade:AuthorRole .\n<ni:///sha-256;Jf6npAUvTubaPLjRm0nG0-0Vv-jQShPdxChXqvOlATk> prov:specializationOf <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> .\n_:71837bb7fdbd6c885443cca6d976dc7 bridge:arrivedAs <ni:///sha-256;Jf6npAUvTubaPLjRm0nG0-0Vv-jQShPdxChXqvOlATk> .\n<ni:///sha-256;Jf6npAUvTubaPLjRm0nG0-0Vv-jQShPdxChXqvOlATk> foaf:name \"Kestrel Genomics Laboratory\" ;\n\torg:identifier \"1234567893\"^^<http://hl7.org/fhir/sid/us-npi> .\n_:71837bb7fdbd6c885443cca6d976dc7 oa:hasSelector _:14a41bca197a1d30ba033576d4b8e1ce ;\n\toa:hasSource <ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> ;\n\tprov:wasGeneratedBy _:d2d0a9f607d6d52b5e73684854984ffc .\n_:14a41bca197a1d30ba033576d4b8e1ce a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n<urn:uuid:693781e8-0087-87ff-9240-394319e9b4d5> a cascade:GeneticVariantFinding .\n<ni:///sha-256;BDXFeIr2q0vhfyU3T7EJiZJqJtgEB6fx6btJN4ajbIE> prov:specializationOf <urn:uuid:693781e8-0087-87ff-9240-394319e9b4d5> ;\n\tcascade:patient <urn:uuid:c9851730-7f75-8333-b0d3-4d7a0d92a182> .\n_:f3e2c0aa56a3a3537aa0ab4dd1c163d5 bridge:arrivedAs <ni:///sha-256;BDXFeIr2q0vhfyU3T7EJiZJqJtgEB6fx6btJN4ajbIE> .\n<ni:///sha-256;BDXFeIr2q0vhfyU3T7EJiZJqJtgEB6fx6btJN4ajbIE> cascade:hgvsCodingDnaExpression \"NM_000249.4:c.2042C>T\" ;\n\tcascade:workflowStatus \"final\" .\n_:f3e2c0aa56a3a3537aa0ab4dd1c163d5 oa:hasSelector _:58e9fdb04a7db2ec0159485ca3756cec ;\n\toa:hasSource <ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> ;\n\tprov:wasGeneratedBy _:d2d0a9f607d6d52b5e73684854984ffc .\n_:58e9fdb04a7db2ec0159485ca3756cec a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/3\" .\n<urn:uuid:2abbbe4f-0dc4-8dee-ade7-4897530093d2> a cascade:VariantInterpretation .\n<ni:///sha-256;VrkhmfvQqGoXYXp-NgRFybNxlq4zAq8BsrCqESiRXQY> prov:specializationOf <urn:uuid:2abbbe4f-0dc4-8dee-ade7-4897530093d2> ;\n\tcascade:patient <urn:uuid:c9851730-7f75-8333-b0d3-4d7a0d92a182> .\n_:e2e6c4202d23e0595250f15e7821fee2 bridge:arrivedAs <ni:///sha-256;VrkhmfvQqGoXYXp-NgRFybNxlq4zAq8BsrCqESiRXQY> .\n<ni:///sha-256;VrkhmfvQqGoXYXp-NgRFybNxlq4zAq8BsrCqESiRXQY> cascade:acmgClassification cascade:LikelyPathogenic ;\n\tcascade:subjectVariant <urn:uuid:693781e8-0087-87ff-9240-394319e9b4d5> ;\n\tcascade:workflowStatus \"final\" ;\n\tprov:wasAttributedTo <urn:uuid:b272d9d2-08db-8fd9-9d33-eca1e48c75ba> .\n_:e2e6c4202d23e0595250f15e7821fee2 oa:hasSelector _:e820fbd1e669d0e6c761f08fc6a5fa7 ;\n\toa:hasSource <ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> ;\n\tprov:wasGeneratedBy _:d2d0a9f607d6d52b5e73684854984ffc .\n_:e820fbd1e669d0e6c761f08fc6a5fa7 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/4\" .\n<ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> pav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:693d1ed469fea36ca4e4f73a3f15d6a8 ;\n\tprov:wasAttributedTo _:edd53290529bac10aea1a5c088ea7f4d ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:4aec23a8d730167da257e151f91fd615 prov:agent _:edd53290529bac10aea1a5c088ea7f4d ;\n\tprov:hadRole cascade:AuthorRole .\n_:693d1ed469fea36ca4e4f73a3f15d6a8 prov:qualifiedAssociation _:4aec23a8d730167da257e151f91fd615 .\n_:9228cec8c0703d64cba80a835d597669 prov:agent _:c3df464b5fc61f859cf8dc9d12cf882 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:693d1ed469fea36ca4e4f73a3f15d6a8 prov:qualifiedAssociation _:9228cec8c0703d64cba80a835d597669 .\n_:edd53290529bac10aea1a5c088ea7f4d <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:c3df464b5fc61f859cf8dc9d12cf882 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:d2d0a9f607d6d52b5e73684854984ffc <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;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> a prov:Entity .\n_:d2d0a9f607d6d52b5e73684854984ffc a prov:Activity ;\n\tprov:used <ni:///sha-256;xZuPHRKpDqDS8n7OcfLr2E71XaSSno26wZmpXHkAqlU> ;\n\tprov:qualifiedAssociation _:13cb97bd16f24c7e2c6d9388a00f9379 .\n_:13cb97bd16f24c7e2c6d9388a00f9379 prov:hadPlan _:263060a94a84130b51db3653fc1c2cd3 .\n_:263060a94a84130b51db3653fc1c2cd3 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:13cb97bd16f24c7e2c6d9388a00f9379 prov:agent _:641012b39ec2089a36be1e790c844ddf .\n_:641012b39ec2089a36be1e790c844ddf 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-performer-is-custodian.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-interpretation-performer-is-custodian.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_:c64286f96dfe110c72979b0c5bd6952b a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n_:dce00dd86ece830826f1b9a112a50b7f oa:hasSource <../in/bundle-interpretation-performer-is-custodian.json> .\n_:c64286f96dfe110c72979b0c5bd6952b oa:refinedBy _:d38c0a25274760a25dd7b08290c0a91d .\n_:d38c0a25274760a25dd7b08290c0a91d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/resourceType\" .\n_:dce00dd86ece830826f1b9a112a50b7f oa:hasSelector _:c64286f96dfe110c72979b0c5bd6952b .\n_:a1831b502f90d8611bd2267e76f6f210 oa:hasTarget _:dce00dd86ece830826f1b9a112a50b7f ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:resourceTypeNotMapped ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Composition\" .\n", "empty": false}}