{"name": "condition-onset-absent-for-reason", "comment": "A Condition whose onset and abatement are absent, each with the data-absent-reason extension: the onset's asked-unknown is carried on a node naming cascade:onsetDate; the abatement's never-said is no code of the CodeSystem, is not carried, and is a finding.", "input": {"file": "fixtures/in/condition-onset-absent-for-reason.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/condition-onset-absent-for-reason.json", "text": "{\n  \"resourceType\": \"Condition\",\n  \"id\": \"cond-asthma-onset-unknown-1\",\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\": {\n    \"extension\": [\n      {\n        \"url\": \"http://hl7.org/fhir/StructureDefinition/data-absent-reason\",\n        \"valueCode\": \"asked-unknown\"\n      }\n    ]\n  },\n  \"_abatementDateTime\": {\n    \"extension\": [\n      {\n        \"url\": \"http://hl7.org/fhir/StructureDefinition/data-absent-reason\",\n        \"valueCode\": \"never-said\"\n      }\n    ]\n  }\n}\n"}, "expectedGraph": {"file": "fixtures/expected/condition-onset-absent-for-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/condition-onset-absent-for-reason.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;ykg1mg5f8A01ohit0kEjIyjMgSrIk-PUEOeBfSRpCic> cascade:valueAbsentForReason <ni:///sha-256;ykg1mg5f8A01ohit0kEjIyjMgSrIk-PUEOeBfSRpCic#absent-onsetDate> .\n<ni:///sha-256;ykg1mg5f8A01ohit0kEjIyjMgSrIk-PUEOeBfSRpCic#absent-onsetDate> cascade:absentValueProperty cascade:onsetDate ;\n\tcascade:absentReasonCode <https://ns.cascadeprotocol.org/codes/data-absent-reason/asked-unknown> .\n<ni:///sha-256;ykg1mg5f8A01ohit0kEjIyjMgSrIk-PUEOeBfSRpCic> cascade:conditionName \"Asthma\" ;\n\tcascade:conditionCode <https://ns.cascadeprotocol.org/codes/icd10cm/J45.909> .\n<urn:uuid:af1c1ffe-a91f-81ed-a8fe-faa256d517a9> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Condition/cond-asthma-onset-unknown-1> ;\n\tcascade:sourceRecordId \"cond-asthma-onset-unknown-1\" .\n<ni:///sha-256;ykg1mg5f8A01ohit0kEjIyjMgSrIk-PUEOeBfSRpCic> prov:specializationOf <urn:uuid:af1c1ffe-a91f-81ed-a8fe-faa256d517a9> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:b4046748ff50aff0ae35dd1d843b80ab bridge:arrivedAs <ni:///sha-256;ykg1mg5f8A01ohit0kEjIyjMgSrIk-PUEOeBfSRpCic> ;\n\toa:hasSelector _:9d19108161cc7dc89ea7655ed0e8e813 ;\n\toa:hasSource <ni:///sha-256;KsAoQOaZFml2JZhaGG5IH44Ilu3adomUAYtY4Zu1h1U> ;\n\tprov:wasDerivedFrom <ni:///sha-256;KsAoQOaZFml2JZhaGG5IH44Ilu3adomUAYtY4Zu1h1U> ;\n\tprov:wasGeneratedBy _:138fb974a065bfe887baf7721eb7fffc .\n_:9d19108161cc7dc89ea7655ed0e8e813 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;KsAoQOaZFml2JZhaGG5IH44Ilu3adomUAYtY4Zu1h1U> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:7975b18ed1b2744f9d36f19c5f9fca82 ;\n\tprov:wasAttributedTo _:436a6e3a50fc0f084e8d5990d8ddb0fc ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:37152142dd0f5c398fc16f57ba32a2e2 prov:agent _:436a6e3a50fc0f084e8d5990d8ddb0fc ;\n\tprov:hadRole cascade:AuthorRole .\n_:7975b18ed1b2744f9d36f19c5f9fca82 prov:qualifiedAssociation _:37152142dd0f5c398fc16f57ba32a2e2 .\n_:1678e8f7c8383d84c005943af1175e00 prov:agent _:2a285772901352f48fed39c4eb80a123 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:7975b18ed1b2744f9d36f19c5f9fca82 prov:qualifiedAssociation _:1678e8f7c8383d84c005943af1175e00 .\n_:436a6e3a50fc0f084e8d5990d8ddb0fc <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:2a285772901352f48fed39c4eb80a123 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:138fb974a065bfe887baf7721eb7fffc <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;KsAoQOaZFml2JZhaGG5IH44Ilu3adomUAYtY4Zu1h1U> a prov:Entity .\n_:138fb974a065bfe887baf7721eb7fffc a prov:Activity ;\n\tprov:used <ni:///sha-256;KsAoQOaZFml2JZhaGG5IH44Ilu3adomUAYtY4Zu1h1U> ;\n\tprov:qualifiedAssociation _:22af8a0b5d8f093f2ac37570d7410777 .\n_:22af8a0b5d8f093f2ac37570d7410777 prov:hadPlan _:93484d0210425b21345cd436c195ec77 .\n_:93484d0210425b21345cd436c195ec77 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:22af8a0b5d8f093f2ac37570d7410777 prov:agent _:a09270a2a2e102da5ea220b26e2e6cb5 .\n_:a09270a2a2e102da5ea220b26e2e6cb5 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-absent-for-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/condition-onset-absent-for-reason.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_:c34e185762d2b1deedea7006dad9deb1 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:cdb028b81173292286e35cee9f9fa86a oa:hasSource <../in/condition-onset-absent-for-reason.json> .\n_:c34e185762d2b1deedea7006dad9deb1 oa:refinedBy _:da60dac5bf69a7a4e002ca2b6d9a6d47 .\n_:da60dac5bf69a7a4e002ca2b6d9a6d47 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/_abatementDateTime/extension/0/valueCode\" .\n_:cdb028b81173292286e35cee9f9fa86a oa:hasSelector _:c34e185762d2b1deedea7006dad9deb1 .\n_:c3c0e2d576f75fc003d8d1cb03ce202b oa:hasTarget _:cdb028b81173292286e35cee9f9fa86a ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:absentReasonNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"never-said\" .\n", "empty": false}}