{"name": "condition-codings-not-carried", "comment": "A Condition whose codings carry no code: one with no system, one whose system is no absolute URI and one with no code; each is a fhirr4:codingNotCarried finding.", "input": {"file": "fixtures/in/condition-codings-not-carried.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/condition-codings-not-carried.json", "text": "{\n  \"resourceType\": \"Condition\",\n  \"id\": \"cond-dm2-2\",\n  \"code\": {\n    \"coding\": [\n      {\n        \"code\": \"E11.9\"\n      },\n      {\n        \"system\": \"meridian-problem-list\",\n        \"code\": \"DM2\"\n      },\n      {\n        \"system\": \"http://snomed.info/sct\",\n        \"display\": \"Type 2 diabetes mellitus\"\n      }\n    ],\n    \"text\": \"Type 2 diabetes mellitus\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"onsetDateTime\": \"2019-06-11\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/condition-codings-not-carried.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/condition-codings-not-carried.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;j6pCm62X8ZG6oWPnJg8hr72Mn48a9R3rL68omyKZOJE> cascade:conditionName \"Type 2 diabetes mellitus\" ;\n\tcascade:onsetDate \"2019-06-11\"^^xsd:date .\n<urn:uuid:7192e2f0-6744-8b13-ad08-af19cc7d87aa> a cascade:ProblemOrDiagnosis ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/Condition/cond-dm2-2> ;\n\tcascade:sourceRecordId \"cond-dm2-2\" .\n<ni:///sha-256;j6pCm62X8ZG6oWPnJg8hr72Mn48a9R3rL68omyKZOJE> prov:specializationOf <urn:uuid:7192e2f0-6744-8b13-ad08-af19cc7d87aa> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:ce82ab23c968899dd1de5e74cdf59d7f bridge:arrivedAs <ni:///sha-256;j6pCm62X8ZG6oWPnJg8hr72Mn48a9R3rL68omyKZOJE> ;\n\toa:hasSelector _:14b85f44d204093623400a63b9a278a4 ;\n\toa:hasSource <ni:///sha-256;Cihv1E8-tRCAE6TFup8v4oKxkf0NDIsEiYNM1QjwhKg> ;\n\tprov:wasDerivedFrom <ni:///sha-256;Cihv1E8-tRCAE6TFup8v4oKxkf0NDIsEiYNM1QjwhKg> ;\n\tprov:wasGeneratedBy _:45152cab0891d0858f3d1e480e8d4deb .\n_:14b85f44d204093623400a63b9a278a4 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;Cihv1E8-tRCAE6TFup8v4oKxkf0NDIsEiYNM1QjwhKg> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:1b8da00f7e6f8d5c5be5250573e91e2a ;\n\tprov:wasAttributedTo _:c92a3a713b7ab059ff4a82dce81a43ca ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:afae3fc728f53a90143328ed3309479d prov:agent _:c92a3a713b7ab059ff4a82dce81a43ca ;\n\tprov:hadRole cascade:AuthorRole .\n_:1b8da00f7e6f8d5c5be5250573e91e2a prov:qualifiedAssociation _:afae3fc728f53a90143328ed3309479d .\n_:648bcd46a4185d88171fc7847433096c prov:agent _:24794b09f5e387c7ce770a427ea86070 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:1b8da00f7e6f8d5c5be5250573e91e2a prov:qualifiedAssociation _:648bcd46a4185d88171fc7847433096c .\n_:c92a3a713b7ab059ff4a82dce81a43ca <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:24794b09f5e387c7ce770a427ea86070 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:45152cab0891d0858f3d1e480e8d4deb <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;Cihv1E8-tRCAE6TFup8v4oKxkf0NDIsEiYNM1QjwhKg> a prov:Entity .\n_:45152cab0891d0858f3d1e480e8d4deb a prov:Activity ;\n\tprov:used <ni:///sha-256;Cihv1E8-tRCAE6TFup8v4oKxkf0NDIsEiYNM1QjwhKg> ;\n\tprov:qualifiedAssociation _:4537733cac1bf67e168ee12d8740a590 .\n_:4537733cac1bf67e168ee12d8740a590 prov:hadPlan _:d5448dbe698b592591e677f93e4f62ce .\n_:d5448dbe698b592591e677f93e4f62ce a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:4537733cac1bf67e168ee12d8740a590 prov:agent _:5f34797f3b91c0106c0ff9f8315c33 .\n_:5f34797f3b91c0106c0ff9f8315c33 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-codings-not-carried.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/condition-codings-not-carried.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_:b98fd28b1a9e38db5390f2dd6adfad36 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:c127032efbdc944ad21fbb84cf2028cb oa:hasSource <../in/condition-codings-not-carried.json> .\n_:b98fd28b1a9e38db5390f2dd6adfad36 oa:refinedBy _:d1865dbef155e73792100c91169c727 .\n_:d1865dbef155e73792100c91169c727 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/code/coding/2/system\" .\n_:c127032efbdc944ad21fbb84cf2028cb oa:hasSelector _:b98fd28b1a9e38db5390f2dd6adfad36 .\n_:a332052e9ac74cec05fe8f4a90bcc70 oa:hasTarget _:c127032efbdc944ad21fbb84cf2028cb .\n_:e861877f543f534b75b3ce7629e059bd a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:f38a0b8b02e53e833d8af3b3df5c3b73 oa:hasSource <../in/condition-codings-not-carried.json> .\n_:e861877f543f534b75b3ce7629e059bd oa:refinedBy _:b8000762ac1289bb3eda55574b127a59 .\n_:b8000762ac1289bb3eda55574b127a59 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/code/coding/1/system\" .\n_:f38a0b8b02e53e833d8af3b3df5c3b73 oa:hasSelector _:e861877f543f534b75b3ce7629e059bd .\n_:ad8f782bf61f0508638afe007c680639 oa:hasTarget _:f38a0b8b02e53e833d8af3b3df5c3b73 .\n_:f9b9c52cbe07ebb3c44b331c7ce27af1 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:d3d35c21d0f487d7786d2488b0977f38 oa:hasSource <../in/condition-codings-not-carried.json> .\n_:f9b9c52cbe07ebb3c44b331c7ce27af1 oa:refinedBy _:e3dd2af8874667919b3227a557ecea59 .\n_:e3dd2af8874667919b3227a557ecea59 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/code/coding/0/code\" .\n_:d3d35c21d0f487d7786d2488b0977f38 oa:hasSelector _:f9b9c52cbe07ebb3c44b331c7ce27af1 .\n_:c7cfe84ac9bc17d2047478215e874de2 oa:hasTarget _:d3d35c21d0f487d7786d2488b0977f38 .\n_:a332052e9ac74cec05fe8f4a90bcc70 sh:resultSeverity sh:Info .\n_:ad8f782bf61f0508638afe007c680639 sh:resultSeverity sh:Info .\n_:c7cfe84ac9bc17d2047478215e874de2 sh:resultSeverity sh:Info .\n_:a332052e9ac74cec05fe8f4a90bcc70 a oa:Annotation ;\n\toa:hasBody fhirr4:codingNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"http://snomed.info/sct\" .\n_:ad8f782bf61f0508638afe007c680639 a oa:Annotation ;\n\toa:hasBody fhirr4:codingNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"meridian-problem-list\" .\n_:c7cfe84ac9bc17d2047478215e874de2 a oa:Annotation ;\n\toa:hasBody fhirr4:codingNotCarried ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"E11.9\" .\n", "empty": false}}