{"name": "medication-request-intent-not-a-code", "comment": "A prescribed MedicationRequest whose intent is Order, none of the eight codes of FHIR's medicationrequest-intent as written: the version states no intent, and the value is a finding of fhirr4:medicationRequestIntentNotMapped.", "input": {"file": "fixtures/in/medication-request-intent-not-a-code.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/medication-request-intent-not-a-code.json", "text": "{\n  \"resourceType\": \"MedicationRequest\",\n  \"id\": \"medrx-intent-not-a-code-1\",\n  \"status\": \"active\",\n  \"intent\": \"Order\",\n  \"medicationCodeableConcept\": {\n    \"text\": \"Amlodipine 5 mg tablet\"\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"authoredOn\": \"2025-11-04\"\n}\n"}, "expectedGraph": {"file": "fixtures/expected/medication-request-intent-not-a-code.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/medication-request-intent-not-a-code.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;IfwlQDL_1UNg72B_NBxNz6zm2Mm4Yej04d0RTSUFXKw> cascade:prescribedOrReported \"prescribed\" ;\n\tcascade:drugName \"Amlodipine 5 mg tablet\" ;\n\tcascade:workflowStatus \"active\" ;\n\tcascade:prescriptionWrittenDate \"2025-11-04\"^^xsd:date .\n<urn:uuid:d953171b-114e-8883-a958-603dfd34a2ad> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationRequest/medrx-intent-not-a-code-1> ;\n\tcascade:sourceRecordId \"medrx-intent-not-a-code-1\" .\n<ni:///sha-256;IfwlQDL_1UNg72B_NBxNz6zm2Mm4Yej04d0RTSUFXKw> prov:specializationOf <urn:uuid:d953171b-114e-8883-a958-603dfd34a2ad> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:88f294881752faf6fe42741870bcb0e4 bridge:arrivedAs <ni:///sha-256;IfwlQDL_1UNg72B_NBxNz6zm2Mm4Yej04d0RTSUFXKw> ;\n\toa:hasSelector _:36b88867d1df1e6efba77526987e2d9f ;\n\toa:hasSource <ni:///sha-256;xkOSpLv7Ey1ccR1C4Oj9BLdT9J1Oqsv094F0kva_VgA> ;\n\tprov:wasDerivedFrom <ni:///sha-256;xkOSpLv7Ey1ccR1C4Oj9BLdT9J1Oqsv094F0kva_VgA> ;\n\tprov:wasGeneratedBy _:dc8c583eeb8b108fd2b7f83acdd3a810 .\n_:36b88867d1df1e6efba77526987e2d9f a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;xkOSpLv7Ey1ccR1C4Oj9BLdT9J1Oqsv094F0kva_VgA> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:b0acce57173ced4bcbed7513a66a77a4 ;\n\tprov:wasAttributedTo _:e78d20d9479e2c2dde44d46be31ee8d2 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:4b078b05f1718c33ef4adeb051c9bedf prov:agent _:e78d20d9479e2c2dde44d46be31ee8d2 ;\n\tprov:hadRole cascade:AuthorRole .\n_:b0acce57173ced4bcbed7513a66a77a4 prov:qualifiedAssociation _:4b078b05f1718c33ef4adeb051c9bedf .\n_:d76faf6096924e5c63010d8cbbe6cb82 prov:agent _:fa6d1f379f310607bed28ecb2e85773e ;\n\tprov:hadRole cascade:TransmitterRole .\n_:b0acce57173ced4bcbed7513a66a77a4 prov:qualifiedAssociation _:d76faf6096924e5c63010d8cbbe6cb82 .\n_:e78d20d9479e2c2dde44d46be31ee8d2 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:fa6d1f379f310607bed28ecb2e85773e <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:dc8c583eeb8b108fd2b7f83acdd3a810 <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;xkOSpLv7Ey1ccR1C4Oj9BLdT9J1Oqsv094F0kva_VgA> a prov:Entity .\n_:dc8c583eeb8b108fd2b7f83acdd3a810 a prov:Activity ;\n\tprov:used <ni:///sha-256;xkOSpLv7Ey1ccR1C4Oj9BLdT9J1Oqsv094F0kva_VgA> ;\n\tprov:qualifiedAssociation _:f7cf2e0dc72696142b28b48f3dc8145c .\n_:f7cf2e0dc72696142b28b48f3dc8145c prov:hadPlan _:3cb237c229e8d78759e3fb280f983c53 .\n_:3cb237c229e8d78759e3fb280f983c53 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:f7cf2e0dc72696142b28b48f3dc8145c prov:agent _:fb93b3a0b7b6813a95a54e3ad82f5434 .\n_:fb93b3a0b7b6813a95a54e3ad82f5434 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/medication-request-intent-not-a-code.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/medication-request-intent-not-a-code.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_:cbca1b0955dca2525b30114ba7d0150f a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:da3ad7812e6de0cb8170dbfcf0ef1c6e oa:hasSource <../in/medication-request-intent-not-a-code.json> .\n_:cbca1b0955dca2525b30114ba7d0150f oa:refinedBy _:a46f27227329a4cc2e80437df09f66c0 .\n_:a46f27227329a4cc2e80437df09f66c0 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/intent\" .\n_:da3ad7812e6de0cb8170dbfcf0ef1c6e oa:hasSelector _:cbca1b0955dca2525b30114ba7d0150f .\n_:ea2c07398f79b1ae33e2215ffa0b5a56 oa:hasTarget _:da3ad7812e6de0cb8170dbfcf0ef1c6e ;\n\tsh:resultSeverity sh:Warning ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:medicationRequestIntentNotMapped ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Order\" .\n", "empty": false}}