{"name": "diagnostic-report-codes-and-times", "comment": "A DiagnosticReport coded in SNOMED CT beside a coding with no system, named by its first coding with a display, effective at a time written to the minute, which is padded, and issued with fractions of a second; FHIR's schema refuses the minute.", "input": {"file": "fixtures/in/diagnostic-report-codes-and-times.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/diagnostic-report-codes-and-times.json", "text": "{\n  \"resourceType\": \"DiagnosticReport\",\n  \"id\": \"codes\",\n  \"status\": \"final\",\n  \"code\": {\n    \"coding\": [\n      {\n        \"system\": \"http://snomed.info/sct\",\n        \"code\": \"271216009\"\n      },\n      {\n        \"code\": \"B12\",\n        \"display\": \"Vitamin B12 test\"\n      },\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  \"effectiveDateTime\": \"2026-08-14T09:30Z\",\n  \"issued\": \"2026-08-15T10:12:00.250Z\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/diagnostic-report-codes-and-times.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/diagnostic-report-codes-and-times.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:f418f109-5d34-8b49-a785-89db3bd76796> a cascade:DiagnosticReport ;\n\tcascade:sourceUrl <http://example.org/fhir/DiagnosticReport/codes> ;\n\tcascade:sourceRecordId \"codes\" .\n<ni:///sha-256;V1VAdjOVplmoL-uX4tOiZWlYsfBW2j4xQdIJFNldU5Y> prov:specializationOf <urn:uuid:f418f109-5d34-8b49-a785-89db3bd76796> ;\n\tcascade:patient <urn:uuid:1cc3cbf1-3a8f-8691-923b-e87de6e5c3a3> .\n_:61f8041a512f911057e230dedaa601c0 bridge:arrivedAs <ni:///sha-256;V1VAdjOVplmoL-uX4tOiZWlYsfBW2j4xQdIJFNldU5Y> .\n<ni:///sha-256;V1VAdjOVplmoL-uX4tOiZWlYsfBW2j4xQdIJFNldU5Y> cascade:reportName \"Vitamin B12 test\" ;\n\tcascade:reportIssuedTime \"2026-08-15T10:12:00.25Z\"^^xsd:dateTime ;\n\tcascade:workflowStatus \"final\" ;\n\tcascade:reportEffectiveTime \"2026-08-14T09:30:00Z\"^^xsd:dateTime ;\n\tcascade:paddedDateTime <ni:///sha-256;V1VAdjOVplmoL-uX4tOiZWlYsfBW2j4xQdIJFNldU5Y#padded-reportEffectiveTime> .\n<ni:///sha-256;V1VAdjOVplmoL-uX4tOiZWlYsfBW2j4xQdIJFNldU5Y#padded-reportEffectiveTime> cascade:paddedDateTimeProperty cascade:reportEffectiveTime ;\n\tcascade:timeAsWritten \"2026-08-14T09:30Z\" .\n<ni:///sha-256;V1VAdjOVplmoL-uX4tOiZWlYsfBW2j4xQdIJFNldU5Y> cascade:reportCode <http://loinc.org/rdf/2132-9> , <http://snomed.info/id/271216009> .\n_:61f8041a512f911057e230dedaa601c0 oa:hasSelector _:a67c1a16ae654c3908fbcbac36d0fc9e ;\n\toa:hasSource <ni:///sha-256;8PlcHFI5dYj6YBgo-wQMYtecHERAWQrb4gUFZKe_Nls> ;\n\tprov:wasDerivedFrom <ni:///sha-256;8PlcHFI5dYj6YBgo-wQMYtecHERAWQrb4gUFZKe_Nls> ;\n\tprov:wasGeneratedBy _:8d0f145f57c5ed68b26c82d60373608d .\n_:a67c1a16ae654c3908fbcbac36d0fc9e a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;8PlcHFI5dYj6YBgo-wQMYtecHERAWQrb4gUFZKe_Nls> cascade:serverBaseUrl \"http://example.org/fhir\" ;\n\tpav:retrievedOn \"2026-10-13T09:00:00Z\"^^xsd:dateTime ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:8d0f145f57c5ed68b26c82d60373608d <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;8PlcHFI5dYj6YBgo-wQMYtecHERAWQrb4gUFZKe_Nls> a prov:Entity .\n_:8d0f145f57c5ed68b26c82d60373608d a prov:Activity ;\n\tprov:used <ni:///sha-256;8PlcHFI5dYj6YBgo-wQMYtecHERAWQrb4gUFZKe_Nls> ;\n\tprov:qualifiedAssociation _:927e717cc309c28447b7156c9e32d734 .\n_:927e717cc309c28447b7156c9e32d734 prov:hadPlan _:5d486eb3f548b0a4728a4f648556ade8 .\n_:5d486eb3f548b0a4728a4f648556ade8 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:927e717cc309c28447b7156c9e32d734 prov:agent _:c5e2acab87fc79ca6352010acb04b597 .\n_:c5e2acab87fc79ca6352010acb04b597 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/diagnostic-report-codes-and-times.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/diagnostic-report-codes-and-times.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_:f30ad91c3b4b2d7e96525e31c6fc823d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:f8a315a4ce1139c2566df570b491b49f a oa:Annotation ;\n\toa:hasTarget _:c3b7286fae5d41844ccba86a7bf873b .\n_:c3b7286fae5d41844ccba86a7bf873b oa:hasSource <../in/diagnostic-report-codes-and-times.json> ;\n\toa:hasSelector _:f30ad91c3b4b2d7e96525e31c6fc823d .\n_:f8a315a4ce1139c2566df570b491b49f 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_:d8cfaae7d87d5fc241fc45f79111770d a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:f1a6e9aaf2d0066fc3c5cac8e991eb92 oa:hasSource <../in/diagnostic-report-codes-and-times.json> .\n_:d8cfaae7d87d5fc241fc45f79111770d oa:refinedBy _:c0dbb876f41d30784aa985fff106727c .\n_:c0dbb876f41d30784aa985fff106727c a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/code/coding/1/code\" .\n_:f1a6e9aaf2d0066fc3c5cac8e991eb92 oa:hasSelector _:d8cfaae7d87d5fc241fc45f79111770d .\n_:dbc0e91ef3883696d132792ee5cba27e oa:hasTarget _:f1a6e9aaf2d0066fc3c5cac8e991eb92 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:codingNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"B12\" .\n", "empty": false}}