Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Elation Health Medication Order Templates API
version: '1.0'
description: 'Operations tagged Medication Order Templates across 3 of this provider''s published API definitions: elation-api-settings.json, elation-health-api-full-openapi.yaml, elation-practice-api.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://sandbox.elationemr.com/api/2.0
- description: Sandbox Server
url: https://sandbox.elationemr.com
- description: Production Server
url: https://api.app.elationemr.com
tags:
- name: Medication Order Templates
paths:
/medication_order_templates/:
get:
summary: Find Medication Order Templates
description: ''
operationId: find-medication-order-templates
parameters:
- name: practice
in: query
schema:
type: array
items:
type: integer
format: int32
- name: deleted_date__isnull
in: query
schema:
type: boolean
- name: deleted_date__gte
in: query
description: Date/time in ISO 8601 UTC format
schema:
type: string
format: date
- name: deleted_date__lte
in: query
description: Date/time in ISO 8601 UTC format
schema:
type: string
format: date
- name: Authorization
in: header
description: Bearer token
required: true
schema:
type: string
responses:
'200':
description: '200'
content:
application/json:
examples:
Result:
value: "\"count\": 2,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 140758500770181,\n \"auth_refills\": null,\n \"deleted_date\": null,\n \"directions\": \"\",\n \"medication\": {\n \"id\": 10239344687,\n \"rxnorm_cuis\": [\n \"855178\"\n ],\n \"ndcs\": [\n \"00093-2056-06\",\n \"00093-2056-05\",\n \"00378-5445-91\",\n \"59762-0170-01\",\n \"59762-0170-06\",\n \"33342-0097-15\",\n \"00093-0010-06\",\n \"33342-0097-09\",\n \"73152-0026-60\",\n \"31722-0805-60\",\n \"71205-0319-90\",\n \"10135-0706-60\",\n \"16571-0126-06\",\n \"29300-0239-16\",\n \"10135-0706-05\"\n ],\n \"name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"brand_name\": \"Tolterodine Tartrate\",\n \"generic_name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"is_controlled\": false,\n \"type\": \"prescription\",\n \"route\": \"Oral\",\n \"strength\": \"1 mg\",\n \"form\": \"Tab\"\n },\n \"qty\": null,\n \"qty_units\": \"\",\n \"practice\": 140758485303300,\n \"rank\": 0\n },\n {\n \"id\": 140758500835717,\n \"auth_refills\": 98,\n \"deleted_date\": null,\n \"directions\": \"today_direction\",\n \"medication\": {\n \"id\": 10239344687,\n \"rxnorm_cuis\": [\n \"855178\"\n ],\n \"ndcs\": [\n \"00093-2056-06\",\n \"00093-2056-05\",\n \"00378-5445-91\",\n \"59762-0170-01\",\n \"59762-0170-06\",\n \"33342-0097-15\",\n \"00093-0010-06\",\n \"33342-0097-09\",\n \"73152-0026-60\",\n \"31722-0805-60\",\n \"71205-0319-90\",\n \"10135-0706-60\",\n \"16571-0126-06\",\n \"29300-0239-16\",\n \"10135-0706-05\"\n ],\n \"name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"brand_name\": \"Tolterodine Tartrate\",\n \"generic_name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"is_controlled\": false,\n \"type\": \"prescription\",\n \"route\": \"Oral\",\n \"strength\": \"1 mg\",\n \"form\": \"Tab\"\n },\n \"qty\": \"3.000000000\",\n \"qty_units\": \"BAG\",\n \"practice\": 140758485303300,\n \"rank\": 1\n }\n ]\n}"
'400':
description: '400'
content:
application/json:
examples:
Result:
value: '{}'
schema:
type: object
properties: {}
deprecated: false
x-readme:
code-samples:
- language: python
code: "import requests\nimport json\n\naccess_token = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = f\"Bearer {access_token}\"\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/medication_order_templates/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"
samples-languages:
- python
tags:
- Medication Order Templates
security:
- sec0: []
post:
summary: Create Medication Order Template
description: ''
operationId: create-medication-order-template
parameters:
- name: Authorization
in: header
description: Bearer token
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
required:
- practice
- medication
properties:
practice:
type: integer
description: Practice id
format: int32
medication:
type: array
description: Must contains only one from id, ndcs or rxnorm_cuis fields
items:
properties:
id:
type: integer
description: Medication id
format: int32
ndcs:
type: array
description: The NDC code of the medication(must contains only one ndc code)
default: []
items:
type: string
rxnorm_cuis:
type: array
description: The Rxnorm.cui code of the medication(must contains only one cui code)
default: []
items:
type: string
type: object
qty:
type: integer
description: The quantity of the medication
format: int32
qty_units:
type: string
description: Type of medication(e.g "CAPSULE", "DROP")
auth_refills:
type: integer
description: The number of refills, excluding this order, that the patient is authorized for
format: int32
directions:
type: string
description: The sig
responses:
'201':
description: '201'
content:
application/json:
examples:
Result:
value: "{\n \"id\": 140758500835717,\n \"auth_refills\": 98,\n \"deleted_date\": null,\n \"directions\": \"today_direction\",\n \"medication\": {\n \"id\": 10239344687,\n \"rxnorm_cuis\": [\n \"855178\"\n ],\n \"ndcs\": [\n \"00093-2056-06\",\n \"00093-2056-05\",\n \"00378-5445-91\",\n \"59762-0170-01\",\n \"59762-0170-06\",\n \"33342-0097-15\",\n \"00093-0010-06\",\n \"33342-0097-09\",\n \"73152-0026-60\",\n \"31722-0805-60\",\n \"71205-0319-90\",\n \"10135-0706-60\",\n \"16571-0126-06\",\n \"29300-0239-16\",\n \"10135-0706-05\"\n ],\n \"name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"brand_name\": \"Tolterodine Tartrate\",\n \"generic_name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"is_controlled\": false,\n \"type\": \"prescription\",\n \"route\": \"Oral\",\n \"strength\": \"1 mg\",\n \"form\": \"Tab\"\n },\n \"qty\": \"3.000000000\",\n \"qty_units\": \"BAG\",\n \"practice\": 140758485303300,\n \"rank\": 1\n}"
schema:
type: object
properties:
id:
type: integer
example: 140758500835717
default: 0
auth_refills:
type: integer
example: 98
default: 0
deleted_date: {}
directions:
type: string
example: today_direction
medication:
type: object
properties:
id:
type: integer
example: 10239344687
default: 0
rxnorm_cuis:
type: array
items:
type: string
example: '855178'
ndcs:
type: array
items:
type: string
example: 00093-2056-06
name:
type: string
example: Tolterodine Tartrate Tab 1 mg
brand_name:
type: string
example: Tolterodine Tartrate
generic_name:
type: string
example: Tolterodine Tartrate Tab 1 mg
is_controlled:
type: boolean
example: false
default: true
type:
type: string
example: prescription
route:
type: string
example: Oral
strength:
type: string
example: 1 mg
form:
type: string
example: Tab
qty:
type: string
example: '3.000000000'
qty_units:
type: string
example: BAG
practice:
type: integer
example: 140758485303300
default: 0
rank:
type: integer
example: 1
default: 0
'400':
description: '400'
content:
application/json:
examples:
Result:
value: '{}'
schema:
type: object
properties: {}
'409':
description: '409'
content:
text/plain:
examples:
Result:
value: '"detail": "Record already exists"'
deprecated: false
x-readme:
code-samples:
- language: python
code: "import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\ndata = { \n \"medication\": {\"rxnorm_cuis\": [\"855178\"]},\n \"directions\": \"today_direction\", \n \"qty\": 3, \n \"qty_units\": \"BAG\", \n \"auth_refills\": 3, \n \"practice\": 140758616768516\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0//medication_order_templates/\",\n data=json.dumps(data),\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"
samples-languages:
- python
tags:
- Medication Order Templates
security:
- sec0: []
servers:
- url: https://sandbox.elationemr.com/api/2.0
/medication_order_templates/{id}/:
get:
summary: Get Medication Order Template
description: ''
operationId: get-medication-order-template
parameters:
- name: id
in: path
schema:
type: integer
format: int64
required: true
- name: Authorization
in: header
description: Bearer token
required: true
schema:
type: string
responses:
'200':
description: '200'
content:
application/json:
examples:
Result:
value: "{\n \"id\": 140758500835717,\n \"auth_refills\": null,\n \"deleted_date\": null,\n \"directions\": \"Edit\",\n \"medication\": {\n \"id\": 10239344687,\n \"rxnorm_cuis\": [\n \"855178\"\n ],\n \"ndcs\": [\n \"00093-2056-06\",\n \"00093-2056-05\",\n \"00378-5445-91\",\n \"59762-0170-01\",\n \"59762-0170-06\",\n \"33342-0097-15\",\n \"00093-0010-06\",\n \"33342-0097-09\",\n \"73152-0026-60\",\n \"31722-0805-60\",\n \"71205-0319-90\",\n \"10135-0706-60\",\n \"16571-0126-06\",\n \"29300-0239-16\",\n \"10135-0706-05\"\n ],\n \"name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"brand_name\": \"Tolterodine Tartrate\",\n \"generic_name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"is_controlled\": false,\n \"type\": \"prescription\",\n \"route\": \"Oral\",\n \"strength\": \"1 mg\",\n \"form\": \"Tab\"\n },\n \"qty\": \"40.000000000\",\n \"qty_units\": \"BOTTLE\",\n \"practice\": 140758485303300,\n \"rank\": 1\n}"
schema:
type: object
properties:
id:
type: integer
example: 140758500835717
default: 0
auth_refills: {}
deleted_date: {}
directions:
type: string
example: Edit
medication:
type: object
properties:
id:
type: integer
example: 10239344687
default: 0
rxnorm_cuis:
type: array
items:
type: string
example: '855178'
ndcs:
type: array
items:
type: string
example: 00093-2056-06
name:
type: string
example: Tolterodine Tartrate Tab 1 mg
brand_name:
type: string
example: Tolterodine Tartrate
generic_name:
type: string
example: Tolterodine Tartrate Tab 1 mg
is_controlled:
type: boolean
example: false
default: true
type:
type: string
example: prescription
route:
type: string
example: Oral
strength:
type: string
example: 1 mg
form:
type: string
example: Tab
qty:
type: string
example: '40.000000000'
qty_units:
type: string
example: BOTTLE
practice:
type: integer
example: 140758485303300
default: 0
rank:
type: integer
example: 1
default: 0
'400':
description: '400'
content:
application/json:
examples:
Result:
value: '{}'
schema:
type: object
properties: {}
deprecated: false
x-readme:
code-samples:
- language: python
code: "import requests\nimport json\n\naccess_token = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = f\"Bearer {access_token}\"\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/medication_order_templates/140758547628421/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"
samples-languages:
- python
tags:
- Medication Order Templates
security:
- sec0: []
put:
summary: Update an existing Medication Order Template
description: ''
operationId: update-an-existing-medication-order-template
parameters:
- name: id
in: path
schema:
type: integer
format: int64
required: true
- name: Authorization
in: header
description: Bearer token
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
required:
- practice
- medication
properties:
practice:
type: integer
description: Practice id
format: int32
medication:
type: array
description: Must contains only one from id, ndcs or rxnorm_cuis fields
items:
properties:
id:
type: integer
description: Medication id
format: int32
ndcs:
type: array
description: The NDC code of the medication(must contains only one ndc code)
default: []
items:
type: string
rxnorm_cuis:
type: array
description: The Rxnorm.cui code of the medication(must contains only one cui code)
default: []
items:
type: string
type: object
qty:
type: integer
description: The quantity of the medication
format: int32
qty_units:
type: string
description: Type of medication(e.g "CAPSULE", "DROP")
auth_refills:
type: integer
description: The number of refills, excluding this order, that the patient is authorized for
format: int32
directions:
type: string
description: The sig
responses:
'200':
description: '200'
content:
application/json:
examples:
Result:
value: "{\n \"id\": 140758500835717,\n \"auth_refills\": null,\n \"deleted_date\": null,\n \"directions\": \"Edit\",\n \"medication\": {\n \"id\": 10239344687,\n \"rxnorm_cuis\": [\n \"855178\"\n ],\n \"ndcs\": [\n \"00093-2056-06\",\n \"00093-2056-05\",\n \"00378-5445-91\",\n \"59762-0170-01\",\n \"59762-0170-06\",\n \"33342-0097-15\",\n \"00093-0010-06\",\n \"33342-0097-09\",\n \"73152-0026-60\",\n \"31722-0805-60\",\n \"71205-0319-90\",\n \"10135-0706-60\",\n \"16571-0126-06\",\n \"29300-0239-16\",\n \"10135-0706-05\"\n ],\n \"name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"brand_name\": \"Tolterodine Tartrate\",\n \"generic_name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"is_controlled\": false,\n \"type\": \"prescription\",\n \"route\": \"Oral\",\n \"strength\": \"1 mg\",\n \"form\": \"Tab\"\n },\n \"qty\": \"40.000000000\",\n \"qty_units\": \"BOTTLE\",\n \"practice\": 140758485303300,\n \"rank\": 1\n}"
schema:
type: object
properties:
id:
type: integer
example: 140758500835717
default: 0
auth_refills: {}
deleted_date: {}
directions:
type: string
example: Edit
medication:
type: object
properties:
id:
type: integer
example: 10239344687
default: 0
rxnorm_cuis:
type: array
items:
type: string
example: '855178'
ndcs:
type: array
items:
type: string
example: 00093-2056-06
name:
type: string
example: Tolterodine Tartrate Tab 1 mg
brand_name:
type: string
example: Tolterodine Tartrate
generic_name:
type: string
example: Tolterodine Tartrate Tab 1 mg
is_controlled:
type: boolean
example: false
default: true
type:
type: string
example: prescription
route:
type: string
example: Oral
strength:
type: string
example: 1 mg
form:
type: string
example: Tab
qty:
type: string
example: '40.000000000'
qty_units:
type: string
example: BOTTLE
practice:
type: integer
example: 140758485303300
default: 0
rank:
type: integer
example: 1
default: 0
'400':
description: '400'
content:
application/json:
examples:
Result:
value: '{}'
schema:
type: object
properties: {}
deprecated: false
x-readme:
code-samples:
- language: python
code: "import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\ndata = {\n \"medication\": {\"id\": \"10239344687\"}, \n \"directions\": \"Edit\", \n \"qty\": 40, \n \"qty_units\": \"BOTTLE\", \n \"auth_refills\": null, \n \"practice\": \"140758485303300\"\n}\n\nresp = requests.put(\n \"https://sandbox.elationemr.com/api/2.0//medication_order_templates/10239344687/\",\n data=json.dumps(data),\n headers={'Authorization': auth_header, 'Content-type': 'application/json'})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"
samples-languages:
- python
tags:
- Medication Order Templates
security:
- sec0: []
patch:
summary: Update an existing Medication Order Template
description: ''
operationId: update-an-existing-medication-order-template-1
parameters:
- name: id
in: path
schema:
type: integer
format: int64
required: true
- name: Authorization
in: header
description: Bearer token
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
medication:
type: array
description: Must contains only one from id, ndcs or rxnorm_cuis fields
items:
properties:
id:
type: integer
description: Medication id
format: int32
ndcs:
type: array
description: The NDC code of the medication(must contains only one ndc code)
default: []
items:
type: string
rxnorm_cuis:
type: array
description: The Rxnorm.cui code of the medication(must contains only one cui code)
default: []
items:
type: string
type: object
qty:
type: integer
description: The quantity of the medication
format: int32
qty_units:
type: string
description: Type of medication(e.g "CAPSULE", "DROP")
auth_refills:
type: integer
description: The number of refills, excluding this order, that the patient is authorized for
format: int32
directions:
type: string
description: The sig
responses:
'200':
description: '200'
content:
application/json:
examples:
Result:
value: "{\n \"id\": 140758500835717,\n \"auth_refills\": null,\n \"deleted_date\": null,\n \"directions\": \"Edit\",\n \"medication\": {\n \"id\": 10239344687,\n \"rxnorm_cuis\": [\n \"855178\"\n ],\n \"ndcs\": [\n \"00093-2056-06\",\n \"00093-2056-05\",\n \"00378-5445-91\",\n \"59762-0170-01\",\n \"59762-0170-06\",\n \"33342-0097-15\",\n \"00093-0010-06\",\n \"33342-0097-09\",\n \"73152-0026-60\",\n \"31722-0805-60\",\n \"71205-0319-90\",\n \"10135-0706-60\",\n \"16571-0126-06\",\n \"29300-0239-16\",\n \"10135-0706-05\"\n ],\n \"name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"brand_name\": \"Tolterodine Tartrate\",\n \"generic_name\": \"Tolterodine Tartrate Tab 1 mg\",\n \"is_controlled\": false,\n \"type\": \"prescription\",\n \"route\": \"Oral\",\n \"strength\": \"1 mg\",\n \"form\": \"Tab\"\n },\n \"qty\": \"30.000000000\",\n \"qty_units\": \"BOTTLE\",\n \"practice\": 140758485303300,\n \"rank\": 1\n}"
schema:
type: object
properties:
id:
type: integer
example: 140758500835717
default: 0
auth_refills: {}
deleted_date: {}
directions:
type: string
example: Edit
medication:
type: object
properties:
id:
type: integer
example: 10239344687
default: 0
rxnorm_cuis:
type: array
items:
type: string
example: '855178'
ndcs:
type: array
items:
type: string
example: 00093-2056-06
name:
type: string
example: Tolterodine Tartrate Tab 1 mg
brand_name:
type: string
example: Tolterodine Tartrate
generic_name:
type: string
example: Tolterodine Tartrate Tab 1 mg
is_controlled:
type: boolean
example: false
default: true
type:
type: string
example: prescription
route:
type: string
example: Oral
strength:
type: string
example: 1 mg
form:
type: string
example: Tab
qty:
type: string
example: '30.000000000'
qty_units:
type: string
example: BOTTLE
practice:
type: integer
example: 140758485303300
default: 0
rank:
type: integer
example: 1
default: 0
'400':
description: '400'
content:
application/json:
examples:
Result:
value: '{}'
schema:
type: object
properties: {}
deprecated: false
x-readme:
code-samples:
- language: python
code: "import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\ndata = {\n \"qty\": 30,\n \"medication\": {\"id\": 10239344687}\n}\n\nresp = requests.put(\n \"https://sandbox.elationemr.com/api/2.0//medication_order_templates/10239344687/\",\n data=json.dumps(data),\n headers={'Authorization': auth_header, 'Content-type': 'application/json'})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"
samples-languages:
- python
tags:
- Medication Order Templates
security:
- sec0: []
delete:
summary: Delete Medication Order Template
description: ''
operationId: delete-medication-order-template
parameters:
- name: id
in: path
schema:
type: integer
format: int64
required: true
- name: Authorization
in: header
description: B
# --- truncated at 32 KB (49 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/elation-health/refs/heads/main/openapi/elation-health-medication-order-templates-api-openapi.yml