{"name": "bundle-absolute-reference-from-urn-entry", "comment": "A Bundle on a server whose MedicationDispense and DiagnosticReport are held under a urn:uuid. An absolute URL on the server names a record whatever the referrer's fullUrl, so the dispense's prescription and the report's result named by one are named, with or without a version; a relative reference from the same entries names none, as does an absolute URL on another server, and each is a finding.", "input": {"file": "fixtures/in/bundle-absolute-reference-from-urn-entry.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-absolute-reference-from-urn-entry.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"http://example.org/fhir/MedicationRequest/rx1\",\n      \"resource\": {\n        \"resourceType\": \"MedicationRequest\",\n        \"id\": \"rx1\",\n        \"status\": \"active\",\n        \"intent\": \"order\",\n        \"medicationCodeableConcept\": {\n          \"text\": \"Lisinopril 10 mg tablet\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-1\"\n        }\n      }\n    },\n    {\n      \"fullUrl\": \"http://example.org/fhir/Observation/b12-1\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"id\": \"b12-1\",\n        \"status\": \"final\",\n        \"category\": [\n          {\n            \"coding\": [\n              {\n                \"system\": \"http://terminology.hl7.org/CodeSystem/observation-category\",\n                \"code\": \"laboratory\"\n              }\n            ]\n          }\n        ],\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://loinc.org\",\n              \"code\": \"2132-9\",\n              \"display\": \"Cobalamin (Vitamin B12) [Mass/volume] in Serum or Plasma\"\n            }\n          ]\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-1\"\n        },\n        \"valueQuantity\": {\n          \"value\": 180,\n          \"unit\": \"pg/mL\",\n          \"system\": \"http://unitsofmeasure.org\",\n          \"code\": \"pg/mL\"\n        }\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:7f9a1c3e-5b2d-4e80-9a6c-2d4f6b8a0c37\",\n      \"resource\": {\n        \"resourceType\": \"MedicationDispense\",\n        \"id\": \"meddisp-urn-1\",\n        \"status\": \"completed\",\n        \"medicationCodeableConcept\": {\n          \"text\": \"Lisinopril 10 mg tablet\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-1\"\n        },\n        \"authorizingPrescription\": [\n          {\n            \"reference\": \"http://example.org/fhir/MedicationRequest/rx1\"\n          },\n          {\n            \"reference\": \"MedicationRequest/rx1\"\n          },\n          {\n            \"reference\": \"http://example.org/fhir/MedicationRequest/rx1/_history/3\"\n          },\n          {\n            \"reference\": \"http://other.example/fhir/MedicationRequest/rx1\"\n          }\n        ],\n        \"whenHandedOver\": \"2026-02-05\"\n      }\n    },\n    {\n      \"fullUrl\": \"urn:uuid:5d0f5f0e-2a6c-4c1e-9b1a-000000000003\",\n      \"resource\": {\n        \"resourceType\": \"DiagnosticReport\",\n        \"id\": \"r-urn-1\",\n        \"status\": \"final\",\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://loinc.org\",\n              \"code\": \"2132-9\",\n              \"display\": \"Cobalamin (Vitamin B12) [Mass/volume] in Serum or Plasma\"\n            }\n          ]\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-1\"\n        },\n        \"result\": [\n          {\n            \"reference\": \"http://example.org/fhir/Observation/b12-1\"\n          },\n          {\n            \"reference\": \"Observation/b12-1\"\n          },\n          {\n            \"reference\": \"http://other.example/fhir/Observation/b12-1\"\n          }\n        ]\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-absolute-reference-from-urn-entry.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-absolute-reference-from-urn-entry.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 obo: <http://purl.obolibrary.org/obo/> .\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;hLARuY51LB_LuJ2GUOAOjnZsHUoigi_SV2FIVQXAjPU> cascade:medicationRequestIntent \"order\" ;\n\tcascade:workflowStatus \"active\" ;\n\tcascade:drugName \"Lisinopril 10 mg tablet\" ;\n\tcascade:prescribedOrReported \"prescribed\" .\n<urn:uuid:cc8cb066-4c79-830c-9f57-c8a6f37fdea0> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <http://example.org/fhir/MedicationRequest/rx1> ;\n\tcascade:sourceRecordId \"rx1\" .\n<ni:///sha-256;hLARuY51LB_LuJ2GUOAOjnZsHUoigi_SV2FIVQXAjPU> prov:specializationOf <urn:uuid:cc8cb066-4c79-830c-9f57-c8a6f37fdea0> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:4350fe7e73c82dee70f3492c8c201779 bridge:arrivedAs <ni:///sha-256;hLARuY51LB_LuJ2GUOAOjnZsHUoigi_SV2FIVQXAjPU> ;\n\toa:hasSelector _:b0e6c2116fc009cc79775b183360829b ;\n\toa:hasSource <ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> ;\n\tprov:wasDerivedFrom <ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> ;\n\tprov:wasGeneratedBy _:d4dfbfbba7a73e14eb1ed6b960944f60 .\n_:b0e6c2116fc009cc79775b183360829b a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<ni:///sha-256;p8mwruTekTy-miOCZN84rcizv1nPAcFoskAZ1jsogfA> cascade:testCode <http://loinc.org/rdf/2132-9> ;\n\tcascade:resultQuantity <ni:///sha-256;p8mwruTekTy-miOCZN84rcizv1nPAcFoskAZ1jsogfA#value> .\n<ni:///sha-256;p8mwruTekTy-miOCZN84rcizv1nPAcFoskAZ1jsogfA#value> cascade:decimalValue \"180\"^^xsd:decimal ;\n\tcascade:writtenValue \"180\" ;\n\tcascade:ucumUnit \"pg/mL\" ;\n\tcascade:unitText \"pg/mL\" .\n<ni:///sha-256;p8mwruTekTy-miOCZN84rcizv1nPAcFoskAZ1jsogfA> cascade:testName \"Cobalamin (Vitamin B12) [Mass/volume] in Serum or Plasma\" ;\n\tcascade:resultValueKind cascade:QuantityResultValue ;\n\tcascade:workflowStatus \"final\" .\n<urn:uuid:1b1f6343-d944-822c-a7c4-9eda7136a587> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <http://example.org/fhir/Observation/b12-1> ;\n\tcascade:sourceRecordId \"b12-1\" .\n<ni:///sha-256;p8mwruTekTy-miOCZN84rcizv1nPAcFoskAZ1jsogfA> prov:specializationOf <urn:uuid:1b1f6343-d944-822c-a7c4-9eda7136a587> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:3eaf6f86487f6044afb88b8fc61c519d bridge:arrivedAs <ni:///sha-256;p8mwruTekTy-miOCZN84rcizv1nPAcFoskAZ1jsogfA> ;\n\toa:hasSelector _:32edf80791ea034ebae4194715cdb162 ;\n\toa:hasSource <ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> ;\n\tprov:wasDerivedFrom <ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> ;\n\tprov:wasGeneratedBy _:d4dfbfbba7a73e14eb1ed6b960944f60 .\n_:32edf80791ea034ebae4194715cdb162 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<ni:///sha-256;e6fDxad3r5X5m5AfaG4my34K52vazFI2mBfwdaqbX5I> cascade:authorizingPrescription <urn:uuid:cc8cb066-4c79-830c-9f57-c8a6f37fdea0> ;\n\tcascade:dispenseHandedOverTime \"2026-02-05\"^^xsd:date ;\n\tcascade:workflowStatus \"completed\" ;\n\tcascade:drugName \"Lisinopril 10 mg tablet\" .\n<urn:uuid:3d0684d6-2923-891c-a068-12fe9673c3f8> a cascade:MedicationDispense ;\n\tcascade:sourceRecordId \"meddisp-urn-1\" .\n<ni:///sha-256;e6fDxad3r5X5m5AfaG4my34K52vazFI2mBfwdaqbX5I> prov:specializationOf <urn:uuid:3d0684d6-2923-891c-a068-12fe9673c3f8> .\n_:9a375617665a533f5481734aad4952be bridge:arrivedAs <ni:///sha-256;e6fDxad3r5X5m5AfaG4my34K52vazFI2mBfwdaqbX5I> ;\n\toa:hasSelector _:f94078b1806901228c34bf68f4cf753c ;\n\toa:hasSource <ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> ;\n\tprov:wasDerivedFrom <ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> ;\n\tprov:wasGeneratedBy _:d4dfbfbba7a73e14eb1ed6b960944f60 .\n_:f94078b1806901228c34bf68f4cf753c a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n<urn:uuid:09965ec3-15f7-8af1-87d7-b66ea9f24f42> a cascade:DiagnosticReport ;\n\tcascade:sourceRecordId \"r-urn-1\" .\n<ni:///sha-256;WN4UrLLpUk9MfGOXXG1J07yH5WNuRuM5f3M6YG3vmxU> prov:specializationOf <urn:uuid:09965ec3-15f7-8af1-87d7-b66ea9f24f42> .\n_:eb797fd6c2e789ff3113a1d485d97a99 bridge:arrivedAs <ni:///sha-256;WN4UrLLpUk9MfGOXXG1J07yH5WNuRuM5f3M6YG3vmxU> .\n<ni:///sha-256;WN4UrLLpUk9MfGOXXG1J07yH5WNuRuM5f3M6YG3vmxU> obo:RO_0002351 <urn:uuid:1b1f6343-d944-822c-a7c4-9eda7136a587> ;\n\tcascade:reportName \"Cobalamin (Vitamin B12) [Mass/volume] in Serum or Plasma\" ;\n\tcascade:workflowStatus \"final\" ;\n\tcascade:reportCode <http://loinc.org/rdf/2132-9> .\n_:eb797fd6c2e789ff3113a1d485d97a99 oa:hasSelector _:4e06454eea2296e2ba81834429a393c7 ;\n\toa:hasSource <ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> ;\n\tprov:wasDerivedFrom <ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> ;\n\tprov:wasGeneratedBy _:d4dfbfbba7a73e14eb1ed6b960944f60 .\n_:4e06454eea2296e2ba81834429a393c7 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/3\" .\n<ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:d4dfbfbba7a73e14eb1ed6b960944f60 <http://www.w3.org/2000/01/rdf-schema#label> \"Example server export\" ;\n\tprov:startedAtTime \"2026-10-13T09:00:04Z\"^^xsd:dateTime .\n<ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> a prov:Entity .\n_:d4dfbfbba7a73e14eb1ed6b960944f60 a prov:Activity ;\n\tprov:used <ni:///sha-256;RVUj7vwI8_D1VrajVz77wcyGqeEvJyygCtJCyecems0> ;\n\tprov:qualifiedAssociation _:e4c4ccf23c0cc4c92cfcd1b2b6d50517 .\n_:e4c4ccf23c0cc4c92cfcd1b2b6d50517 prov:hadPlan _:ba358b6022dab68a65de3b6d31d43925 .\n_:ba358b6022dab68a65de3b6d31d43925 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:e4c4ccf23c0cc4c92cfcd1b2b6d50517 prov:agent _:c000950c473ab9483785e7b6e45b505f .\n_:c000950c473ab9483785e7b6e45b505f 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-absolute-reference-from-urn-entry.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-absolute-reference-from-urn-entry.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_:c597ffc60ab228e5346c69dca4aea0ba a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n_:ba41c7ec8e08102165e4f78056c15c19 oa:hasSource <../in/bundle-absolute-reference-from-urn-entry.json> .\n_:c597ffc60ab228e5346c69dca4aea0ba oa:refinedBy _:cea6092cdb5b5a717843f30dcf913ae .\n_:cea6092cdb5b5a717843f30dcf913ae a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/authorizingPrescription/3/reference\" .\n_:ba41c7ec8e08102165e4f78056c15c19 oa:hasSelector _:c597ffc60ab228e5346c69dca4aea0ba .\n_:eaf9acc29df5bfab3f4d4bfb8931b9bf oa:hasTarget _:ba41c7ec8e08102165e4f78056c15c19 .\n_:ce0abfca6f7b28f19ea53ccb1f7d4fc0 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n_:bf3cfe218789e238f83242102532dea5 oa:hasSource <../in/bundle-absolute-reference-from-urn-entry.json> .\n_:ce0abfca6f7b28f19ea53ccb1f7d4fc0 oa:refinedBy _:e3a94b91a6f12438de8517800fe4b16f .\n_:e3a94b91a6f12438de8517800fe4b16f a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/authorizingPrescription/1/reference\" .\n_:bf3cfe218789e238f83242102532dea5 oa:hasSelector _:ce0abfca6f7b28f19ea53ccb1f7d4fc0 .\n_:c47a6722c91ef4fedeb92d9ec1bc75fc oa:hasTarget _:bf3cfe218789e238f83242102532dea5 .\n_:eaf9acc29df5bfab3f4d4bfb8931b9bf sh:resultSeverity sh:Warning .\n_:c47a6722c91ef4fedeb92d9ec1bc75fc sh:resultSeverity sh:Warning .\n_:eaf9acc29df5bfab3f4d4bfb8931b9bf a oa:Annotation ;\n\toa:hasBody fhirr4:authorizingPrescriptionNotNamed ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"http://other.example/fhir/MedicationRequest/rx1\" .\n_:c47a6722c91ef4fedeb92d9ec1bc75fc a oa:Annotation ;\n\toa:hasBody fhirr4:authorizingPrescriptionNotNamed ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"MedicationRequest/rx1\" .\n_:b3cd6a0ba32d94d0da7ff4d0fb3caa85 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n_:d26488b11288d2f994c6547414b1b6a7 oa:hasSource <../in/bundle-absolute-reference-from-urn-entry.json> .\n_:b3cd6a0ba32d94d0da7ff4d0fb3caa85 oa:refinedBy _:b7b83df3486344aada1da6b81071f4b2 .\n_:b7b83df3486344aada1da6b81071f4b2 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/subject/reference\" .\n_:d26488b11288d2f994c6547414b1b6a7 oa:hasSelector _:b3cd6a0ba32d94d0da7ff4d0fb3caa85 .\n_:e001402a490ef85d29a7806d2d6a01c8 oa:hasTarget _:d26488b11288d2f994c6547414b1b6a7 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:referenceRelativeUndefined ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Patient/pat-1\" .\n_:cc29fc9678fc63026fd73b81c199ff0 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/3\" .\n_:a68ba3d2dd52c2d7641e008290d6f6a9 oa:hasSource <../in/bundle-absolute-reference-from-urn-entry.json> .\n_:cc29fc9678fc63026fd73b81c199ff0 oa:refinedBy _:f298eee702b927e5490298d383de7e46 .\n_:f298eee702b927e5490298d383de7e46 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/result/2/reference\" .\n_:a68ba3d2dd52c2d7641e008290d6f6a9 oa:hasSelector _:cc29fc9678fc63026fd73b81c199ff0 .\n_:f75c9edcac315186afac31ac58221548 oa:hasTarget _:a68ba3d2dd52c2d7641e008290d6f6a9 .\n_:ac879b922709d63219b9c61bed5c60ae a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/3\" .\n_:e5c4a138bd2bbf555998a001095d7298 oa:hasSource <../in/bundle-absolute-reference-from-urn-entry.json> .\n_:ac879b922709d63219b9c61bed5c60ae oa:refinedBy _:cca6c0eb7bed0f25739da5928e5ed895 .\n_:cca6c0eb7bed0f25739da5928e5ed895 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/result/1/reference\" .\n_:e5c4a138bd2bbf555998a001095d7298 oa:hasSelector _:ac879b922709d63219b9c61bed5c60ae .\n_:adec7839100f25abf3de13282b93bd68 oa:hasTarget _:e5c4a138bd2bbf555998a001095d7298 .\n_:f75c9edcac315186afac31ac58221548 sh:resultSeverity sh:Warning .\n_:adec7839100f25abf3de13282b93bd68 sh:resultSeverity sh:Warning .\n_:f75c9edcac315186afac31ac58221548 a oa:Annotation ;\n\toa:hasBody fhirr4:reportResultNotNamed ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"http://other.example/fhir/Observation/b12-1\" .\n_:adec7839100f25abf3de13282b93bd68 a oa:Annotation ;\n\toa:hasBody fhirr4:reportResultNotNamed ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Observation/b12-1\" .\n", "empty": false}}