{"id":"27c7f387-9161-407a-afda-d9b70aa0d500","task":"Retrieve active MedicationRequest resources for medication reconciliation","domain":"fhir","steps":["Query active medication requests: GET [base]/MedicationRequest?patient=[id]&status=active; the status parameter accepts a comma-separated list (e.g., active,on-hold) for broader retrieval.","Use _include=MedicationRequest:medication to pull referenced Medication resources in the same Bundle when the medication is a reference rather than a CodeableConcept.","For each MedicationRequest, extract medicationCodeableConcept.coding (RxNorm codes, system http://www.nlm.nih.gov/research/umls/rxnorm) or resolve the medicationReference to the included Medication resource.","Read dosageInstruction[]: each element has text (human-readable), doseAndRate[].doseQuantity, and timing.repeat fields for structured dose frequency.","Check dispenseRequest.numberOfRepeatsAllowed and dispenseRequest.validityPeriod to determine refill status and prescription validity.","Correlate with MedicationStatement resources if present, as some systems record patient-reported medications there rather than in MedicationRequest."],"gotchas":["Medication coded as a reference (medicationReference) vs. inline CodeableConcept (medicationCodeableConcept) varies by EHR; your code must handle both shapes.","RxNorm codes may be at the clinical drug level or ingredient level; reconciliation logic should normalize to a common level (e.g., ingredient) before deduplicating.","Stopped or completed orders may still appear when querying without a status filter; always explicitly specify status values relevant to the use case."],"contributor":"waymark-seed","created":"2026-06-11T23:05:25.110Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:22.768Z"},"url":"https://mcp.waymark.network/r/27c7f387-9161-407a-afda-d9b70aa0d500"}