{"name": "medication-statement-every-mapped-element", "comment": "A MedicationStatement carrying every element in/sparql/medication.rq reads of a statement, its drug named by a coding's display.", "input": {"file": "fixtures/in/medication-statement-every-mapped-element.json", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/in/medication-statement-every-mapped-element.json", "text": "{\n  \"resourceType\": \"MedicationStatement\",\n  \"id\": \"medst-ibuprofen-1\",\n  \"status\": \"completed\",\n  \"medicationCodeableConcept\": {\n    \"coding\": [\n      {\n        \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n        \"code\": \"197806\",\n        \"display\": \"ibuprofen 600 MG Oral Tablet\"\n      }\n    ]\n  },\n  \"subject\": {\n    \"reference\": \"Patient/pat-conformance-1\"\n  },\n  \"effectivePeriod\": {\n    \"start\": \"2026-01-10\",\n    \"end\": \"2026-01-24\"\n  },\n  \"dosage\": [\n    {\n      \"text\": \"600 mg by mouth every 8 hours as needed for pain.\"\n    }\n  ],\n  \"note\": [\n    {\n      \"text\": \"Stopped once the sprain healed.\"\n    }\n  ]\n}\n"}, "expectedGraph": {"file": "fixtures/expected/medication-statement-every-mapped-element.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/expected/medication-statement-every-mapped-element.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;RuV4FrPso16J7_P9dJ6Vy89zX_mM03-EdW8oVnRiMJ0> cascade:structuredDosage <ni:///sha-256;RuV4FrPso16J7_P9dJ6Vy89zX_mM03-EdW8oVnRiMJ0#dosage-1> ;\n\tcascade:prescribedOrReported \"reportedUse\" ;\n\tcascade:drugName \"ibuprofen 600 MG Oral Tablet\" ;\n\tcascade:rxNormCode <https://ns.cascadeprotocol.org/codes/rxnorm/197806> ;\n\tcascade:workflowStatus \"completed\" ;\n\tcascade:medicationUseStartDate \"2026-01-10\"^^xsd:date ;\n\tcascade:medicationUseEndDate \"2026-01-24\"^^xsd:date ;\n\tcascade:dosageInstructionText \"600 mg by mouth every 8 hours as needed for pain.\" .\n<urn:uuid:1f887932-37fa-8aa7-8516-1991ba5e841e> a cascade:PrescribedOrReportedMedication ;\n\tcascade:sourceUrl <https://fhir.meridian.example/api/FHIR/R4/MedicationStatement/medst-ibuprofen-1> ;\n\tcascade:sourceRecordId \"medst-ibuprofen-1\" .\n<ni:///sha-256;RuV4FrPso16J7_P9dJ6Vy89zX_mM03-EdW8oVnRiMJ0> prov:specializationOf <urn:uuid:1f887932-37fa-8aa7-8516-1991ba5e841e> ;\n\tcascade:patient <urn:uuid:7883c5a4-6c61-837c-9bf7-dbe1b37d89ff> .\n_:633cf066b86f63281e3196fb4d49e735 bridge:arrivedAs <ni:///sha-256;RuV4FrPso16J7_P9dJ6Vy89zX_mM03-EdW8oVnRiMJ0> ;\n\toa:hasSelector _:d6174aa81bccd0d89ae5dc5741aca9b9 ;\n\toa:hasSource <ni:///sha-256;OV_7fAF5tDwubnpXf9aSSZnLPeFhBrXteh22594a3BI> ;\n\tprov:wasDerivedFrom <ni:///sha-256;OV_7fAF5tDwubnpXf9aSSZnLPeFhBrXteh22594a3BI> ;\n\tprov:wasGeneratedBy _:9a936e97da681b7762eae5c1018f429b .\n_:d6174aa81bccd0d89ae5dc5741aca9b9 a oa:FragmentSelector ;\n\tdct:conformsTo <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n<ni:///sha-256;OV_7fAF5tDwubnpXf9aSSZnLPeFhBrXteh22594a3BI> cascade:serverBaseUrl \"https://fhir.meridian.example/api/FHIR/R4\" ;\n\tpav:retrievedFrom <https://FHIR.Meridian.example/api/FHIR/R4/MedicationStatement/medst-ibuprofen-1> ;\n\tpav:retrievedOn \"2026-09-01T10:00:00Z\"^^xsd:dateTime ;\n\tprov:wasGeneratedBy _:beb52d7dae6ebbe67c378402e5b93112 ;\n\tprov:wasAttributedTo _:10c51592e701a820a6bf10d97ee31650 ;\n\tcascade:authenticatedPatient \"Patient/eM5vN8qTz2Hc4Rk7Jw0Pb3\" ;\n\tcascade:authenticatedAsProxy false ;\n\tcascade:sourceFormatVersion \"4.0.1\" .\n_:f2c97b2b42a2468e7d0bb942194b0456 prov:agent _:10c51592e701a820a6bf10d97ee31650 ;\n\tprov:hadRole cascade:AuthorRole .\n_:beb52d7dae6ebbe67c378402e5b93112 prov:qualifiedAssociation _:f2c97b2b42a2468e7d0bb942194b0456 .\n_:9ebc0b9bf2d1c8eb8fc26eb46e8471b5 prov:agent _:caef602fdb56fa8f2e88eb36da762628 ;\n\tprov:hadRole cascade:TransmitterRole .\n_:beb52d7dae6ebbe67c378402e5b93112 prov:qualifiedAssociation _:9ebc0b9bf2d1c8eb8fc26eb46e8471b5 .\n_:10c51592e701a820a6bf10d97ee31650 <http://www.w3.org/2000/01/rdf-schema#label> \"Meridian Health System\" .\n_:caef602fdb56fa8f2e88eb36da762628 <http://www.w3.org/2000/01/rdf-schema#label> \"Apple Health\" .\n_:9a936e97da681b7762eae5c1018f429b <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;OV_7fAF5tDwubnpXf9aSSZnLPeFhBrXteh22594a3BI> a prov:Entity .\n_:9a936e97da681b7762eae5c1018f429b a prov:Activity ;\n\tprov:used <ni:///sha-256;OV_7fAF5tDwubnpXf9aSSZnLPeFhBrXteh22594a3BI> ;\n\tprov:qualifiedAssociation _:9af437c889da2b97cd6d0c16268e5a00 .\n_:9af437c889da2b97cd6d0c16268e5a00 prov:hadPlan _:f70c975c9db7b7f7876aafa74dd479e6 .\n_:f70c975c9db7b7f7876aafa74dd479e6 a prov:Plan ;\n\t<http://www.w3.org/2000/01/rdf-schema#label> \"fhir-r4\" ;\n\tpav:version \"0.1.0\" .\n_:9af437c889da2b97cd6d0c16268e5a00 prov:agent _:e4c7cf7d2fb51e1af69415d060b72924 .\n_:e4c7cf7d2fb51e1af69415d060b72924 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-statement-every-mapped-element.ttl", "link": "https://github.com/the-cascade-protocol/cascade-bridge-adapter-fhir-r4/blob/15621eef1b6e4578c254871490838e45939a8487/fixtures/findings/medication-statement-every-mapped-element.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_:b13f2436d9b5125fcf3c4b652b98edca a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"\" .\n_:da2b6809824bf6ab33fdb65ac74ac413 oa:hasSource <../in/medication-statement-every-mapped-element.json> .\n_:b13f2436d9b5125fcf3c4b652b98edca oa:refinedBy _:edf4b5e2c6e9e8094c90e76972f377b3 .\n_:edf4b5e2c6e9e8094c90e76972f377b3 a oa:FragmentSelector ;\n\t<http://purl.org/dc/terms/conformsTo> <https://www.rfc-editor.org/rfc/rfc6901> ;\n\trdf:value \"/note/0/text\" .\n_:da2b6809824bf6ab33fdb65ac74ac413 oa:hasSelector _:b13f2436d9b5125fcf3c4b652b98edca .\n_:eeb84e521fc6309dff7c902a371fc61e oa:hasTarget _:da2b6809824bf6ab33fdb65ac74ac413 ;\n\tsh:resultSeverity sh:Info ;\n\ta oa:Annotation ;\n\toa:hasBody fhirr4:medicationNote ;\n\toa:motivatedBy oa:classifying ;\n\tsh:value \"Stopped once the sprain healed.\" .\n", "empty": false}}