Elation Health API Settings
Elation Health API Settings from Elation Health — 218 path(s) described in OpenAPI.
Elation Health API Settings from Elation Health — 218 path(s) described in OpenAPI.
{"openapi":"3.1.0","info":{"title":"API Settings","version":"unknown"},"servers":[{"url":"https://sandbox.elationemr.com/api/2.0"}],"components":{"securitySchemes":{"sec0":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://example.com/oauth2/token","scopes":{}}}}}},"security":[{"sec0":[]}],"paths":{"/patients/:id/":{"put":{"summary":"Update Patient","description":"","operationId":"update-patient","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 67176497153,\n // See Object Definition\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\ndata = {\n \"first_name\": \"test\",\n \"last_name\": \"patient\",\n \"sex\": \"Female\",\n \"dob\": \"1955-10-01\",\n \"primary_physician\": 131074,\n \"caregiver_practice\": 65540\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/patients/67176497153/\",\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"]}}},"/patients/{id}":{"get":{"summary":"Get Patient","description":"","operationId":"get-patient","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\n // See Object Definition\n}"}}}}},"303":{"description":"303","content":{"text/plain":{"examples":{"Result":{"value":""}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/patients/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"},{"language":"curl","code":"curl https://sandbox.elationemr.com/api/2.0/patients/64184451073/ \\\n> -H \"Authorization: Bearer XaTtPYZ8Ufy04f0187fPbWFkwcADF0\"","name":"cURL"}],"samples-languages":["python","curl"]}}},"/problems/":{"get":{"summary":"Find Problems","description":"","operationId":"list-problems","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"path","schema":{"type":"array","items":{"type":"integer","format":"int64"}},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/problems/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/problems/?limit=10\",\n \"results\": [ // list of objects\n { // See Object Definition },\n // ...\n { // See Object Definition },\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 = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/problems/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"},{"language":"text","code":"url https://sandbox.elationemr.com/api/2.0/problems/ \\\n> -H \"Authorization: Bearer e2itiEbVvhqGSxj5V6xjyFy1A4xfIi\"","name":"cURL"}],"samples-languages":["python","text"]}},"post":{"summary":"Create Problem","description":"","operationId":"create-problem","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","status","dx","practice"],"properties":{"patient":{"type":"integer","description":"The Patient id","format":"int32"},"status":{"type":"string","description":"problem status","enum":["Active","Controlled","Resolved"]},"dx":{"type":"array","description":"diagnosed object","items":{"properties":{"icd10":{"type":"array","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"snomed":{"type":"integer","description":"snomed code","format":"int32"}},"type":"object"}},"description":{"type":"string","description":"problem description"},"synopsis":{"type":"string","description":"problem detail"},"start_date":{"type":"string","description":"problem start date","format":"date"},"resolved_date":{"type":"string","description":"problem resolved date","format":"date"},"rank":{"type":"integer","description":"count of problems","default":null,"format":"int32"},"practice":{"type":"integer","description":"The practice id","format":"int32"},"created_date":{"type":"string","description":"date problem was created","format":"date"},"deleted_date":{"type":"string","description":"date problem was deleted","format":"date"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"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\n# sending only required data\ndata = {\n \"dx\": [{\"snomed\": \"216267008\"}],\n \"patient\": 64901939201,\n \"status\": \"Active\"\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/problems/\",\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"]}}},"/patients/{id}/":{"delete":{"summary":"Delete Patient","description":"","operationId":"delete-patient","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"text/plain":{"examples":{"Result":{"value":"// not content will be returned"}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/patients/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}},"patch":{"summary":"Update Patient","description":"","operationId":"update-patient-1","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 67176497153,\n // See Object Definition\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\ndata = {\n \"first_name\": \"test\"\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/patients/67176497153/\",\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"]}}},"/appointments/{id}/":{"delete":{"summary":"Delete Event","description":"","operationId":"delete-event","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/appointments/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}},"get":{"summary":"Get Event","description":"","operationId":"get-event","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 65097433178,\n // See Object Definition\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/appointments/65097433179/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"put":{"summary":"Update Event","description":"","operationId":"update-appointment","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\n // See Object Definition\n}"}}}}}},"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 \"scheduled_date\": \"2016-11-28T18:30:00Z\",\n \"duration\": 15,\n \"reason\": None, # typically None, can be a string of appointment type\n \"patient\": None, # must be None\n \"description\": \"\",\n \"physician\": 720898,\n \"practice\": 655364,\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/appointments/67176497154/\",\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"]}},"patch":{"summary":"Update Event","description":"","operationId":"update-event","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\n // See Object Definition\n}"}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n# enter the value you want to update only. PUT will require all values, and PATCH will only require values you want to update.\ndata = {\n \"scheduled_date\": \"2016-10-13T11:30:00Z\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/appointments/67176497153/\",\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"]}}},"/problems/{id}/":{"get":{"summary":"Get Problem","description":"","operationId":"get-problem","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 65097170987,\n // See Object Definition\n}"}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/problems/65097170987/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Problem","description":"","operationId":"delete-problem","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/problems/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}},"patch":{"summary":"Update Problem","description":"","operationId":"patch-problem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"problem status","enum":["Active","Controlled","Resolved"]},"dx":{"type":"array","description":"diagnosed object","items":{"properties":{"icd10":{"type":"array","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"snomed":{"type":"integer","description":"snomed code","format":"int32"}},"type":"object"}},"description":{"type":"string","description":"problem description"},"rank":{"type":"integer","description":"count of problems","default":null,"format":"int32"},"resolved_date":{"type":"string","description":"problem resolved date","format":"date"},"synopsis":{"type":"string","description":"problem details"},"start_date":{"type":"string","description":"problem start date","format":"date"},"created_date":{"type":"string","description":"creation date","format":"date"},"deleted_date":{"type":"string","description":"date problem was deleted","format":"date"},"patient":{"type":"integer","description":"patient Id","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\n // See Object Definition\n}"}}}}}},"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 \"status\": \"Resolved\",\n \"resolved_date\": \"2016-10-12\"\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/problems/67176497153/\",\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"]}}},"/appointments/":{"post":{"summary":"Create Event","description":"","operationId":"create-event","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["scheduled_date","reason","patient","physician","practice","time_slot_type"],"properties":{"scheduled_date":{"type":"string","format":"date"},"duration":{"type":"integer","description":"If duration is not provided, duration will be set to 15 minutes or the default duration for a particular reason","default":15,"format":"int32"},"reason":{"type":"string","description":"typically should be null but can also be string of appointment type"},"description":{"type":"string"},"patient":{"type":"string","description":"value must be null","default":"null","format":"json"},"physician":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"time_slot_type":{"type":"string","description":"value must be \"event\"","default":"event"},"service_location":{"type":"integer","description":"ID of an active (non-deleted) practice location where the appointment will occur","format":"int32"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 67176497154, \n // See Object Definition\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n# sending only required data\ndata = {\n \"scheduled_date\": \"2016-10-13T11:15:00Z\",\n \"reason\": None, # typically None, can be a string of appointment type\n \"patient\": None, # must be None\n \"physician\": 131074,\n \"practice\": 65540,\n \"time_slot_type\": \"event\"\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/appointments/\",\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"]}},"get":{"summary":"Find Events","description":"","operationId":"testinput","parameters":[{"name":"time_slot_type","in":"query","description":"value must be \"event\"","required":true,"schema":{"type":"string"}},{"name":"physician","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"from_date","in":"query","schema":{"type":"string","format":"date"}},{"name":"to_date","in":"query","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/appointments/?time_slot_type=event&limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/appointments/?time_slot_type=event&limit=10\",\n \"results\": [ // list of objects\n { // See Object Definition },\n // ...\n { // See Object Definition },\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 = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/appointments/?time_slot_type=event\",\n headers={'Authorization': auth_header})\n\n# to search for events by scheduled_date, use the following url in the get request instead of the above \nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/appointments/?from_date=2016- 11-28T18:00:00Z&to_date=2016-11-29T18:00:00Z&time_slot_type=event\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/vitals/{id}/":{"get":{"summary":"Get Vital","description":"","operationId":"get-vital","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 65098023184,\n // See Object Definition\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/vitals/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/physicians/":{"get":{"summary":"Find Physicians","description":"","operationId":"find-physicians","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"first_name","in":"query","schema":{"type":"string"}},{"name":"last_name","in":"query","schema":{"type":"string"}},{"name":"npi","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"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 = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/physicians/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/medications/":{"get":{"summary":"Find Medications","description":"","operationId":"find-medications","parameters":[{"name":"patient","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"thread","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"practice","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"discontinued","in":"query","description":"Whether the thread has a discontinue order or not","schema":{"type":"boolean"}},{"name":"permanent","in":"query","description":"Whether the medication is temporary or permanent.","schema":{"type":"boolean"}},{"name":"document_date__lt","in":"query","description":"Date/time in ISO 8601 UTC format that selects chart dates that precede it (exclusive)","schema":{"type":"string"}},{"name":"document_date__gt","in":"query","description":"Date/time in ISO 8601 UTC format that selects chart dates that follow it (exclusive)","schema":{"type":"string"}},{"name":"document_date__lte","in":"query","description":"Date/time in ISO 8601 UTC format that selects chart dates that equal or precede it (inclusive)","schema":{"type":"string"}},{"name":"document_date__gte","in":"query","description":"Date/time in ISO 8601 UTC format that selects chart dates that equal or follow it (inclusive)","schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 1,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 140758834872346,\n \"auth_refills\": 1,\n \"directions\": \"test_direction\",\n \"chart_date\": \"2022-05-24T19:51:46Z\",\n \"show_in_chart_feed\": true,\n \"created_date\": \"2022-05-24T19:51:46Z\",\n \"deleted_date\": null,\n \"document_date\": \"2022-05-24T19:51:46Z\",\n \"fulfillment\": null,\n \"is_doc_med\": false,\n \"last_modified\": \"2022-05-24T19:51:46Z\",\n \"medication\": {\n \"id\": 5465899055,\n \"rxnorm_cuis\": [\n \"402014\"\n ],\n \"ndcs\": [\n \"00113-0915-55\",\n \"00113-0915-30\",\n \"00363-0915-30\",\n \"00363-0915-74\",\n \"37205-0837-15\",\n \"36800-0915-30\",\n \"36800-0915-55\",\n \"37205-0837-74\",\n \"45802-0888-55\",\n \"36800-0915-74\",\n \"00113-0915-74\",\n \"37205-0837-06\",\n \"00363-0915-55\",\n \"00904-5834-71\",\n \"00904-5834-42\",\n \"30142-0915-74\",\n \"00904-5834-41\",\n \"30142-0915-30\",\n \"30142-0915-55\",\n \"45802-0888-30\",\n \"00363-0915-03\",\n \"36800-0915-01\",\n \"36800-0915-03\",\n \"00363-0915-01\",\n \"37205-0837-66\",\n \"57896-0760-42\",\n \"70000-0356-04\",\n \"70000-0356-03\",\n \"70000-0356-02\",\n \"57896-0960-42\",\n \"70000-0356-01\",\n \"00363-0007-03\",\n \"51660-0029-14\",\n \"51660-0029-44\",\n \"51660-0029-27\",\n \"68001-0441-39\",\n \"68001-0441-40\",\n \"68001-0441-98\"\n ],\n \"name\": \"Omeprazole Tab delayed rel 20 mg\",\n \"brand_name\": \"Omeprazole\",\n \"generic_name\": \"Omeprazole delayed rel Tab 20 mg\",\n \"is_controlled\": false,\n \"type\": \"otc\",\n \"route\": \"Oral\",\n \"strength\": \"20 mg\",\n \"form\": \"Tab delayed rel\"\n },\n \"medication_type\": \"otc\",\n \"notes\": \"test_note\",\n \"order_type\": \"Refill\",\n \"patient\": 140754479349761,\n \"pharmacy_instructions\": \"test_instruction\",\n \"practice\": 140754475089924,\n \"prescribing_physician\": 140754478628866,\n \"documenting_personnel\": null,\n \"qty\": \"1.000000000\",\n \"qty_units\": \"AMPULE\",\n \"num_samples\": null,\n \"signed_by\": null,\n \"signed_date\": null,\n \"start_date\": \"2022-02-23\",\n \"icd10_codes\": [\n {\n \"code\": \"U07.1\",\n \"description\": \"COVID-19\"\n }\n ],\n \"thread\": {\n \"id\": 140758834806807,\n \"dc_date\": null,\n \"is_permanent\": true\n }\n }\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":1,"default":0},"next":{},"previous":{},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758834872346,"default":0},"auth_refills":{"type":"integer","example":1,"default":0},"directions":{"type":"string","example":"test_direction"},"chart_date":{"type":"string","example":"2022-05-24T19:51:46Z"},"show_in_chart_feed":{"type":"boolean","example":true,"default":true},"created_date":{"type":"string","example":"2022-05-24T19:51:46Z"},"deleted_date":{},"document_date":{"type":"string","example":"2022-05-24T19:51:46Z"},"fulfillment":{},"is_doc_med":{"type":"boolean","example":false,"default":true},"last_modified":{"type":"string","example":"2022-05-24T19:51:46Z"},"medication":{"type":"object","properties":{"id":{"type":"integer","example":5465899055,"default":0},"rxnorm_cuis":{"type":"array","items":{"type":"string","example":"402014"}},"ndcs":{"type":"array","items":{"type":"string","example":"00113-0915-55"}},"name":{"type":"string","example":"Omeprazole Tab delayed rel 20 mg"},"brand_name":{"type":"string","example":"Omeprazole"},"generic_name":{"type":"string","example":"Omeprazole delayed rel Tab 20 mg"},"is_controlled":{"type":"boolean","example":false,"default":true},"type":{"type":"string","example":"otc"},"route":{"type":"string","example":"Oral"},"strength":{"type":"string","example":"20 mg"},"form":{"type":"string","example":"Tab delayed rel"}}},"medication_type":{"type":"string","example":"otc"},"notes":{"type":"string","example":"test_note"},"order_type":{"type":"string","example":"Refill"},"patient":{"type":"integer","example":140754479349761,"default":0},"pharmacy_instructions":{"type":"string","example":"test_instruction"},"practice":{"type":"integer","example":140754475089924,"default":0},"prescribing_physician":{"type":"integer","example":140754478628866,"default":0},"documenting_personnel":{},"qty":{"type":"string","example":"1.000000000"},"qty_units":{"type":"string","example":"AMPULE"},"num_samples":{},"signed_by":{},"signed_date":{},"start_date":{"type":"string","example":"2022-02-23"},"icd10_codes":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"U07.1"},"description":{"type":"string","example":"COVID-19"}}}},"thread":{"type":"object","properties":{"id":{"type":"integer","example":140758834806807,"default":0},"dc_date":{},"is_permanent":{"type":"boolean","example":true,"default":true}}}}}}}}}}},"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/medications/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"post":{"summary":"Create Medication","description":"","operationId":"create-medication","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["auth_refills","is_doc_med","medication","medication_type","order_type","patient","practice","prescribing_physician","qty","qty_units","start_date","icd10_codes","thread"],"properties":{"auth_refills":{"type":"integer","description":"The number of refills, excluding this order, that the patient is authorized for","format":"int32"},"is_doc_med":{"type":"boolean","description":"If the medication order is intended to document a med instead of draft a prescription. When it is true, the object will be automatically signed as a documented medication, otherwise the object will be created as a draft prescription"},"medication":{"type":"object","description
# --- truncated at 32 KB (779 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/elation-health/refs/heads/main/openapi/elation-api-settings.json