{"name": "condition-code-only-in-an-undefined-absent-reason", "comment": "A Condition whose only coding is never-said in FHIR's data-absent-reason, which that CodeSystem does not define: no cascade:conditionCode and no #absent-conditionCode node, and the coding is a finding.", "input": {"file": "fixtures/in/condition-code-only-in-an-undefined-absent-reason.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/condition-code-only-in-an-undefined-absent-reason.json", "text": "{\n  \"resourceType\": \"Condition\",\n  \"id\": \"cond-unknown-3\",\n  \"code\": {\n    \"coding\": [\n      {\n        \"system\": \"http://terminology.hl7.org/CodeSystem/data-absent-reason\",\n        \"code\": \"never-said\",\n        \"display\": \"Never said\"\n      }\n    ],\n    \"text\": \"Unknown problem\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"onsetDateTime\": \"2025-03-27\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/condition-code-only-in-an-undefined-absent-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/condition-code-only-in-an-undefined-absent-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;g6oN3YmxgXuODid-Gl5pxZJoWmB0wIn_0fNat6Qbl5o> cascade:conditionName \"Unknown problem\" ;\n\tcascade:onsetDate \"2025-03-27\"^^xsd:date .\n<urn:uuid:20751eec-c559-8cdf-8048-801af9656fc0> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Condition/cond-unknown-3> ;\n\tcascade:sourceRecordId \"cond-unknown-3\" .\n<ni:///sha-256;g6oN3YmxgXuODid-Gl5pxZJoWmB0wIn_0fNat6Qbl5o> prov:specializationOf <urn:uuid:20751eec-c559-8cdf-8048-801af9656fc0> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:b264b9741de565a796bfd55de0253ef bridge:arrivedAs <ni:///sha-256;g6oN3YmxgXuODid-Gl5pxZJoWmB0wIn_0fNat6Qbl5o> ;\n\toa:hasSelector _:ad898bd88a7e61c31d4b778c5d3636b9 ;\n\toa:hasSource <ni:///sha-256;3FiBH7UvDZDVF3CvKz-5cgthgh4QMxwtjjmGkIQRSYQ> ;\n\tprov:wasDerivedFrom <ni:///sha-256;3FiBH7UvDZDVF3CvKz-5cgthgh4QMxwtjjmGkIQRSYQ> ;\n\tprov:wasGeneratedBy _:e840fb0d76ef165732c817de01249726 .\n_:ad898bd88a7e61c31d4b778c5d3636b9 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;3FiBH7UvDZDVF3CvKz-5cgthgh4QMxwtjjmGkIQRSYQ> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:3820dece550d7f4f63dc555a61178b82 ;\n\tprov:wasAttributedTo _:5a5851ec853c261bff3c5673e3b3da34 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:a2cf547c5bd4937b0f8e19694b8cfe25 prov:agent _:5a5851ec853c261bff3c5673e3b3da34 ;\n\tprov:hadRole cascade:AuthorRole .\n_:3820dece550d7f4f63dc555a61178b82 prov:qualifiedAssociation _:a2cf547c5bd4937b0f8e19694b8cfe25 .\n_:d3f54696f1f981b78835132178479542 prov:agent _:aa44a6f10021ce87e7f7f5c37252b934 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:3820dece550d7f4f63dc555a61178b82 prov:qualifiedAssociation _:d3f54696f1f981b78835132178479542 .\n_:5a5851ec853c261bff3c5673e3b3da34 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:aa44a6f10021ce87e7f7f5c37252b934 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:e840fb0d76ef165732c817de01249726 <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;3FiBH7UvDZDVF3CvKz-5cgthgh4QMxwtjjmGkIQRSYQ> a prov:Entity .\n_:e840fb0d76ef165732c817de01249726 a prov:Activity ;\n\tprov:used <ni:///sha-256;3FiBH7UvDZDVF3CvKz-5cgthgh4QMxwtjjmGkIQRSYQ> ;\n\tprov:qualifiedAssociation _:4db18b01007c7cb29d8baccdb342adbe .\n_:4db18b01007c7cb29d8baccdb342adbe prov:hadPlan _:d5d555343047fba3ff59394a1dc6f537 .\n_:d5d555343047fba3ff59394a1dc6f537 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:4db18b01007c7cb29d8baccdb342adbe prov:agent _:c17b12d722b94ae194e9e87c3a68cde3 .\n_:c17b12d722b94ae194e9e87c3a68cde3 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-code-only-in-an-undefined-absent-reason.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/condition-code-only-in-an-undefined-absent-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_:c69c33227c593011c8bfb603b86427be a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:ee569846c528698abc661399d5f29896 oa:hasSource <../in/condition-code-only-in-an-undefined-absent-reason.json> .\n_:c69c33227c593011c8bfb603b86427be oa:refinedBy _:c9c2b77bb9a59d29628632608d6141c9 .\n_:c9c2b77bb9a59d29628632608d6141c9 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/code/coding/0\" .\n_:ee569846c528698abc661399d5f29896 oa:hasSelector _:c69c33227c593011c8bfb603b86427be .\n_:ca862c73443f5be4a5f83a5985c19bd oa:hasTarget _:ee569846c528698abc661399d5f29896 ;\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}}