{"name": "bundle-lab-result-with-contained-not-a-list", "comment": "A Bundle of a laboratory Observation with a good effectiveDateTime whose contained is an object keyed k, not a list, holding an Observation of the laboratory category with effectiveDateTime 2026-02-31. A contained resource at a key is not at a numbered slot, so it has no pointer and its date is no finding; the findings are the contained members no mapping reads, the schema one for contained, and nothing for the date.", "input": {"file": "fixtures/in/bundle-lab-result-with-contained-not-a-list.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-lab-result-with-contained-not-a-list.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"http://example.org/fhir/Patient/pat-1\",\n      \"resource\": {\n        \"resourceType\": \"Patient\",\n        \"id\": \"pat-1\"\n      }\n    },\n    {\n      \"fullUrl\": \"http://example.org/fhir/Observation/obs-1\",\n      \"resource\": {\n        \"resourceType\": \"Observation\",\n        \"id\": \"obs-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\": \"2345-7\",\n              \"display\": \"Glucose\"\n            }\n          ]\n        },\n        \"effectiveDateTime\": \"2024-06-15\",\n        \"valueQuantity\": {\n          \"value\": 5,\n          \"unit\": \"mg/dL\"\n        },\n        \"contained\": {\n          \"k\": {\n            \"resourceType\": \"Observation\",\n            \"effectiveDateTime\": \"2024-02-31\",\n            \"category\": [\n              {\n                \"coding\": [\n                  {\n                    \"system\": \"http://terminology.hl7.org/CodeSystem/observation-category\",\n                    \"code\": \"laboratory\"\n                  }\n                ]\n              }\n            ]\n          }\n        }\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-lab-result-with-contained-not-a-list.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-lab-result-with-contained-not-a-list.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:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> a cascade:PatientProfile ;\n\tcascade:sourceUrl <http://example.org/fhir/Patient/pat-1> ;\n\tcascade:sourceRecordId \"pat-1\" .\n<ni:///sha-256;zuUzAiX3qTm4div7HRmr_J98ZrKhI-WrsDDU1ZHTdek> prov:specializationOf <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:221dca3ecd63d951848697d8274e6584 bridge:arrivedAs <ni:///sha-256;zuUzAiX3qTm4div7HRmr_J98ZrKhI-WrsDDU1ZHTdek> ;\n\toa:hasSelector _:2dd169b4f456d0550d325e5704234958 ;\n\toa:hasSource <ni:///sha-256;prh_YdTHcyS3Xwe5gDNcQ9D-mpPEeGc9TyIkgevfKm8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;prh_YdTHcyS3Xwe5gDNcQ9D-mpPEeGc9TyIkgevfKm8> ;\n\tprov:wasGeneratedBy _:6c1870bfba2ae7c525f077a94c8633f4 .\n_:2dd169b4f456d0550d325e5704234958 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<ni:///sha-256;Rb4yxj7DvOp5m36kWhZ7kLLJ7GVIsC5oovlaH7EH-RU> cascade:testCode <http://loinc.org/rdf/2345-7> ;\n\tcascade:resultQuantity <ni:///sha-256;Rb4yxj7DvOp5m36kWhZ7kLLJ7GVIsC5oovlaH7EH-RU#value> .\n<ni:///sha-256;Rb4yxj7DvOp5m36kWhZ7kLLJ7GVIsC5oovlaH7EH-RU#value> cascade:decimalValue \"5\"^^xsd:decimal ;\n\tcascade:writtenValue \"5\" ;\n\tcascade:unitText \"mg/dL\" .\n<ni:///sha-256;Rb4yxj7DvOp5m36kWhZ7kLLJ7GVIsC5oovlaH7EH-RU> cascade:testName \"Glucose\" ;\n\tcascade:resultValueKind cascade:QuantityResultValue ;\n\tcascade:resultClinicallyRelevantTime \"2024-06-15\"^^xsd:date ;\n\tcascade:workflowStatus \"final\" .\n<urn:uuid:f7a46896-cab1-8b47-8091-667c14fc7673> a cascade:LaboratoryTestResult ;\n\tcascade:sourceUrl <http://example.org/fhir/Observation/obs-1> ;\n\tcascade:sourceRecordId \"obs-1\" .\n<ni:///sha-256;Rb4yxj7DvOp5m36kWhZ7kLLJ7GVIsC5oovlaH7EH-RU> prov:specializationOf <urn:uuid:f7a46896-cab1-8b47-8091-667c14fc7673> .\n_:bdcff4c3882c60a97ceb304d1915efe6 bridge:arrivedAs <ni:///sha-256;Rb4yxj7DvOp5m36kWhZ7kLLJ7GVIsC5oovlaH7EH-RU> .\n_:c3c7b4ca487faafa763f4dc6eba23959 oa:hasSelector _:e1e39e6427b54153fc7c5274c372705a .\n_:e1e39e6427b54153fc7c5274c372705a a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> .\n_:bdcff4c3882c60a97ceb304d1915efe6 oa:hasSelector _:3404a712e0b1725e39986518af442f92 ;\n\toa:hasSource <ni:///sha-256;prh_YdTHcyS3Xwe5gDNcQ9D-mpPEeGc9TyIkgevfKm8> ;\n\tprov:wasDerivedFrom <ni:///sha-256;prh_YdTHcyS3Xwe5gDNcQ9D-mpPEeGc9TyIkgevfKm8> ;\n\tprov:wasGeneratedBy _:6c1870bfba2ae7c525f077a94c8633f4 .\n_:3404a712e0b1725e39986518af442f92 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<ni:///sha-256;prh_YdTHcyS3Xwe5gDNcQ9D-mpPEeGc9TyIkgevfKm8> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:6c1870bfba2ae7c525f077a94c8633f4 <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;prh_YdTHcyS3Xwe5gDNcQ9D-mpPEeGc9TyIkgevfKm8> a prov:Entity .\n_:6c1870bfba2ae7c525f077a94c8633f4 a prov:Activity ;\n\tprov:used <ni:///sha-256;prh_YdTHcyS3Xwe5gDNcQ9D-mpPEeGc9TyIkgevfKm8> ;\n\tprov:qualifiedAssociation _:e84a6fff915c19b8589651f7b794a418 .\n_:e84a6fff915c19b8589651f7b794a418 prov:hadPlan _:daa019b84e0ddcc23b69d881d0e75b71 .\n_:daa019b84e0ddcc23b69d881d0e75b71 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:e84a6fff915c19b8589651f7b794a418 prov:agent _:c6fdfe8079ba60fc1d5e39fcfc19136c .\n_:c6fdfe8079ba60fc1d5e39fcfc19136c 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-lab-result-with-contained-not-a-list.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-lab-result-with-contained-not-a-list.ttl", "text": "@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_:cc797d16a6fa2597e1f2a2b326ad226d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:eba4a8a5121ad4d19097469039e715f6 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource\" .\n_:cc797d16a6fa2597e1f2a2b326ad226d oa:refinedBy _:eba4a8a5121ad4d19097469039e715f6 .\n_:bb479ffa0884579f3b1f9c13610e77ff a oa:Annotation ;\n\toa:hasTarget _:a2655c68be511ad432b48c695fec6a93 .\n_:a2655c68be511ad432b48c695fec6a93 oa:hasSource <../in/bundle-lab-result-with-contained-not-a-list.json> ;\n\toa:hasSelector _:cc797d16a6fa2597e1f2a2b326ad226d .\n_:bb479ffa0884579f3b1f9c13610e77ff oa:hasBody <https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-01#section-6.28> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:resultSeverity sh:Violation .\n_:e2a647e4d94570e606bd25247545c999 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:eaf23332fc487d7835bcde2604e599bc a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/contained/k\" .\n_:e2a647e4d94570e606bd25247545c999 oa:refinedBy _:eaf23332fc487d7835bcde2604e599bc .\n_:c059cc6cdc8ab56a612a6068c7ffb792 a oa:Annotation ;\n\toa:hasTarget _:cc4f67846852d13dd6eaf8b202fc17f2 .\n_:cc4f67846852d13dd6eaf8b202fc17f2 oa:hasSource <../in/bundle-lab-result-with-contained-not-a-list.json> ;\n\toa:hasSelector _:e2a647e4d94570e606bd25247545c999 .\n_:c059cc6cdc8ab56a612a6068c7ffb792 oa:hasBody <https://ns.cascadeprotocol.org/cascade#SourcePathNotAccounted> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/resource/contained/k\" ;\n\tsh:resultSeverity sh:Info .\n_:db7b5dfd00a2e3d97836028b98978323 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:f04a0745b4b40483d126f1a6dcb7c1d6 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/contained/k/resourceType\" .\n_:db7b5dfd00a2e3d97836028b98978323 oa:refinedBy _:f04a0745b4b40483d126f1a6dcb7c1d6 .\n_:ed15b0e4d448a1ce1e151168b69635ce a oa:Annotation ;\n\toa:hasTarget _:ae7a8606b368b36628ac0715010e5468 .\n_:ae7a8606b368b36628ac0715010e5468 oa:hasSource <../in/bundle-lab-result-with-contained-not-a-list.json> ;\n\toa:hasSelector _:db7b5dfd00a2e3d97836028b98978323 .\n_:ed15b0e4d448a1ce1e151168b69635ce oa:hasBody <https://ns.cascadeprotocol.org/cascade#SourcePathNotAccounted> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/resource/contained/k/resourceType\" ;\n\tsh:resultSeverity sh:Info .\n_:b9d88a21d85fb39ac88d07ef33bc56d8 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:c6d19d06eaa7970fd0099c3d3a27cd3f a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/contained/k/effectiveDateTime\" .\n_:b9d88a21d85fb39ac88d07ef33bc56d8 oa:refinedBy _:c6d19d06eaa7970fd0099c3d3a27cd3f .\n_:a26694b65a2833bee6be465ba08d2067 a oa:Annotation ;\n\toa:hasTarget _:f5aaf5b9a5da65422c239633c9d2d07e .\n_:f5aaf5b9a5da65422c239633c9d2d07e oa:hasSource <../in/bundle-lab-result-with-contained-not-a-list.json> ;\n\toa:hasSelector _:b9d88a21d85fb39ac88d07ef33bc56d8 .\n_:a26694b65a2833bee6be465ba08d2067 oa:hasBody <https://ns.cascadeprotocol.org/cascade#SourcePathNotAccounted> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/resource/contained/k/effectiveDateTime\" ;\n\tsh:resultSeverity sh:Info .\n_:c88c72b0916f58e2984976032213b8af a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:aedfe1647dcc80de74643588dd38e578 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/contained/k/category/0\" .\n_:c88c72b0916f58e2984976032213b8af oa:refinedBy _:aedfe1647dcc80de74643588dd38e578 .\n_:f70c28db417af532edd441829174356c a oa:Annotation ;\n\toa:hasTarget _:b37bc3da1d1b839b17931d60754d86fa .\n_:b37bc3da1d1b839b17931d60754d86fa oa:hasSource <../in/bundle-lab-result-with-contained-not-a-list.json> ;\n\toa:hasSelector _:c88c72b0916f58e2984976032213b8af .\n_:f70c28db417af532edd441829174356c oa:hasBody <https://ns.cascadeprotocol.org/cascade#SourcePathNotAccounted> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/resource/contained/k/category\" ;\n\tsh:resultSeverity sh:Info .\n_:a3e7c11e5349dd747452cd85bbec9f40 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:b136650056f067a9c4f0ee102f7c851f a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/contained/k/category/0/coding/0\" .\n_:a3e7c11e5349dd747452cd85bbec9f40 oa:refinedBy _:b136650056f067a9c4f0ee102f7c851f .\n_:cd8cdac30499b9be5d3ba904c34c2dc8 a oa:Annotation ;\n\toa:hasTarget _:dd518f6cf06aaff05d1359c30388e8aa .\n_:dd518f6cf06aaff05d1359c30388e8aa oa:hasSource <../in/bundle-lab-result-with-contained-not-a-list.json> ;\n\toa:hasSelector _:a3e7c11e5349dd747452cd85bbec9f40 .\n_:cd8cdac30499b9be5d3ba904c34c2dc8 oa:hasBody <https://ns.cascadeprotocol.org/cascade#SourcePathNotAccounted> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/resource/contained/k/category/coding\" ;\n\tsh:resultSeverity sh:Info .\n_:e6e58f67d3a3db42f271203a26afa355 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:bf0f561b6d23a0e858c6294deec041cf a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/contained/k/category/0/coding/0/system\" .\n_:e6e58f67d3a3db42f271203a26afa355 oa:refinedBy _:bf0f561b6d23a0e858c6294deec041cf .\n_:ba4aaf2af5f6f1c66d5172c75418186f a oa:Annotation ;\n\toa:hasTarget _:e97ebf25a1cdf43dd845999af81fa612 .\n_:e97ebf25a1cdf43dd845999af81fa612 oa:hasSource <../in/bundle-lab-result-with-contained-not-a-list.json> ;\n\toa:hasSelector _:e6e58f67d3a3db42f271203a26afa355 .\n_:ba4aaf2af5f6f1c66d5172c75418186f oa:hasBody <https://ns.cascadeprotocol.org/cascade#SourcePathNotAccounted> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/resource/contained/k/category/coding/system\" ;\n\tsh:resultSeverity sh:Info .\n_:de8164f712b18b87db6ca37b8bef7442 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:aa722ddc5ab3111e0cc696bbb0f867a4 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/contained/k/category/0/coding/0/code\" .\n_:de8164f712b18b87db6ca37b8bef7442 oa:refinedBy _:aa722ddc5ab3111e0cc696bbb0f867a4 .\n_:aa861997324c3e673d7e41ba0f76c449 a oa:Annotation ;\n\toa:hasTarget _:dff4681261261459520159f5992b8895 .\n_:dff4681261261459520159f5992b8895 oa:hasSource <../in/bundle-lab-result-with-contained-not-a-list.json> ;\n\toa:hasSelector _:de8164f712b18b87db6ca37b8bef7442 .\n_:aa861997324c3e673d7e41ba0f76c449 oa:hasBody <https://ns.cascadeprotocol.org/cascade#SourcePathNotAccounted> ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"/resource/contained/k/category/coding/code\" ;\n\tsh:resultSeverity sh:Info .\n", "empty": false}}