post
https://sandbox.elationemr.com/api/2.0/discontinued_medications/
Requirements
The med_order referenced in the request body must be a signed medication order — i.e. one created with is_doc_med: true. Medication orders created as unsigned drafts (is_doc_med: false) cannot be discontinued.
Attempting to discontinue a thread that has only unsigned draft orders will return a 400 error:
{
"med_order": "No signed medication order found to discontinue."
}Attempting to discontinue a thread that has already been discontinued will also return a 400 error:
{
"med_order": "Med has already been discontinued!"
}