{"name": "bundle-interpretation-relative-reference-to-urn", "comment": "A variant held under a urn:uuid fullUrl, and two interpretations derived from Observation/<id>: one from an entry whose fullUrl is a urn:uuid, one to the variant held under a urn:uuid. FHIR gives a [type]/[id] no meaning there, so neither links to the variant, and each carries a finding.", "input": {"file": "fixtures/in/bundle-interpretation-relative-reference-to-urn.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-interpretation-relative-reference-to-urn.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"urn:uuid:8a1c3e5f-2b4d-4f60-9a7b-1c2d3e4f5a01\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"id\": \"v1\",\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:8a1c3e5f-2b4d-4f60-9a7b-1c2d3e4f5a02\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"id\": \"i1\",\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        \"derivedFrom\": [{ \"reference\": \"Observation/v1\" }],\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\": \"https://fhir.meridian.example/api/FHIR/R4/Observation/i2\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"id\": \"i2\",\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        \"derivedFrom\": [{ \"reference\": \"Observation/v1\" }],\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}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-interpretation-relative-reference-to-urn.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-interpretation-relative-reference-to-urn.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<urn:uuid:12a2d1f6-ebd1-8fad-afe0-32e5b6093277> a cascade:GeneticVariantFinding .\n<ni:///sha-256;GVMWjYn4Da3D9LcCCOsjPOES_or0w7sIzX7mUURlLug> prov:specializationOf <urn:uuid:12a2d1f6-ebd1-8fad-afe0-32e5b6093277> .\n_:e45957ed7224b0f7c9b98c0ba977c2b0 bridge:arrivedAs <ni:///sha-256;GVMWjYn4Da3D9LcCCOsjPOES_or0w7sIzX7mUURlLug> .\n<ni:///sha-256;GVMWjYn4Da3D9LcCCOsjPOES_or0w7sIzX7mUURlLug> cascade:hgvsCodingDnaExpression \"NM_000249.4:c.2042C>T\" ;\n\tcascade:workflowStatus \"final\" .\n_:e45957ed7224b0f7c9b98c0ba977c2b0 oa:hasSelector _:d2a615db0abb1a6dfbe33415d1aa3ab1 ;\n\toa:hasSource <ni:///sha-256;IlZ-CCy0slQ1fKOxNxEhZTXbNsP9P0XTvpky5g1cn-Q> ;\n\tprov:wasDerivedFrom <ni:///sha-256;IlZ-CCy0slQ1fKOxNxEhZTXbNsP9P0XTvpky5g1cn-Q> ;\n\tprov:wasGeneratedBy _:f5c7abef04dc33fc88e196d6116d9353 .\n_:d2a615db0abb1a6dfbe33415d1aa3ab1 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<urn:uuid:b3a5e5bf-c9ad-8893-bdee-ab82bdd07594> a cascade:VariantInterpretation .\n<ni:///sha-256;bVAy5uAZQ2__CfZ4CKdZ90pVWdvVfi_327aVixBIm4Q> prov:specializationOf <urn:uuid:b3a5e5bf-c9ad-8893-bdee-ab82bdd07594> .\n_:eb425477be90e2688c59064b366e987e bridge:arrivedAs <ni:///sha-256;bVAy5uAZQ2__CfZ4CKdZ90pVWdvVfi_327aVixBIm4Q> .\n<ni:///sha-256;bVAy5uAZQ2__CfZ4CKdZ90pVWdvVfi_327aVixBIm4Q> cascade:acmgClassification cascade:Pathogenic ;\n\tcascade:workflowStatus \"final\" .\n_:eb425477be90e2688c59064b366e987e oa:hasSelector _:9537446576f2fcb2c615c5e1b33c3ad0 ;\n\toa:hasSource <ni:///sha-256;IlZ-CCy0slQ1fKOxNxEhZTXbNsP9P0XTvpky5g1cn-Q> ;\n\tprov:wasDerivedFrom <ni:///sha-256;IlZ-CCy0slQ1fKOxNxEhZTXbNsP9P0XTvpky5g1cn-Q> ;\n\tprov:wasGeneratedBy _:f5c7abef04dc33fc88e196d6116d9353 .\n_:9537446576f2fcb2c615c5e1b33c3ad0 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<urn:uuid:e446c981-86f7-8219-858f-1d8cbef28cd1> a cascade:VariantInterpretation ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Observation/i2> .\n<ni:///sha-256;QJ0T2_WnPf7OivuN45iBuWMpd541dRI-To8immDw2wE> prov:specializationOf <urn:uuid:e446c981-86f7-8219-858f-1d8cbef28cd1> .\n_:f566c373c5a3e16edda5733203ea38a6 bridge:arrivedAs <ni:///sha-256;QJ0T2_WnPf7OivuN45iBuWMpd541dRI-To8immDw2wE> .\n<ni:///sha-256;QJ0T2_WnPf7OivuN45iBuWMpd541dRI-To8immDw2wE> cascade:acmgClassification cascade:Pathogenic ;\n\tcascade:workflowStatus \"final\" .\n_:f566c373c5a3e16edda5733203ea38a6 oa:hasSelector _:683a953daef01f3835d885c3a45d8e15 ;\n\toa:hasSource <ni:///sha-256;IlZ-CCy0slQ1fKOxNxEhZTXbNsP9P0XTvpky5g1cn-Q> ;\n\tprov:wasDerivedFrom <ni:///sha-256;IlZ-CCy0slQ1fKOxNxEhZTXbNsP9P0XTvpky5g1cn-Q> ;\n\tprov:wasGeneratedBy _:f5c7abef04dc33fc88e196d6116d9353 .\n_:683a953daef01f3835d885c3a45d8e15 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n<ni:///sha-256;IlZ-CCy0slQ1fKOxNxEhZTXbNsP9P0XTvpky5g1cn-Q> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:84595807a98390d7a256357897d2a98a ;\n\tprov:wasAttributedTo _:ed9332a2a43de5772bafadc664fd642f ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:999cf5d7f04ee17d498e3a040b8c86bc prov:agent _:ed9332a2a43de5772bafadc664fd642f ;\n\tprov:hadRole cascade:AuthorRole .\n_:84595807a98390d7a256357897d2a98a prov:qualifiedAssociation _:999cf5d7f04ee17d498e3a040b8c86bc .\n_:8386968f7b0a32e983c01d734e1d17e1 prov:agent _:4f3f476529a06f85b8f7843babd70a89 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:84595807a98390d7a256357897d2a98a prov:qualifiedAssociation _:8386968f7b0a32e983c01d734e1d17e1 .\n_:ed9332a2a43de5772bafadc664fd642f <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:4f3f476529a06f85b8f7843babd70a89 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:f5c7abef04dc33fc88e196d6116d9353 <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;IlZ-CCy0slQ1fKOxNxEhZTXbNsP9P0XTvpky5g1cn-Q> a prov:Entity .\n_:f5c7abef04dc33fc88e196d6116d9353 a prov:Activity ;\n\tprov:used <ni:///sha-256;IlZ-CCy0slQ1fKOxNxEhZTXbNsP9P0XTvpky5g1cn-Q> ;\n\tprov:qualifiedAssociation _:ca7b7e861e6c8f17b07feb37b163312c .\n_:ca7b7e861e6c8f17b07feb37b163312c prov:hadPlan _:f44bd8f13651c1cd06cdb8b5a41edc61 .\n_:f44bd8f13651c1cd06cdb8b5a41edc61 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:ca7b7e861e6c8f17b07feb37b163312c prov:agent _:971c796715f56c7bb396e9fdc57aec48 .\n_:971c796715f56c7bb396e9fdc57aec48 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-relative-reference-to-urn.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-interpretation-relative-reference-to-urn.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_:c45a393c0617e018b5bc7c690aa49a9d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:fc12edc6a545282aee9f1c32faa81e73 oa:hasSource <../in/bundle-interpretation-relative-reference-to-urn.json> .\n_:c45a393c0617e018b5bc7c690aa49a9d oa:refinedBy _:ddee86206e98f213e8cb6f41f30bcfdd .\n_:ddee86206e98f213e8cb6f41f30bcfdd a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/derivedFrom/0/reference\" .\n_:fc12edc6a545282aee9f1c32faa81e73 oa:hasSelector _:c45a393c0617e018b5bc7c690aa49a9d .\n_:fd484f5009e33d78ce919d41f39797a oa:hasTarget _:fc12edc6a545282aee9f1c32faa81e73 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:interpretationVariantLink ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Observation/v1\" .\n_:f768b5c68d10040a136af93f2a2fae89 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n_:c4c8c56bc046e33d33a36ff1859c523e oa:hasSource <../in/bundle-interpretation-relative-reference-to-urn.json> .\n_:f768b5c68d10040a136af93f2a2fae89 oa:refinedBy _:ba256e8cfd793bbe2ce06b664d37cb88 .\n_:ba256e8cfd793bbe2ce06b664d37cb88 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/derivedFrom/0/reference\" .\n_:c4c8c56bc046e33d33a36ff1859c523e oa:hasSelector _:f768b5c68d10040a136af93f2a2fae89 .\n_:c949ea4719e4e3dfb0e5090e532a2100 oa:hasTarget _:c4c8c56bc046e33d33a36ff1859c523e ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:interpretationVariantLink ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Observation/v1\" .\n", "empty": false}}