{"name": "condition-onset-to-the-minute", "comment": "A Condition whose onset is written to the minute, as C-CDA on FHIR writes a time, and its abatement to the second: the onset is padded to the second beside a cascade:PaddedDateTime node keeping what was written; the abatement is as written.", "input": {"file": "fixtures/in/condition-onset-to-the-minute.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/condition-onset-to-the-minute.json", "text": "{\n  \"resourceType\": \"Condition\",\n  \"id\": \"cond-asthma-minute-1\",\n  \"clinicalStatus\": {\n    \"coding\": [\n      {\n        \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\n        \"code\": \"resolved\"\n      }\n    ]\n  },\n  \"code\": {\n    \"coding\": [\n      {\n        \"system\": \"http://hl7.org/fhir/sid/icd-10-cm\",\n        \"code\": \"J45.909\",\n        \"display\": \"Unspecified asthma, uncomplicated\"\n      }\n    ],\n    \"text\": \"Asthma\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"onsetDateTime\": \"2023-05-31T14:00-05:00\",\n  \"abatementDateTime\": \"2023-06-02T09:30:15-05:00\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/condition-onset-to-the-minute.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/condition-onset-to-the-minute.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;QO0QEx2JwyibracKON4hdRi5kTg1XLHIjfRwzKTkxzc> cascade:conditionName \"Asthma\" ;\n\tcascade:conditionCode <https://ns.cascadeprotocol.org/codes/icd10cm/J45.909> ;\n\tcascade:clinicalStatus \"resolved\" ;\n\tcascade:onsetDate \"2023-05-31T14:00:00-05:00\"^^xsd:dateTime ;\n\tcascade:paddedDateTime <ni:///sha-256;QO0QEx2JwyibracKON4hdRi5kTg1XLHIjfRwzKTkxzc#padded-onsetDate> .\n<ni:///sha-256;QO0QEx2JwyibracKON4hdRi5kTg1XLHIjfRwzKTkxzc#padded-onsetDate> cascade:paddedDateTimeProperty cascade:onsetDate ;\n\tcascade:timeAsWritten \"2023-05-31T14:00-05:00\" .\n<ni:///sha-256;QO0QEx2JwyibracKON4hdRi5kTg1XLHIjfRwzKTkxzc> cascade:abatementDate \"2023-06-02T09:30:15-05:00\"^^xsd:dateTime .\n<urn:uuid:ec38582d-814b-83f6-a98d-6bae7f8f4e22> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Condition/cond-asthma-minute-1> ;\n\tcascade:sourceRecordId \"cond-asthma-minute-1\" .\n<ni:///sha-256;QO0QEx2JwyibracKON4hdRi5kTg1XLHIjfRwzKTkxzc> prov:specializationOf <urn:uuid:ec38582d-814b-83f6-a98d-6bae7f8f4e22> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:84e55f38b06b0669c3834ecf4d372c95 bridge:arrivedAs <ni:///sha-256;QO0QEx2JwyibracKON4hdRi5kTg1XLHIjfRwzKTkxzc> ;\n\toa:hasSelector _:f9c00b185a517a26838da6dd6957d86d ;\n\toa:hasSource <ni:///sha-256;SbBeIwmaKnfp8Ljf0MMDp8LUOwL5oQlwe002ay4Upsc> ;\n\tprov:wasDerivedFrom <ni:///sha-256;SbBeIwmaKnfp8Ljf0MMDp8LUOwL5oQlwe002ay4Upsc> ;\n\tprov:wasGeneratedBy _:286cc54a59df15d207a93a97014a10f6 .\n_:f9c00b185a517a26838da6dd6957d86d a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;SbBeIwmaKnfp8Ljf0MMDp8LUOwL5oQlwe002ay4Upsc> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:ab9e170a5f5ae60e83beadb18f921ee7 ;\n\tprov:wasAttributedTo _:22104da242649b8e13a1072af5282440 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:95934cb9619ed869f17b51c159513e80 prov:agent _:22104da242649b8e13a1072af5282440 ;\n\tprov:hadRole cascade:AuthorRole .\n_:ab9e170a5f5ae60e83beadb18f921ee7 prov:qualifiedAssociation _:95934cb9619ed869f17b51c159513e80 .\n_:de488df4f949e47cb2378c67b250235 prov:agent _:9097490590b09c70fa6335b8b814cb59 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:ab9e170a5f5ae60e83beadb18f921ee7 prov:qualifiedAssociation _:de488df4f949e47cb2378c67b250235 .\n_:22104da242649b8e13a1072af5282440 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:9097490590b09c70fa6335b8b814cb59 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:286cc54a59df15d207a93a97014a10f6 <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;SbBeIwmaKnfp8Ljf0MMDp8LUOwL5oQlwe002ay4Upsc> a prov:Entity .\n_:286cc54a59df15d207a93a97014a10f6 a prov:Activity ;\n\tprov:used <ni:///sha-256;SbBeIwmaKnfp8Ljf0MMDp8LUOwL5oQlwe002ay4Upsc> ;\n\tprov:qualifiedAssociation _:5e2920a8d5882558055631e551eec825 .\n_:5e2920a8d5882558055631e551eec825 prov:hadPlan _:4bc88d228ea22995be164e5e6e56a2af .\n_:4bc88d228ea22995be164e5e6e56a2af a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:5e2920a8d5882558055631e551eec825 prov:agent _:9120349c1c88dcd9ee4187d9df12f41d .\n_:9120349c1c88dcd9ee4187d9df12f41d 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/condition-onset-to-the-minute.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/condition-onset-to-the-minute.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_:efecac3061eeeb528482b569ffe3dd13 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:b3f470da5fdf920b5b6d7da4a1838ae2 a oa:Annotation ;\n\toa:hasTarget _:d74d1a9f206ea2687af223bc87b851cc .\n_:d74d1a9f206ea2687af223bc87b851cc oa:hasSource <../in/condition-onset-to-the-minute.json> ;\n\toa:hasSelector _:efecac3061eeeb528482b569ffe3dd13 .\n_:b3f470da5fdf920b5b6d7da4a1838ae2 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}}