{"name": "bundle-last-updates-short-of-an-instant", "comment": "A Bundle of Conditions whose meta.lastUpdated is a time with no zone, a date alone, and a time to the minute with an offset. FHIR's instant states its zone, and a pod compares change times across sources, so the first two are no pav:lastUpdateOn on their arrivals and each is a finding, fhirr4:dateNotCarried; the third is carried, padded to the second, though FHIR's instant states its seconds, so the value is not valid FHIR and the schema finding reports it.", "input": {"file": "fixtures/in/bundle-last-updates-short-of-an-instant.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/bundle-last-updates-short-of-an-instant.json", "text": "{\n  \"resourceType\": \"Bundle\",\n  \"type\": \"collection\",\n  \"entry\": [\n    {\n      \"fullUrl\": \"http://example.org/fhir/Condition/cond-1\",\n      \"resource\": {\n        \"resourceType\": \"Condition\",\n        \"id\": \"cond-1\",\n        \"meta\": {\n          \"lastUpdated\": \"2024-03-05T14:30:00\"\n        },\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://snomed.info/sct\",\n              \"code\": \"38341003\",\n              \"display\": \"Essential hypertension\"\n            }\n          ],\n          \"text\": \"Essential hypertension\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-1\"\n        }\n      }\n    },\n    {\n      \"fullUrl\": \"http://example.org/fhir/Condition/cond-2\",\n      \"resource\": {\n        \"resourceType\": \"Condition\",\n        \"id\": \"cond-2\",\n        \"meta\": {\n          \"lastUpdated\": \"2024-03-05\"\n        },\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://snomed.info/sct\",\n              \"code\": \"195967001\",\n              \"display\": \"Asthma\"\n            }\n          ],\n          \"text\": \"Asthma\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-1\"\n        }\n      }\n    },\n    {\n      \"fullUrl\": \"http://example.org/fhir/Condition/cond-3\",\n      \"resource\": {\n        \"resourceType\": \"Condition\",\n        \"id\": \"cond-3\",\n        \"meta\": {\n          \"lastUpdated\": \"2024-03-05T14:30+01:00\"\n        },\n        \"code\": {\n          \"coding\": [\n            {\n              \"system\": \"http://snomed.info/sct\",\n              \"code\": \"44054006\",\n              \"display\": \"Diabetes mellitus type 2\"\n            }\n          ],\n          \"text\": \"Diabetes mellitus type 2\"\n        },\n        \"subject\": {\n          \"reference\": \"Patient/pat-1\"\n        }\n      }\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/bundle-last-updates-short-of-an-instant.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/bundle-last-updates-short-of-an-instant.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<ni:///sha-256;KmrFERfTtRcPaQ0PEyK8pXkf2BdPSo0E3n1Vl9VgQg4> cascade:conditionName \"Essential hypertension\" ;\n\tcascade:conditionCode <http://snomed.info/id/38341003> .\n<urn:uuid:e55eb9dc-7a88-822f-aa96-e08ffdf8c5aa> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <http://example.org/fhir/Condition/cond-1> ;\n\tcascade:sourceRecordId \"cond-1\" .\n<ni:///sha-256;KmrFERfTtRcPaQ0PEyK8pXkf2BdPSo0E3n1Vl9VgQg4> prov:specializationOf <urn:uuid:e55eb9dc-7a88-822f-aa96-e08ffdf8c5aa> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:a75a804a64321df0f5aac1b2b158ca02 bridge:arrivedAs <ni:///sha-256;KmrFERfTtRcPaQ0PEyK8pXkf2BdPSo0E3n1Vl9VgQg4> ;\n\toa:hasSelector _:71bfa6ed0177a5c5ba2ec50fa5e13f88 ;\n\toa:hasSource <ni:///sha-256;Zf5Efcq7dXwCedIFGcM6pjdsEV9hBMUdXVfnr-TDedk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Zf5Efcq7dXwCedIFGcM6pjdsEV9hBMUdXVfnr-TDedk> ;\n\tprov:wasGeneratedBy _:f2cc170be9b8054c7618ebd538c01ac3 .\n_:71bfa6ed0177a5c5ba2ec50fa5e13f88 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n<ni:///sha-256;fJwdWr3MRtOcnKg8UXBYmzPWoqSQdJ9lo-V6vzcy8nE> cascade:conditionName \"Asthma\" ;\n\tcascade:conditionCode <http://snomed.info/id/195967001> .\n<urn:uuid:6fd67f62-9b1a-87c0-ab0b-ff71a597e0ca> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <http://example.org/fhir/Condition/cond-2> ;\n\tcascade:sourceRecordId \"cond-2\" .\n<ni:///sha-256;fJwdWr3MRtOcnKg8UXBYmzPWoqSQdJ9lo-V6vzcy8nE> prov:specializationOf <urn:uuid:6fd67f62-9b1a-87c0-ab0b-ff71a597e0ca> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:208eade6c792862f5a5cbe5bfa20e533 bridge:arrivedAs <ni:///sha-256;fJwdWr3MRtOcnKg8UXBYmzPWoqSQdJ9lo-V6vzcy8nE> ;\n\toa:hasSelector _:147404d4ac85584e8866fca094a84199 ;\n\toa:hasSource <ni:///sha-256;Zf5Efcq7dXwCedIFGcM6pjdsEV9hBMUdXVfnr-TDedk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Zf5Efcq7dXwCedIFGcM6pjdsEV9hBMUdXVfnr-TDedk> ;\n\tprov:wasGeneratedBy _:f2cc170be9b8054c7618ebd538c01ac3 .\n_:147404d4ac85584e8866fca094a84199 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n<ni:///sha-256;FIm1YA0z2c-pY_htnpbs76J913G8MMXn85u6lMGnueU> cascade:conditionName \"Diabetes mellitus type 2\" ;\n\tcascade:conditionCode <http://snomed.info/id/44054006> .\n<urn:uuid:6d731029-0309-8f48-b961-629a0995fa70> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <http://example.org/fhir/Condition/cond-3> ;\n\tcascade:sourceRecordId \"cond-3\" .\n<ni:///sha-256;FIm1YA0z2c-pY_htnpbs76J913G8MMXn85u6lMGnueU> prov:specializationOf <urn:uuid:6d731029-0309-8f48-b961-629a0995fa70> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:c32a52d6c7448626aca6c6fe564d99a bridge:arrivedAs <ni:///sha-256;FIm1YA0z2c-pY_htnpbs76J913G8MMXn85u6lMGnueU> ;\n\tpav:lastUpdateOn \"2024-03-05T14:30:00+01:00\"^^xsd:dateTime ;\n\toa:hasSelector _:57b0f3645ca73d150b8034aeea9b00c4 ;\n\toa:hasSource <ni:///sha-256;Zf5Efcq7dXwCedIFGcM6pjdsEV9hBMUdXVfnr-TDedk> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Zf5Efcq7dXwCedIFGcM6pjdsEV9hBMUdXVfnr-TDedk> ;\n\tprov:wasGeneratedBy _:f2cc170be9b8054c7618ebd538c01ac3 .\n_:57b0f3645ca73d150b8034aeea9b00c4 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n<ni:///sha-256;Zf5Efcq7dXwCedIFGcM6pjdsEV9hBMUdXVfnr-TDedk> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:f2cc170be9b8054c7618ebd538c01ac3 <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;Zf5Efcq7dXwCedIFGcM6pjdsEV9hBMUdXVfnr-TDedk> a prov:Entity .\n_:f2cc170be9b8054c7618ebd538c01ac3 a prov:Activity ;\n\tprov:used <ni:///sha-256;Zf5Efcq7dXwCedIFGcM6pjdsEV9hBMUdXVfnr-TDedk> ;\n\tprov:qualifiedAssociation _:6d584bc3dd51e00aa9d573101305c890 .\n_:6d584bc3dd51e00aa9d573101305c890 prov:hadPlan _:b7967f93e477039576c8c6a0cb5880d0 .\n_:b7967f93e477039576c8c6a0cb5880d0 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:6d584bc3dd51e00aa9d573101305c890 prov:agent _:640206954fc81cde0dcf5709ebe60f49 .\n_:640206954fc81cde0dcf5709ebe60f49 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-last-updates-short-of-an-instant.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/bundle-last-updates-short-of-an-instant.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_:e20025dc2ca95db07080e7c0d0891371 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n_:cedf1c50e75f7cc96b0a97acadbddf31 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource\" .\n_:e20025dc2ca95db07080e7c0d0891371 oa:refinedBy _:cedf1c50e75f7cc96b0a97acadbddf31 .\n_:a21f1f37bf14e2e02addb7427eb6d73e a oa:Annotation ;\n\toa:hasTarget _:e33b10604cb49ec803f7416c25740a79 .\n_:e33b10604cb49ec803f7416c25740a79 oa:hasSource <../in/bundle-last-updates-short-of-an-instant.json> ;\n\toa:hasSelector _:e20025dc2ca95db07080e7c0d0891371 .\n_:a21f1f37bf14e2e02addb7427eb6d73e 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_:e02138685207f6d11cb93b913e6d2d05 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/0\" .\n_:ef336e01a8a313c8894566ec1042300 oa:hasSource <../in/bundle-last-updates-short-of-an-instant.json> .\n_:e02138685207f6d11cb93b913e6d2d05 oa:refinedBy _:f931810d026c5045c30fde8dc0aa8bba .\n_:f931810d026c5045c30fde8dc0aa8bba a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/meta/lastUpdated\" .\n_:ef336e01a8a313c8894566ec1042300 oa:hasSelector _:e02138685207f6d11cb93b913e6d2d05 .\n_:d34ee1e2f58a7c4c0498111ceb514b97 oa:hasTarget _:ef336e01a8a313c8894566ec1042300 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:dateNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2024-03-05T14:30:00\" .\n_:fe6dceee5e86fc2d4e5a16c0e4e194f a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:b97f42389eba28b2aee8ea95fb50372 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource\" .\n_:fe6dceee5e86fc2d4e5a16c0e4e194f oa:refinedBy _:b97f42389eba28b2aee8ea95fb50372 .\n_:cb044059aeb880c4f197c25b7ad4dd4 a oa:Annotation ;\n\toa:hasTarget _:b61589a3a6773d98b57731e90db074ab .\n_:b61589a3a6773d98b57731e90db074ab oa:hasSource <../in/bundle-last-updates-short-of-an-instant.json> ;\n\toa:hasSelector _:fe6dceee5e86fc2d4e5a16c0e4e194f .\n_:cb044059aeb880c4f197c25b7ad4dd4 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_:b8d80d74b36fd2dcd3b2a0b0f71eb4f1 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/1\" .\n_:c8c21e530ddcceba6040add570f61875 oa:hasSource <../in/bundle-last-updates-short-of-an-instant.json> .\n_:b8d80d74b36fd2dcd3b2a0b0f71eb4f1 oa:refinedBy _:ff112668dfe8921bec251578c4bf5c24 .\n_:ff112668dfe8921bec251578c4bf5c24 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource/meta/lastUpdated\" .\n_:c8c21e530ddcceba6040add570f61875 oa:hasSelector _:b8d80d74b36fd2dcd3b2a0b0f71eb4f1 .\n_:b972f044aca0f57a1175245442f04d8e oa:hasTarget _:c8c21e530ddcceba6040add570f61875 ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:dateNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"2024-03-05\" .\n_:b0472d1207085071b0a76c825809a63e a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/entry/2\" .\n_:a0c5e5991c31b6d1c71dd334e07d7ee7 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/resource\" .\n_:b0472d1207085071b0a76c825809a63e oa:refinedBy _:a0c5e5991c31b6d1c71dd334e07d7ee7 .\n_:be452decbe85410c81553a0fa7958406 a oa:Annotation ;\n\toa:hasTarget _:f6a2fbb34333d97538d654b9b891f878 .\n_:f6a2fbb34333d97538d654b9b891f878 oa:hasSource <../in/bundle-last-updates-short-of-an-instant.json> ;\n\toa:hasSelector _:b0472d1207085071b0a76c825809a63e .\n_:be452decbe85410c81553a0fa7958406 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", "empty": false}}