{"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":"medication object (must provide one of id, ndc, rxnorm_cuis required)","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)","items":{"type":"string"}},"rxnorm_cuis":{"type":"array","description":"The Rxnorm.cui code of the medication(must contains only one cui code)","items":{"type":"string"}}}},"medication_type":{"type":"string","description":"If this is OTC or a prescription","enum":["otc","prescription"]},"order_type":{"type":"string","description":"If the medication order is new, a refill or a change in dosage","enum":["New","Refill","Change"]},"patient":{"type":"integer","description":"The id of the patient","format":"int32"},"practice":{"type":"integer","description":"The id of the practice","format":"int32"},"prescribing_physician":{"type":"integer","description":"prescribing physician ID","format":"int32"},"qty":{"type":"number","description":"The amount of the medication to order (decimal)","format":"double"},"qty_units":{"type":"string","description":"The units that match the amount, e.g. capsules","enum":["BAG","BOTTLE","BOX","CAPSULE","CARTRIDGE","CONTAINER","DROP","GRAM","INHALER","INTERNATIONAL UNITE","KIT","LITER","LOZENGE","MILLIGRAM","MILLILITER","MILLION UNITS","MUTUALLY DEFINED","FLUID OUNCE","NOT SPECIFIED","PACK","PACKET","PINT","SUPPOSITORY","SYRINGE","TABLESPOON","TABLET","TEASPOON","TRANSDERMAL PATCH","TUBE","UNIT","VIAL","EACH","GUM","AMPULE","APPLICATOR","APPLICATORFUL","BAR","BEAD","BLISTER","BLOCK","BOLUS","CAN","CANISTER","CAPLET","CARTON","CASE","CASSETTE","CYLINDER","DISK","DOSE PACK","DUAL PACK","FILM","GALLON","IMPLANT","INHALATION","INHALER REFILL","INSERT","INTRAVENOUS BAG","KILOGRAM","METRIC DROP","MILLIMETER","NEBULE","NEEDLE FREE INJECTION","OCULAR SYSTEM","OUNCE","PACKAGE","PAD","PAPER","PATCH","PEN NEEDLE","POUCH","POUND","PRE-FILLED PEN SYRINGE","PUFF","QUART","RING","SACHET","SCOOPFUL","SPONGE","SPRAY","STICK","STRIP","SWAB","TABMINDER","TAMPON","TRAY","TROCHE","WAFER"]},"start_date":{"type":"string","description":"The date on which the prescription started or will start.","format":"date"},"icd10_codes":{"type":"array","description":"icd10 IDs","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"thread":{"type":"object","description":"Refer to the medication thread documentation for more info","required":["is_permanent"],"properties":{"id":{"type":"integer","description":"Thread id (NOT required)","format":"int32"},"is_permanent":{"type":"boolean","description":"if thread is permanent"}}},"directions":{"type":"string","description":"The med order directions"},"notes":{"type":"string","description":"Any notes for the patient"},"pharmacy_instructions":{"type":"string","description":"Any notes for the pharmacy"},"num_samples":{"type":"string","description":"med order num samples"},"document_date":{"type":"string","description":"The timestamp for when this prescription was first documented. Will be the same as the creation time unless this an historical data import.","format":"date"},"documenting_personnel":{"type":"integer","description":"physician object required if is_doc_med is true","format":"int32"}}}}}},"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 \"auth_refills\": 1,\n \"is_doc_med\": false,\n \"medication\":{\n \"id\": 5465899055\n },\n \"medication_type\": \"prescription\",\n \"order_type\": \"Refill\",\n \"patient\": 140754479349761,\n \"practice\": 140754475089924,\n \"prescribing_physician\": 140754478628866,\n \"qty\": \"1\",\n \"qty_units\": \"AMPULE\",\n \"start_date\": \"2022-02-23\",\n \"icd10_codes\": [],\n \"thread\": {\n \"is_permanent\": true\n },\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/medications/\",\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"]}}},"/allergies/{id}/":{"put":{"summary":"Update Allergy","description":"","operationId":"update-allergy","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","required":["patient","name"],"properties":{"patient":{"type":"integer","description":"Patient ID","format":"int32"},"name":{"type":"string","description":"Allergen"},"reaction":{"type":"string"},"severity":{"type":"string"},"start_date":{"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 \"patient\": 64901939201,\n \"name\": \"Erythromycin\",\n \"status\": \"Inactive\"\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/allergies/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"]}},"get":{"summary":"Get Allergy","description":"","operationId":"get-allergy","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\": 65097302057,\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/allergies/65097302057/\",\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 Allergy","description":"","operationId":"delete-allergy","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","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/allergies/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/ccda/":{"post":{"summary":"Create CCDA","description":"","operationId":"create-ccda","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["base64_ccda"],"properties":{"base64_ccda":{"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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n# sending only required data\ndata = {\n \"base64_ccda\": \"PD94bWwgdmVyc2lvbj0iMS4wIj8+.....................\"\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/ccda/\",\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"]}}},"/immunizations/{id}/":{"delete":{"summary":"Delete Immunization","description":"","operationId":"delete-immunization","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/immunizations/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}},"get":{"summary":"Get Immunization","description":"","operationId":"get-immunization","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}"}}}}},"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/immunizations/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/family_histories/{id}/":{"get":{"summary":"Get Family History","description":"","operationId":"get-family-history","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}"}}}}},"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/family_histories/64184451073/\",\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 Family History","description":"","operationId":"delete-family-history","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/family_histories/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/histories/":{"post":{"summary":"Create History","description":"","operationId":"create-history","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["type","text","patient"],"properties":{"type":{"type":"string"},"text":{"type":"string"},"patient":{"type":"string","description":"Patient ID"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\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 \"type\": \"Diet\",\n \"text\": \"Yogurt daily\",\n \"patient\": 64901939201\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/histories/\",\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 Histories","description":"","operationId":"find-histories","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/histories/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/histories/?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/histories/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/allergies/":{"get":{"summary":"Find Allergies","description":"","operationId":"find-allergies","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","description":"Find all allergies for a specific patient","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/allergies/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/allergies/?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/allergies/\",\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 Allergy","description":"","operationId":"create-allergy","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","name"],"properties":{"patient":{"type":"string","description":"The id of the patient"},"name":{"type":"string","description":"The name of the allergy drug"},"start_date":{"type":"string","description":"The date the allergy started","default":"today","format":"date"},"reaction":{"type":"string","description":"The reaction to the drug"},"severity":{"type":"string","description":"How severe the reaction is"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 65097302057,\n\t// 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 \"name\": \"Erythromycin\",\n \"reaction\" : \"Vomitting\",\n \"start_date\" : \"1980-01-01\",\n \"patient\": 64901939201\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/allergies/\",\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"]}}},"/immunizations/":{"get":{"summary":"Find Immunizations","description":"","operationId":"find-immunizations","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/immunizations/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/immunizations/?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/immunizations/\",\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 Immunization","description":"","operationId":"create-immunization","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","vaccine","administered_date","administering_physician","ordering_physician","qty"],"properties":{"patient":{"type":"integer","description":"patient id","format":"int32"},"vaccine":{"type":"object","required":["cvx"],"properties":{"cvx":{"type":"integer","format":"int32"}}},"administered_date":{"type":"string","format":"date"},"administering_physician":{"type":"integer","format":"int32"},"ordering_physician":{"type":"integer","format":"int32"},"qty":{"type":"string"},"description":{"type":"string"},"reason":{"type":"string"},"qty_units":{"type":"string"},"lot_number":{"type":"string"},"manufacturer_name":{"type":"string"},"manufacturer_code":{"type":"string"},"expiration_date":{"type":"string","format":"date"},"vis":{"type":"string"},"method":{"type":"string"},"site":{"type":"string"},"notes":{"type":"string"},"publicity_code":{"type":"string","enum":["(\"01\"","\"No reminder/recall\")","(\"02\"","\"Reminder/recall - any method\")","(\"03\"","\"Reminder/recall - no calls\")","(\"04\"","\"Reminder only - any method\")","(\"05\"","\"Reminder only - no calls\")","(\"06\"","\"Recall only - any method\")","(\"07\"","\"Recall only - no calls\")","(\"08\"","\"Reminder/recall - to provider\")","(\"09\"","\"Reminder to provider\")","(\"10\"","\"Only reminder to provider","no recall\")","(\"11\"","\"Recall to provider\")","(\"12\"","\"Only recall to provider","no reminder\")"]},"vfc_eligibility":{"type":"string","enum":["(\"V01\"","\"Not VFC eligible\")","(\"V02\"","\"VFC eligible - Medicaid/Medicaid Managed Care\")","(\"V03\"","\"VFC eligible - Uninsured\")","(\"V04\"","\"VFC eligible - American Indian/Alaskan Native\")","(\"V05\"","\"VFC eligible - Under-insured)\")","(\"V07\"","\"Local-specific eligibility\")","(\"V22\"","\"CHIP\")","(\"V23\"","\"317\")","(\"V24\"","\"Medicare\")","(\"V25\"","\"State program eligibility\")","(\"CAA01\"","\"CA State General Fund Vaccines\")","(\"ORA01\"","\"OR Special Projects\")","(\"ORA02\"","\"OR Locally Owned\")","(\"HI02\"","\"HI Birthing Hospital Hepatitis B\")","(\"HI03\"","\"HI Adult Insured\")","(\"HI04\"","\"HI Adult Not Insured\")"]},"funding_source":{"type":"string","enum":["(\"PHC70\"","\"Privately funded vaccine stock\")","(\"VXC50\"","\"Publicly funded vaccine stock\")","(\"VXC51\"","\"Publicly funded vaccine stock - VFC\")","(\"VXC52\"","\"Publicly funded vaccine stock - Non-VFC\")"]},"info_source":{"type":"string","enum":["(\"00\"","\"New immunization record\")","(\"01\"","\"Historical information - source unspecified\")","(\"02\"","\"Historical information - from other provider\")","(\"03\"","\"Historical information - from parent's written record\")","(\"04\"","\"Historical information - from parent's recall\")","(\"05\"","\"Historical information - from other registry\")","(\"06\"","\"Historical information - from birth certificate\")","(\"07\"","\"Historical information - from school record\")","(\"08\"","\"Historical information - from public agency\")"]},"allowed_sharing":{"type":"boolean"},"dose_in_series":{"type":"integer","format":"int32"},"priority_population":{"type":"string","description":"For Immunization Registry Integrations (less than 9 symbols)"},"ndc":{"type":"string","description":"Should be 10-11 digits, 2 dashes, but field have no validation"},"patient_consent":{"type":"boolean"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758870130858,\n \"administered_date\": \"2021-09-22T17:01:00Z\",\n \"administering_physician\": 720898,\n \"ordering_physician\": 720898,\n \"description\": null,\n \"reason\": null,\n \"vaccine\": {\n \"name\": \"pertussis\",\n \"cvx\": 11,\n \"cdc_name\": null,\n \"cdc_type\": null\n },\n \"qty\": \"25\",\n \"qty_units\": null,\n \"lot_number\": null,\n \"manufacturer_name\": null,\n \"manufacturer_code\": null,\n \"expiration_date\": null,\n \"vis\": null,\n \"method\": null,\n \"site\": null,\n \"notes\": null,\n \"publicity_code\": null,\n \"vfc_eligibility\": null,\n \"funding_source\": null,\n \"info_source\": null,\n \"allowed_sharing\": null,\n \"practice\": 140758835265540,\n \"patient\": 140758844637185,\n \"created_date\": \"2022-06-29T13:00:59Z\",\n \"deleted_date\": null,\n \"dose_in_series\": null,\n \"priority_population\": null,\n \"ndc\": null,\n \"patient_consent\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758870130858,"default":0},"administered_date":{"type":"string","example":"2021-09-22T17:01:00Z"},"administering_physician":{"type":"integer","example":720898,"default":0},"ordering_physician":{"type":"integer","example":720898,"default":0},"description":{},"reason":{},"vaccine":{"type":"object","properties":{"name":{"type":"string","example":"pertussis"},"cvx":{"type":"integer","example":11,"default":0},"cdc_name":{},"cdc_type":{}}},"qty":{"type":"string","example":"25"},"qty_units":{},"lot_number":{},"manufacturer_name":{},"manufacturer_code":{},"expiration_date":{},"vis":{},"method":{},"site":{},"notes":{},"publicity_code":{},"vfc_eligibility":{},"funding_source":{},"info_source":{},"allowed_sharing":{},"practice":{"type":"integer","example":140758835265540,"default":0},"patient":{"type":"integer","example":140758844637185,"default":0},"created_date":{"type":"string","example":"2022-06-29T13:00:59Z"},"deleted_date":{},"dose_in_series":{},"priority_population":{},"ndc":{},"patient_consent":{}}}}}},"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 \"patient\": 140758844637185,\n \"administered_date\": \"2021-09-22T17:01:00Z\",\n \"administering_physician\": 720898,\n \"ordering_physician\": 720898,\n \"vaccine\": {\n \"cvx\": 11\n },\n \"qty\": 25\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/immunizations/\",\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"]}}},"/bills/{id}/":{"get":{"summary":"Get Bill","description":"","operationId":"get-bill","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}"}}}}},"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/bills/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Bill","description":"","operationId":"patch-bill","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"billing_date":{"type":"string","description":"Required if marking a bill as processed"},"ref_number":{"type":"string","description":"Required if marking a bill as processed"},"billing_error":{"type":"string","description":"Required if marking a bill as failed. This is the human readable error that users will see."},"billing_raw_error":{"type":"string","description":"Further details on the billing error. Optional when marking a bill as failed. Useful when debugging why a bill failed to process."},"prior_authorization":{"type":"string","description":"Prior authorization number"},"billing_provider":{"type":"integer","description":"Billing provider Id","format":"int32"},"supervising_provider":{"type":"integer","description":"Supervising provider Id","format":"int32"},"rendering_provider":{"type":"integer","description":"Rendering provider id","format":"int32"},"referring_provider":{"type":"object","description":"Billing refering provide","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["AK","AL","AR","AS","AZ","CA","CO","CT","DC","DE","FL","GA","GU","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MP","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","PR","RI","SC","SD","TN","TX","UM","UT","VA","VI","VT","WA","WI","WV","WY"]},"npi":{"type":"string","description":"10 digit provider or group NPI","default":"null"}}},"ordering_provider":{"type":"object","description":"Ordering provider","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["AK","AL","AR","AS","AZ","CA","CO","CT","DC","DE","FL","GA","GU","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MP","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","PR","RI","SC","SD","TN","TX","UM","UT","VA","VI","VT","WA","WI","WV","WY"]},"npi":{"type":"string","description":"10 digit provider or group NPI","default":"null"}}},"cpts":{"type":"array","description":"CPTs objects for billing","items":{"properties":{"cpt":{"type":"string","description":"CPT code"},"modifier_1":{"type":"string","description":"Two character long modifier string for slot #1"},"modifier_2":{"type":"string","description":"Two character long modifier string for slot #2"},"modifier_3":{"type":"string","description":"Two character long modifier string for slot #3"},"modifier_4":{"type":"string","description":"Two character long modifier string for slot #4"},"unit_charge":{"type":"number","description":"Charge for the procedure (e.g. 50.25 for $50.25)","format":"double"},"units":{"type":"number","description":"Number of procedure units to charge for","format":"double"},"dxs":{"type":"array","description":"Diagnoses to associate with the procedure","items":{"properties":{"icd10_code":{"type":"string","description":"ICD10 code for the diagnosis"},"icd9_codes":{"type":"array","description":"List of ICD9 codes to associate with the diagnosis","default":[],"items":{"type":"string"}}},"required":["icd10_code"],"type":"object"}}},"required":["cpt"],"type":"object"}},"service_location":{"type":"integer","description":"Billing service location","format":"int32"},"notes":{"type":"string","description":"Additional billing notes"},"payment":{"type":"integer","description":"Patient Payment","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\n# marking a bill as failed\ndata = {\n \"billing_error\": \"CPT code is missing\", # required\n \"billing_raw_error\": \"ERROR: CPT code is required\" # optional\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/bills/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)\n\n# marking a bill as processed\ndata = {\n \"ref_number\": \"2323413d3\",\n \"billing_date\": \"2016-05-23T17:48:21Z\"\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/bills/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)\n\n\n# update general info on the bill\ndata = {\n\t\t\"payment_amount\": \"123.43\",\n \"cpts\": [\n {\n \"cpt\": \"99215\",\n \"modifier_1\": \"aa\",\n \"modifier_2\": \"aa\",\n \"modifier_3\": \"aa\",\n \"modifier_4\": \"aa\",\n \"dxs\": [\n {\n \"icd10_code\": \"N18.24\",\n \"icd9_codes\": [\n \"425.4\"\n ]\n }\n ],\n \"unit_charge\": 10,\n \"units\": 10\n }\n ]\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/bills/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)\n\n"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Bill","description":"This is yet to be worked on. Keep this in Draft","operationId":"delete-bill","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/bills/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/non_visit_notes/{id}/":{"get":{"summary":"Get Non-Visit Note","description":"","operationId":"get-non-visit-note","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}"}}}}},"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/non_visit_notes/64184451073/\",\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 Non-Visit Note","description":"","operationId":"delete-non-visit-note","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/non_visit_notes/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}},"put":{"summary":"Update Non-Visit Note","description":"","operationId":"update-non-visit-note","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["type","document_date","chart_date"],"properties":{"type":{"type":"string","description":"The type of the non visit note"},"document_date":{"type":"string","description":"The date of the document","format":"date"},"chart_date":{"type":"string","description":"The date of the patient chart","format":"date"},"bullets":{"type":"array","description":"The bullets of the non visit note","items":{"properties":{"id":{"type":"integer","description":"Bullet ID","format":"int64"},"author":{"type":"integer","description":"The author of the bullet","format":"int32"},"text":{"type":"string","description":"The text of the bullet"}},"required":["id","text"],"type":"object"}},"patient":{"type":"integer","description":"The oid of the patient","format":"int32"},"practice":{"type":"integer","description":"The id of the practice","format":"int32"},"tags":{"type":"array","description":"The ids of the document tags you want to attach","items":{"type":"integer","format":"int64"}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758520102937,\n \"type\": \"nonvisit\",\n \"notes\": [\n {\n \"id\": 140758520168536,\n \"author\": 64,\n \"text\": \"this is phone note\",\n \"version\": 3,\n \"updated_date\": \"2022-05-13T13:25:43Z\"\n }\n ],\n \"bullets\": [\n {\n \"id\": 140758520168536,\n \"author\": 64,\n \"text\": \"this is phone note\",\n \"version\": 3,\n \"updated_date\": \"2022-05-13T13:25:43Z\"\n }\n ],\n \"tags\": [\n {\n \"code\": \"408289007\",\n \"code_type\": 2,\n \"concept_name\": \"wt-mgmt-referral\",\n \"context\": null,\n \"created_date\": \"2015-07-23T19:30:51Z\",\n \"deleted_date\": \"2019-05-29T00:06:03Z\",\n \"description\": \"Referral to weight management program\",\n \"id\": 58719011162,\n \"practice_created\": null,\n \"snomed_result_code\": null,\n \"value\": \"CQM: Ref to Wt Mgt Program\"\n }\n ],\n \"patient\": 140758510600193,\n \"document_date\": \"2022-05-05T07:50:20Z\",\n \"chart_date\": \"2022-05-05T07:50:20Z\",\n \"signed_date\": null,\n \"signed_by\": null,\n \"created_date\": \"2022-05-13T13:25:43.137904Z\",\n \"deleted_date\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758520102937,"default":0},"type":{"type":"string","example":"nonvisit"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758520168536,"default":0},"author":{"type":"integer","example":64,"default":0},"text":{"type":"string","example":"this is phone note"},"version":{"type":"integer","example":3,"default":0},"updated_date":{"type":"string","example":"2022-05-13T13:25:43Z"}}}},"bullets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758520168536,"default":0},"author":{"type":"integer","example":64,"default":0},"text":{"type":"string","example":"this is phone note"},"version":{"type":"integer","example":3,"default":0},"updated_date":{"type":"string","example":"2022-05-13T13:25:43Z"}}}},"tags":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"408289007"},"code_type":{"type":"integer","example":2,"default":0},"concept_name":{"type":"string","example":"wt-mgmt-referral"},"context":{},"created_date":{"type":"string","example":"2015-07-23T19:30:51Z"},"deleted_date":{"type":"string","example":"2019-05-29T00:06:03Z"},"description":{"type":"string","example":"Referral to weight management program"},"id":{"type":"integer","example":58719011162,"default":0},"practice_created":{},"snomed_result_code":{},"value":{"type":"string","example":"CQM: Ref to Wt Mgt Program"}}}},"patient":{"type":"integer","example":140758510600193,"default":0},"document_date":{"type":"string","example":"2022-05-05T07:50:20Z"},"chart_date":{"type":"string","example":"2022-05-05T07:50:20Z"},"signed_date":{},"signed_by":{},"created_date":{"type":"string","example":"2022-05-13T13:25:43.137904Z"},"deleted_date":{}}}}}},"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 \"id\": 126532,\n \"type\": \"phone\",\n \"bullets\": [\n {\n \"id\": 126153,\n \"author\": 64,\n \"text\": \"this is phone note\"\n }\n ],\n \"patient\": 123467,\n \"practice\": 131074,\n \"document_date\": \"2017-03-05T07:22:13Z\",\n \"chart_date\": \"2017-03-05T07:22:13Z\",\n \"tags\": [\n 365784\n ],\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/non_visit_notes/126532/\",\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 Non-Visit Note","description":"","operationId":"update-non-visit-note-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The type of the non visit note"},"bullets":{"type":"array","description":"The bullets of the non visit note.","items":{"properties":{"id":{"type":"integer","description":"Bullet ID","format":"int64"},"author":{"type":"integer","description":"The author of the bullet","format":"int32"},"text":{"type":"string","description":"The text of the bullet"}},"required":["id","text"],"type":"object"}},"patient":{"type":"integer","description":"The oid of the patient","format":"int32"},"practice":{"type":"integer","description":"The id of the practice","format":"int32"},"document_date":{"type":"string","description":"The date of the document","format":"date"},"chart_date":{"type":"string","description":"The date of the patient chart","format":"date"},"tags":{"type":"array","description":"The ids of the document tags you want to attach","items":{"type":"integer","format":"int64"}},"sign_date":{"type":"string","description":"The date and time to sign off the note. It is expected to be the current UTC time. eg. \"2022-11-10T01:06:22Z\"","format":"date"},"signed_by":{"type":"integer","description":"The user id of the physician who is signing off the note","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758520102937,\n \"type\": \"nonvisit\",\n \"notes\": [\n {\n \"id\": 140758520168536,\n \"author\": 64,\n \"text\": \"this is phone note\",\n \"version\": 2,\n \"updated_date\": \"2022-05-13T13:25:43Z\"\n }\n ],\n \"bullets\": [\n {\n \"id\": 140758520168536,\n \"author\": 64,\n \"text\": \"this is phone note\",\n \"version\": 2,\n \"updated_date\": \"2022-05-13T13:25:43Z\"\n }\n ],\n \"tags\": [\n {\n \"code\": \"408289007\",\n \"code_type\": 2,\n \"concept_name\": \"wt-mgmt-referral\",\n \"context\": null,\n \"created_date\": \"2015-07-23T19:30:51Z\",\n \"deleted_date\": \"2019-05-29T00:06:03Z\",\n \"description\": \"Referral to weight management program\",\n \"id\": 58719011162,\n \"practice_created\": null,\n \"snomed_result_code\": null,\n \"value\": \"CQM: Ref to Wt Mgt Program\"\n }\n ],\n \"patient\": 140758510600193,\n \"document_date\": \"2022-05-05T07:50:20Z\",\n \"chart_date\": \"2022-05-05T07:50:20Z\",\n \"signed_date\": null,\n \"signed_by\": null,\n \"created_date\": \"2022-05-13T13:25:43.137904Z\",\n \"deleted_date\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758520102937,"default":0},"type":{"type":"string","example":"nonvisit"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758520168536,"default":0},"author":{"type":"integer","example":64,"default":0},"text":{"type":"string","example":"this is phone note"},"version":{"type":"integer","example":2,"default":0},"updated_date":{"type":"string","example":"2022-05-13T13:25:43Z"}}}},"bullets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758520168536,"default":0},"author":{"type":"integer","example":64,"default":0},"text":{"type":"string","example":"this is phone note"},"version":{"type":"integer","example":2,"default":0},"updated_date":{"type":"string","example":"2022-05-13T13:25:43Z"}}}},"tags":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"408289007"},"code_type":{"type":"integer","example":2,"default":0},"concept_name":{"type":"string","example":"wt-mgmt-referral"},"context":{},"created_date":{"type":"string","example":"2015-07-23T19:30:51Z"},"deleted_date":{"type":"string","example":"2019-05-29T00:06:03Z"},"description":{"type":"string","example":"Referral to weight management program"},"id":{"type":"integer","example":58719011162,"default":0},"practice_created":{},"snomed_result_code":{},"value":{"type":"string","example":"CQM: Ref to Wt Mgt Program"}}}},"patient":{"type":"integer","example":140758510600193,"default":0},"document_date":{"type":"string","example":"2022-05-05T07:50:20Z"},"chart_date":{"type":"string","example":"2022-05-05T07:50:20Z"},"signed_date":{},"signed_by":{},"created_date":{"type":"string","example":"2022-05-13T13:25:43.137904Z"},"deleted_date":{}}}}}},"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 \"id\": 126532,\n \"type\": \"phone\",\n \"bullets\": [\n {\n \"id\": 126153,\n \"text\": \"this is phone note\"\n }\n ],\n \"patient\": 123467,\n \"practice\": 131074,\n \"document_date\": \"2017-03-05T07:22:13Z\",\n \"chart_date\": \"2017-03-05T07:22:13Z\",\n \"tags\": [\n 365784\n ],\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/non_visit_notes/126532/\",\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"]}}},"/histories/{id}/":{"get":{"summary":"Get History","description":"","operationId":"get-history","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}"}}}}},"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/histories/64184451073/\",\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 History","description":"","operationId":"delete-history","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/histories/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/reports/{id}/":{"get":{"summary":"Get Report","description":"","operationId":"get-report","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}"}}}}},"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/reports/64184451073/\",\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 Report","description":"","operationId":"delete-report","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/reports/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}},"patch":{"summary":"Sign Report","description":"","operationId":"sign-report","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","required":["signed_date","signed_by"],"properties":{"signed_date":{"type":"string","description":"The time at which the visit note was signed. Cannot be in the future. (Requires Special Permission).","format":"date"},"signed_by":{"type":"string","description":"The user id of the provider who signed the visit note. (Requires special permission).","format":"date"}}}}}},"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/reports/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/reports/":{"get":{"summary":"Find Reports","description":"","operationId":"find-reports","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"reported_date__gt","in":"query","description":"Date/time in ISO 8601 UTC format that selects report dates that follow it (exclusive). It may be null in some cases, use document_date instead","schema":{"type":"string","format":"date"}},{"name":"reported_date__lt","in":"query","description":"Date/time in ISO 8601 UTC format that selects report dates that precede it (exclusive). It may be null in some cases, use document_date instead","schema":{"type":"string","format":"date"}},{"name":"reported_date__gte","in":"query","description":"Date/time in ISO 8601 UTC format that selects report dates that follow it (inclusive). It may be null in some cases, use document_date instead","schema":{"type":"string","format":"date"}},{"name":"reported_date__lte","in":"query","description":"Date/time in ISO 8601 UTC format that selects report dates that precede it (exclusive). It may be null in some cases, use document_date instead","schema":{"type":"string","format":"date"}},{"name":"document_date__gt","in":"query","description":"Date/time in ISO 8601 UTC format that selects document dates that follow it (exclusive)","schema":{"type":"string","format":"date"}},{"name":"document_date__lt","in":"query","description":"Date/time in ISO 8601 UTC format that selects document dates that precede it (exclusive)","schema":{"type":"string","format":"date"}},{"name":"document_date__gte","in":"query","description":"Date/time in ISO 8601 UTC format that selects document dates that follow it (inclusive)","schema":{"type":"string","format":"date"}},{"name":"document_date__lte","in":"query","description":"Date/time in ISO 8601 UTC format that selects document dates that precede it (inclusive)","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/reports/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/reports/?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/reports/\",\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 Report","description":"","operationId":"create-report","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["report_type","patient","physician","practice","document_date","chart_date"],"properties":{"report_type":{"type":"string","description":"Value must be Lab for laboratory reports","enum":["Look REPORT_DOCUMENT_SUB_TYPE_DATA"]},"requisition_number":{"type":"string"},"custom_title":{"type":"string"},"patient":{"type":"integer","description":"patient id","format":"int32"},"physician":{"type":"integer","description":"physician id","format":"int32"},"practice":{"type":"integer","description":"practice id","format":"int32"},"vendor":{"type":"integer","format":"int32"},"document_date":{"type":"string","description":"The date when the report was created","format":"date"},"reported_date":{"type":"string","description":"The timestamp when the report was created by an external system, usually the same as \"document_date\".","format":"date"},"chart_date":{"type":"string","format":"date"},"grids":{"type":"array","items":{"properties":{"accession_number":{"type":"string"},"resulted_date":{"type":"string","format":"date"},"collected_date":{"type":"string","format":"date"},"status":{"type":"string","enum":["(\"C\"","\"CORRECTED\")","(\"D\"","\"DELETED\")","(\"F\"","\"FINAL\")","(\"I\"","\"PENDING\")","(\"P\"","\"PRELIMINARY\")","(\"R\"","\"RESULTS ENTERED -- NOT VERIFIED\")","(\"S\"","\"PARTIAL\")","( \"U\"","\"RESULTS STATUS CHANGE TO FINAL. RESULTS DID NOT CHANGE ( DON\" \"T TRANSMIT TEST).\"",")","(\"X\"","\"RESULT CANCELED DUE TO NON-PERFORMANCE\")","(\"E\"","\"ERROR\")","(\"A\"","\"AMENDED\")",""]},"note":{"type":"string"},"results":{"type":"array","default":[]}},"required":["accession_number","resulted_date","collected_date","status","note","results"],"type":"object"}},"files":{"type":"array","description":"An array with files and/or photos that you want to attach to the report. These files can either be uploaded as json or base64.","items":{"properties":{"content_type":{"type":"string"},"external_content":{"type":"string","format":"json"},"base64_content":{"type":"string"},"original_filename":{"type":"string"}},"type":"object"}}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758850535464,\n \"patient\": 140758844637185,\n \"custom_title\": \"null\",\n \"report_type\": \"Lab\",\n \"requisition_number\": \"25\",\n \"tags\": [],\n \"reported_date\": \"2001-05-05T02:33:22Z\",\n \"grids\": [\n {\n \"accession_number\": \"0909641947\",\n \"resulted_date\": \"2009-04-07T05:10:00Z\",\n \"collected_date\": \"2009-04-06T22:54:00Z\",\n \"status\": \"FINAL\",\n \"note\": \"\",\n \"results\": [\n {\n \"status\": \"AMENDED\",\n \"value\": \"0.88\",\n \"value_type\": \"Numeric\",\n \"text\": \"1\",\n \"note\": \"1\",\n \"reference_min\": \"0.55\",\n \"reference_max\": \"1.66\",\n \"units\": \"ng/dL7\",\n \"is_abnormal\": true,\n \"abnormal_flag\": \"Critical\",\n \"test\": {\n \"code\": \"FRT54\",\n \"name\": \"T45-Free\",\n \"loinc\": \"10007-3\"\n },\n \"test_category\": {\n \"value\": \"12010&LPW1\",\n \"description\": \"T4, FREE (THYROXINE, FREE)\"\n }\n }\n ]\n }\n ],\n \"images\": [],\n \"files\": [\n {\n \"content_type\": \"application/json; schema=el8_external_content_report\",\n \"external_content\": {},\n \"base64_content\": null,\n \"original_filename\": \"99914b932bd37a50b983c5e7c90ae93b.JSON\"\n }\n ],\n \"practice\": 140758835265540,\n \"physician\": 131074,\n \"document_date\": \"2011-05-05T02:33:22Z\",\n \"chart_date\": \"2001-05-05T02:33:22Z\",\n \"signed_date\": null,\n \"signed_by\": null,\n \"created_date\": \"2022-06-27T10:18:36Z\",\n \"deleted_date\": null,\n \"printable_view\": \"http://127.0.0.1/api/2.0/reports/140758850535464/printable\",\n \"vendor\": 67186655478\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758850535464,"default":0},"patient":{"type":"integer","example":140758844637185,"default":0},"custom_title":{"type":"string","example":"null"},"report_type":{"type":"string","example":"Lab"},"requisition_number":{"type":"string","example":"25"},"tags":{"type":"array"},"reported_date":{"type":"string","example":"2001-05-05T02:33:22Z"},"grids":{"type":"array","items":{"type":"object","properties":{"accession_number":{"type":"string","example":"0909641947"},"resulted_date":{"type":"string","example":"2009-04-07T05:10:00Z"},"collected_date":{"type":"string","example":"2009-04-06T22:54:00Z"},"status":{"type":"string","example":"FINAL"},"note":{"type":"string","example":""},"results":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","example":"AMENDED"},"value":{"type":"string","example":"0.88"},"value_type":{"type":"string","example":"Numeric"},"text":{"type":"string","example":"1"},"note":{"type":"string","example":"1"},"reference_min":{"type":"string","example":"0.55"},"reference_max":{"type":"string","example":"1.66"},"units":{"type":"string","example":"ng/dL7"},"is_abnormal":{"type":"boolean","example":true,"default":true},"abnormal_flag":{"type":"string","example":"Critical"},"test":{"type":"object","properties":{"code":{"type":"string","example":"FRT54"},"name":{"type":"string","example":"T45-Free"},"loinc":{"type":"string","example":"10007-3"}}},"test_category":{"type":"object","properties":{"value":{"type":"string","example":"12010&LPW1"},"description":{"type":"string","example":"T4, FREE (THYROXINE, FREE)"}}}}}}}}},"images":{"type":"array"},"files":{"type":"array","items":{"type":"object","properties":{"content_type":{"type":"string","example":"application/json; schema=el8_external_content_report"},"external_content":{"type":"object","properties":{}},"base64_content":{},"original_filename":{"type":"string","example":"99914b932bd37a50b983c5e7c90ae93b.JSON"}}}},"practice":{"type":"integer","example":140758835265540,"default":0},"physician":{"type":"integer","example":131074,"default":0},"document_date":{"type":"string","example":"2011-05-05T02:33:22Z"},"chart_date":{"type":"string","example":"2001-05-05T02:33:22Z"},"signed_date":{},"signed_by":{},"created_date":{"type":"string","example":"2022-06-27T10:18:36Z"},"deleted_date":{},"printable_view":{"type":"string","example":"http://127.0.0.1/api/2.0/reports/140758850535464/printable"},"vendor":{"type":"integer","example":67186655478,"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 \"practice\": 140758835265540,\n \"patient\": 140758844637185,\n \"physician\": 131074,\n \"custom_title\": \"null\",\n \"report_type\": \"Lab\",\n \"reported_date\": \"2001-05-05T02:33:22Z\",\n \"document_date\": \"2011-05-05T02:33:22Z\",\n \"chart_date\": \"2001-05-05T02:33:22Z\",\n \"requisition_number\": \"25\",\n \"grids\": [\n {\n \"accession_number\": \"0909641947\",\n \"resulted_date\": \"2009-04-07T05:10:00Z\",\n \"collected_date\": \"2009-04-06T22:54:00Z\",\n \"status\": \"FINAL\",\n \"note\": \"\",\n \"results\": [\n {\n \"status\": \"AMENDED\",\n \"value\": \"0.88\",\n \"value_type\": \"Numeric\",\n \"text\": \"1\",\n \"note\": \"1\",\n \"reference_min\": 0.55,\n \"reference_max\": \"1.66\",\n \"units\": \"ng/dL7\",\n \"is_abnormal\": \"1\",\n \"abnormal_flag\": \"Critical\",\n \"test\": {\n \"code\": \"FRT54\",\n \"name\": \"T45-Free\",\n \"loinc\": \"10007-3\"\n },\n \"test_category\": {\n \"value\": \"12010&LPW1\",\n \"description\": \"T4, FREE (THYROXINE, FREE)\"\n }\n }\n ]\n }\n ],\n \"files\": [{\n \"base64_content\": \"456\",\n \"external_content\": {},\n \"content_type\": \"application/json; schema=el8_external_content_report\",\n \"original_filename\": \"FileName.txt\"\n }],\n \"vendor\": 67186655478\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/reports/\",\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"]}}},"/vitals/":{"get":{"summary":"Find Vitals","description":"","operationId":"find-vitals","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"visit_note","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"non_visit_note","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/vitals/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/vitals/?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/vitals/\",\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 Vitals","description":"","operationId":"create-vital","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice"],"properties":{"patient":{"type":"integer","description":"Patient ID","format":"int32"},"practice":{"type":"integer","description":"Practice ID","format":"int32"},"visit_note":{"type":"integer","description":"Will only allow unsigned visit notes","format":"int32"},"non_visit_note":{"type":"integer","description":"Will only allow unsigned non-visit notes","format":"int32"},"bmi":{"type":"number","description":"Optional. Will be automatically calculated from height and weight otherwise","format":"double"},"height":{"type":"array","description":"Will only allow array of one."},"weight":{"type":"array","description":"Will only allow array of one."},"oxygen":{"type":"array","description":"Will only allow array of one."},"rr":{"type":"array","description":"Will only allow array of one."},"hr":{"type":"array","description":"Will only allow array of one."},"hc":{"type":"array","description":"Will only allow array of one."},"temperature":{"type":"array","description":"Will only allow array of one."},"bp":{"type":"array","description":"Will allow multiple items in array"},"ketone":{"type":"array","description":"Optional. See Vital Object Definition for supported observations."},"bodyfat":{"type":"array","description":"Optional. Will only allow array of one"},"dlm":{"type":"array","description":"Optional. Will only allow array of one"},"bfm":{"type":"array","description":"Optional. Will only allow array of one"},"wc":{"type":"array","description":"Optional. Will only allow array of one"}}}}}},"responses":{"201":{"description":"201","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\n# sending a list of vitals in single call\ndata = {\n \"patient\": 64901939201,\n \"practice\": 65540,\n \"visit_note\": 79923773464,\n \"bmi\": 21.52,\n \"height\": [{\n \"value\": \"70\",\n \"note\": \"no shoes\"\n }],\n \"weight\": [{\n \"value\": \"150\",\n \"note\": \"in shorts\"\n }],\n \"oxygen\": [{\n \"value\": \"98\",\n \"note\": \"good\"\n }],\n \"rr\": [{\n \"value\": \"20\",\n \"note\": \"deep\"\n }],\n \"hr\": [{\n \"value\": \"60\",\n \"note\": \"calm\"\n }],\n \"hc\": [{\n \"value\": \"30\",\n \"note\": \"big\"\n }],\n \"temperature\": [{\n \"value\": \"98\",\n \"note\": \"t-shirt\"\n }],\n \"bp\": [{\n \"systolic\": \"120\",\n \"diastolic\": \"80\",\n \"note\": \"sitting down\"\n }],\n \"ketone\": [\n {\n \"note\": \"\",\n \"value\": \"1.3\"\n }\n ],\n \"bodyfat\": [\n {\n \"note\": \"\",\n \"value\": \"35.9\"\n }\n ],\n \"dlm\": [\n {\n \"note\": \"\",\n \"value\": \"26.9\"\n }\n ],\n \"bfm\": [\n {\n \"note\": \"\",\n \"value\": \"57.0\"\n }\n ],\n \"wc\": [\n {\n \"note\": \"\",\n \"value\": \"47\"\n }\n ]\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/vitals/\",\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"]}}},"/non_visit_notes/":{"get":{"summary":"Find Non-Visit Notes","description":"","operationId":"find-non-visit-notes","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","required":true,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/non_visit_notes/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/non_visit_notes/?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/non_visit_notes/\",\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 Non-Visit Note","description":"","operationId":"create-non-visit-note","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["type","patient","document_date","chart_date"],"properties":{"type":{"type":"string","description":"The type of the non visit note"},"bullets":{"type":"array","description":"The bullets of the non visit note","items":{"properties":{"text":{"type":"string","description":"The text of the bullet"},"author":{"type":"integer","description":"The author of the bullet","format":"int32"},"category":{"type":"string","description":"The category of the bullet","enum":["Problem","Past","Family","Social","Instr","PE","ROS","Med","Data","Assessment","Test","Tx","Narrative","Followup","Reason","Plan","Objective","Hpi","Allergies","Habits","Assessplan","Consultant","Attending","Dateprocedure","Surgical","Orders","Referenced","Procedure"]},"sequence":{"type":"integer","description":"The sequence of the bullet","format":"int32"},"note_document":{"type":"object","description":"A document referenced by the bullet","properties":{"document":{"type":"integer","description":"the id of the document, e.g. the id of the report or order","format":"int32"},"document_summary":{"type":"string","description":"A textual summary of the document. Will show up in the visit note editor view, while the bullet text will be used in views outisde the editor."}}},"note_item":{"type":"object","description":"An item in the clinical record on the left hand side of the chart referenced by the bullet.","properties":{"id":{"type":"string","description":"The id of the item being referenced, e.g. the problem or history id."}}},"handout":{"type":"integer","description":"The id of the handout to attach to this bullet.","format":"int32"},"children":{"type":"array","description":"bullet childrens","items":{"properties":{"text":{"type":"string","description":"The text of the bullet"},"author":{"type":"integer","description":"The author of the bullet","format":"int32"},"category":{"type":"string","description":"The category of the bullet","enum":["Problem","Past","Family","Social","Instr","PE","ROS","Med","Data","Assessment","Test","Tx","Narrative","Followup","Reason","Plan","Objective","Hpi","Allergies","Habits","Assessplan","Consultant","Attending","Dateprocedure","Surgical","Orders","Referenced","Procedure"]},"sequence":{"type":"integer","description":"The sequence of the bullet","format":"int32"},"note_document":{"type":"object","description":"A document referenced by the bullet","properties":{"document":{"type":"integer","description":"the id of the document, e.g. the id of the report or order","format":"int32"},"document_summary":{"type":"string","description":"A textual summary of the document. Will show up in the visit note editor view, while the bullet text will be used in views outisde the editor."}}},"note_item":{"type":"object","description":"An item in the clinical record on the left hand side of the chart referenced by the bullet.","properties":{"id":{"type":"string","description":"The id of the item being referenced, e.g. the problem or history id."}}},"handout":{"type":"integer","description":"The id of the handout to attach to this bullet.","format":"int32"},"children":{"type":"array","description":"bullet childrens","default":[]}},"required":["text","author","category"],"type":"object"}}},"required":["text","author","category"],"type":"object"}},"patient":{"type":"integer","description":"The oid of the patient","format":"int32"},"practice":{"type":"integer","description":"The id of the practice","format":"int32"},"document_date":{"type":"string","description":"The date of the document","format":"date"},"chart_date":{"type":"string","description":"The date of the patient chart","format":"date"},"tags":{"type":"array","description":"The ids of the document tags you want to attach","items":{"type":"integer","format":"int64"}},"note_document":{"type":"array","description":"The ids of the documents and summary"},"note_item":{"type":"array","description":"The ids of the patient items","items":{"type":"integer","format":"int64"}}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758520102937,\n \"type\": \"nonvisit\",\n \"notes\": [\n {\n \"id\": 140758520168536,\n \"author\": 64,\n \"text\": \"New POST non visit\",\n \"version\": 1,\n \"updated_date\": \"2022-05-13T13:25:43Z\"\n }\n ],\n \"bullets\": [\n {\n \"id\": 140758520168536,\n \"author\": 64,\n \"text\": \"New POST non visit\",\n \"version\": 1,\n \"updated_date\": \"2022-05-13T13:25:43Z\"\n }\n ],\n \"tags\": [\n {\n \"code\": \"408289007\",\n \"code_type\": 2,\n \"concept_name\": \"wt-mgmt-referral\",\n \"context\": null,\n \"created_date\": \"2015-07-23T19:30:51Z\",\n \"deleted_date\": \"2019-05-29T00:06:03Z\",\n \"description\": \"Referral to weight management program\",\n \"id\": 58719011162,\n \"practice_created\": null,\n \"snomed_result_code\": null,\n \"value\": \"CQM: Ref to Wt Mgt Program\"\n }\n ],\n \"patient\": 140758510600193,\n \"document_date\": \"2022-05-05T07:50:20Z\",\n \"chart_date\": \"2022-05-05T07:50:20Z\",\n \"signed_date\": null,\n \"signed_by\": null,\n \"created_date\": \"2022-05-13T13:25:43.137904Z\",\n \"deleted_date\": null,\n \"note_documents\": [\n {\n \"id\": 140758834872453,\n \"document\": {\n \"authoring_practice\": 65540,\n \"chart_date\": \"2010-10-21T18:22:35Z\",\n \"created_date\": \"2010-10-21T18:22:35Z\",\n \"deleted_date\": null,\n \"document_date\": \"2010-10-21T18:22:35Z\",\n \"document_type\": 33,\n \"id\": 3342369,\n \"last_modified\": null,\n \"patient\": 1638401,\n \"sign_date\": \"2010-10-21T18:22:35Z\",\n \"signed_by\": 4\n },\n \"summary\": \"some_text\"\n },\n {\n \"id\": 140758835003525,\n \"document\": {\n \"authoring_practice\": 65540,\n \"chart_date\": \"2011-07-19T18:19:19Z\",\n \"created_date\": \"2013-04-09T18:38:04Z\",\n \"deleted_date\": null,\n \"document_date\": \"2011-07-19T18:19:19Z\",\n \"document_type\": 26,\n \"id\": 5046298,\n \"last_modified\": null,\n \"patient\": 1638401,\n \"sign_date\": \"2011-07-19T18:19:19Z\",\n \"signed_by\": 4\n },\n \"summary\": \"some_text\"\n }\n ],\n \"note_item\": [\n {\n \"id\": 1407585389143534,\n \"item\": {\n \"id\": 140000000000000,\n \"created_date\": null,\n \"deleted_date\": null,\n \"patient\": 1638401,\n \"type\": \"PatientHistoryItem\",\n \"is_confidential\": false\n }\n }\n ]\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758520102937,"default":0},"type":{"type":"string","example":"nonvisit"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758520168536,"default":0},"author":{"type":"integer","example":64,"default":0},"text":{"type":"string","example":"New POST non visit"},"version":{"type":"integer","example":1,"default":0},"updated_date":{"type":"string","example":"2022-05-13T13:25:43Z"}}}},"bullets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758520168536,"default":0},"author":{"type":"integer","example":64,"default":0},"text":{"type":"string","example":"New POST non visit"},"version":{"type":"integer","example":1,"default":0},"updated_date":{"type":"string","example":"2022-05-13T13:25:43Z"}}}},"tags":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"408289007"},"code_type":{"type":"integer","example":2,"default":0},"concept_name":{"type":"string","example":"wt-mgmt-referral"},"context":{},"created_date":{"type":"string","example":"2015-07-23T19:30:51Z"},"deleted_date":{"type":"string","example":"2019-05-29T00:06:03Z"},"description":{"type":"string","example":"Referral to weight management program"},"id":{"type":"integer","example":58719011162,"default":0},"practice_created":{},"snomed_result_code":{},"value":{"type":"string","example":"CQM: Ref to Wt Mgt Program"}}}},"patient":{"type":"integer","example":140758510600193,"default":0},"document_date":{"type":"string","example":"2022-05-05T07:50:20Z"},"chart_date":{"type":"string","example":"2022-05-05T07:50:20Z"},"signed_date":{},"signed_by":{},"created_date":{"type":"string","example":"2022-05-13T13:25:43.137904Z"},"deleted_date":{},"note_documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758834872453,"default":0},"document":{"type":"object","properties":{"authoring_practice":{"type":"integer","example":65540,"default":0},"chart_date":{"type":"string","example":"2010-10-21T18:22:35Z"},"created_date":{"type":"string","example":"2010-10-21T18:22:35Z"},"deleted_date":{},"document_date":{"type":"string","example":"2010-10-21T18:22:35Z"},"document_type":{"type":"integer","example":33,"default":0},"id":{"type":"integer","example":3342369,"default":0},"last_modified":{},"patient":{"type":"integer","example":1638401,"default":0},"sign_date":{"type":"string","example":"2010-10-21T18:22:35Z"},"signed_by":{"type":"integer","example":4,"default":0}}},"summary":{"type":"string","example":"some_text"}}}},"note_item":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":1407585389143534,"default":0},"item":{"type":"object","properties":{"id":{"type":"integer","example":140000000000000,"default":0},"created_date":{},"deleted_date":{},"patient":{"type":"integer","example":1638401,"default":0},"type":{"type":"string","example":"PatientHistoryItem"},"is_confidential":{"type":"boolean","example":false,"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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n# sending only required data\ndata = {\n \"type\": \"nonvisit\",\n \"bullets\": [\n {\n \"author\": 64,\n \"text\": \"this is phone note\"\n }\n ],\n \"patient\": 123467,\n \"practice\": 131074,\n \"document_date\": \"2017-03-05T07:22:13Z\",\n \"chart_date\": \"2017-03-05T07:22:13Z\",\n \"tags\": [\n 365784\n ],\n \"note_documents\": [\n {\n \"document\": 3342369,\n \"document_summary\": \"some_text\"\n },\n {\n \"document\": 5046298,\n \"document_summary\": \"some_text\"\n }\n ],\n \"note_items\": [\n 140000000000000\n ]\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/non_visit_notes/\",\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"]}}},"/practices/":{"get":{"summary":"Find Practices","description":"","operationId":"find-practices","parameters":[{"name":"Authorization","in":"header","required":true,"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/practices/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/family_histories/":{"get":{"summary":"Find Family Histories","description":"","operationId":"find-family-histories","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/family_histories/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/family_histories/?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/family_histories/\",\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 Family History","description":"","operationId":"create-family-history","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["relationship","patient"],"properties":{"relationship":{"type":"string"},"text":{"type":"string"},"icd9_code":{"type":"string"},"snomed_code":{"type":"string"},"patient":{"type":"string","description":"Patient ID"},"rank":{"type":"string"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\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 \"relationship\": \"Mother\",\n \"snomed_code\": \"49436004\",\n \"patient\": 64901939201\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/family_histories/\",\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)\n\n# if you dont have snomed, you can send us free text\n# for example:\ndata = {\n \"relationship\": \"Mother\",\n \"text\": \"Cancer\",\n \"patient\": 64901939201\n}\n"}],"samples-languages":["python"]}}},"/visit_notes/{id}/":{"get":{"summary":"Get Visit Note","description":"","operationId":"get-visit-note","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}"}}}}},"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/visit_notes/64184451073/\",\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 Visit Note","description":"","operationId":"delete-visit-note","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","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/visit_notes/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}},"patch":{"summary":"Sign Visit Note","description":"Users can sign a draft visit note using PATCH requests","operationId":"sign-visit-note","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["signed_date","signed_by"],"properties":{"signed_date":{"type":"string","description":"The time at which the visit note was signed. Cannot be in the future. (Requires Special Permission).","format":"date"},"signed_by":{"type":"string","description":"The user id of the provider who signed the visit note. (Requires special permission)."},"signatures":{"type":"array","description":"Requires special co-signature permissions. If enabled, users can add co-signatures to the visit note by providing them in this field.","items":{"properties":{"user":{"type":"string","description":"ID of the user whose signature this represents"},"user_name":{"type":"string","description":"The full name and title of the user whose signature this represents"},"signed_date":{"type":"string","description":"date-time timestamp for when this signature occurred","format":"date"},"role":{"type":"string","description":"the function of the signer","enum":["'cosigner'","'rendering_provider'","'amender'"]},"comments":{"type":"string","description":"additional comments"}},"type":"object"}}}}}}},"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}},"/bills/":{"get":{"summary":"Find Bills","description":"","operationId":"find-bills","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"from_service_date","in":"query","schema":{"type":"string","format":"date"}},{"name":"to_service_date","in":"query","schema":{"type":"string","format":"date"}},{"name":"visit_note_id","in":"query","description":"The id of the visit note this bill is attached to","schema":{"type":"integer","format":"int32"}},{"name":"signing_physician","in":"query","description":"The id of the physician who signed off on the visit note that is associated with this bill.","schema":{"type":"integer","format":"int32"}},{"name":"assigned_physician","in":"query","description":"The id of the physician who is assigned to this bill, could be different from the signer.","schema":{"type":"integer","format":"int32"}},{"name":"practice","in":"query","description":"The practice that is responsible for the bill","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/bills/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/bills/?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/bills/\",\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 Bill","description":"Create a new bill for an associated visit note","operationId":"create-bill","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["service_location","visit_note","patient","practice","physician"],"properties":{"service_location":{"type":"integer","description":"Billing service location Id","format":"int32"},"visit_note":{"type":"integer","description":"Visit Note Id","format":"int32"},"patient":{"type":"integer","description":"Patient Id","format":"int32"},"practice":{"type":"integer","description":"Practice Id","format":"int32"},"physician":{"type":"integer","description":"Physician Id","format":"int32"},"cpts":{"type":"array","description":"CPTs objects for bill","items":{"properties":{"cpt":{"type":"string","description":"CPT code"},"modifier_1":{"type":"string","description":"Two character long modifier string for slot #1"},"modifier_2":{"type":"string","description":"Two character long modifier string for slot #2"},"modifier_3":{"type":"string","description":"Two character long modifier string for slot #3"},"modifier_4":{"type":"string","description":"Two character long modifier string for slot #4"},"unit_charge":{"type":"number","description":"Charge for the procedure (e.g. 50.25 for $50.25)","format":"double"},"units":{"type":"number","description":"Number of procedure units to charge for","format":"double"},"dxs":{"type":"array","description":"Diagnoses to associate with the procedure","items":{"properties":{"icd10_code":{"type":"string","description":"ICD10 code for the diagnosis"},"icd9_codes":{"type":"array","description":"List of ICD9 codes to associate with the diagnosis","default":[],"items":{"type":"string"}}},"required":["icd10_code"],"type":"object"}}},"required":["cpt"],"type":"object"}},"billing_provider":{"type":"integer","description":"Billing Physician Id","format":"int32"},"rendering_provider":{"type":"integer","description":"Rendering Physician Id","format":"int32"},"supervising_provider":{"type":"integer","description":"Provider id for the provider who has undertaken primary responsibility for the patient's health","format":"int32"},"referring_provider":{"type":"object","description":"Billing referring provider","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["AK","AL","AR","AS","AZ","CA","CO","CT","DC","DE","FL","GA","GU","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MP","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","PR","RI","SC","SD","TN","TX","UM","UT","VA","VI","VT","WA","WI","WV","WY"]},"npi":{"type":"string","description":"10 digit provider or group NPI","default":"null"}}},"ordering_provider":{"type":"object","description":"Provider who orders non-physician services for the patient","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["AK","AL","AR","AS","AZ","CA","CO","CT","DC","DE","FL","GA","GU","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MP","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","PR","RI","SC","SD","TN","TX","UM","UT","VA","VI","VT","WA","WI","WV","WY"]},"npi":{"type":"string","description":"10 digit provider or group NPI","default":"null"}}},"prior_authorization":{"type":"string","description":"prior authorization (50 chars)"},"payment_amount":{"type":"number","description":"Dollar amount of patient payment","format":"double"},"notes":{"type":"string","description":"Additional Billing Notes"}}}}}},"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}},"/medications/{id}/":{"get":{"summary":"Get Medication","description":"","operationId":"get-medication","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\": 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}"}},"schema":{"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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/medications/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/appointments/rooms":{"get":{"summary":"Find Appointment Rooms","description":"","operationId":"find-appointment-rooms","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/appointments/rooms/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/appointments/rooms/?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/rooms/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/app/subscriptions/":{"post":{"summary":"Subscribe to a resource updates","description":"","operationId":"subscribe-to-a-resource-updates","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"resource":{"type":"string","description":"The resource name"},"target":{"type":"string","description":"The target URL where the data will be sent when an update occurs"},"properties":{"type":"string","description":"Properties specific to this subscription. See below for usage.","default":"null","format":"json"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"resource\": \"patients\",\n \"target\": \"https://requestb.in/18pqnk11\",\n \"created_date\": \"2017-01-01T01:05:00Z\",\n \"deleted_date\": null\n}"}},"schema":{"type":"object","properties":{"resource":{"type":"string","example":"patients"},"target":{"type":"string","example":"https://requestb.in/18pqnk11"},"created_date":{"type":"string","example":"2017-01-01T01:05:00Z"},"deleted_date":{}}}}}},"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 \"resource\": \"patients\",\n \"target\": \"https://requestb.in/18pqnk11\" \t\t# Target url as example, insert your own\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/app/subscriptions/\",\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 Subscriptions","description":"","operationId":"find-subscriptions","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 3,\n \"next\": null,\n \"previous\": null,\n \"results\": [ // list of objects\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/app/subscriptions/\",\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/app/subscriptions/ \\\n> -H \"Authorization: Bearer SftJozdkIuEObwOvI6WpSN6jndCHad\"","name":"cURL"}],"samples-languages":["python","curl"]}}},"/app/published_events/":{"get":{"summary":"Find published events","description":"","operationId":"find-published-events","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/app/published_events/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/app/published_events/?limit=10\",\n \"results\": [ // list of objects\n {\n \"resource\": \"patients\",\n \"target\": \"https://requestb.in/18pqnk11\",\n \"status_code\": null,\n \"received_date\": \"2016-11-22T08:32:10Z\",\n \"processed_date\": null\n\t\t},\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/app/published_events/\",\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/app/published_events/ \\\n> -H \"Authorization: Bearer SftJozdkIuEObwOvI6WpSN6jndCHad\"","name":"cURL"}],"samples-languages":["python","curl"]}}},"/languages/":{"get":{"summary":"Find Languages","description":"Retrieve all available languages","operationId":"find-languages","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/languages/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/languages/?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/languages/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/reports-ext/":{"post":{"summary":"Create External Report","description":"","operationId":"create-external-report","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"201","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\n# sending only required data\ndata = {\n \"custom_title\": \"Custom Title\",\n \"report_type\": \"Misc\",\n \"chart_date\": \"2012-04-06T22:01:08Z\", # when the document should show up in the chart feed. usually the same as `document_date`\n \"document_date\": \"2012-04-06T22:01:08Z\", # actual date of the document\n \"patient\": 2433235,\n 'physician': 131074,\n 'files': [\n {\n \"external_content\": {\n \"summary\": \"this is summary line 1\\nthis is line2\",\n \"referenced_url\": \"https://external.data.com/path_to_data\"\n }\n }\n ]\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/reports/\",\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"]}}},"/recurring_event_groups/{id}/":{"get":{"summary":"Get Recurring Event Group","description":"","operationId":"get-recurring-event-group","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"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 = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/recurring_event_groups/234234/\",\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 Recurring Event Group","description":"","operationId":"delete-recurring-event-group","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":"{}"}},"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\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/recurring_event_groups/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/appointments/id/":{"patch":{"summary":"Update Appointment Slot","description":"","operationId":"update-appointment-slot","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient"],"properties":{"patient":{"type":"integer","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\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# The main 2 use cases for PATCH is patient reservation and cancellation\n\n# Setting the patient field to a valid patient will \"reserve\" the appointment slot for the patient\n# Setting the patient to null will cancel the reservation\n\n# if you only need to update the patient field, use the PATCH method\ndata = {\n \"patient\": 123123\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"]}},"put":{"summary":"Update Appointment Slot","description":"","operationId":"update-appointment-slot-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\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# setting a patient will \"reserve\" the appointment slot for the patient\n# if you need to update other fields as well, use the PUT method\ndata = {\n \"patient\": 123123,\n \"description\": \"this is a new desc\"\n}\n\nresp = requests.put(\"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"]}}},"/appointments/slots/":{"options":{"summary":"Create Appointment Slot","description":"","operationId":"create-appointment-slot","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"201","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\n# sending only required data\n# the following creates an \"unreserved\" appointment slot\ndata = {\n \"scheduled_date\": \"2016-10-13T11:15:00Z\",\n \"reason\": \"Follow-Up\",\n \"physician\": 131074,\n \"practice\": 65540,\n \"time_slot_type\": \"appointment_slot\"\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"]}}},"/recurring_event_groups/":{"post":{"summary":"Create Recurring Event Group","description":"","operationId":"create-recurring-event-group","parameters":[{"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\ndata = {\n \"practice\": 12323,\n \"reason\": \"followup\",\n \"time_slot_type\": \"appointment_slot\",\n \"schedules\": [\n {\n \"series_start\": \"2000-01-01\",\n \"series_stop\": \"2000-02-01\",\n \"event_time\": \"10:30:00\",\n \"physician\": 342343,\n \"duration\": 15,\n \"repeats\": \"Weekly\",\n \"dow_monday\": True,\n \"dow_tuesday\": False,\n \"dow_wednesday\": False,\n \"dow_thursday\": False,\n \"dow_friday\": False,\n \"dow_saturday\": False,\n \"dow_sunday\": False,\n \"description\": \"test description\"\n }\n ]\n}\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/recurring_event_groups/\",\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)\n\n"}],"samples-languages":["python"]}},"get":{"summary":"Find Recurring Event Groups","description":"","operationId":"find-recurring-event-group","parameters":[{"name":"physician","in":"query","description":"The ids of providers associated with these recurring event groups.","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice","in":"query","description":"The practice for these recurring event groups.","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"reason","in":"query","description":"The name of the recurring event group.","schema":{"type":"string"}},{"name":"start_date","in":"query","description":"Start of range to filter event groups by schedule date. Returns any group with schedules that don't end before this date.","schema":{"type":"string","format":"date"}},{"name":"end_date","in":"query","description":"End of range to filter event groups by schedule date. Returns any group with schedules that don't start after this date.","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/recurring_event_groups/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/recurring_event_groups/?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}},"/recurring_event_groups/:id/":{"put":{"summary":"Update Recurring Event Group","description":"","operationId":"update-recurring-event-group","parameters":[{"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}"}}}}},"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 \"reason\": \"followup\",\n \"schedules\": [\n {\n \"series_start\": \"2000-01-01\",\n \"series_stop\": \"2000-02-01\",\n \"event_time\": \"10:30:00\",\n \"physician\": 342343,\n \"duration\": 15,\n \"repeats\": \"Weekly\",\n \"dow_monday\": True,\n \"dow_tuesday\": False,\n \"dow_wednesday\": False,\n \"dow_thursday\": False,\n \"dow_friday\": False,\n \"dow_saturday\": False,\n \"dow_sunday\": False,\n \"description\": \"test description\"\n }\n ]\n}\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/recurring_event_groups/\",\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)\n\n"}],"samples-languages":["python"]}}},"/pharmacies/{ncpdpid}/":{"get":{"summary":"Get Pharmacy","description":"","operationId":"get-pharmacy","parameters":[{"name":"ncpdpid","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 \"ncpdpid\": 0059390,\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/pharmacies/0059390/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/broadcast_messages/":{"get":{"summary":"Find BroadcastMessages","description":"","operationId":"find-broadcastmessages","parameters":[{"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\": [ // list of objects\n {\n 'id': 64811630595,\n 'message': 'View your weekly Care Gaps Assessment Report',\n 'referenced_url': 'https://portal.myenterprise.com/report?id=123456',\n 'referenced_url_description': 'Care Gaps Assessment Report',\n 'message_start': \"2016-10-10T17:00:00\",\n 'message_end': \"2016-10-17T17:00:00\",\n 'created_date': \"2016-10-09T12:52:33\",\n 'target_practices': [65540],\n 'target_users': []\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/broadcast_messages/\",\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"]}},"post":{"summary":"Create a BroadcastMessage","description":"","operationId":"create-a-broadcastmessage","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n 'id': 64811630595,\n 'message': 'View your weekly ',\n 'referenced_url': 'https://portal.myenterprise.com/report?id=123456',\n 'referenced_url_description': 'Care Gaps Assessment Report',\n 'message_start': \"2016-10-10T17:00:00\",\n 'message_end': \"2016-10-17T17:00:00\",\n 'created_date': \"2016-10-09T12:52:33\",\n 'target_practices': [65540],\n 'target_users': []\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 'message': 'View your weekly Care Gaps Assessment Report',\n 'referenced_url': 'https://portal.myenterprise.com/report?id=123456',\n 'referenced_url_description': 'Care Gaps Assessment Report',\n 'message_start': \"2016-10-10T17:00:00\",\n 'message_end': \"2016-10-17T17:00:00\",\n 'target_practices': [65540],\n 'target_users': [],\n}\n\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/broadcast_messages/\",\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"]}}},"/broadcast_messages/{id}/":{"delete":{"summary":"Delete a BroadcastMessage","description":"","operationId":"delete-a-broadcastmessage","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":"{}"}},"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\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/broadcast_messages/64811630595/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/app/subscriptions/{id}/":{"delete":{"summary":"Delete a Subscription","description":"","operationId":"delete-a-subscription","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"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.delete(\"https://sandbox.elationemr.com/api/2.0/app/subscriptions/64811630598/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/vitals/:id/":{"patch":{"summary":"Update Vitals","description":"","operationId":"update-vitals-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 64184451073,\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 \"oxygen\": [{\n \"value\": \"98\",\n \"note\": \"good\"\n }]\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/vitals/64184451073/\",\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"]}},"put":{"summary":"Update Vitals","description":"","operationId":"update-vitals","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice","bp","height","weight","oxygen","rr","hr","hc","temperature"],"properties":{"patient":{"type":"integer","description":"Patient ID","format":"int32"},"practice":{"type":"integer","description":"Practice ID","format":"int32"},"bmi":{"type":"number","description":"Optional. Will be automatically calculated from height and weight otherwise","format":"double"},"bp":{"type":"array","description":"Will allow multiple items in array."},"height":{"type":"array","description":"Will only allow array of one."},"weight":{"type":"array","description":"Will only allow array of one."},"oxygen":{"type":"array","description":"Will only allow array of one."},"rr":{"type":"array","description":"Will only allow array of one."},"hr":{"type":"array","description":"Will only allow array of one."},"hc":{"type":"array","description":"Will only allow array of one."},"temperature":{"type":"array","description":"Will only allow array of one."},"ketone":{"type":"array","description":"Optional. Will only allow array of one"},"bodyfat":{"type":"array","description":"Optional. Will only allow array of one"},"dlm":{"type":"array","description":"Optional. Will only allow array of one"},"bfm":{"type":"array","description":"Optional. Will only allow array of one"},"wc":{"type":"array","description":"Optional. Will only allow array of one"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 64184451073,\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 a list of vitals in single call\ndata = {\n \"patient\": 64901939201,\n \"practice\": 65540,\n \"visit_note\": 79923773464,\n \"bmi\": 21.52,\n \"height\": [{\n \"value\": \"70\",\n \"note\": \"no shoes\"\n }],\n \"weight\": [{\n \"value\": \"150\",\n \"note\": \"in shorts\"\n }],\n \"oxygen\": [{\n \"value\": \"98\",\n \"note\": \"good\"\n }],\n \"rr\": [{\n \"value\": \"20\",\n \"note\": \"deep\"\n }],\n \"hr\": [{\n \"value\": \"60\",\n \"note\": \"calm\"\n }],\n \"hc\": [{\n \"value\": \"30\",\n \"note\": \"big\"\n }],\n \"temperature\": [{\n \"value\": \"98\",\n \"note\": \"t-shirt\"\n }],\n \"bp\": [{\n \"systolic\": \"120\",\n \"diastolic\": \"80\",\n \"note\": \"sitting down\"\n }],\n \"ketone\": [\n {\n \"note\": \"\",\n \"value\": \"1.3\"\n }\n ],\n \"bodyfat\": [\n {\n \"note\": \"\",\n \"value\": \"35.9\"\n }\n ],\n \"dlm\": [\n {\n \"note\": \"\",\n \"value\": \"26.9\"\n }\n ],\n \"bfm\": [\n {\n \"note\": \"\",\n \"value\": \"57.0\"\n }\n ],\n \"wc\": [\n {\n \"note\": \"\",\n \"value\": \"47\"\n }\n ]\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/vitals/64184451073\",\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"]}}},"/insurance_plans/{id}/":{"get":{"summary":"Get Insurance Plan","description":"","operationId":"get-insurance-plan","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\": 70850380143,\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/insurance_plans/70850380143/\",\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 Insurance Plan","description":"","operationId":"delete-insurance-plan","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":""}}}}},"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.delete(\"https://sandbox.elationemr.com/api/2.0/insurance_plans/70850380143/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/insurance_companies/":{"get":{"summary":"Find Insurance Companies","description":"","operationId":"find-insurance-companies","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"carrier","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/insurance_companies/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/insurance_companies/?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/insurance_companies/\",\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 Insurance Company","description":"","operationId":"create-insurance-company","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","carrier"],"properties":{"practice":{"type":"integer","description":"ID of practice this is for","format":"int64"},"carrier":{"type":"string","description":"string(200). required"},"address":{"type":"string","description":"string(200). optional"},"suite":{"type":"string","description":"string(35). nullable. optional"},"city":{"type":"string","description":"string(50). optional"},"state":{"type":"string","description":"string(2). optional"},"zip":{"type":"string","description":"string(10). optional"},"phone":{"type":"string","description":"string(20). nullable. optional"},"extension":{"type":"string","description":"string(6). nullable. optional"},"payer_id":{"type":"string","description":"string(200). nullable. optional. The Payer ID of the insurance carrier."},"external_vendor_id":{"type":"string","description":"string(200). optional. nullable. The ID used by a vendor to represent the carrier in their system."},"is_credentialed":{"type":"boolean","description":"bool. optional. nullable. Whether or not the practice has credentials to submit claims to the carrier."},"aliases":{"type":"string","description":"string(300). optional. nullable. A string used to create alternate terms that will come up in search results (for example \"BC\" for Blue Cross)."},"insurance_type":{"type":"string","description":"enum. optional. nullable. An enumerator representing the type of insurance the carrier offers.","enum":[null,"commercial","medicare","medicare_supplement","medicare_advantage","medicaid","managed_medicaid","self_pay","capitated","workers_compensation_third_party_liability"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 70850314606,\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 \"practice\": 12323,\n \"carrier\": \"Test Carrier\",\n \"address\": \"12345 Test Way\",\n \"suite\": \"Test Suite\",\n \"city\": \"Test City\",\n \"state\": \"WA\",\n \"zip\": \"12345\",\n \"phone\": \"1112223333\",\n \"extension\": \"234567\"\n}\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/insurance_companies/\",\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)\n\n"}],"samples-languages":["python"]}}},"/insurance_plans/":{"get":{"summary":"Find Insurance Plans","description":"","operationId":"find-insurance-plans","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"insurance_company","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/insurance_plans/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/insurance_plans/?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/insurance_plans/\",\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 Insurance Plan","description":"","operationId":"create-insurance-plan","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","insurance_company","name"],"properties":{"practice":{"type":"integer","description":"ID of practice this is for","format":"int64"},"insurance_company":{"type":"integer","description":"insurance company to tie the plan to.","format":"int64"},"name":{"type":"string","description":"string(200). required"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 70850380143,\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 \"practice\": 12323,\n \"insurance_company\": 70850314606,\n \"name\": \"Gold PPO 1234\"\n}\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/insurance_plans/\",\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)\n\n"}],"samples-languages":["python"]}}},"/insurance_companies/{id}/":{"get":{"summary":"Get Insurance Company","description":"","operationId":"get-insurance-company","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\": 70850314606,\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/insurance_companies/70850314606/\",\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 Insurance Company","description":"","operationId":"delete-insurance-company","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":""}}}}},"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.delete(\"https://sandbox.elationemr.com/api/2.0/insurance_companies/70850314606/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/insurance_companies/:id/":{"patch":{"summary":"Update Insurance Company","description":"","operationId":"update-insurance-company-2","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"practice":{"type":"integer","description":"ID of practice this is for. Should match what currently exists","format":"int64"},"carrier":{"type":"string","description":"string(200)"},"address":{"type":"string","description":"string(200). optional"},"suite":{"type":"string","description":"string(35). nullable. optional"},"city":{"type":"string","description":"string(50). optional"},"state":{"type":"string","description":"string(2). optional"},"zip":{"type":"string","description":"string(10). optional"},"phone":{"type":"string","description":"string(20). nullable. optional"},"extension":{"type":"string","description":"string(6). nullable. optional"},"payer_id":{"type":"string","description":"string(200). nullable. optional. The Payer ID of the insurance carrier."},"external_vendor_id":{"type":"string","description":"string(200). optional. nullable. The ID used by a vendor to represent the carrier in their system."},"is_credentialed":{"type":"boolean","description":"bool. optional. nullable. Whether or not the practice has credentials to submit claims to the carrier."},"aliases":{"type":"string","description":"string(300). optional. nullable. A string used to create alternate terms that will come up in search results (for example \"BC\" for Blue Cross)."},"insurance_type":{"type":"string","description":"enum. optional. nullable. An enumerator representing the type of insurance the carrier offers.","enum":[null,"commercial","medicare","medicare_supplement","medicare_advantage","medicaid","managed_medicaid","self_pay","capitated","workers_compensation_third_party_liability"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 70850314606,\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 \"carrier\": \"Test Carrier\",\n \"address\": \"67890 Test Way\"\n}\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/insurance_companies/70850314606/\",\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)\n\n"}],"samples-languages":["python"]}},"put":{"summary":"Update Insurance Company","description":"","operationId":"update-insurance-company-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","carrier"],"properties":{"practice":{"type":"integer","description":"ID of practice this is for. Should match what currently exists","format":"int64"},"carrier":{"type":"string","description":"string(200). required"},"address":{"type":"string","description":"string(200). optional"},"suite":{"type":"string","description":"string(35). nullable. optional"},"city":{"type":"string","description":"string(50). optional"},"state":{"type":"string","description":"string(2). optional"},"zip":{"type":"string","description":"string(10). optional"},"phone":{"type":"string","description":"string(20). nullable. optional"},"extension":{"type":"string","description":"string(6). nullable. optional"},"payer_id":{"type":"string","description":"string(200). nullable. optional. The Payer ID of the insurance carrier."},"external_vendor_id":{"type":"string","description":"string(200). optional. nullable. The ID used by a vendor to represent the carrier in their system."},"is_credentialed":{"type":"boolean","description":"bool. optional. nullable. Whether or not the practice has credentials to submit claims to the carrier."},"aliases":{"type":"string","description":"string(300). optional. nullable. A string used to create alternate terms that will come up in search results (for example \"BC\" for Blue Cross)."},"insurance_type":{"type":"string","description":"enum. optional. nullable. An enumerator representing the type of insurance the carrier offers.","enum":[null,"commercial","medicare","medicare_supplement","medicare_advantage","medicaid","managed_medicaid","self_pay","capitated","workers_compensation_third_party_liability"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 70850314606,\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 \"practice\": 12323,\n \"carrier\": \"Test Carrier\",\n \"address\": \"67890 Test Way\",\n \"suite\": \"Test Suite\",\n \"city\": \"Test City\",\n \"state\": \"WA\",\n \"zip\": \"12345\",\n \"phone\": \"1112223333\",\n \"extension\": \"234567\",\n \"payer_id\": \"4307\",\n \"external_vendor_id\": \"UNI30\",\n \"is_credentialed\": True,\n \"aliases\": \"BC, Blue C, BCross\",\n \"insurance_type\": \"commercial\"\n}\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/insurance_companies/70850314606/\",\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)\n\n"}],"samples-languages":["python"]}}},"/insurance_plans/:id/":{"put":{"summary":"Update Insurance Plan","description":"","operationId":"update-insurance-plan","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","insurance_company","name"],"properties":{"practice":{"type":"integer","description":"ID of practice this is for. Should match what currently exists","format":"int64"},"insurance_company":{"type":"integer","description":"insurance company to tie the plan to. Should match what currently exists.","format":"int64"},"name":{"type":"string","description":"string(200). required"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 70850380143,\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 \"practice\": 12323,\n \"insurance_company\": 70850314606,\n \"name\": \"Bronze PPO 1234\"\n}\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/insurance_plans/\",\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)\n\n"}],"samples-languages":["python"]}},"patch":{"summary":"Update Insurance Plan","description":"","operationId":"update-insurance-plan-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"practice":{"type":"integer","description":"ID of practice this is for. Should match what currently exists","format":"int64"},"insurance_company":{"type":"integer","description":"insurance company to tie the plan to. Should match what currently exists.","format":"int64"},"name":{"type":"string","description":"string(200)."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 70850380143,\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 \"name\": \"Bronze PPO 1234\"\n}\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/insurance_plans/\",\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)\n\n"}],"samples-languages":["python"]}}},"/patients/":{"post":{"summary":"Create Patient","description":"","operationId":"create-patient","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["first_name","last_name","dob","sex","primary_physician","caregiver_practice"],"properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"dob":{"type":"string","format":"date"},"sex":{"type":"string","description":"Male, Female, or Unknown (displays as Unspecified in app)"},"primary_physician":{"type":"integer","description":"The primary physician assigned to this physician within the practice","format":"int32"},"caregiver_practice":{"type":"integer","format":"int32"},"address":{"type":"object","required":["address_line1"],"properties":{"address_line1":{"type":"string"},"address_line2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"}}},"phones":{"type":"array","items":{"properties":{"phone":{"type":"string","description":"String or Integer"},"phone_type":{"type":"string"}},"required":["phone","phone_type"],"type":"object"}},"emails":{"type":"array","items":{"properties":{"email":{"type":"string"}},"required":["email"],"type":"object"}},"insurances":{"type":"array","items":{"properties":{"member_id":{"type":"string"}},"required":["member_id"],"type":"object"}}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 67176497153, \n // See Object Definition\n}"}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n \"field_name\": [\"error message\"]\n}\n\n// for example: (if caregiver_practice was not provided)\n{\n \"caregiver_practice\": [\"This field is required.\"]\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\nnew_patient = {\n \"first_name\": \"test\",\n \"last_name\": \"patient\",\n \"sex\": \"Male\",\n \"dob\": \"1955-01-01\",\n \"primary_physician\": 131074,\n \"caregiver_practice\": 65540\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/patients/\",\n data=json.dumps(new_patient),\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 Patients","description":"Query against all patients in a practice.","operationId":"find-patients","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}},{"name":"first_name","in":"query","schema":{"type":"string"}},{"name":"last_name","in":"query","schema":{"type":"string"}},{"name":"dob","in":"query","schema":{"type":"string"}},{"name":"sex","in":"query","schema":{"type":"string"}},{"name":"insurance_company","in":"query","schema":{"type":"string"}},{"name":"insurance_plan","in":"query","schema":{"type":"string"}},{"name":"group_id","in":"query","schema":{"type":"integer","format":"int64"}},{"name":"member_id","in":"query","schema":{"type":"integer","format":"int64"}},{"name":"master_patient","in":"query","schema":{"type":"integer","format":"int64"}},{"name":"practice","in":"query","schema":{"type":"integer","format":"int64"}},{"name":"last_modified__gt","in":"query","schema":{"type":"string","format":"date"}},{"name":"last_modified__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"last_modified__lt","in":"query","schema":{"type":"string","format":"date"}},{"name":"last_modified__lte","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/patients/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/patients/?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/patients/\",\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/ \\\n> -H \"Authorization: Bearer SftJozdkIuEObwOvI6WpSN6jndCHad\"","name":"cURL"}],"samples-languages":["python","curl"]}}},"/reports/{id}/printable":{"get":{"summary":"Retrieve the Printable Report View","description":"Providers are able to print a view of the lab report including the data provided behind this endpoint.\n\nEach report response includes a link to obtain this view; a PDF file.\n\nWhen you GET the link you'll receive a response with application/pdf and the bytes of the PDF.","operationId":"retrieve-the-printable-report-view","parameters":[{"name":"report_id","in":"path","description":"The Report's id.","schema":{"type":"integer","format":"int32"},"required":true},{"name":"print_header","in":"query","description":"The id of the print header that you want to use for the printable view","schema":{"type":"integer","format":"int32"}}],"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\nimport json\n\naccess_token = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\nreport_id = 2345\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/reports/{report_id}/printable\".format(report_id=report_id),\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nwith open('/tmp/out.pdf', 'wb') as outpdf:\n outpdf.write(resp.content)"}],"samples-languages":["python"]}}},"/ccda/{patient_id}":{"get":{"summary":"Get CCDA","description":"We include an endpoint to allow you to retrieve a CCDA v2.1 representation of the data in a patient's chart.","operationId":"get-ccda","parameters":[{"name":"patient_id","in":"path","description":"The id of the patient chart.","schema":{"type":"string"},"required":true},{"name":"start_date","in":"query","description":"iso8601 datetime before which we'll exclude data from the CCDA output. See note in supported sections below.","schema":{"type":"string","format":"date"}},{"name":"end_date","in":"query","description":"iso8601 datetime after which we'll exclude data from the CCDA output. See note in supported sections below.","schema":{"type":"string","format":"date"}},{"name":"sections","in":"query","description":"Comma separated list of sections. See supported sections below.","schema":{"type":"array","items":{"type":"string"}}},{"name":"template","in":"query","description":"The template used to display the desired information on the CCDA","schema":{"type":"string"}}],"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/ccda/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/app/published_events/{event_id}/":{"patch":{"summary":"Update published event","description":"","operationId":"update-published-event-1","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}},{"name":"event_id","in":"path","description":"The event ID of the published event. See Event object","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status_code":{"type":"string","description":"nullable"},"processed_date":{"type":"string"},"error_content":{"type":"string","description":"nullable"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n\t// See Object Definition\n}"}},"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\ndata = {\n \"status_code\": 400\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/app/published_events/123/\",\n data=json.dumps(data),\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/app/published_events/ \\\n> -H \"Authorization: Bearer SftJozdkIuEObwOvI6WpSN6jndCHad\"","name":"cURL"}],"samples-languages":["python","curl"]}},"put":{"summary":"Update published event","description":"","operationId":"update-published-event","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}},{"name":"event_id","in":"path","description":"The event ID of the published event. See Event object","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["status_code","processed_date","error_content"],"properties":{"status_code":{"type":"string","description":"nullable"},"processed_date":{"type":"string"},"error_content":{"type":"string","description":"nullable"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/app/published_events/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/app/published_events/?limit=10\",\n \"results\": [ // list of objects\n {\n \"resource\": \"patients\",\n \"target\": \"https://requestb.in/18pqnk11\",\n \"status_code\": null,\n \"received_date\": \"2016-11-22T08:32:10Z\",\n \"processed_date\": null\n\t\t},\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\ndata = {\n \"status_code\": 400,\n \"processed_date\": \"2016-11-22T08:32:10Z\",\n \"error_content\": \"Failed to update.\"\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/app/published_events/123/\",\n data=json.dumps(data),\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/app/published_events/ \\\n> -H \"Authorization: Bearer SftJozdkIuEObwOvI6WpSN6jndCHad\"","name":"cURL"}],"samples-languages":["python","curl"]}},"get":{"summary":"Get published event","description":"","operationId":"get-published-event","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}},{"name":"event_id","in":"path","description":"The event ID of the published event. See Event object","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/app/published_events/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/app/published_events/?limit=10\",\n \"results\": [ // list of objects\n {\n \"resource\": \"patients\",\n \"target\": \"https://requestb.in/18pqnk11\",\n \"status_code\": null,\n \"received_date\": \"2016-11-22T08:32:10Z\",\n \"processed_date\": null\n\t\t},\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/app/published_events/123/\",\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/app/published_events/ \\\n> -H \"Authorization: Bearer SftJozdkIuEObwOvI6WpSN6jndCHad\"","name":"cURL"}],"samples-languages":["python","curl"]}}},"/practices/{id}/":{"patch":{"summary":"Update Practice","description":"","operationId":"update-practice-wip-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"the practice ID","schema":{"type":"integer","format":"int32"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"address_line1":{"type":"string"},"address_line2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"metadata":{"type":"object","description":"nullable","properties":{"object_id":{"type":"integer","description":"for updating object must provide 'object_id' or 'data'","format":"int32"},"data":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"},"object_web_link":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"}}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758831005700,\n \"name\": \"Riley, Love and Chavez1\",\n \"address_line1\": \"47615 Johnson Route1\",\n \"address_line2\": \"Suite 0012\",\n \"city\": \"North Paulberg1\",\n \"state\": \"No\",\n \"zip\": \"616511\",\n \"timezone\": \"Asia/Jerusalem\",\n \"employers\": [],\n \"physicians\": [\n 140758834544642\n ],\n \"service_locations\": [\n {\n \"address_line1\": \"47615 Johnson Route1\",\n \"address_line2\": \"Suite 0012\",\n \"city\": \"North Paulberg1\",\n \"created_date\": \"2022-06-20T08:15:27Z\",\n \"deleted_date\": null,\n \"email\": null,\n \"fax\": \"58-039-1261x38850\",\n \"id\": 140758831071479,\n \"is_primary\": true,\n \"name\": \"Riley, Love and Chavez\",\n \"phone\": \"884-860-7317x09091\",\n \"place_of_service\": null,\n \"practice\": 140758831005700,\n \"state\": \"No\",\n \"zip\": \"616511\"\n }\n ],\n \"elation_root_oid\": \"2.16.840.1.113883.3.8294\",\n \"metadata\": {\n \"object_id\": \"345\",\n \"data\": \"text\",\n \"object_web_link\": \"link\"\n }\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758831005700,"default":0},"name":{"type":"string","example":"Riley, Love and Chavez1"},"address_line1":{"type":"string","example":"47615 Johnson Route1"},"address_line2":{"type":"string","example":"Suite 0012"},"city":{"type":"string","example":"North Paulberg1"},"state":{"type":"string","example":"No"},"zip":{"type":"string","example":"616511"},"timezone":{"type":"string","example":"Asia/Jerusalem"},"employers":{"type":"array"},"physicians":{"type":"array","items":{"type":"integer","example":140758834544642,"default":0}},"service_locations":{"type":"array","items":{"type":"object","properties":{"address_line1":{"type":"string","example":"47615 Johnson Route1"},"address_line2":{"type":"string","example":"Suite 0012"},"city":{"type":"string","example":"North Paulberg1"},"created_date":{"type":"string","example":"2022-06-20T08:15:27Z"},"deleted_date":{},"email":{},"fax":{"type":"string","example":"58-039-1261x38850"},"id":{"type":"integer","example":140758831071479,"default":0},"is_primary":{"type":"boolean","example":true,"default":true},"name":{"type":"string","example":"Riley, Love and Chavez"},"phone":{"type":"string","example":"884-860-7317x09091"},"place_of_service":{},"practice":{"type":"integer","example":140758831005700,"default":0},"state":{"type":"string","example":"No"},"zip":{"type":"string","example":"616511"}}}},"elation_root_oid":{"type":"string","example":"2.16.840.1.113883.3.8294"},"metadata":{"type":"object","properties":{"object_id":{"type":"string","example":"345"},"data":{"type":"string","example":"text"},"object_web_link":{"type":"string","example":"link"}}}}}}}},"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\ndata = {\n \"name\": \"Riley, Love and Chavez1\",\n \"address_line1\": \"47615 Johnson Route1\",\n \"address_line2\": \"Suite 0012\",\n \"city\": \"North Paulberg1\",\n \"state\": \"No\",\n \"zip\": \"616511\",\n \"metadata\": {\n \"object_id\": 345,\n \"data\": \"text\",\n \"object_web_link\": \"link\"\n }\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/practices/123/\",\n json=data,\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 Practice","description":"","operationId":"update-practice-wip","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"the practice ID","schema":{"type":"integer","format":"int32"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","address_line1"],"properties":{"name":{"type":"string"},"address_line1":{"type":"string"},"address_line2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"metadata":{"type":"object","description":"nullable","properties":{"object_id":{"type":"integer","description":"for updating object must provide 'object_id' or 'data'","format":"int32"},"data":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"},"object_web_link":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"}}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758831005700,\n \"name\": \"Riley, Love and Chavez1\",\n \"address_line1\": \"47615 Johnson Route1\",\n \"address_line2\": \"Suite 0012\",\n \"city\": \"North Paulberg1\",\n \"state\": \"No\",\n \"zip\": \"616511\",\n \"timezone\": \"Asia/Jerusalem\",\n \"employers\": [],\n \"physicians\": [\n 140758834544642\n ],\n \"service_locations\": [\n {\n \"address_line1\": \"47615 Johnson Route1\",\n \"address_line2\": \"Suite 0012\",\n \"city\": \"North Paulberg1\",\n \"created_date\": \"2022-06-20T08:15:27Z\",\n \"deleted_date\": null,\n \"email\": null,\n \"fax\": \"58-039-1261x38850\",\n \"id\": 140758831071479,\n \"is_primary\": true,\n \"name\": \"Riley, Love and Chavez\",\n \"phone\": \"884-860-7317x09091\",\n \"place_of_service\": null,\n \"practice\": 140758831005700,\n \"state\": \"No\",\n \"zip\": \"616511\"\n }\n ],\n \"elation_root_oid\": \"2.16.840.1.113883.3.8294\",\n \"metadata\": {\n \"object_id\": \"345\",\n \"data\": \"text\",\n \"object_web_link\": \"link\"\n }\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758831005700,"default":0},"name":{"type":"string","example":"Riley, Love and Chavez1"},"address_line1":{"type":"string","example":"47615 Johnson Route1"},"address_line2":{"type":"string","example":"Suite 0012"},"city":{"type":"string","example":"North Paulberg1"},"state":{"type":"string","example":"No"},"zip":{"type":"string","example":"616511"},"timezone":{"type":"string","example":"Asia/Jerusalem"},"employers":{"type":"array"},"physicians":{"type":"array","items":{"type":"integer","example":140758834544642,"default":0}},"service_locations":{"type":"array","items":{"type":"object","properties":{"address_line1":{"type":"string","example":"47615 Johnson Route1"},"address_line2":{"type":"string","example":"Suite 0012"},"city":{"type":"string","example":"North Paulberg1"},"created_date":{"type":"string","example":"2022-06-20T08:15:27Z"},"deleted_date":{},"email":{},"fax":{"type":"string","example":"58-039-1261x38850"},"id":{"type":"integer","example":140758831071479,"default":0},"is_primary":{"type":"boolean","example":true,"default":true},"name":{"type":"string","example":"Riley, Love and Chavez"},"phone":{"type":"string","example":"884-860-7317x09091"},"place_of_service":{},"practice":{"type":"integer","example":140758831005700,"default":0},"state":{"type":"string","example":"No"},"zip":{"type":"string","example":"616511"}}}},"elation_root_oid":{"type":"string","example":"2.16.840.1.113883.3.8294"},"metadata":{"type":"object","properties":{"object_id":{"type":"string","example":"345"},"data":{"type":"string","example":"text"},"object_web_link":{"type":"string","example":"link"}}}}}}}},"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\ndata = {\n \"name\": \"Riley, Love and Chavez1\",\n \"address_line1\": \"47615 Johnson Route1\",\n \"address_line2\": \"Suite 0012\",\n \"city\": \"North Paulberg1\",\n \"state\": \"No\",\n \"zip\": \"616511\",\n \"metadata\": {\n \"object_id\": 345,\n \"data\": \"text\",\n \"object_web_link\": \"link\"\n }\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/practices/123/\",\n json=data,\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"get":{"summary":"Get Practice","description":"","operationId":"get-practice","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"the practice ID","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n // see Practice object\n}"}},"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/practices/123/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/physicians/{id}/":{"get":{"summary":"Get Physician","description":"","operationId":"get-physician","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"the physician ID","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n // see Physician object\n}"}},"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/123/\",\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 Physician","description":"","operationId":"update-physician-wip","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"the physician ID","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["first_name","last_name","email"],"properties":{"first_name":{"type":"string","description":"Maximum length: 50 characters."},"last_name":{"type":"string","description":"Maximum length: 60 characters."},"email":{"type":"string"},"metadata":{"type":"object","description":"nullable. See Metadata section","properties":{"object_id":{"type":"integer","description":"for updating object must provide 'object_id' or 'data'","format":"int32"},"data":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"},"object_web_link":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"}}},"npi":{"type":"string"},"license":{"type":"string"},"license_state":{"type":"string"},"credentials":{"type":"string"},"telehealth_settings":{"type":"object","description":"The telehealth settings for the physician","properties":{"default_telehealth_instructions":{"type":"string","description":"The default instructions populated for telehealth appointments"},"zoom_join_url":{"type":"string","description":"If the provider is set up with Zoom® integration, then this is their personal meeting url"}}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758834544642,\n \"first_name\": \"Christopher\",\n \"last_name\": \"Morales\",\n \"credentials\": \"cred\",\n \"is_active\": true,\n \"email\": \"betle+Riley._Love_and_Chavez@elationhealth.com\",\n \"npi\": \"155532\",\n \"license\": \"20977\",\n \"license_state\": \"YY\",\n \"specialty\": null,\n \"user_id\": 64,\n \"practice\": 140758831005700,\n \"metadata\": {\n \"object_id\": \"1234\",\n \"data\": \"text\",\n \"object_web_link\": \"link\"\n }\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758834544642,"default":0},"first_name":{"type":"string","example":"Christopher"},"last_name":{"type":"string","example":"Morales"},"credentials":{"type":"string","example":"cred"},"is_active":{"type":"boolean","example":true,"default":true},"email":{"type":"string","example":"betle+Riley._Love_and_Chavez@elationhealth.com"},"npi":{"type":"string","example":"155532"},"license":{"type":"string","example":"20977"},"license_state":{"type":"string","example":"YY"},"specialty":{},"user_id":{"type":"integer","example":64,"default":0},"practice":{"type":"integer","example":140758831005700,"default":0},"metadata":{"type":"object","properties":{"object_id":{"type":"string","example":"1234"},"data":{"type":"string","example":"text"},"object_web_link":{"type":"string","example":"link"}}}}}}}},"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\ndata = {\n \"first_name\": \"Christopher\",\n \"last_name\": \"Morales\",\n \"credentials\": \"cred\",\n \"email\": \"betle+Riley._Love_and_Chavez@elationhealth.com\",\n \"npi\": \"155532\",\n \"license\": \"20977\",\n \"license_state\": \"YY\",\n \"metadata\": {\n \"object_id\": 1234, \n \"data\": \"text\",\n \"object_web_link\": \"link\"\n }\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/physicians/123/\",\n json=data,\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Physician","description":"","operationId":"update-physician-wip-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"the physician ID","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","description":"The physicians first name. Maximum length: 50 characters."},"last_name":{"type":"string","description":"The physicians last name. Maximum length: 60 characters."},"email":{"type":"string","description":"The physicians email. Usually used for login."},"metadata":{"type":"object","description":"nullable. See Metadata section","properties":{"object_id":{"type":"integer","description":"for updating object must provide 'object_id' or 'data'","format":"int32"},"data":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"},"object_web_link":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"}}},"npi":{"type":"string"},"license":{"type":"string"},"license_state":{"type":"string"},"credentials":{"type":"string"},"telehealth_settings":{"type":"object","description":"The telehealth settings for the physician","properties":{"default_telehealth_instructions":{"type":"string","description":"The default instructions populated for telehealth appointments"},"zoom_join_url":{"type":"string","description":"If the provider is set up with Zoom® integration, then this is their personal meeting url"}}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758834544642,\n \"first_name\": \"Christopher\",\n \"last_name\": \"Morales\",\n \"credentials\": \"cred\",\n \"is_active\": true,\n \"email\": \"betle+Riley._Love_and_Chavez@elationhealth.com\",\n \"npi\": \"155532\",\n \"license\": \"20977\",\n \"license_state\": \"YY\",\n \"specialty\": null,\n \"user_id\": 64,\n \"practice\": 140758831005700,\n \"metadata\": {\n \"object_id\": \"1234\",\n \"data\": \"text\",\n \"object_web_link\": \"link\"\n }\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758834544642,"default":0},"first_name":{"type":"string","example":"Christopher"},"last_name":{"type":"string","example":"Morales"},"credentials":{"type":"string","example":"cred"},"is_active":{"type":"boolean","example":true,"default":true},"email":{"type":"string","example":"betle+Riley._Love_and_Chavez@elationhealth.com"},"npi":{"type":"string","example":"155532"},"license":{"type":"string","example":"20977"},"license_state":{"type":"string","example":"YY"},"specialty":{},"user_id":{"type":"integer","example":64,"default":0},"practice":{"type":"integer","example":140758831005700,"default":0},"metadata":{"type":"object","properties":{"object_id":{"type":"string","example":"1234"},"data":{"type":"string","example":"text"},"object_web_link":{"type":"string","example":"link"}}}}}}}},"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\ndata = {\n \"first_name\": \"Christopher\",\n \"last_name\": \"Morales\",\n \"credentials\": \"cred\",\n \"email\": \"betle+Riley._Love_and_Chavez@elationhealth.com\",\n \"npi\": \"155532\",\n \"license\": \"20977\",\n \"license_state\": \"YY\",\n \"metadata\": {\n \"object_id\": 1234, \n \"data\": \"text\",\n \"object_web_link\": \"link\"\n }\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/physicians/123/\",\n json=data,\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/lab_orders/":{"get":{"summary":"Find Lab Orders","description":"","operationId":"find-lab-orders","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"practice","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"unsigned","in":"query","schema":{"type":"boolean"}},{"name":"from_signed_date","in":"query","schema":{"type":"string","format":"date"}},{"name":"to_signed_date","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__gt","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__lt","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__lte","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/lab_orders/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/lab_orders/?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/lab_orders/\",\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 Lab Order","description":"","operationId":"create-lab-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["document_date","ordering_physician","patient","practice"],"properties":{"answers":{"type":"array","description":"Value must be Lab for laboratory reports","items":{"properties":{"test":{"type":"integer","format":"int32"},"question":{"type":"integer","format":"int32"},"value":{"type":"string"}},"required":["test","question","value"],"type":"object"}},"bill_type":{"type":"string","enum":["(\"thirdparty\"","\"Third Party (e.g. Insurance)\")","(\"patient\"","\"Patient\")","(\"client\"","\"Client\")","(\"workerscomp\"","\"Worker's Comp\")","(\"specialbilling\"","\"Special Billing\")"]},"ccs":{"type":"array","description":"Physician id","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"confidential":{"type":"boolean"},"content":{"type":"object","description":"The Lab Order Content Object","properties":{"tests":{"type":"array","description":"LabOrderTest id","items":{"properties":{"id":{"type":"integer","description":"object id","format":"int64"}},"required":["id"],"type":"object"}},"stat_method":{"type":"string","enum":["wet_reading_phone","wet_reading_fax","stat_phone","stat_fax","stat_phone_fax"]},"patient_instructions":{"type":"string"},"test_center_notes":{"type":"string"},"fasting_method":{"type":"string","enum":["fasting_12_hour","fasting_8_hours","fasting_2_hours","fasting_none","fasting_random"]},"standing_order_frequency":{"type":"string"},"standing_order_end_date":{"type":"string","format":"date"},"collection_datetime":{"type":"string","format":"date"},"icd10_codes":{"type":"array","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}}}},"document_date":{"type":"string","format":"date"},"facility":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"object id","format":"int64"}}},"follow_up_method":{"type":"string"},"ordering_physician":{"type":"integer","format":"int32"},"patient":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"resolution":{"type":"object","required":["state"],"properties":{"state":{"type":"string","enum":["(\"outstanding\"","\"Outstanding\")","(\"fulfilled\"","\"Fulfilled\")","(\"cancelled\"","\"Cancelled\")"]},"resolving_document":{"type":"integer","description":"The document id (requisition id number)","format":"int32"}}},"site":{"type":"integer","description":"The location where the patient will have the lab performed. Sites are specific to their lab vendor.","format":"int32"},"tags":{"type":"array","description":"List of Coded Document Tags.","items":{"type":"integer","format":"int32"}},"test_date":{"type":"string","format":"date"},"vendor":{"type":"integer","format":"int32"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"answers\": [\n {\n \"id\": 140758874784147,\n \"test\": 140755679510590,\n \"question\": 67220537746,\n \"value\": \"v1\",\n \"created_date\": \"2022-06-07T21:06:44Z\",\n \"deleted_date\": null\n }\n ],\n \"bill_type\": \"Worker's Comp\",\n \"ccs\": [\n 140755710312450\n ],\n \"chart_date\": \"2002-06-07T12:55:44.059474Z\",\n \"confidential\": true,\n \"content\": {\n \"collection_datetime\": \"2002-06-07T12:55:44.059474Z\",\n \"fasting_method\": \"fasting_12_hour\",\n \"icd10_codes\": [\n {\n \"code\": \"Z3A.23\",\n \"description\": \"23 weeks gestation of pregnancy\"\n }\n ],\n \"id\": 140758874587237,\n \"patient_instructions\": \"23\",\n \"standing_order_end_date\": \"2002-06-07\",\n \"standing_order_frequency\": \"null\",\n \"stat_method\": \"wet_reading_phone\",\n \"test_center_notes\": \"11\",\n \"tests\": [\n {\n \"code\": null,\n \"compendium\": null,\n \"cpts\": [],\n \"created_date\": \"2014-05-09T20:34:33Z\",\n \"deleted_date\": null,\n \"id\": 24504107070,\n \"lab_vendor\": null,\n \"name\": \"TSH\",\n \"practice_created\": 65540,\n \"procedure_class\": null,\n \"questions\": [],\n \"synonyms\": []\n }\n ]\n },\n \"created_date\": \"2022-06-07T21:06:43.614753Z\",\n \"document_date\": \"2022-06-06T15:27:52Z\",\n \"facility\": {\n \"id\": 140743194837419,\n \"vendor\": {\n \"id\": 67186196726,\n \"name\": \"labcorp\",\n \"display_name\": \"LabCorp\"\n },\n \"practice_facility\": \"practice\",\n \"practice_secondary_id\": null,\n \"lab_facility\": \"labcorp\",\n \"description\": \"Labcorp e-ordering\",\n \"user_facing\": true,\n \"compendium\": 140745672294843,\n \"deleted_date\": null,\n \"created_date\": \"2019-10-04T05:37:38Z\",\n \"active\": true,\n \"practice\": 65540\n },\n \"follow_up_method\": \"fol1\",\n \"id\": 140758874652705,\n \"ordering_physician\": 140758834544642,\n \"patient\": 140758838542337,\n \"practice\": 140758831005700,\n \"requisition\": 140758874652705,\n \"resolution\": {\n \"id\": \"140758874849685\",\n \"document\": \": 140758874652705\",\n \"resolving_document\": 140758868754465,\n \"state\": \"outstanding\",\n \"note\": null,\n \"created_date\": \"2022-06-07T21:06:44Z\",\n \"deleted_date\": null\n },\n \"signed_by\": null,\n \"signed_date\": null,\n \"site\": {\n \"address\": \"94-307 Farrington Hwy\",\n \"city\": \"Waipahu\",\n \"created_date\": \"2017-01-26T22:06:57Z\",\n \"deleted_date\": null,\n \"fax\": \"8086773731\",\n \"id\": 68827742612,\n \"name\": \"CLH\",\n \"phone\": \"8086773870\",\n \"practice_created\": null,\n \"state\": \"HI\",\n \"suite\": \"Suite B4\",\n \"vendor\": {\n \"id\": 67556802806,\n \"name\": \"Clinical Labs of Hawaii\",\n \"display_name\": \"Clinical Labs of Hawaii\"\n },\n \"zip\": \"96797\"\n },\n \"special_insurance\": null,\n \"submissions\": [],\n \"specimens\": [],\n \"tags\": [\n {\n \"code\": \"408289007\",\n \"code_type\": 2,\n \"concept_name\": \"wt-mgmt-referral\",\n \"context\": null,\n \"created_date\": \"2015-07-23T19:30:51Z\",\n \"deleted_date\": \"2019-05-29T00:06:03Z\",\n \"description\": \"Referral to weight management program\",\n \"id\": 58719011162,\n \"practice_created\": null,\n \"snomed_result_code\": null,\n \"value\": \"CQM: Ref to Wt Mgt Program\"\n }\n ],\n \"test_date\": \"2002-06-07\",\n \"vendor\": 67191701750,\n \"printable_view\": \"http://127.0.0.1/api/2.0/lab_orders/140758874652705/printable\"\n}"}},"schema":{"type":"object","properties":{"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758874784147,"default":0},"test":{"type":"integer","example":140755679510590,"default":0},"question":{"type":"integer","example":67220537746,"default":0},"value":{"type":"string","example":"v1"},"created_date":{"type":"string","example":"2022-06-07T21:06:44Z"},"deleted_date":{}}}},"bill_type":{"type":"string","example":"Worker's Comp"},"ccs":{"type":"array","items":{"type":"integer","example":140755710312450,"default":0}},"chart_date":{"type":"string","example":"2002-06-07T12:55:44.059474Z"},"confidential":{"type":"boolean","example":true,"default":true},"content":{"type":"object","properties":{"collection_datetime":{"type":"string","example":"2002-06-07T12:55:44.059474Z"},"fasting_method":{"type":"string","example":"fasting_12_hour"},"icd10_codes":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"Z3A.23"},"description":{"type":"string","example":"23 weeks gestation of pregnancy"}}}},"id":{"type":"integer","example":140758874587237,"default":0},"patient_instructions":{"type":"string","example":"23"},"standing_order_end_date":{"type":"string","example":"2002-06-07"},"standing_order_frequency":{"type":"string","example":"null"},"stat_method":{"type":"string","example":"wet_reading_phone"},"test_center_notes":{"type":"string","example":"11"},"tests":{"type":"array","items":{"type":"object","properties":{"code":{},"compendium":{},"cpts":{"type":"array"},"created_date":{"type":"string","example":"2014-05-09T20:34:33Z"},"deleted_date":{},"id":{"type":"integer","example":24504107070,"default":0},"lab_vendor":{},"name":{"type":"string","example":"TSH"},"practice_created":{"type":"integer","example":65540,"default":0},"procedure_class":{},"questions":{"type":"array"},"synonyms":{"type":"array"}}}}}},"created_date":{"type":"string","example":"2022-06-07T21:06:43.614753Z"},"document_date":{"type":"string","example":"2022-06-06T15:27:52Z"},"facility":{"type":"object","properties":{"id":{"type":"integer","example":140743194837419,"default":0},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":67186196726,"default":0},"name":{"type":"string","example":"labcorp"},"display_name":{"type":"string","example":"LabCorp"}}},"practice_facility":{"type":"string","example":"practice"},"practice_secondary_id":{},"lab_facility":{"type":"string","example":"labcorp"},"description":{"type":"string","example":"Labcorp e-ordering"},"user_facing":{"type":"boolean","example":true,"default":true},"compendium":{"type":"integer","example":140745672294843,"default":0},"deleted_date":{},"created_date":{"type":"string","example":"2019-10-04T05:37:38Z"},"active":{"type":"boolean","example":true,"default":true},"practice":{"type":"integer","example":65540,"default":0}}},"follow_up_method":{"type":"string","example":"fol1"},"id":{"type":"integer","example":140758874652705,"default":0},"ordering_physician":{"type":"integer","example":140758834544642,"default":0},"patient":{"type":"integer","example":140758838542337,"default":0},"practice":{"type":"integer","example":140758831005700,"default":0},"requisition":{"type":"integer","example":140758874652705,"default":0},"resolution":{"type":"object","properties":{"id":{"type":"string","example":"140758874849685"},"document":{"type":"string","example":": 140758874652705"},"resolving_document":{"type":"integer","example":140758868754465,"default":0},"state":{"type":"string","example":"outstanding"},"note":{},"created_date":{"type":"string","example":"2022-06-07T21:06:44Z"},"deleted_date":{}}},"signed_by":{},"signed_date":{},"site":{"type":"object","properties":{"address":{"type":"string","example":"94-307 Farrington Hwy"},"city":{"type":"string","example":"Waipahu"},"created_date":{"type":"string","example":"2017-01-26T22:06:57Z"},"deleted_date":{},"fax":{"type":"string","example":"8086773731"},"id":{"type":"integer","example":68827742612,"default":0},"name":{"type":"string","example":"CLH"},"phone":{"type":"string","example":"8086773870"},"practice_created":{},"state":{"type":"string","example":"HI"},"suite":{"type":"string","example":"Suite B4"},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":67556802806,"default":0},"name":{"type":"string","example":"Clinical Labs of Hawaii"},"display_name":{"type":"string","example":"Clinical Labs of Hawaii"}}},"zip":{"type":"string","example":"96797"}}},"special_insurance":{},"submissions":{"type":"array"},"specimens":{"type":"array"},"tags":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"408289007"},"code_type":{"type":"integer","example":2,"default":0},"concept_name":{"type":"string","example":"wt-mgmt-referral"},"context":{},"created_date":{"type":"string","example":"2015-07-23T19:30:51Z"},"deleted_date":{"type":"string","example":"2019-05-29T00:06:03Z"},"description":{"type":"string","example":"Referral to weight management program"},"id":{"type":"integer","example":58719011162,"default":0},"practice_created":{},"snomed_result_code":{},"value":{"type":"string","example":"CQM: Ref to Wt Mgt Program"}}}},"test_date":{"type":"string","example":"2002-06-07"},"vendor":{"type":"integer","example":67191701750,"default":0},"printable_view":{"type":"string","example":"http://127.0.0.1/api/2.0/lab_orders/140758874652705/printable"}}}}}},"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 \"site\": 68827742612,\n \"answers\": [\n {\n \"question\": 67220537746,\n \"test\": 140755679510590,\n \"value\": \"v1\"\n }\n ],\n \"bill_type\": \"Worker's Comp\",\n \"ccs\": [\n 140755710312450\n ],\n \"content\": {\n \"collection_datetime\": \"2002-06-07T12:55:44.059474Z\",\n \"fasting_method\": \"fasting_12_hour\",\n \"icd10_codes\": [\n {\"code\": \"Z3A.23\"}\n ],\n \"patient_instructions\": \"23\",\n \"standing_order_end_date\": \"2002-06-07\",\n \"standing_order_frequency\": \"null\",\n \"stat_method\": \"wet_reading_phone\",\n \"test_center_notes\": \"11\",\n \"tests\": [\n {\"id\": 24504107070}\n ]\n },\n \"chart_date\": \"2002-06-07T12:55:44.059474Z\",\n \"confidential\": true,\n \"document_date\": \"2022-06-06T15:27:52Z\",\n \"facility\": {\"id\": 140743194837419},\n \"follow_up_method\": \"fol1\",\n \"ordering_physician\": 140758834544642,\n \"patient\": 140758838542337,\n \"practice\": 140758831005700,\n \"resolution\": {\n \"state\": \"outstanding\",\n \"resolving_document\": 140758868754465\n },\n \"tags\": [\n 58719011162\n ],\n \"test_date\": \"2002-06-07\",\n \"vendor\": 67191701750\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/lab_orders/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/users":{"post":{"summary":"Create User","description":"","operationId":"post","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["first_name","last_name","email","practice","is_active","user_type"],"properties":{"first_name":{"type":"string","description":"Maximum length: 50 characters."},"last_name":{"type":"string","description":"Maximum length: 60 characters."},"email":{"type":"string"},"practice":{"type":"integer","format":"int32"},"is_active":{"type":"boolean"},"user_type":{"type":"string"},"has_chart_access":{"type":"boolean","default":false},"physician_qualifications":{"type":"object","required":["credentials","npi","license_state","license"],"properties":{"credentials":{"type":"string"},"npi":{"type":"integer","format":"int64"},"license_state":{"type":"string"},"license":{"type":"string"},"dea":{"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}},"/message_threads/{id}":{"get":{"summary":"Get Message Thread","description":"","operationId":"get-message-thread","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/message_threads/83792571234/\",\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"]}}},"/thread_messages/{id}":{"get":{"summary":"Get Thread Message","description":"","operationId":"get-thread-message","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/thread_messages/83792571234/\",\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"]}},"delete":{"summary":"Delete Thread Message","description":"","operationId":"delete-thread-message","parameters":[{"name":"id","in":"path","description":"The id of the thread message.","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"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}},"/message_threads/":{"get":{"summary":"Find Message Threads","description":"","operationId":"find-message-threads","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"document_date__gt","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__lt","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__lte","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/message_threads/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/message_threads/?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/message_threads/\",\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 Message Thread","description":"","operationId":"create-message-thread","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","sender","practice","document_date","chart_date"],"properties":{"patient":{"type":"integer","description":"The patient chart for which the thread is about","format":"int32"},"sender":{"type":"integer","description":"The id of the user who initiated the message thread","format":"int32"},"practice":{"type":"integer","description":"The id of the practice that owns the patient chart","format":"int32"},"document_date":{"type":"string","format":"date"},"chart_date":{"type":"string","format":"date"},"delivery_date":{"type":"string","format":"date"},"members":{"type":"array","description":"List of Thread Members, when creating only need to specify the id of the thread member and their status"},"messages":{"type":"array","description":"List of Thread Messages, when creating only need to provide the body, send_date and sender"},"is_urgent":{"type":"boolean","description":"Whether the message is currently urgent"}}}}}},"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}},"/thread_messages/":{"get":{"summary":"Find Thread Messages","description":"","operationId":"find-thread-messages","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/thread_messages/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/thread_messages/?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/thread_messages/\",\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 Thread Message","description":"","operationId":"create-thread-message","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["thread","sender","body","send_date"],"properties":{"thread":{"type":"integer","description":"The message thread we're replying to","format":"int32"},"sender":{"type":"integer","description":"The user id of the sender","format":"int32"},"body":{"type":"string","description":"The message"},"send_date":{"type":"string","description":"The timestamp of when this message was sent","format":"date"},"to_document":{"type":"object","description":"A document this message is in reference to","properties":{}}}}}}},"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}},"/letters":{"get":{"summary":"Find Letters","description":"","operationId":"find-letters","parameters":[{"name":"patient","in":"query","description":"Patient ID","schema":{"type":"integer","format":"int32"}},{"name":"practice","in":"query","description":"Practice ID","schema":{"type":"integer","format":"int32"}},{"name":"document_date__gt","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__lt","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__lte","in":"query","schema":{"type":"string","format":"date"}},{"name":"recipient_name","in":"query","description":"Recipient Name","schema":{"type":"string"}},{"name":"recipient_id","in":"query","description":"Recipient ID","schema":{"type":"integer","format":"int32"}}],"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}},"/letters/{id}":{"get":{"summary":"Get Letter","description":"","operationId":"get-letter","parameters":[{"name":"id","in":"path","description":"Letter ID","schema":{"type":"integer","format":"int32"},"required":true}],"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},"put":{"summary":"Update Letter","description":"","operationId":"update-letter","parameters":[{"name":"id","in":"path","description":"Letter ID","schema":{"type":"integer","format":"int32"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice","referral_order"],"properties":{"patient":{"type":"string","description":"The id of the patient"},"practice":{"type":"string","description":"The id of the practice"},"body":{"type":"string","description":"body of the letter"},"subject":{"type":"string","description":"subject of the letter (Not needed with referral_order)"},"send_to_contact":{"type":"string","description":"object with the recipient of the letter"},"referral_order":{"type":"string","description":"Id of the Referral Order (Not needed with subject)"},"signed_by":{"type":"integer","description":"The id of the signer. A signer can be the practice or staff with delegated permission for letter signing off","format":"int32"},"sign_date":{"type":"string","description":"The time of signing off. Example: 2022-11-10T01:06:22Z","format":"date"},"send_out":{"type":"boolean","description":"A flag to indicate if the referral letter should be sent out or not","default":false},"delivery_date":{"type":"string","description":"If given, the letter will be sent on the given date instead of today.","format":"date"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\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 \"practice\" : 64901939456,\n \"patient\": 64901939201\n \"body\": \"Body of a letter\",\n \"subject\" : \"Subject of a letter\",\n \"send_to_contact\": {\"id\": 64901939893}\n\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/letters/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"]}},"patch":{"summary":"Update Letter","description":"","operationId":"patch-letter","parameters":[{"name":"id","in":"path","description":"Letter ID","schema":{"type":"integer","format":"int32"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice","referral_order"],"properties":{"patient":{"type":"string","description":"The id of the patient"},"practice":{"type":"string","description":"The id of the practice"},"body":{"type":"string","description":"body of the letter"},"subject":{"type":"string","description":"subject of the letter (Not needed with referral_order)"},"send_to_contact":{"type":"string","description":"object with the recipient of the letter"},"referral_order":{"type":"string","description":"Id of the Referral Order (Not needed with subject)"},"signed_by":{"type":"integer","description":"The id of the signer. A signer can be the practice or staff with delegated permission for letter signing off","format":"int32"},"sign_date":{"type":"string","description":"The time of signing off. Example: 2022-11-10T01:06:22Z","format":"date"},"send_out":{"type":"boolean","description":"A flag to indicate if the referral letter should be sent out or not","default":false},"delivery_date":{"type":"string","description":"If given, the letter will be sent on the given date instead of today.","format":"date"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\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 \"practice\" : 64901939456,\n \"patient\": 64901939201\n \"body\": \"Body of a letter\",\n \"subject\" : \"Subject of a letter\",\n \"send_to_contact\": {\"id\": 64901939893}\n\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/letters/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"]}}},"/referral_orders/{id}":{"get":{"summary":"Get Referral Order","description":"","operationId":"get-referral-order","parameters":[{"name":"id","in":"path","description":"Letter ID","schema":{"type":"integer","format":"int32"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\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/referral_orders/140756377075740/\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/imaging_orders/{id}":{"get":{"summary":"Get Imaging Order","description":"","operationId":"get-imaging-order","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Imaging Order 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/imaging_orders/140756377075740/\",\n headers={'Authorization': auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"put":{"summary":"Update Imaging Order","description":"","operationId":"put-imaging-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ancillary_company","chart_date","clinical_reason","document_date","patient","practice","prescribing_user"],"properties":{"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"imaging_center":{"type":"integer","description":"The imaging center the order is associated with.","default":null,"format":"int32"},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice. Not allowed to be changed for updates.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with. Not allowed to be changed for updates.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"statmethod":{"type":"string","description":"The type of report to get for the order if urgent. Options are \"wet_reading_phone\" and \"wet_reading_fax\""},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the imaging order test to be associated with the order. Imaging order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of imaging order tests associated with the order."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Imaging Order 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 = f\"Bearer {access_token}\"\n\nupdated_imaging_order_data = {\n \"ancillary_company\": 140755855605768,\n \"ccs\": [\n 131074\n ],\n \"chart_date\": \"2021-05-26T03:49:04Z\",\n \"clinical_reason\": \"sickness\",\n \"confidential\": true,\n \"document_date\": \"2021-05-26T03:49:04Z\",\n \"follow_up_method\": \"email\",\n \"icd10_codes\": [\n {\n \"code\": \"O09.529\",\n \"description\": \"Supervision of elderly multigravida, unspecified trimester\"\n }\n ],\n \"imaging_center\": 140755855671306,\n \"patient\": 140756664516609,\n \"practice\": 140756660256772,\n \"prescribing_user\": 2032,\n \"statmethod\": \"wet_reading_fax\",\n \"tests\": [\n {\n \"id\": 140756665106487\n }\n ]\n}\n\nresp = requests.put(\n \"https://sandbox.elationemr.com/api/2.0/imaging_orders/140756377075740\",\n headers={\"Authorization\": auth_header},\n \tjson=updated_imaging_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Imaging Order","description":"","operationId":"patch-imaging-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the cardiac order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the cardiac order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"imaging_center":{"type":"integer","description":"The imaging center the order is associated with.","default":null,"format":"int32"},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice. Not allowed to be changed for updates.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with. Not allowed to be changed for updates.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"statmethod":{"type":"string","description":"The type of report to get for the order if urgent. Options are \"wet_reading_phone\" and \"wet_reading_fax\""},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the imaging order test to be associated with the order. Imaging order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of imaging order tests associated with the order."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Imaging Order 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 = f\"Bearer {access_token}\"\n\nupdated_imaging_order_data = {\n \"clinical_reason\": \"sickness\",\n}\n\nresp = requests.patch(\n \"https://sandbox.elationemr.com/api/2.0/imaging_orders/140756377075740\",\n headers={\"Authorization\": auth_header},\n \tjson=updated_imaging_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Imaging Order","description":"","operationId":"delete-imaging-order","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.delete(\n \"https://sandbox.elationemr.com/api/2.0/imaging_orders/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/cardiac_orders/{id}":{"get":{"summary":"Get Cardiac Order","description":"","operationId":"get-cardiac-order","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_orders/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"put":{"summary":"Update Cardiac Order","description":"","operationId":"put-cardiac-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ancillary_company","chart_date","clinical_reason","document_date","patient","practice","prescribing_user"],"properties":{"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"cardiac_center":{"type":"integer","description":"The cardiac center the order is associated with.","default":null,"format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"medications":{"type":"string","description":"Description of beta blockers/medications the patient is taking."},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice. Not allowed to be changed for updates.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with. Not allowed to be changed for updates.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the cardiac order test to be associated with the order. Cardiac order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of cardiac tests associated with the order."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Cardiac Order 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 = f\"Bearer {access_token}\"\n\nupdated_imaging_order_data = {\n \t\"ancillary_company\": 140755855605768,\n \"cardiac_center\": 140755855671306,\n \"ccs\": [\n 131074\n ],\n \"chart_date\": \"2021-05-26T03:49:04Z\",\n \"clinical_reason\": \"sickness\",\n \"confidential\": true,\n \"document_date\": \"2021-05-26T03:49:04Z\",\n \"follow_up_method\": \"email\",\n \"icd10_codes\": [\n {\n \"code\": \"O09.529\",\n \"description\": \"Supervision of elderly multigravida, unspecified trimester\"\n }\n ],\n \"medications\": \"b-blocker\",\n \"patient\": 140756664516609,\n \"practice\": 140756660256772,\n \"prescribing_user\": 2032,\n \"tests\": [\n {\n \"id\": 140756665106487\n }\n ]\n}\n\nresp = requests.put(\n \"https://sandbox.elationemr.com/api/2.0/imaging_orders/140756377075740\",\n headers={\"Authorization\": auth_header},\n \tjson=updated_imaging_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Cardiac Order","description":"","operationId":"patch-cardiac-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"cardiac_center":{"type":"integer","description":"The cardiac center the order is associated with.","default":null,"format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the cardiac order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the cardiac order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the cardiac order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"medications":{"type":"string","description":"Description of beta blockers/medications the patient is taking."},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice. Not allowed to be changed for updates.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with. Not allowed to be changed for updates.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the cardiac order test to be associated with the order. Cardiac order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of cardiac order tests associated with the order."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Cardiac Order 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 = f\"Bearer {access_token}\"\n\nupdated_cardiac_order_data = {\n \"clinical_reason\": \"sickness\",\n}\n\nresp = requests.patch(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_orders/140756377075740\",\n headers={'Authorization': auth_header},\n \tjson=updated_cardiac_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Cardiac Order","description":"","operationId":"delete-cardiac-order","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.delete(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_orders/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/sleep_orders/{id}":{"get":{"summary":"Get Sleep Order","description":"","operationId":"get-sleep-order","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Sleep Order 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/sleep_orders/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"put":{"summary":"Update Sleep Order","description":"","operationId":"put-sleep-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ancillary_company","chart_date","clinical_reason","document_date","patient","practice","prescribing_user"],"properties":{"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice. Not allowed to be changed for updates.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with. Not allowed to be changed for updates.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"sleep_center":{"type":"integer","description":"The sleep center the order is associated with.","default":null,"format":"int32"},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the sleep order test to be associated with the order. Sleep order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of sleep order tests associated with the order."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Sleep Order 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 = f\"Bearer {access_token}\"\n\nupdated_sleep_order_data = {\n \"ancillary_company\": 140755855605768,\n \"ccs\": [\n 131074\n ],\n \"chart_date\": \"2021-05-26T03:49:04Z\",\n \"clinical_reason\": \"sickness\",\n \"confidential\": true,\n \"document_date\": \"2021-05-26T03:49:04Z\",\n \"follow_up_method\": \"email\",\n \"icd10_codes\": [\n {\n \"code\": \"O09.529\",\n \"description\": \"Supervision of elderly multigravida, unspecified trimester\"\n }\n ],\n \"patient\": 140756664516609,\n \"practice\": 140756660256772,\n \"prescribing_user\": 2032,\n \"sleep_center\": 140755855671306,\n \"tests\": [\n {\n \"id\": 140756665106487\n }\n ]\n}\n\nresp = requests.put(\n \"https://sandbox.elationemr.com/api/2.0/sleep_orders/140756377075740\",\n headers={\"Authorization\": auth_header},\n \tjson=updated_sleep_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Sleep Order","description":"","operationId":"patch-sleep-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the cardiac order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the cardiac order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice. Not allowed to be changed for updates.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with. Not allowed to be changed for updates.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"sleep_center":{"type":"integer","description":"The sleep center the order is associated with.","default":null,"format":"int32"},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the sleep order test to be associated with the order. Sleep order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of sleep order tests associated with the order."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Sleep Order 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 = f\"Bearer {access_token}\"\n\nupdated_sleep_order_data = {\n \"clinical_reason\": \"sickness\",\n}\n\nresp = requests.patch(\n \"https://sandbox.elationemr.com/api/2.0/sleep_orders/140756377075740\",\n headers={\"Authorization\": auth_header},\n \tjson=updated_sleep_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Sleep Order","description":"","operationId":"delete-sleep-order","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.delete(\n \"https://sandbox.elationemr.com/api/2.0/sleep_orders/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/pulmonary_orders/{id}":{"get":{"summary":"Get Pulmonary Order","description":"","operationId":"get-pulmonary-order","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Pulmonary Order 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_orders/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"put":{"summary":"Update Pulmonary Order","description":"","operationId":"put-pulmonary-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ancillary_company","chart_date","clinical_reason","document_date","patient","practice","prescribing_user"],"properties":{"allergies":{"type":"string","description":"Any allergies the patient has."},"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice. Not allowed to be changed for updates.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with. Not allowed to be changed for updates.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"pulmonary_center":{"type":"integer","description":"The pulmonary center the order is associated with.","default":null,"format":"int32"},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the pulmonary order test to be associated with the order. Pulmonary order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of pulmonary order tests associated with the order."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Pulmonary Order 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 = f\"Bearer {access_token}\"\n\nupdated_pulmonary_order_data = {\n \"allergies\": \"Penicillin\",\n \"ancillary_company\": 140755855605768,\n \"ccs\": [\n 131074\n ],\n \"chart_date\": \"2021-05-26T03:49:04Z\",\n \"clinical_reason\": \"sickness\",\n \"confidential\": true,\n \"document_date\": \"2021-05-26T03:49:04Z\",\n \"follow_up_method\": \"email\",\n \"icd10_codes\": [\n {\n \"code\": \"O09.529\",\n \"description\": \"Supervision of elderly multigravida, unspecified trimester\"\n }\n ],\n \"patient\": 140756664516609,\n \"practice\": 140756660256772,\n \"prescribing_user\": 2032,\n \"pulmonary_center\": 140755855671306,\n \"tests\": [\n {\n \"id\": 140756665106487\n }\n ]\n}\n\nresp = requests.put(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_orders/140756377075740\",\n headers={\"Authorization\": auth_header},\n \tjson=updated_pulmonary_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Pulmonary Order","description":"","operationId":"patch-pulmonary-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"allergies":{"type":"string","description":"Any allergies the patient has."},"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the cardiac order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the cardiac order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice. Not allowed to be changed for updates.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with. Not allowed to be changed for updates.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"pulmonary_center":{"type":"integer","description":"The pulmonary center the order is associated with.","default":null,"format":"int32"},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the pulmonary order test to be associated with the order. Pulmonary order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of pulmonary order tests associated with the order."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Pulmonary Order 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 = f\"Bearer {access_token}\"\n\nupdated_pulmonary_order_data = {\n \"clinical_reason\": \"sickness\",\n}\n\nresp = requests.patch(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_orders/140756377075740\",\n headers={\"Authorization\": auth_header},\n \tjson=updated_pulmonary_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Pulmonary Order","description":"","operationId":"delete-pulmonary-order","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.delete(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_orders/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/lab_order_tests/{id}":{"get":{"summary":"Get Lab Order Tests","description":"","operationId":"get-lab-order-tests","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140745672360379,\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/lab_order_tests/140745672360379/\",\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 Lab Order Test","description":"","operationId":"delete-lab-order-test","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/lab_order_tests/12345\",\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_order_compendiums/{id}":{"get":{"summary":"Get Lab Order Compendium","description":"","operationId":"get-lab-order-compendium","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140745672294843,\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/lab_order_compendiums/140745672294843/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Lab Order Compendium","description":"","operationId":"update-lab-order-compendium","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["lab_vendor"],"properties":{"lab_vendor":{"type":"integer","description":"lab vendor id","format":"int32"},"code":{"type":"string","description":"must be unique with each individual 'lab_vendor'"},"name":{"type":"string","description":"must be unique with each individual 'lab_vendor'"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"code\": \"Harris PLC2022-05-06 10:54:18+00:00\",\n \"created_date\": \"2020-01-16T17:52:09Z\",\n \"deleted_date\": null,\n \"id\": 140745672360379,\n \"lab_vendor\": 67186196726,\n \"last_updated\": \"2022-06-06T11:26:50.671853Z\",\n \"name\": \"Harris PLC2022-05-06 10:54:18+00:00 Compendium\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"Harris PLC2022-05-06 10:54:18+00:00"},"created_date":{"type":"string","example":"2020-01-16T17:52:09Z"},"deleted_date":{},"id":{"type":"integer","example":140745672360379,"default":0},"lab_vendor":{"type":"integer","example":67186196726,"default":0},"last_updated":{"type":"string","example":"2022-06-06T11:26:50.671853Z"},"name":{"type":"string","example":"Harris PLC2022-05-06 10:54:18+00:00 Compendium"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"lab_vendor\": 1234567889, \n\t\"code\": \"Harris PLC2022-05-06 10:54:18+00:00\", \n\t\"name\": \"Harris PLC2022-05-06 10:54:18+00:00 Compendium\"\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/lab_order_compendiums/1233445566\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)\n"}],"samples-languages":["python"]}},"put":{"summary":"Update Lab Order Compendium","description":"","operationId":"update-lab-order-compendium-1","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["lab_vendor","code","name"],"properties":{"lab_vendor":{"type":"integer","description":"lab vendor id","format":"int32"},"code":{"type":"string","description":"must be unique with each individual 'lab_vendor'"},"name":{"type":"string","description":"must be unique with each individual 'lab_vendor'"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"code\": \"Harris PLC2022-05-06 10:54:18+00:00\",\n \"created_date\": \"2020-01-16T17:52:09Z\",\n \"deleted_date\": null,\n \"id\": 140745672360379,\n \"lab_vendor\": 67186196726,\n \"last_updated\": \"2022-06-06T11:26:50.671853Z\",\n \"name\": \"Harris PLC2022-05-06 10:54:18+00:00 Compendium\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"Harris PLC2022-05-06 10:54:18+00:00"},"created_date":{"type":"string","example":"2020-01-16T17:52:09Z"},"deleted_date":{},"id":{"type":"integer","example":140745672360379,"default":0},"lab_vendor":{"type":"integer","example":67186196726,"default":0},"last_updated":{"type":"string","example":"2022-06-06T11:26:50.671853Z"},"name":{"type":"string","example":"Harris PLC2022-05-06 10:54:18+00:00 Compendium"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"lab_vendor\": 1234567889, \n\t\"code\": \"Harris PLC2022-05-06 10:54:18+00:00\", \n\t\"name\": \"Harris PLC2022-05-06 10:54:18+00:00 Compendium\"\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/lab_order_compendiums/1233445566\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)\n"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Lab Order Compendium","description":"","operationId":"delete-lab-order-compendium","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":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"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.delete(\"https://sandbox.elationemr.com/api/2.0/lab_order_compendiums/140745672294843/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/lab_vendors/{id}":{"get":{"summary":"Get Lab Vendor","description":"","operationId":"get-lab-vendor","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140745672294843,\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/lab_vendors/63929778422/\",\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 Lab Vendor","description":"","operationId":"update-lab-vendor","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","display_name","practice_created","results_integration_available","orders_integration_available"],"properties":{"name":{"type":"string","description":"Value must be Lab for laboratory reports"},"display_name":{"type":"string"},"practice_created":{"type":"integer","format":"int64"},"has_test_compendium":{"type":"boolean"},"results_integration_available":{"type":"boolean"},"orders_integration_available":{"type":"boolean"},"default_compendium":{"type":"object","description":"Not working. Need to change save method","required":["code","name","lab_vendor"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"lab_vendor":{"type":"integer","description":"The id of lab_vendor","format":"int64"}}},"compendiums":{"type":"array","description":"Not working. Need to change save method","items":{"properties":{"code":{"type":"string"},"name":{"type":"string"},"lab_vendor":{"type":"integer","description":"The id of lab_vendor","format":"int64"}},"required":["code","name","lab_vendor"],"type":"object"}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758848438518,\n \"practice_created\": null,\n \"name\": \"Sonora Quest\",\n \"display_name\": \"Sonora Quest\",\n \"has_order_compendium\": false,\n \"has_test_compendium\": false,\n \"results_integration_available\": false,\n \"orders_integration_available\": false,\n \"compendiums\": [],\n \"default_compendium\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758848438518,"default":0},"practice_created":{},"name":{"type":"string","example":"Sonora Quest"},"display_name":{"type":"string","example":"Sonora Quest"},"has_order_compendium":{"type":"boolean","example":false,"default":true},"has_test_compendium":{"type":"boolean","example":false,"default":true},"results_integration_available":{"type":"boolean","example":false,"default":true},"orders_integration_available":{"type":"boolean","example":false,"default":true},"compendiums":{"type":"array"},"default_compendium":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"practice_created\": null,\n \"name\": \"Sonora Quest\",\n \"display_name\": \"Sonora Quest\",\n \"has_order_compendium\": false,\n \"has_test_compendium\": false,\n \"results_integration_available\": false,\n \"orders_integration_available\": false\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/lab_order_compendiums/67192488182\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Lab Vendor","description":"","operationId":"update-lab-vendor-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["results_integration_available","orders_integration_available"],"properties":{"name":{"type":"string","description":"Value must be Lab for laboratory reports"},"display_name":{"type":"string"},"practice_created":{"type":"integer","format":"int64"},"has_test_compendium":{"type":"boolean"},"results_integration_available":{"type":"boolean"},"orders_integration_available":{"type":"boolean"},"default_compendium":{"type":"object","description":"Not working. Need to change save method","required":["code","name","lab_vendor"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"lab_vendor":{"type":"integer","description":"The id of lab_vendor","format":"int64"}}},"compendiums":{"type":"array","description":"Not working. Need to change save method","items":{"properties":{"code":{"type":"string"},"name":{"type":"string"},"lab_vendor":{"type":"integer","description":"The id of lab_vendor","format":"int64"}},"required":["code","name","lab_vendor"],"type":"object"}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758848438518,\n \"practice_created\": null,\n \"name\": \"Sonora Quest\",\n \"display_name\": \"Sonora Quest\",\n \"has_order_compendium\": false,\n \"has_test_compendium\": false,\n \"results_integration_available\": false,\n \"orders_integration_available\": false,\n \"compendiums\": [],\n \"default_compendium\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758848438518,"default":0},"practice_created":{},"name":{"type":"string","example":"Sonora Quest"},"display_name":{"type":"string","example":"Sonora Quest"},"has_order_compendium":{"type":"boolean","example":false,"default":true},"has_test_compendium":{"type":"boolean","example":false,"default":true},"results_integration_available":{"type":"boolean","example":false,"default":true},"orders_integration_available":{"type":"boolean","example":false,"default":true},"compendiums":{"type":"array"},"default_compendium":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"practice_created\": null,\n \"name\": \"Sonora Quest\",\n \"display_name\": \"Sonora Quest\",\n \"has_order_compendium\": false,\n \"has_test_compendium\": false,\n \"results_integration_available\": false,\n \"orders_integration_available\": false\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/lab_order_compendiums/67192488182\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Lab Vendor","description":"","operationId":"delete-lab-vendor","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":""}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/lab_order_compendiums/67192488182\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_vendor_patient_sites/{id}":{"get":{"summary":"Get Lab Vendor Patient Site","description":"","operationId":"get-lab-vendor-patient-site","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 67194323348,\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/lab_vendor_patient_sites/67194323348/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Patch Lab Vendor Patient Site","description":"","operationId":"patch-lab-vendor-patient-site","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"practice_created":{"type":"integer","format":"int32"},"vendor":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"object id","format":"int64"}}},"address":{"type":"string"},"suite":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"address\": \"\",\n \"city\": \"\",\n \"created_date\": \"2022-06-06T16:19:15Z\",\n \"deleted_date\": null,\n \"fax\": \"2\",\n \"id\": 140758850208148,\n \"name\": \"why\",\n \"phone\": \"null\",\n \"practice_created\": null,\n \"state\": \"\",\n \"suite\": \"null\",\n \"vendor\": {\n \"id\": 67186196726,\n \"name\": \"labcorp\",\n \"display_name\": \"LabCorp\"\n },\n \"zip\": \"\"\n}"}},"schema":{"type":"object","properties":{"address":{"type":"string","example":""},"city":{"type":"string","example":""},"created_date":{"type":"string","example":"2022-06-06T16:19:15Z"},"deleted_date":{},"fax":{"type":"string","example":"2"},"id":{"type":"integer","example":140758850208148,"default":0},"name":{"type":"string","example":"why"},"phone":{"type":"string","example":"null"},"practice_created":{},"state":{"type":"string","example":""},"suite":{"type":"string","example":"null"},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":67186196726,"default":0},"name":{"type":"string","example":"labcorp"},"display_name":{"type":"string","example":"LabCorp"}}},"zip":{"type":"string","example":""}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"name\": \"why\"\n}\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_patient_sites/12345678,\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Lab Vendor Patient Site","description":"","operationId":"delete-lab-vendor-patient-site","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_patient_sites/123445678\",\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"put":{"summary":"Put Lab Vendor Patient Site","description":"","operationId":"put-lab-vendor-patient-site","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"practice_created":{"type":"integer","format":"int32"},"vendor":{"type":"object","description":"vendor id","required":["id"],"properties":{"id":{"type":"integer","description":"object id","format":"int64"}}},"address":{"type":"string"},"suite":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"address\": \"\",\n \"city\": \"\",\n \"created_date\": \"2022-06-06T16:19:15Z\",\n \"deleted_date\": null,\n \"fax\": \"2\",\n \"id\": 140758850208148,\n \"name\": \"why\",\n \"phone\": \"null\",\n \"practice_created\": 140758839459844,\n \"state\": \"\",\n \"suite\": \"null\",\n \"vendor\": {\n \"id\": 67186196726,\n \"name\": \"labcorp\",\n \"display_name\": \"LabCorp\"\n },\n \"zip\": \"\"\n}"}},"schema":{"type":"object","properties":{"address":{"type":"string","example":""},"city":{"type":"string","example":""},"created_date":{"type":"string","example":"2022-06-06T16:19:15Z"},"deleted_date":{},"fax":{"type":"string","example":"2"},"id":{"type":"integer","example":140758850208148,"default":0},"name":{"type":"string","example":"why"},"phone":{"type":"string","example":"null"},"practice_created":{"type":"integer","example":140758839459844,"default":0},"state":{"type":"string","example":""},"suite":{"type":"string","example":"null"},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":67186196726,"default":0},"name":{"type":"string","example":"labcorp"},"display_name":{"type":"string","example":"LabCorp"}}},"zip":{"type":"string","example":""}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"name\": \"why\",\n \"practice_created\": 140758839459844\n}\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_patient_sites/12345678\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_orders/{id}/printable":{"get":{"summary":"Retrieve the Printable Lab Order View","description":"Providers are able to print a view of the lab order including the data provided behind this endpoint.\n\nEach lab order response includes a link to obtain this view; a PDF file.\n\nWhen you GET the link you'll receive a response with application/pdf and the bytes of the PDF.","operationId":"retrieve-the-printable-lab-order-view","parameters":[{"name":"lab_order_id","in":"path","description":"The Report's id.","schema":{"type":"integer","format":"int32"},"required":true},{"name":"print_header","in":"query","description":"The id of the print header that you want to use for the printable view","schema":{"type":"integer","format":"int32"}}],"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\nimport json\n\naccess_token = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\nreport_id = 2345\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/lab_orders/{lab_order_id}/printable\".format(report_id=report_id),\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nwith open('/tmp/out.pdf', 'wb') as outpdf:\n outpdf.write(resp.content)"}],"samples-languages":["python"]}}},"/delegate_permissions/{id}":{"get":{"summary":"Get Delegate Permissions","description":"","operationId":"get-delegate-permissions","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 83792571234,\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 = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/delegate_permissions/140754688737550\",\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/app/published_events/ \\\n> -H \"Authorization: Bearer SftJozdkIuEObwOvI6WpSN6jndCHad\"","name":"cURL"}],"samples-languages":["python","curl"]}},"put":{"summary":"Update Delegate Permissions","description":"","operationId":"update-delegate-permissions","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"practice":{"type":"integer","format":"int64"},"physician":{"type":"integer","format":"int64"},"delegate_user":{"type":"integer","format":"int64"},"permission_type":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140754688737550,\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 = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\n\ndata = {\n 'id': 140754688737550, \n 'practice': 140754683822084, \n 'physician': 140754687361026, \n 'delegate_user': 211, \n 'permission_type': 'rxs'\n}\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/delegate_permissions/140754688737550\",\n data=json.dumps(data),\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/delegate_permissions/":{"post":{"summary":"Create Delegate Permissions","description":"","operationId":"create-delegate-permissions","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"practice":{"type":"integer","format":"int64"},"physician":{"type":"integer","format":"int64"},"delegate_user":{"type":"integer","format":"int64"},"permission_type":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140754688737550,\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 'practice': 140754683822084, \n 'physician': 140754687361026, \n 'delegate_user': 211, \n 'permission_type': 'rxs'\n}\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/delegate_permissions/\",\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"]}},"delete":{"summary":"Delete a Delegate Permission","description":"","operationId":"delete-a-delegate-permission","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"responses":{"204":{"description":"204","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\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/delegate_permissions/140754688737550\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}},"get":{"summary":"Find Delegate Permissions","description":"","operationId":"find-delegate-permissions","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"[\n \t{\n \t\"id\": 83792571234,\n \t// See Object Definition\n\t},\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/delegate_permissions/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/staff_group/{id}":{"get":{"summary":"Get Staff Group","description":"","operationId":"get-staff-group","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/staff_groups/83792571234/\",\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"]}}},"/office_staff/{id}":{"get":{"summary":"Get Office Staff","description":"","operationId":"get-office-staff","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/office_staff/83792571234/\",\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"]}},"put":{"summary":"Update Office Staff","description":"","operationId":"update-office-staff","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"dob":{"type":"string","format":"date"},"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"middle_name":{"type":"string"},"phone":{"type":"string"},"practice":{"type":"integer","format":"int64"},"prefix":{"type":"string"},"sex":{"type":"string"},"suffix":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140754688737550,\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 = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\n\ndata = {\n \t'id': 140754688737550,\n \t'dob': None,\n \t'email': None,\n \t'first_name': 'Charles',\n \t'last_name': 'Orange',\n \t'middle_name': '',\n \t'phone': None,\n \t'practice': 2593872345435,\n \t'prefix': '',\n \t'sex': 'Unknown',\n \t'suffix': ''\n}\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/office_staff/140754688737550\",\n data=json.dumps(data),\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/office_staff/":{"get":{"summary":"Find Office Staff","description":"","operationId":"find-office-staff","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"[\n \t{\n \t\"id\": 83792571234,\n \t// See Object Definition\n\t},\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/office_staff/\",\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 Office Staff","description":"","operationId":"create-office-staff","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dob":{"type":"string","format":"date"},"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"middle_name":{"type":"string"},"phone":{"type":"string"},"practice":{"type":"number","format":"float"},"prefix":{"type":"string"},"sex":{"type":"string"},"suffix":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140754688737550,\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 \t'dob': None,\n \t'email': None,\n \t'first_name': 'Charles',\n \t'last_name': 'Orange',\n \t'middle_name': '',\n \t'phone': None,\n \t'practice': 2593872345435,\n \t'prefix': '',\n \t'sex': 'Unknown',\n \t'suffix': ''\n}\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/office_staff/\",\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"]}}},"/staff_groups/":{"get":{"summary":"Find Staff Group","description":"","operationId":"find-staff-group","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","schema":{"type":"string"}},{"name":"practice","in":"query","schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"[\n \t{\n \t\"id\": 83792571234,\n \t// See Object Definition\n\t},\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/staff_groups/\",\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 Staff Group","description":"","operationId":"create-staff-group","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"is_elation_group":{"type":"boolean"},"users":{"type":"array","items":{"type":"integer","format":"int32"}},"practice":{"type":"integer","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140754688737550,\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 'name': 'group, \n 'is_elation_group': False, \n 'users': [\n 140754687361026,\n 140754687361027\n ], \n 'practice': 211,\n}\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/staff_groups/\",\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"]}},"delete":{"summary":"Delete a Staff Group","description":"","operationId":"delete-a-staff-group","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"responses":{"204":{"description":"204","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\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/staff_groups/140754688737550\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/staff_groups/{id}":{"put":{"summary":"Update Staff Group","description":"","operationId":"update-staff-group","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"is_elation_group":{"type":"boolean"},"users":{"type":"array","items":{"type":"integer","format":"int64"}},"practice":{"type":"integer","format":"int64"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140754688737550,\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 = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\n\ndata = {\n 'id': 140754688737550, \n 'name': 'group, \n 'is_elation_group': False, \n 'users': [\n 140754687361026,\n 140754687361027\n ], \n 'practice': 211,\n}\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/staff_groups/140754688737550\",\n data=json.dumps(data),\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/vaccines/{id}/":{"get":{"summary":"Get Vaccine","description":"Note, Practices may view Medispan and Elation created Vaccines, along with any Vaccines added to the system by that Practice. This is a read-only view. They may also filter the list by whether the Vaccine is from Medispan, Elation, or their own Practice.","operationId":"get-vaccine","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}"}}}}},"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/vaccines/64184451073/\",\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 Vaccine","description":"Note, Practices may only (soft) delete vaccines created by that Practice. Deleting a Vaccine will prevent it from displaying when selecting a Vaccine from the list of possible Vaccines when entering an Immunization into a patient record.","operationId":"delete-vaccine","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/vaccines/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/letters/":{"post":{"summary":"Post Letter","description":"","operationId":"post-letter","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice","body","send_to_contact","referral_order"],"properties":{"patient":{"type":"integer","description":"The id of the patient","format":"int64"},"practice":{"type":"integer","description":"The id of the practice","format":"int64"},"body":{"type":"string","description":"body of the letter"},"subject":{"type":"string","description":"subject of the letter (Not needed with referral_order)"},"send_to_contact":{"type":"object","description":"object with the recipient of the letter","properties":{}},"referral_order":{"type":"integer","description":"Id of the Referral Order (Not needed with subject)","format":"int64"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 65097302057,\n\t// 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 \"practice\" : 64901939456,\n \"patient\": 64901939201\n \"body\": \"Body of a letter\",\n \"subject\" : \"Subject of a letter\",\n \"send_to_contact\": {\"id\": 64901939893}\n\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/letters/\",\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"]}}},"/document_tags/":{"get":{"summary":"Find Document Tags","description":"","operationId":"find-document-tags","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/document_tags/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/document_tags/?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/document_tags/\",\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 Document Tag","description":"","operationId":"create-document-tag","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","description":"The value of the tag"},"description":{"type":"object","description":"The description of the tag","properties":{}},"code_type":{"type":"string","description":"The type of the tag's cod. Choices = CPT, SNOMED, HL7, ICD9, LOINC, CVX, RXNORM, ICD10, CPTII, HCPCS or EL8"},"code":{"type":"integer","description":"The code of the tag","format":"int32"},"practice_created":{"type":"integer","description":"The id of the tag's practice","format":"int32"},"concept_name":{"type":"string","description":"The name of the tag's concept","format":"date"},"context":{"type":"string","description":"The context of the tag. Choices = rejected, ordered or reviewed","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 \"value\": \"My Tag\",\n \"description\": \"Test document tag\",\n \"code_type\": \"CPT\", # CPT, SNOMED, HL7, ICD9, LOINC, CVX, RXNORM, ICD10, CPTII, HCPCS or EL8\n \"code\": \"1\",\n \"practice_created\": 131074,\n \"concept_name\": \"diet-counsel\",\n \"context\": \"ordered\", # rejected, ordered or reviewed\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/document_tags/\",\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"]}}},"/document_tags/{id}/":{"get":{"summary":"Get Document Tag","description":"","operationId":"get-document-tag","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}"}}}}},"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/document_tags/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Document Tag","description":"","operationId":"update-document-tag","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"The id of the document tag","format":"int32"},"value":{"type":"string","description":"The value of the tag"},"description":{"type":"object","description":"The description of the tag","properties":{}},"code_type":{"type":"string","description":"The type of the tag's cod. Choices = CPT, SNOMED, HL7, ICD9, LOINC, CVX, RXNORM, ICD10, CPTII, HCPCS or EL8"},"code":{"type":"integer","description":"The code of the tag","format":"int32"},"practice_created":{"type":"integer","description":"The id of the tag's practice","format":"int32"},"concept_name":{"type":"string","description":"The name of the tag's concept","format":"date"},"context":{"type":"string","description":"The context of the tag. Choices = rejected, ordered or reviewed","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\ndata = {\n \"id\": 127362,\n \"value\": \"My Tag\",\n \"description\": \"Test document tag\",\n \"code_type\": \"CPT\", # CPT, SNOMED, HL7, ICD9, LOINC, CVX, RXNORM, ICD10, CPTII, HCPCS or EL8\n \"code\": \"1\",\n \"practice_created\": 131074,\n \"concept_name\": \"diet-counsel\",\n \"context\": \"ordered\", # rejected, ordered or reviewed\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/document_tags/\",\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"]}},"put":{"summary":"Update Document Tag","description":"","operationId":"update-document-tag-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"The id of the document tag","format":"int32"},"value":{"type":"string","description":"The value of the tag"},"description":{"type":"object","description":"The description of the tag","properties":{}},"code_type":{"type":"string","description":"The type of the tag's cod. Choices = CPT, SNOMED, HL7, ICD9, LOINC, CVX, RXNORM, ICD10, CPTII, HCPCS or EL8"},"code":{"type":"integer","description":"The code of the tag","format":"int32"},"practice_created":{"type":"integer","description":"The id of the tag's practice","format":"int32"},"concept_name":{"type":"string","description":"The name of the tag's concept","format":"date"},"context":{"type":"string","description":"The context of the tag. Choices = rejected, ordered or reviewed","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\ndata = {\n \"id\": 127362,\n \"value\": \"My Tag\",\n \"description\": \"Test document tag\",\n \"code_type\": \"CPT\", # CPT, SNOMED, HL7, ICD9, LOINC, CVX, RXNORM, ICD10, CPTII, HCPCS or EL8\n \"code\": \"1\",\n \"practice_created\": 131074,\n \"concept_name\": \"diet-counsel\",\n \"context\": \"ordered\", # rejected, ordered or reviewed\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/document_tags/\",\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"]}}},"/clinical_documents/":{"get":{"summary":"Find Clinical Documents","description":"","operationId":"find-clinical-documents","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/clinical_documents/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/clinical_documents/?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/clinical_documents/\",\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 Clinical Document","description":"","operationId":"create-clinical-document","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","authoring_practice","data_format"],"properties":{"patient":{"type":"integer","description":"The id of the patient","format":"int32"},"authoring_practice":{"type":"integer","description":"The id of the patient's practice","format":"int32"},"xml_file":{"properties":{"original_filename":{"type":"string","description":"The filename of the xml file"},"content_type":{"type":"string","description":"The context type of the uploaded file (must be \"application/octet-stream\")","default":"application/octet-stream"},"base64_content":{"type":"string","description":"The base64 of the uploaded file"}},"required":["original_filename","content_type","base64_content"],"type":"object","description":"The xml file to be used as clinical document"},"data_format":{"type":"integer","description":"The format of the clinical document data","format":"int32"}}}}}},"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 \"patient\": 437635,\n \"authoring_practice\": 138261,\n \"xml_file\": {\n \"original_filename\": \"full_ccda.xml\",\n \"content_type\": \"application/octet-stream\",\n \"base64_content\": \n },\n \"data_format\": \"ccda\"\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/clinical_documents/\",\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"]}}},"/clinical_documents/{id}/":{"get":{"summary":"Get Clinical Document","description":"","operationId":"get-clinical-document","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}"}}}}},"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/clinical_documents/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/drug_intolerances/":{"get":{"summary":"Find Drug Intolerances","description":"","operationId":"find-drug-intolerances","parameters":[{"name":"patients","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/drug_intolerances/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/drug_intolerances/?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/drug_intolerances/\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/drug_intolerances/{id}/":{"get":{"summary":"Get Drug Intolerance","description":"","operationId":"get-drug-intolerance","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 65097302057,\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/drug_intolerances/65097302057/\",\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 Drug Intolerance","description":"","operationId":"delete-drug-intolerance","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"204":{"description":"204","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\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/drug_intolerances/54233202689/\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)"}],"samples-languages":["python"]}}},"":{"post":{"summary":"Create Drug Intolerance","description":"","operationId":"create-drug-intolerance","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},"patch":{"summary":"Update Drug Intolerance","description":"","operationId":"update-drug-intolerance","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},"delete":{"summary":"Delete Appointment Type","description":"","operationId":"delete-appointment-type-1","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}},"/contacts/search/":{"get":{"summary":"Search Contacts","description":"","operationId":"get-contacts","parameters":[{"name":"q","in":"query","description":"Contact name or fax number to look for","schema":{"type":"string"}},{"name":"city","in":"query","description":"City name where to look contacts","schema":{"type":"string"}},{"name":"state","in":"query","description":"State where to look contacts","schema":{"type":"string"}},{"name":"specialties","in":"query","description":"Comma separated specialties to look for contacts. Examples: \"psychology,dental care\" or \"pharmacy\"","schema":{"type":"string"}},{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"[ // List of objects\n { // See Object Definition },\n // ...\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 json\nimport requests\n\nurl = \"https://sandbox.elationemr.com/api/2.0/contacts/?name=Beverly Crusher, MD\"\n\naccess_token = \"mAnkEq6vThAFVAska6nzZwqQtjLWPb\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresponse = requests.get(url, headers={'Authorization': auth_header})\n\nprint(response.status_code)\nprint(json.dumps(json.loads(response.content), indent=2))"},{"language":"curl","code":"curl \"https://sandbox.elationemr.com/api/2.0/contacts/?name=Beverly Crusher, MD\" \\\n> -H \"Authorization: Bearer mAnkEq6vThAFVAska6nzZwqQtjLWPb\""}],"samples-languages":["python","curl"]}}},"/contacts/":{"post":{"summary":"Create Contact","description":"","operationId":"create-contact","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","description":"The first name of the physician. Ignored if contact is a medical_group. Maximum length: 50 characters."},"middle_name":{"type":"string","description":"The middle name of the physician. Ignored if contact is a medical_group. Maximum length: 50 characters."},"last_name":{"type":"string","description":"The last name of the physician. Ignored if contact is a medical_group. Maximum length: 60 characters."},"credentials":{"type":"string","description":"The credentials of the physician, e.g. MD or DO. Ignored if contact is a medical_group."},"fax":{"type":"string"},"direct_address":{"type":"string"},"address":{"type":"string"},"suite":{"type":"string"},"email":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"contact_type":{"type":"string","description":"Use physician for individuals and medical_group for organizations","default":"medical_group","enum":["physician","medical_group"]},"phone":{"type":"string"},"cell_phone":{"type":"string"},"back_office_phone":{"type":"string"},"is_elation_confirmed":{"type":"boolean"},"accepting_insurance":{"type":"boolean"},"accepting_new_patients":{"type":"boolean"},"practice":{"type":"integer","format":"int32"},"specialty":{"type":"object","properties":{}},"other_specialties":{"type":"array"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 65097302057,\n\t// 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\n\ndata = {\n \"first_name\": \"Leroy\",\n \"middle_name\": \"J\",\n \"last_name\": \"Fuller\",\n \"credentials\": \"MD\",\n \"fax\": \"050-080-6703\",\n \"direct_address\": \"\",\n \"address\": \"925 Cantrell Wall Suite 969, Sethfort, VT 66010\",\n \"suite\": \"Suite 151\",\n \"email\": \"betle+Wilson.Hall@elationhealth.com\",\n \"zip\": \"55098\",\n \"city\": \"Sethfort\",\n \"state\": \"VT\",\n \"contact_type\": \"physician\",\n \"phone\": \"506-729-3449\",\n \"cell_phone\": \"506-729-3449\",\n \"back_office_phone\": \"506-729-3449\",\n \"is_elation_confirmed\": True,\n \"accepting_insurance\": True,\n \"accepting_new_patients\": True,\n\t\"practice\": 64901939456,\n \"specialty\": {\"name\": \"Biochemist\"},\n \"other_specialties\": [\n {\"name\": \"Adult Day Care\"},\n {\"name\": \"Anatomic Pathology\"},\n ]\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/contacts/\",\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":"List Contacts","description":"","operationId":"find-contacts","parameters":[{"name":"npi","in":"query","description":"The NPI of the contact","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}},"/contacts/{id}/":{"put":{"summary":"Update Contacts","description":"","operationId":"update-contacts","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","description":"Maximum length: 50 characters."},"middle_name":{"type":"string","description":"Maximum length: 50 characters."},"last_name":{"type":"string","description":"Maximum length: 60 characters."},"credentials":{"type":"string"},"fax":{"type":"string"},"direct_address":{"type":"string"},"address":{"type":"string"},"suite":{"type":"string"},"email":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"contact_type":{"type":"string"},"phone":{"type":"string"},"cell_phone":{"type":"string"},"back_office_phone":{"type":"string"},"is_elation_confirmed":{"type":"boolean"},"accepting_insurance":{"type":"boolean"},"accepting_new_patients":{"type":"boolean"},"practice":{"type":"integer","format":"int32"},"specialty":{"type":"object","properties":{}},"other_specialties":{"type":"array"}}}}}},"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\": \"Leroy\",\n \"middle_name\": \"J\",\n \"last_name\": \"Fuller\",\n \"credentials\": \"MD\",\n \"fax\": \"050-080-6703\",\n \"direct_address\": \"\",\n \"address\": \"925 Cantrell Wall Suite 969, Sethfort, VT 66010\",\n \"suite\": \"Suite 151\",\n \"email\": \"betle+Wilson.Hall@elationhealth.com\",\n \"zip\": \"55098\",\n \"city\": \"Sethfort\",\n \"state\": \"VT\",\n \"contact_type\": \"physician\",\n \"phone\": \"506-729-3449\",\n \"cell_phone\": \"506-729-3449\",\n \"back_office_phone\": \"506-729-3449\",\n \"is_elation_confirmed\": True,\n \"accepting_insurance\": True,\n \"accepting_new_patients\": True,\n\t\"practice\": 64901939456,\n \"specialty\": {\"name\": \"Biochemist\"},\n \"other_specialties\": [\n {\"name\": \"Adult Day Care\"},\n {\"name\": \"Anatomic Pathology\"},\n ]\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/contacts/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"]}},"patch":{"summary":"Update Contacts","description":"","operationId":"update-contacts-1","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","description":"Maximum length: 50 characters."},"middle_name":{"type":"string","description":"Maximum length: 50 characters."},"last_name":{"type":"string","description":"Maximum length: 60 characters."},"credentials":{"type":"string"},"fax":{"type":"string"},"direct_address":{"type":"string"},"address":{"type":"string"},"suite":{"type":"string"},"email":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"contact_type":{"type":"string"},"phone":{"type":"string"},"cell_phone":{"type":"string"},"back_office_phone":{"type":"string"},"is_elation_confirmed":{"type":"boolean"},"accepting_insurance":{"type":"boolean"},"accepting_new_patients":{"type":"boolean"},"practice":{"type":"integer","format":"int32"},"specialty":{"type":"object","properties":{}},"other_specialties":{"type":"array"}}}}}},"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 \"suite\": \"Apt 807\"\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/contacts/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"]}}},"/contacts/:id/":{"delete":{"summary":"Delete Contacts","description":"","operationId":"delete-contacts","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}},"/referral_orders/":{"post":{"summary":"Post Referral Order","description":"","operationId":"premium-post-referral-order","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice","authorization_for","consultant_name","short_consultant_name"],"properties":{"patient":{"type":"integer","description":"The id of the patient","format":"int64"},"practice":{"type":"integer","description":"The id of the practice","format":"int64"},"authorization_for":{"type":"string","enum":["\"Referral For Treatment","includes Consult Visit\"","\"Procedure / Testing Only\"","\"Consult (One Visit Only)\""]},"consultant_name":{"type":"string","description":"Name of the consultant"},"short_consultant_name":{"type":"string","description":"Short name of the consultant"},"auth_number":{"type":"string","description":"Auth number of the referral order"},"specialty":{"type":"object","description":"Object with name of the specialty","properties":{}},"icd10_codes":{"type":"array","description":"List of Icd10 Codes"},"date_for_reEval":{"type":"string","format":"date"},"resolution":{"type":"object","description":"Object with resolution for the referral order","properties":{}}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 65097302057,\n\t// 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 \"practice\" : 64901939456,\n \"patient\": 64901939201\n \"authorization_for\": \"Referral For Treatment, includes Consult Visit\",\n\t\"consultant_name\": \"Michael Miers\",\n \"short_consultant_name\": \"Miers\",\n \"auth_number\": \"25675\",\n \"specialty\": {\"name\": \"Cardiology\"},\n \"icd10_codes\": [{\"code\": \"F40.232\"}],\n \"date_for_reEval\": \"2010-10-02\",\n \"resolution\": {\"state\": \"fulfilled\"},\n\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/referral_orders/\",\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"]}},"put":{"summary":"Update Referral Order","description":"","operationId":"premium-update-referral-order","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice","authorization_for","consultant_name","short_consultant_name"],"properties":{"patient":{"type":"integer","description":"The id of the patient","format":"int64"},"practice":{"type":"integer","description":"The id of the practice","format":"int64"},"authorization_for":{"type":"string","enum":["\"Referral For Treatment","includes Consult Visit\"","\"Procedure / Testing Only\"","\"Consult (One Visit Only)\""]},"consultant_name":{"type":"string","description":"Name of the consultant"},"short_consultant_name":{"type":"string","description":"Short name of the consultant"},"auth_number":{"type":"string","description":"Auth number of the referral order"},"specialty":{"type":"object","description":"Object with name of the specialty","properties":{}},"icd10_codes":{"type":"array","description":"List of Icd10 Codes"},"date_for_reEval":{"type":"string","format":"date"},"resolution":{"type":"object","description":"Object with resolution for the referral order","properties":{}}}}}}},"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\n# sending only required data\ndata = {\n \"practice\" : 64901939456,\n \"patient\": 64901939201\n \"authorization_for\": \"Referral For Treatment, includes Consult Visit\",\n\t\"consultant_name\": \"Michael Miers\",\n \"short_consultant_name\": \"Miers\",\n \"auth_number\": \"25675\",\n \"specialty\": {\"name\": \"Cardiology\"},\n \"icd10_codes\": [{\"code\": \"F40.232\"}],\n \"date_for_reEval\": \"2010-10-02\",\n \"resolution\": {\"state\": \"fulfilled\"},\n\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/referral_orders/\",\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 Referral Order","description":"","operationId":"premium-update-referral-order-1","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice","authorization_for","consultant_name","short_consultant_name"],"properties":{"patient":{"type":"integer","description":"The id of the patient","format":"int64"},"practice":{"type":"integer","description":"The id of the practice","format":"int64"},"authorization_for":{"type":"string","enum":["\"Referral For Treatment","includes Consult Visit\"","\"Procedure / Testing Only\"","\"Consult (One Visit Only)\""]},"consultant_name":{"type":"string","description":"Name of the consultant"},"short_consultant_name":{"type":"string","description":"Short name of the consultant"},"auth_number":{"type":"string","description":"Auth number of the referral order"},"specialty":{"type":"object","description":"Object with name of the specialty","properties":{}},"icd10_codes":{"type":"array","description":"List of Icd10 Codes"},"date_for_reEval":{"type":"string","format":"date"},"resolution":{"type":"object","description":"Object with resolution for the referral order","properties":{}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 65097302057,\n\t// 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 \"practice\" : 64901939456,\n \"patient\": 64901939201\n \"authorization_for\": \"Referral For Treatment, includes Consult Visit\",\n\t\"consultant_name\": \"Michael Miers\",\n \"short_consultant_name\": \"Miers\",\n \"auth_number\": \"25675\",\n \"specialty\": {\"name\": \"Cardiology\"},\n \"icd10_codes\": [{\"code\": \"F40.232\"}],\n \"date_for_reEval\": \"2010-10-02\",\n \"resolution\": {\"state\": \"fulfilled\"},\n\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/referral_orders/\",\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"]}}},"/users/{user_id}/":{"patch":{"summary":"Update User","description":"","operationId":"update-user","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","description":"Maximum length: 50 characters."},"last_name":{"type":"string","description":"Maximum length: 60 characters."},"email":{"type":"string"},"is_active":{"type":"boolean"},"has_chart_access":{"type":"boolean","default":false}}}}}},"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}},"/print_headers/":{"get":{"summary":"Find Print Headers","description":"","operationId":"find-print-headers","parameters":[{"name":"practice","in":"query","description":"The practice id that we want to filter print headers by.","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{'count': 7,\n 'next': None,\n 'previous': None,\n 'results': [{'id': 140755885818184,\n 'created_date': '2021-11-24T06:31:41Z',\n 'deleted_date': None,\n 'name': 'Elation Practice Header',\n 'content_type': '0',\n 'header': 'Yoder, Howell and Blanchard\\n6415 Spencer Extension Apt. 821 Suite 092, Port Heather, LA 88981\\nOffice: 1742215; Fax: 021678',\n 'header_image': None,\n 'image_placement': '2',\n 'practice': 140755880968196},\n {'id': 140755885883720,\n 'created_date': '2021-11-24T06:31:41Z',\n 'deleted_date': None,\n 'name': 'Header test101',\n 'content_type': '0',\n 'header': 'This is a simple test1.',\n 'header_image': None,\n 'image_placement': '2',\n 'practice': 140755880968196},\n {'id': 140755885949256,\n 'created_date': '2021-11-24T06:31:41Z',\n 'deleted_date': None,\n 'name': 'Header test102',\n 'content_type': '0',\n 'header': 'This is a simple test2.',\n 'header_image': None,\n 'image_placement': '2',\n 'practice': 140755880968196},\n {'id': 140755886014792,\n 'created_date': '2021-11-24T06:31:42Z',\n 'deleted_date': None,\n 'name': 'Header test101',\n 'content_type': '0',\n 'header': 'This is a simple test1.',\n 'header_image': None,\n 'image_placement': '2',\n 'practice': 140755880968196},\n {'id': 140755886080328,\n 'created_date': '2021-11-24T06:31:42Z',\n 'deleted_date': None,\n 'name': 'Header test102',\n 'content_type': '0',\n 'header': 'This is a simple test2.',\n 'header_image': None,\n 'image_placement': '2',\n 'practice': 140755880968196},\n {'id': 140755886145864,\n 'created_date': '2021-11-24T06:31:42Z',\n 'deleted_date': '2021-11-24T06:31:42Z',\n 'name': 'Header test101',\n 'content_type': '0',\n 'header': 'This is a simple test1.',\n 'header_image': None,\n 'image_placement': '2',\n 'practice': 140755880968196},\n {'id': 140755886211400,\n 'created_date': '2021-11-24T06:31:42Z',\n 'deleted_date': None,\n 'name': 'Header test102',\n 'content_type': '0',\n 'header': 'This is a simple test2.',\n 'header_image': None,\n 'image_placement': '2',\n 'practice': 140755880968196}]}"}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/print_headers/{id}":{"get":{"summary":"Get Print Header","description":"","operationId":"get-print-header","responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{'id': 140755886080328,\n 'created_date': '2021-11-24T06:31:42Z',\n 'deleted_date': None,\n 'name': 'Header test102',\n 'content_type': '0',\n 'header': 'This is a simple test2.',\n 'header_image': None,\n 'image_placement': '2',\n 'practice': 140755880968196}"}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/patients/{id}/insurance_cards/":{"get":{"summary":"Get Insurance Cards","description":"","operationId":"get-insurance-cards","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Patient identifier","schema":{"type":"integer","format":"int64"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"// See Object Definition"}}}}},"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/patients/64184451073/insurance_cards/\",\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/insurance_cards/ \\\n> -H \"Authorization: Bearer XaTtPYZ8Ufy04f0187fPbWFkwcADF0\""}],"samples-languages":["python","curl"]}},"post":{"summary":"Create Insurance Card","description":"","operationId":"create-insurance-card","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Patient identifier","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["rank","side","image"],"properties":{"rank":{"type":"integer","description":"Primary or secondary insurances (1 or 2)","format":"int32"},"side":{"type":"integer","description":"Insurance card side. Usually front (1) or back (2)","format":"int32"},"image":{"type":"object","description":"Base64 encoded image of the insurance card. Only JPG and PNG files are supported.","required":["original_filename","content_type","base64_content"],"properties":{"original_filename":{"type":"string","description":"A filename for the image"},"content_type":{"type":"string","description":"We support PNG and JPG","default":"image/png"},"base64_content":{"type":"string","description":"The Base64 encoded binary data of the image"}}}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n \"detail\": \"rank, side, and image are required\"\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"string","example":"rank, side, and image are required"}}}}}}},"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 \"rank\": 1,\n \"side\": 1,\n \"image\": {\n \"original_filename\": \"insurance_card.png\",\n \"content_type\": \"image/png\",\n \"base64_content\": \"/9j/...j/9k=\"\n }\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/patients/64184451073/insurance_cards/\",\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"]}},"delete":{"summary":"Delete Insurance Card","description":"","operationId":"delete-insurance-card","parameters":[{"name":"rank","in":"query","description":"Primary or secondary insurances (1 or 2)","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"side","in":"query","description":"Insurance card side. Usually front (1) or back (2)","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"archive","in":"query","description":"Optional flag to archive the insurance card as a report before deleting","schema":{"type":"boolean"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Patient identifier","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/patients/64184451073/insurance_cards/?rank=1&side=1&archive=true\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code"}],"samples-languages":["python"]}}},"/discontinued_medications/":{"get":{"summary":"Find Discontinued Medications","description":"","operationId":"find-discontinued-medications","parameters":[{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"document_date__lte","in":"query","schema":{"type":"string","format":"date"}},{"name":"document_date__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"discontinue_date__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"discontinue_date__lte","in":"query","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 2,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 140758486024219,\n \"last_medication_order\": 140758485696538,\n \"med_order\": 140758485696538,\n \"thread\": 140758485630999,\n \"discontinue_date\": \"2022-05-17\",\n \"reason\": null,\n \"prescribing_physician\": 140754478628866,\n \"supervising_physician\": null,\n \"is_documented\": false,\n \"medication\": {\n \"id\": 140742231851055,\n \"rxnorm_cuis\": [\n \"2045377\"\n ],\n \"ndcs\": [\n \"00173-0888-10\"\n ],\n \"name\": \"Arnuity Ellipta Inhalation Aerosol Powder Breath Activated 50 MCG/ACT\",\n \"brand_name\": \"Arnuity Ellipta\",\n \"generic_name\": \"Fluticasone Furoate Aerosol Powder Breath Activ 50 MCG/ACT\",\n \"is_controlled\": false,\n \"type\": \"prescription\",\n \"route\": \"Inhalation\",\n \"strength\": \"50 MCG/ACT\",\n \"form\": \"Aerosol Powder Breath Activated\"\n },\n \"documenting_personnel\": 140754478628866,\n \"document_date\": \"2022-05-17T09:35:01Z\",\n \"chart_date\": \"2022-05-17T09:35:01Z\",\n \"created_date\": \"2022-05-17T09:35:01Z\",\n \"deleted_date\": null,\n \"signed_date\": \"2022-05-17T09:35:01Z\",\n \"patient\": 140754479349761,\n \"practice\": 140754475089924\n },\n {\n \"id\": 140758486089755,\n \"last_medication_order\": 140758485696538,\n \"med_order\": 140758485696538,\n \"thread\": 140758485630999,\n \"discontinue_date\": \"2022-05-17\",\n \"reason\": null,\n \"prescribing_physician\": 140754478628866,\n \"supervising_physician\": null,\n \"is_documented\": true,\n \"medication\": {\n \"id\": 140742231851055,\n \"rxnorm_cuis\": [\n \"2045377\"\n ],\n \"ndcs\": [\n \"00173-0888-10\"\n ],\n \"name\": \"Arnuity Ellipta Inhalation Aerosol Powder Breath Activated 50 MCG/ACT\",\n \"brand_name\": \"Arnuity Ellipta\",\n \"generic_name\": \"Fluticasone Furoate Aerosol Powder Breath Activ 50 MCG/ACT\",\n \"is_controlled\": false,\n \"type\": \"prescription\",\n \"route\": \"Inhalation\",\n \"strength\": \"50 MCG/ACT\",\n \"form\": \"Aerosol Powder Breath Activated\"\n },\n \"documenting_personnel\": 140754478628866,\n \"document_date\": \"2022-05-17T09:35:57Z\",\n \"chart_date\": \"2022-05-17T09:35:57Z\",\n \"created_date\": \"2022-05-17T09:35:57Z\",\n \"deleted_date\": null,\n \"signed_date\": \"2022-05-17T09:35:57Z\",\n \"patient\": 140754479349761,\n \"practice\": 140754475089924\n },\n ]\n}"}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"post":{"summary":"Create Discontinued Medications","description":"","operationId":"create-discontinued-medications","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["med_order"],"properties":{"med_order":{"type":"integer","description":"med_order ID","format":"int32"},"discontinue_date":{"type":"string","description":"discontinue date","default":"Today","format":"date"},"reason":{"type":"string","description":"discontinue reason","default":"Null"},"is_documented":{"type":"boolean","description":"if need documented","default":false},"documenting_personnel":{"type":"integer","description":"UserProfile id","format":"int32"}}}}}},"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\ndata = {\n \"med_order\": 140758531047450,\n \"reason\": \"new_reason\",\n \"discontinue_date\": \"2020-08-08\"\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/discontinued_medication\",\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"]}}},"/discontinued_medication/:id/":{"patch":{"summary":"Patch discontinue med order","description":"","operationId":"patch-discontinue-med-order","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"discontinue reason","default":"Null"},"discontinue_date":{"type":"string","description":"discontinue date","default":"Today","format":"date"},"documenting_personnel":{"type":"integer","description":"UserProfile id","format":"int32"}}}}}},"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\ndata = {\n \"reason\": \"new_reason\",\n \"discontine_date\": \"2020-08-08\"\n}\n\nresp = requests.patch(\n \"https://sandbox.elationemr.com/api/2.0/discontinued_medication/140758531047450\",\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"]}}},"/thread_members/{id}/":{"get":{"summary":"Get Thread Member","description":"","operationId":"get-thread-member","parameters":[{"name":"id","in":"path","description":"The id of the thread member","schema":{"type":"integer","format":"int32"},"required":true}],"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},"patch":{"summary":"Update Thread Member","description":"","operationId":"update-thread-member","parameters":[{"name":"id","in":"path","description":"The id of the thread member","schema":{"type":"integer","format":"int32"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"The status of the thread member, e.g. whether they've acknowledged the thread.","enum":["Addressed","Requiring Action"]},"ack_time":{"type":"string","description":"The timestamp when the thread member acknowledged the thread.","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}},"/thread_members/":{"get":{"summary":"Find Thread Members","description":"","operationId":"find-thread-members","parameters":[{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"user","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"group","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"status","in":"query","description":"Either Addressed or ReqAct","schema":{"type":"string"}},{"name":"ack_time","in":"query","schema":{"type":"string","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},"post":{"summary":"Create Thread Member","description":"","operationId":"create-thread-member","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["thread"],"properties":{"thread":{"type":"integer","description":"The thread this Thread Member is a member of","format":"int32"},"user":{"type":"integer","description":"The id of the user that is a member of the thread. Either user or group is required for POST.","format":"int32"},"group":{"type":"integer","description":"The id of the group that is a member of this thread. Either user or group is required for POST.","format":"int32"},"status":{"type":"string","description":"The status of the member","enum":["Addressed","Requiring Action"]},"ack_time":{"type":"string","description":"The time at which this thread was acknowledged","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}},"/message_threads/{id}/":{"patch":{"summary":"Update Message Thread","description":"","operationId":"update-message-thread","parameters":[{"name":"id","in":"path","description":"The id of the message thread","schema":{"type":"integer","format":"int32"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"is_urgent":{"type":"boolean"},"delivery_date":{"type":"string","description":"The time at which the message thread will be \"delivered\" to users and made visible in the UI.","format":"date"},"document_date":{"type":"string","format":"date"},"chart_date":{"type":"string","format":"date"},"members":{"type":"array","description":"List of members to replace existing list."}}}}}},"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},"delete":{"summary":"Delete Message Thread","description":"","operationId":"delete-message-thread","parameters":[{"name":"id","in":"path","description":"The id of the message thread","schema":{"type":"integer","format":"int32"},"required":true}],"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}},"/thread_members/{id}":{"delete":{"summary":"Delete Thread Member","description":"","operationId":"delete-thread-member","parameters":[{"name":"id","in":"path","description":"Id of the thread member","schema":{"type":"integer","format":"int32"},"required":true}],"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}},"/lab_vendor_integrations/{id}":{"get":{"summary":"Get Lab Vendor Integration","description":"","operationId":"get-lab-vendor-integration","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\t\t\n \"allow_print\":true,\n \"created_date\":\"2022-05-06T12:16:10Z\",\n \"deleted_date\":null,\n \"id\":140758864036248,\n \"lab_vendor\":140758863970550,\n \"orders_status\":\"not_requested\",\n \"practice\":140758859186180,\n \"results_status\":\"live\"\n}"}},"schema":{"type":"object","properties":{"allow_print":{"type":"boolean","example":true,"default":true},"created_date":{"type":"string","example":"2022-05-06T12:16:10Z"},"deleted_date":{},"id":{"type":"integer","example":140758864036248,"default":0},"lab_vendor":{"type":"integer","example":140758863970550,"default":0},"orders_status":{"type":"string","example":"not_requested"},"practice":{"type":"integer","example":140758859186180,"default":0},"results_status":{"type":"string","example":"live"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_integrations/12345566\",\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"put":{"summary":"Put Lab Vendor Integration","description":"","operationId":"put-lab-vendor-integration","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","lab_vendor"],"properties":{"practice":{"type":"integer","description":"Must bu unique with 'lab_vendor'","format":"int32"},"lab_vendor":{"type":"integer","description":"Must bu unique with 'practice'","format":"int32"},"results_status":{"type":"string","enum":["\"not_requested\"","\"waiting_on_lab\"","\"pending_testing\"","\"completed_testing\"","\"blocked\"","\"live\"",""]},"orders_status":{"type":"string","enum":["\"not_requested\"","\"waiting_on_lab\"","\"pending_testing\"","\"completed_testing\"","\"blocked\"","\"live\"",""]},"allow_print":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 123456,\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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"ptactice\": 12323456,\n \"lab_vendor\": 11234544,\n \"results_status\": \"live\"\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_integrations/12334567\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"patch":{"summary":"Patch Lab Vendor Integration","description":"","operationId":"patch-lab-vendor-integration","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"practice":{"type":"integer","description":"Must bu unique with 'lab_vendor'","format":"int32"},"lab_vendor":{"type":"integer","description":"Must bu unique with 'practice'","format":"int32"},"results_status":{"type":"string","enum":["\"not_requested\"","\"waiting_on_lab\"","\"pending_testing\"","\"completed_testing\"","\"blocked\"","\"live\"",""]},"orders_status":{"type":"string","enum":["\"not_requested\"","\"waiting_on_lab\"","\"pending_testing\"","\"completed_testing\"","\"blocked\"","\"live\"",""]},"allow_print":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 123456,\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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"ptactice\": 12323456,\n \"lab_vendor\": 11234544,\n \"results_status\": \"live\"\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_integrations/12334567\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Lab Vendor Integration","description":"","operationId":"delete-lab-vendor-integration","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_integrations/12345566\",\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_facility_identifiers/{id}":{"delete":{"summary":"Delete Lab Facility Identifiers","description":"","operationId":"delete-lab-facility-identifiers","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/3234234\",\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/patient_insurances/{id}/eligibility/":{"get":{"summary":"Get Eligibility","description":"","operationId":"get-eligibility","parameters":[{"name":"id","in":"path","description":"patient insurance ID","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":"// See Insurance Eligibility Object Definition\n{\n \"eligibility_details\": {\n \"copay\": null,\n \"copay_ambiguous\": true,\n \"coinsurance\": \"0\",\n \"coinsurance_ambiguous\": false,\n \"deductible\": \"2000\",\n \"deductible_ambiguous\": false,\n \"deductible_remaining\": \"1827.12\",\n \"deductible_remaining_ambiguous\": false,\n \"errors\": []\n },\n \"eligibility_check_timestamp\": \"2022-05-05T19:39:26+00:00\",\n \"eligibility_status\": \"active\",\n \"patient_id\": 140658474356545,\n \"patient_insurance_id\": 130754515763059,\n \"practice_id\": 6558432\n}"}},"schema":{"type":"object","properties":{"eligibility_details":{"type":"object","properties":{"copay":{},"copay_ambiguous":{"type":"boolean","example":true,"default":true},"coinsurance":{"type":"string","example":"0"},"coinsurance_ambiguous":{"type":"boolean","example":false,"default":true},"deductible":{"type":"string","example":"2000"},"deductible_ambiguous":{"type":"boolean","example":false,"default":true},"deductible_remaining":{"type":"string","example":"1827.12"},"deductible_remaining_ambiguous":{"type":"boolean","example":false,"default":true},"errors":{"type":"array"}}},"eligibility_check_timestamp":{"type":"string","example":"2022-05-05T19:39:26+00:00"},"eligibility_status":{"type":"string","example":"active"},"patient_id":{"type":"integer","example":140658474356545,"default":0},"patient_insurance_id":{"type":"integer","example":130754515763059,"default":0},"practice_id":{"type":"integer","example":6558432,"default":0}}}}}},"404":{"description":"404","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/patient_insurances/130754515763059/eligibility/\",\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"]}},"post":{"summary":"Create Eligibility","description":"","operationId":"create-eligibility","parameters":[{"name":"id","in":"path","description":"Patient Insurance ID","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"group_id":{"type":"integer","description":"ID that matches the group record in Elation system","format":"int32"},"group_name":{"type":"string","description":"Name of the group / organization. group_npi field is required if this is populated."},"group_npi":{"type":"string","description":"NPI of the group / organization. group_name field is required if this is populated."}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"// See Insurance Elgibility Object Definition\n{\n \"eligibility_details\": {\n \"copay\": null,\n \"copay_ambiguous\": true,\n \"coinsurance\": \"0\",\n \"coinsurance_ambiguous\": false,\n \"deductible\": \"2000\",\n \"deductible_ambiguous\": false,\n \"deductible_remaining\": \"1827.12\",\n \"deductible_remaining_ambiguous\": false,\n \"errors\": []\n },\n \"eligibility_check_timestamp\": \"2022-05-05T19:39:26+00:00\",\n \"eligibility_status\": \"active\",\n \"patient_id\": 140658474356545,\n \"patient_insurance_id\": 130754515763059,\n \"practice_id\": 6558432\n}"}},"schema":{"type":"object","properties":{"eligibility_details":{"type":"object","properties":{"copay":{},"copay_ambiguous":{"type":"boolean","example":true,"default":true},"coinsurance":{"type":"string","example":"0"},"coinsurance_ambiguous":{"type":"boolean","example":false,"default":true},"deductible":{"type":"string","example":"2000"},"deductible_ambiguous":{"type":"boolean","example":false,"default":true},"deductible_remaining":{"type":"string","example":"1827.12"},"deductible_remaining_ambiguous":{"type":"boolean","example":false,"default":true},"errors":{"type":"array"}}},"eligibility_check_timestamp":{"type":"string","example":"2022-05-05T19:39:26+00:00"},"eligibility_status":{"type":"string","example":"active"},"patient_id":{"type":"integer","example":140658474356545,"default":0},"patient_insurance_id":{"type":"integer","example":130754515763059,"default":0},"practice_id":{"type":"integer","example":6558432,"default":0}}}}}},"400":{"description":"400","content":{"text/plain":{"examples":{"Result":{"value":""}}}}},"404":{"description":"404","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/patient_insurances/130754515763059/eligibility/\",\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"]}}},"/medication_refills/{id}/":{"get":{"summary":"Get Refill","description":"","operationId":"get-refill","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"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}"}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"text","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/medication_refills/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["text"]}}},"/prescription_fills/{id}/":{"get":{"summary":"Get Prescription Fill","description":"","operationId":"get-fill","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"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}"}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"text","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/prescription_fills/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["text"]}}},"/prescription_fills/":{"get":{"summary":"Find Prescription Fills","description":"","operationId":"find-prescription-fills","parameters":[{"name":"practice","in":"query","description":"The doctor's practice","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"patient","in":"query","description":"Prescribed patient","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"fill_date__isnull","in":"query","description":"Fillment date","schema":{"type":"boolean"}},{"name":"fill_date__gte","in":"query","description":"Fillment date","schema":{"type":"string","format":"date"}},{"name":"fill_date__lte","in":"query","description":"Fillment date","schema":{"type":"string","format":"date"}},{"name":"fill_status","in":"query","description":"The status of fill","schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/prescription_fills/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/prescription_fills/?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}},"/medication_history_download_fills/{id}/":{"get":{"summary":"Get History Download Fill","description":"","operationId":"get-history-download-fill","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"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}"}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"text","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/medication_history_download_fills/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["text"]}}},"/medication_history_download_fills/":{"get":{"summary":"Find History Download Fills","description":"","operationId":"find-history-download-fills","parameters":[{"name":"patient","in":"query","description":"Prescribed patient","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice","in":"query","description":"The doctor's practice","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"history_download","in":"query","description":"Download summary","schema":{"type":"string"}},{"name":"last_fill_date__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"last_fill_date__lte","in":"query","schema":{"type":"string","format":"date"}},{"name":"written_date__lte","in":"query","schema":{"type":"string","format":"date"}},{"name":"written_date__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"last_fill_date__isnull","in":"query","schema":{"type":"boolean"}},{"name":"written_date__isnull","in":"query","schema":{"type":"boolean"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/medication_history_download_fills/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/medication_history_download_fills/?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":"text","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/medication_history_download_fills/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["text"]}}},"/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"]}},"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"]}}},"/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"]}},"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"]}},"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"]}},"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":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","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\nresp = requests.delete(\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"]}}},"/handouts/":{"get":{"summary":"Find Handouts","description":"","operationId":"find-hangouts","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"practice_created","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"tags","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"name","in":"query","schema":{"type":"array","items":{"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\": 140758845882533,\n \"name\": \"Anthrax VIS55\",\n \"type\": \"VIS\",\n \"received_date\": \"2022-06-10T08:32:27Z\",\n \"practice_created\": 140758831005700,\n \"created_date\": \"2022-06-10T08:32:28Z\",\n \"deleted_date\": null,\n \"tags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"content\": {\n \"content_type\": \"file/jpeg\",\n \"original_filename\": \"english.txt\"\n },\n \"vis_barcode\": null\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":140758845882533,"default":0},"name":{"type":"string","example":"Anthrax VIS55"},"type":{"type":"string","example":"VIS"},"received_date":{"type":"string","example":"2022-06-10T08:32:27Z"},"practice_created":{"type":"integer","example":140758831005700,"default":0},"created_date":{"type":"string","example":"2022-06-10T08:32:28Z"},"deleted_date":{},"tags":{"type":"array","items":{"type":"string","example":"tag1"}},"content":{"type":"object","properties":{"content_type":{"type":"string","example":"file/jpeg"},"original_filename":{"type":"string","example":"english.txt"}}},"vis_barcode":{}}}}}}}}},"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/handouts/\",\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 Handout","description":"","operationId":"create-hangout","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","type","practice_created","content"],"properties":{"name":{"type":"string","description":"Hangout name"},"type":{"type":"string","description":"Type of hangout. Is it dowload from patient or VIS fully-encoded text string","enum":["(1","\"Patient Resource\")","(2","\"VIS\")"]},"tags":{"type":"array","description":"Tags","items":{"properties":{"value":{"type":"string","description":"The tag name"}},"required":["value"],"type":"object"}},"vis_barcode":{"type":"string","description":"Should only be set if the type == VIS"},"practice_created":{"type":"integer","format":"int64"},"content":{"type":"object","description":"Contain file fields","required":["base64_content","content_type","original_filename"],"properties":{"base64_content":{"type":"string","description":"File data in Base64 format"},"content_type":{"type":"string","description":"Type of file content(e.g text, pdf)"},"original_filename":{"type":"string","description":"The file name"}}}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758845882533,\n \"name\": \"Anthrax VIS55\",\n \"type\": \"VIS\",\n \"received_date\": \"2022-06-10T08:32:27Z\",\n \"practice_created\": 140758831005700,\n \"created_date\": \"2022-06-10T08:32:28Z\",\n \"deleted_date\": null,\n \"tags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"content\": {\n \t// field base64_content no represent in the responce for Find Handouts\n \"base64_content\": \"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ==\",\n \"content_type\": \"file/jpeg\",\n \"original_filename\": \"english.txt\"\n },\n \"vis_barcode\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758845882533,"default":0},"name":{"type":"string","example":"Anthrax VIS55"},"type":{"type":"string","example":"VIS"},"received_date":{"type":"string","example":"2022-06-10T08:32:27Z"},"practice_created":{"type":"integer","example":140758831005700,"default":0},"created_date":{"type":"string","example":"2022-06-10T08:32:28Z"},"deleted_date":{},"tags":{"type":"array","items":{"type":"string","example":"tag1"}},"content":{"type":"object","properties":{"base64_content":{"type":"string","example":"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ=="},"content_type":{"type":"string","example":"file/jpeg"},"original_filename":{"type":"string","example":"english.txt"}}},"vis_barcode":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"413":{"description":"413","content":{"text/plain":{"examples":{"Result":{"value":"Payload Too Large"}}}}}},"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 \"name\": \"Anthrax VIS55\",\n \"type\": 1,\n \"practice_created\": 140758831005700,\n \n \"tags\": [\n {\n \"value\": \"tag3\"\n }\n ],\n \"content\": {\n \"content_type\": \"file/jpeg\",\n \"original_filename\": \"english.txt\",\n \"base64_content\": \"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ==\"\n }\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/handouts/\",\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"]}}},"/handouts/{id}":{"get":{"summary":"Get Handouts","description":"","operationId":"get-hangouts","parameters":[{"name":"id","in":"path","description":"Hangout id","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\": 140758845882533,\n \"name\": \"Anthrax VIS55\",\n \"type\": \"VIS\",\n \"received_date\": \"2022-06-10T08:32:27Z\",\n \"practice_created\": 140758831005700,\n \"created_date\": \"2022-06-10T08:32:28Z\",\n \"deleted_date\": null,\n \"tags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"content\": {\n \t// field base64_content no represent in the responce for Find Handouts\n \"base64_content\": \"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ==\",\n \"content_type\": \"file/jpeg\",\n \"original_filename\": \"english.txt\"\n },\n \"vis_barcode\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758845882533,"default":0},"name":{"type":"string","example":"Anthrax VIS55"},"type":{"type":"string","example":"VIS"},"received_date":{"type":"string","example":"2022-06-10T08:32:27Z"},"practice_created":{"type":"integer","example":140758831005700,"default":0},"created_date":{"type":"string","example":"2022-06-10T08:32:28Z"},"deleted_date":{},"tags":{"type":"array","items":{"type":"string","example":"tag1"}},"content":{"type":"object","properties":{"base64_content":{"type":"string","example":"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ=="},"content_type":{"type":"string","example":"file/jpeg"},"original_filename":{"type":"string","example":"english.txt"}}},"vis_barcode":{}}}}}},"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/handouts/140758547628421/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Handout","description":"","operationId":"update-hangout-1","parameters":[{"name":"id","in":"path","description":"Hangout id","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":{"name":{"type":"string","description":"Hangout name"},"type":{"type":"string","description":"Type of hangout. Is it dowload from patient or VIS fully-encoded text string","enum":["(1","\"Patient Resource\")","(2","\"VIS\")"]},"tags":{"type":"array","description":"Tags","items":{"type":"string"}},"vis_barcode":{"type":"string","description":"Should only be set if the type == VIS"},"practice_created":{"type":"integer","format":"int64"},"content":{"type":"object","description":"Contain file fields","properties":{}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758845882533,\n \"name\": \"Anthrax VIS55\",\n \"type\": \"VIS\",\n \"received_date\": \"2022-06-10T08:32:27Z\",\n \"practice_created\": 140758831005700,\n \"created_date\": \"2022-06-10T08:32:28Z\",\n \"deleted_date\": null,\n \"tags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"content\": {\n \t// field base64_content no represent in the responce for Find Handouts\n \"base64_content\": \"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ==\",\n \"content_type\": \"file/jpeg\",\n \"original_filename\": \"english.txt\"\n },\n \"vis_barcode\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758845882533,"default":0},"name":{"type":"string","example":"Anthrax VIS55"},"type":{"type":"string","example":"VIS"},"received_date":{"type":"string","example":"2022-06-10T08:32:27Z"},"practice_created":{"type":"integer","example":140758831005700,"default":0},"created_date":{"type":"string","example":"2022-06-10T08:32:28Z"},"deleted_date":{},"tags":{"type":"array","items":{"type":"string","example":"tag1"}},"content":{"type":"object","properties":{"base64_content":{"type":"string","example":"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ=="},"content_type":{"type":"string","example":"file/jpeg"},"original_filename":{"type":"string","example":"english.txt"}}},"vis_barcode":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"413":{"description":"413","content":{"text/plain":{"examples":{"Result":{"value":"Payload Too Large"}}}}}},"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 \"name\": \"Anthrax VIS55\",\n \"type\": 1,\n \"practice_created\": 140758831005700,\n \n \"tags\": [\n {\n \"value\": \"tag3\"\n }\n ],\n \"content\": {\n \"content_type\": \"file/jpeg\",\n \"original_filename\": \"english.txt\",\n \"base64_content\": \"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ==\"\n }\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/handouts/10239344687\",\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"]}},"delete":{"summary":"Delete Handout","description":"","operationId":"delete-hangout","parameters":[{"name":"id","in":"path","description":"Hangout id","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","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\nresp = requests.delete(\n \"https://sandbox.elationemr.com/api/2.0/handouts/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"]}}},"/handouts/{id}/":{"put":{"summary":"Update Handout","description":"","operationId":"update-hangout","parameters":[{"name":"id","in":"path","description":"Hangout id","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":["name","type","practice_created","content"],"properties":{"name":{"type":"string","description":"Hangout name"},"type":{"type":"string","description":"Type of hangout. Is it dowload from patient or VIS fully-encoded text string","enum":["(1","\"Patient Resource\")","(2","\"VIS\")"]},"practice_created":{"type":"integer","format":"int64"},"content":{"type":"object","description":"Contain the file fields","required":["base64_content","content_type","original_filename"],"properties":{"base64_content":{"type":"string","description":"File data in Base64 format"},"content_type":{"type":"string","description":"Type of file content(e.g text, pdf)"},"original_filename":{"type":"string","description":"The file name"}}},"tags":{"type":"array","description":"Tags","items":{"properties":{"value":{"type":"string","description":"The tag name"}},"required":["value"],"type":"object"}},"vis_barcode":{"type":"string","description":"Should only be set if the type == VIS"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758845882533,\n \"name\": \"Anthrax VIS55\",\n \"type\": \"VIS\",\n \"received_date\": \"2022-06-10T08:32:27Z\",\n \"practice_created\": 140758831005700,\n \"created_date\": \"2022-06-10T08:32:28Z\",\n \"deleted_date\": null,\n \"tags\": [\n \"tag1\",\n \"tag2\"\n ],\n \"content\": {\n \t// field base64_content no represent in the responce for Find Handouts\n \"base64_content\": \"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ==\",\n \"content_type\": \"file/jpeg\",\n \"original_filename\": \"english.txt\"\n },\n \"vis_barcode\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758845882533,"default":0},"name":{"type":"string","example":"Anthrax VIS55"},"type":{"type":"string","example":"VIS"},"received_date":{"type":"string","example":"2022-06-10T08:32:27Z"},"practice_created":{"type":"integer","example":140758831005700,"default":0},"created_date":{"type":"string","example":"2022-06-10T08:32:28Z"},"deleted_date":{},"tags":{"type":"array","items":{"type":"string","example":"tag1"}},"content":{"type":"object","properties":{"base64_content":{"type":"string","example":"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ=="},"content_type":{"type":"string","example":"file/jpeg"},"original_filename":{"type":"string","example":"english.txt"}}},"vis_barcode":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"413":{"description":"413","content":{"text/plain":{"examples":{"Result":{"value":"Payload Too Large"}}}}}},"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 \"name\": \"Anthrax VIS55\",\n \"type\": 1,\n \"practice_created\": 140758831005700,\n \n \"tags\": [\n {\n \"value\": \"tag3\"\n }\n ],\n \"content\": {\n \"content_type\": \"file/jpeg\",\n \"original_filename\": \"english.txt\",\n \"base64_content\": \"aW1wb3J0IHB5cGVyY2xpcApmcm9tIGJldGxlLmNsaWVudHMgaW1wb3J0IGFwaXYyX2NsaWVudAoKIyBydW4gYmVoYXZlIGJldGxlL2ZlYXR1cmVzL2FwaV8yMC9tZWRpY2F0aW9ucy5mZWF0dXJlCgpweXBlcmNsaXAuY29weShhcGl2Ml9jbGllbnQuYWNjZXNzX3Rva2VuKQ==\"\n }\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/handouts/10239344687\",\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"]}}},"/discontinued_medications/{id}":{"get":{"summary":"Get Discontinued Medication","description":"","operationId":"find-discontinued-medication","parameters":[{"name":"id","in":"path","description":"discontinue_medication id","schema":{"type":"integer","format":"int32"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758486089755,\n \"last_medication_order\": 140758485696538,\n \"med_order\": 140758485696538,\n \"thread\": 140758485630999,\n \"discontinue_date\": \"2022-05-17\",\n \"reason\": null,\n \"prescribing_physician\": 140754478628866,\n \"supervising_physician\": null,\n \"is_documented\": true,\n \"medication\": {\n \"id\": 140742231851055,\n \"rxnorm_cuis\": [\n \"2045377\"\n ],\n \"ndcs\": [\n \"00173-0888-10\"\n ],\n \"name\": \"Arnuity Ellipta Inhalation Aerosol Powder Breath Activated 50 MCG/ACT\",\n \"brand_name\": \"Arnuity Ellipta\",\n \"generic_name\": \"Fluticasone Furoate Aerosol Powder Breath Activ 50 MCG/ACT\",\n \"is_controlled\": false,\n \"type\": \"prescription\",\n \"route\": \"Inhalation\",\n \"strength\": \"50 MCG/ACT\",\n \"form\": \"Aerosol Powder Breath Activated\"\n },\n \"documenting_personnel\": 140754478628866,\n \"document_date\": \"2022-05-17T09:35:57Z\",\n \"chart_date\": \"2022-05-17T09:35:57Z\",\n \"created_date\": \"2022-05-17T09:35:57Z\",\n \"deleted_date\": null,\n \"signed_date\": \"2022-05-17T09:35:57Z\",\n \"patient\": 140754479349761,\n \"practice\": 140754475089924\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758486089755,"default":0},"last_medication_order":{"type":"integer","example":140758485696538,"default":0},"med_order":{"type":"integer","example":140758485696538,"default":0},"thread":{"type":"integer","example":140758485630999,"default":0},"discontinue_date":{"type":"string","example":"2022-05-17"},"reason":{},"prescribing_physician":{"type":"integer","example":140754478628866,"default":0},"supervising_physician":{},"is_documented":{"type":"boolean","example":true,"default":true},"medication":{"type":"object","properties":{"id":{"type":"integer","example":140742231851055,"default":0},"rxnorm_cuis":{"type":"array","items":{"type":"string","example":"2045377"}},"ndcs":{"type":"array","items":{"type":"string","example":"00173-0888-10"}},"name":{"type":"string","example":"Arnuity Ellipta Inhalation Aerosol Powder Breath Activated 50 MCG/ACT"},"brand_name":{"type":"string","example":"Arnuity Ellipta"},"generic_name":{"type":"string","example":"Fluticasone Furoate Aerosol Powder Breath Activ 50 MCG/ACT"},"is_controlled":{"type":"boolean","example":false,"default":true},"type":{"type":"string","example":"prescription"},"route":{"type":"string","example":"Inhalation"},"strength":{"type":"string","example":"50 MCG/ACT"},"form":{"type":"string","example":"Aerosol Powder Breath Activated"}}},"documenting_personnel":{"type":"integer","example":140754478628866,"default":0},"document_date":{"type":"string","example":"2022-05-17T09:35:57Z"},"chart_date":{"type":"string","example":"2022-05-17T09:35:57Z"},"created_date":{"type":"string","example":"2022-05-17T09:35:57Z"},"deleted_date":{},"signed_date":{"type":"string","example":"2022-05-17T09:35:57Z"},"patient":{"type":"integer","example":140754479349761,"default":0},"practice":{"type":"integer","example":140754475089924,"default":0}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/visit_notes/":{"get":{"summary":"Find Visit Notes","description":"","operationId":"find-visit-notes","parameters":[{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"physician","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"unsigned","in":"query","schema":{"type":"boolean"}},{"name":"from_signed_date","in":"query","schema":{"type":"string","format":"date"}},{"name":"to_signed_date","in":"query","schema":{"type":"string","format":"date"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"last_modified__gt","in":"query","schema":{"type":"string","format":"date"}},{"name":"last_modified__lt","in":"query","schema":{"type":"string","format":"date"}},{"name":"last_modified__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"last_modified__lte","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/visit_notes/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/visit_notes/?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\nfrom datetime import datetime, timedelta\n\naccess_token = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\n\nquery_params = {\n \"from_signed_date\": (datetime.now() - timedelta(days=2))..strftime(\"%Y-%m-%dT%H:%M:%SZ\"),\n \"to_signed_date\": datetime.now().strftime(\"%Y-%m-%dT%H:%M:%SZ\")\n}\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/visit_notes/\",\n params=query_params,\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 Visit Note","description":"","operationId":"create-visit-note","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["bullets","chart_date","document_date","patient","template","physician"],"properties":{"bullets":{"type":"array","description":"bullets in visit note","items":{"properties":{"text":{"type":"string","description":"The text of the bullet"},"author":{"type":"integer","description":"The author of the bullet","format":"int32"},"category":{"type":"string","description":"The category of the bullet","enum":["Problem","Past","Family","Social","Instr","PE","ROS","Med","Data","Assessment","Test","Tx","Narrative","Followup","Reason","Plan","Objective","Hpi","Allergies","Habits","Assessplan","Consultant","Attending","Dateprocedure","Surgical","Orders","Referenced","Procedure"]},"sequence":{"type":"integer","description":"The sequence of the bullet","format":"int32"},"note_document":{"type":"object","description":"A document referenced by the bullet","properties":{"document":{"type":"integer","description":"the id of the document, e.g. the id of the report or order","format":"int32"},"document_summary":{"type":"string","description":"A textual summary of the document. Will show up in the visit note editor view, while the bullet text will be used in views outisde the editor."}}},"note_item":{"type":"object","description":"An item in the clinical record on the left hand side of the chart referenced by the bullet.","properties":{"id":{"type":"string","description":"The id of the item being referenced, e.g. the problem or history id."}}},"handout":{"type":"integer","description":"The id of the handout to attach to this bullet.","format":"int32"},"children":{"type":"array","description":"bullet childrens","items":{"properties":{"text":{"type":"string","description":"The text of the bullet"},"author":{"type":"integer","description":"The author of the bullet","format":"int32"},"category":{"type":"string","description":"The category of the bullet","enum":["Problem","Past","Family","Social","Instr","PE","ROS","Med","Data","Assessment","Test","Tx","Narrative","Followup","Reason","Plan","Objective","Hpi","Allergies","Habits","Assessplan","Consultant","Attending","Dateprocedure","Surgical","Orders","Referenced","Procedure"]},"sequence":{"type":"integer","description":"The sequence of the bullet","format":"int32"},"note_document":{"type":"object","description":"A document referenced by the bullet","properties":{"document":{"type":"integer","description":"the id of the document, e.g. the id of the report or order","format":"int32"},"document_summary":{"type":"string","description":"A textual summary of the document. Will show up in the visit note editor view, while the bullet text will be used in views outisde the editor."}}},"note_item":{"type":"object","description":"An item in the clinical record on the left hand side of the chart referenced by the bullet.","properties":{"id":{"type":"string","description":"The id of the item being referenced, e.g. the problem or history id."}}},"handout":{"type":"integer","description":"The id of the handout to attach to this bullet.","format":"int32"},"children":{"type":"array","description":"bullet childrens","default":[]}},"required":["text","author","category"],"type":"object"}}},"required":["text","author","category"],"type":"object"}},"chart_date":{"type":"string","description":"visit note chart date","format":"date"},"document_date":{"type":"string","description":"visit note document date","format":"date"},"patient":{"type":"integer","description":"id patient","format":"int32"},"template":{"type":"string","description":"visit note template","enum":["Simple","SOAP","Complete H&P (1 col)","Complete H&P (2 col)","Complete H&P (2 col A/P)","Pre-Op"]},"physician":{"type":"integer","description":"ip prescribing physician","format":"int32"},"type":{"type":"string","description":"type of visit note","default":"Office Visit Note"},"confidential":{"type":"boolean","description":"Whether this note is confidential to the practice and shouldn't be shared automatically with third parties","default":false},"signed_by":{"type":"integer","description":"The user id of the provider who signed the visit note. (Requires special permission).","format":"int32"},"signed_date":{"type":"string","description":"The time at which the visit note was signed. Cannot be in the future. (Requires Special Permission).","format":"date"},"signatures":{"type":"array","description":"The list of signatures if co-signing is enabled for the practice. (Requires Special Permission).","items":{"properties":{"user":{"type":"string","description":"ID of the user whose signature this represents"},"user_name":{"type":"string","description":"The full name and title of the user whose signature this represents"},"signed_date":{"type":"string","description":"date-time timestamp for when this signature occurred","format":"date"},"role":{"type":"string","description":"the function of the signer","enum":["'cosigner'","'rendering_provider'","'amender'"]},"comments":{"type":"string","description":"additional comments"}},"type":"object"}}}}}}},"responses":{"201":{"description":"201","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\n# sending only required data to create a \"Simple\" visit note\n# for \"Simple\" template, at least one of \"Reason\", \"Narrative\", \"Followup\" \n# is required\ndata = {\n \"bullets\": [\n {\n \"category\": \"Reason\",\n \"text\": \"Sample Exam Reason\",\n \"author\": 10\n },\n {\n \"category\": \"Narrative\",\n \"text\": \"Sample Narrative\",\n \"author\": 10\n },\n {\n \"category\": \"Followup\",\n \"text\": \"Sample Followup\",\n \"author\": 10,\n \"sequence\": 3\n }\n ],\n \"type\": \"Office Visit Note\",\n \"template\": \"Simple\",\n \"patient\": 64058687489,\n \"physician\": 131074,\n \"document_date\": \"2017-03-05T07:22:13Z\",\n \"chart_date\": \"2017-03-05T07:22:13Z\"\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/visit_notes/\",\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)\n\n# sending only required data to create a \"SOAP\" visit note\n# for SOAP note, at least one of \"Reason\", \"Problem\", \"Objective\", \n# \"Assessment\", \"Plan\", \"Followup\" is required\ndata = {\n \"bullets\": [\n {\n \"category\": \"Reason\",\n \"text\": \"Sample Exam Reason\",\n \"author\": 10\n },\n {\n \"category\": \"Problem\",\n \"text\": \"Sample Subjective\",\n \"author\": 10\n },\n {\n \"category\": \"Objective\",\n \"text\": \"Sample Objective\",\n \"author\": 10\n },\n {\n \"category\": \"Assessment\",\n \"text\": \"Sample Assessment\",\n \"author\": 10\n },\n {\n \"category\": \"Plan\",\n \"text\": \"Sample Plan\",\n \"author\": 10\n },\n {\n \"category\": \"Followup\",\n \"text\": \"Sample Followup\",\n \"author\": 10\n }\n ],\n \"type\": \"Office Visit Note\",\n \"template\": \"SOAP\",\n \"patient\": 64057638913,\n \"physician\": 131074,\n \"document_date\": \"2017-03-05T07:26:16Z\",\n \"chart_date\": \"2017-03-05T07:26:16Z\"\n}\n\n# example of a care plan visit note type\n# with Two Column H&P Note\ndata = {\n \"bullets\": [\n {\n \"category\": \"Reason\",\n \"text\": \"Progress Towards Goal of Weight - Goal Not Achieved as of 6/22/2015\",\n\t\t\t \"author\": 10,\n \"note_document\": {\n \"document\": 3342369,\n \"document_summary\": \"some_text\"\n },\n \"note_item\": 8716332,\n \"handout\": 140755830505637 \n },\n {\n \"category\": \"Assessplan\",\n \"text\": \"Progress Towards Goal of Weight - Goal Not Achieved as of 6/22/2015\",\n \t\"note_item\": 234245664,\n\t\t\t \"author\": 10\n },\n {\n \"category\": \"Instr\",\n \"text\": \"Schedule follow on visit with Neighborhood Physicians Practice on 7/1/2015\",\n\t\t\t \"author\": 10\n \"children\": [\n {\n \"category\": \"Instr\",\n \"text\": \"Get rid of intermittent fever that is occurring every few weeks,\n \t\"author\": 10\n },\n {\n \"category\": \"Instr\",\n \"text\": \"Need to gain more energy to do regular activities\",\n \t\"author\": 10\n },\n {\n \"category\": \"Instr\",\n \"text\": \"Keep weight under 105kg.\",\n \"author\": 10\n },\n ],\n },\n {\n \"category\": \"Followup\",\n \"text\": \"Nutrition Recommendations:\\n\\n1. Follow dietary regime as discussed\\n2. Read about nutrition as discussed\",\n \t\"author\": 10\n },\n ],\n \"type\": \"Care Plan\",\n \"template\": \"Complete H&P (2 col A/P)\",\n \"patient\": 64057638913,\n \"physician\": 131074,\n \"practice\": 12345,\n \"document_date\": \"2017-03-05T07:22:13Z\",\n \"chart_date\": \"2017-03-05T07:22:13Z\",\n}\n"}],"samples-languages":["python"]}}},"/incoming_files/":{"get":{"summary":"Find incoming files","description":"","operationId":"find-incoming-files","parameters":[{"name":"practice","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"practice_fax","in":"query","schema":{"type":"string"}},{"name":"from_number","in":"query","schema":{"type":"string"}},{"name":"created_date__lte","in":"query","schema":{"type":"string","format":"date"}},{"name":"created_date__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"received_date__lte","in":"query","schema":{"type":"string","format":"date"}},{"name":"received_date__gte","in":"query","schema":{"type":"string","format":"date"}},{"name":"process_state","in":"query","description":"The current processing state of the file. Choices = complete, error, processing","schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 6,\n \"next\": null,\n \"previous\": null,\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/incomig_files/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/incoming_files/{id}":{"get":{"summary":"Get incoming file","description":"","operationId":"get-ingoming-file","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758830874783,\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/incoming_files/140758830874783/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/lab_orders/{id}":{"get":{"summary":"Get Lab Order","description":"","operationId":"get-lab-order","parameters":[{"name":"id","in":"path","description":"The object id","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 \"answers\": [],\n \"bill_type\": \"\",\n \"ccs\": [],\n \"chart_date\": \"2022-05-31T16:23:41Z\",\n \"confidential\": false,\n \"content\": {\n \"collection_datetime\": \"2022-05-31T16:23:00Z\",\n \"fasting_method\": \"fasting_12_hour\",\n \"icd10_codes\": [\n {\n \"code\": \"Z51.0\",\n \"description\": \"Encounter for antineoplastic radiation therapy\"\n }\n ],\n \"id\": 140758879240293,\n \"patient_instructions\": \"\",\n \"standing_order_end_date\": null,\n \"standing_order_frequency\": \"\",\n \"stat_method\": \"\",\n \"test_center_notes\": \"\",\n \"tests\": [\n {\n \"code\": \"\",\n \"compendium\": null,\n \"cpts\": [],\n \"created_date\": \"2020-01-27T16:17:44Z\",\n \"deleted_date\": null,\n \"id\": 140748310052926,\n \"lab_vendor\": null,\n \"name\": \"Testosterone\",\n \"practice_created\": null,\n \"procedure_class\": null,\n \"questions\": [],\n \"synonyms\": []\n }\n ]\n },\n \"created_date\": \"2022-05-31T16:23:41Z\",\n \"document_date\": \"2022-05-31T16:23:40Z\",\n \"facility\": null,\n \"follow_up_method\": \"\",\n \"id\": 140758879305761,\n \"ordering_physician\": 140758867050498,\n \"patient\": 140758871048193,\n \"practice\": 140758863511556,\n \"requisition\": 140758879305761,\n \"resolution\": null,\n \"signed_by\": 140758867050498,\n \"signed_date\": \"2022-05-31T16:23:41Z\",\n \"site\": null,\n \"special_insurance\": null,\n \"submissions\": [],\n \"specimens\": [],\n \"tags\": [],\n \"test_date\": null,\n \"vendor\": 67186196726,\n \"printable_view\": \"http://127.0.0.1/api/2.0/lab_orders/140758879305761/printable\"\n}"}},"schema":{"type":"object","properties":{"answers":{"type":"array"},"bill_type":{"type":"string","example":""},"ccs":{"type":"array"},"chart_date":{"type":"string","example":"2022-05-31T16:23:41Z"},"confidential":{"type":"boolean","example":false,"default":true},"content":{"type":"object","properties":{"collection_datetime":{"type":"string","example":"2022-05-31T16:23:00Z"},"fasting_method":{"type":"string","example":"fasting_12_hour"},"icd10_codes":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"Z51.0"},"description":{"type":"string","example":"Encounter for antineoplastic radiation therapy"}}}},"id":{"type":"integer","example":140758879240293,"default":0},"patient_instructions":{"type":"string","example":""},"standing_order_end_date":{},"standing_order_frequency":{"type":"string","example":""},"stat_method":{"type":"string","example":""},"test_center_notes":{"type":"string","example":""},"tests":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":""},"compendium":{},"cpts":{"type":"array"},"created_date":{"type":"string","example":"2020-01-27T16:17:44Z"},"deleted_date":{},"id":{"type":"integer","example":140748310052926,"default":0},"lab_vendor":{},"name":{"type":"string","example":"Testosterone"},"practice_created":{},"procedure_class":{},"questions":{"type":"array"},"synonyms":{"type":"array"}}}}}},"created_date":{"type":"string","example":"2022-05-31T16:23:41Z"},"document_date":{"type":"string","example":"2022-05-31T16:23:40Z"},"facility":{},"follow_up_method":{"type":"string","example":""},"id":{"type":"integer","example":140758879305761,"default":0},"ordering_physician":{"type":"integer","example":140758867050498,"default":0},"patient":{"type":"integer","example":140758871048193,"default":0},"practice":{"type":"integer","example":140758863511556,"default":0},"requisition":{"type":"integer","example":140758879305761,"default":0},"resolution":{},"signed_by":{"type":"integer","example":140758867050498,"default":0},"signed_date":{"type":"string","example":"2022-05-31T16:23:41Z"},"site":{},"special_insurance":{},"submissions":{"type":"array"},"specimens":{"type":"array"},"tags":{"type":"array"},"test_date":{},"vendor":{"type":"integer","example":67186196726,"default":0},"printable_view":{"type":"string","example":"http://127.0.0.1/api/2.0/lab_orders/140758879305761/printable"}}}}}},"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/lab_orders/140758879305761\",\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 Lab Order","description":"","operationId":"update-lab-order","parameters":[{"name":"id","in":"path","description":"Object id","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["document_date","ordering_physician","patient","practice"],"properties":{"answers":{"type":"array","description":"Value must be Lab for laboratory reports","items":{"properties":{"test":{"type":"integer","format":"int32"},"question":{"type":"integer","format":"int32"},"value":{"type":"string"}},"required":["test","question","value"],"type":"object"}},"bill_type":{"type":"string","enum":["(\"thirdparty\"","\"Third Party (e.g. Insurance)\")","(\"patient\"","\"Patient\")","(\"client\"","\"Client\")","(\"workerscomp\"","\"Worker's Comp\")","(\"specialbilling\"","\"Special Billing\")"]},"ccs":{"type":"array","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"confidential":{"type":"boolean"},"content":{"type":"object","description":"The Lab Order Content Object","properties":{"tests":{"type":"array","description":"LabOrderTest id","items":{"properties":{"id":{"type":"integer","description":"object id","format":"int64"}},"required":["id"],"type":"object"}},"stat_method":{"type":"string","enum":["wet_reading_phone","wet_reading_fax","stat_phone","stat_fax","stat_phone_fax"]},"patient_instructions":{"type":"string"},"test_center_notes":{"type":"string"},"fasting_method":{"type":"string","enum":["fasting_12_hour","fasting_8_hours","fasting_2_hours","fasting_none","fasting_random"]},"standing_order_frequency":{"type":"string"},"standing_order_end_date":{"type":"string","format":"date"},"collection_datetime":{"type":"string","format":"date"},"icd10_codes":{"type":"array","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}}}},"document_date":{"type":"string","format":"date"},"facility":{"type":"object","properties":{}},"follow_up_method":{"type":"string"},"ordering_physician":{"type":"integer","format":"int32"},"patient":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"resolution":{"type":"object","required":["state"],"properties":{"state":{"type":"string","enum":["(\"outstanding\"","\"Outstanding\")","(\"fulfilled\"","\"Fulfilled\")","(\"cancelled\"","\"Cancelled\")"]},"resolving_document":{"type":"integer","description":"The document id (requisition id number)","format":"int32"}}},"site":{"type":"integer","description":"The location where the patient will have the lab performed. Sites are specific to their lab vendor.","format":"int32"},"tags":{"type":"array","description":"List of Coded Document Tags.","items":{"type":"integer","format":"int32"}},"test_date":{"type":"string","format":"date"},"vendor":{"type":"integer","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"answers\": [\n {\n \"id\": 140758874784147,\n \"test\": 140755679510590,\n \"question\": 67220537746,\n \"value\": \"v1\",\n \"created_date\": \"2022-06-07T21:06:44Z\",\n \"deleted_date\": null\n }\n ],\n \"bill_type\": \"Worker's Comp\",\n \"ccs\": [\n 140755710312450\n ],\n \"chart_date\": \"2002-06-07T12:55:44.059474Z\",\n \"confidential\": true,\n \"content\": {\n \"collection_datetime\": \"2002-06-07T12:55:44.059474Z\",\n \"fasting_method\": \"fasting_12_hour\",\n \"icd10_codes\": [\n {\n \"code\": \"Z3A.23\",\n \"description\": \"23 weeks gestation of pregnancy\"\n }\n ],\n \"id\": 140758874587237,\n \"patient_instructions\": \"23\",\n \"standing_order_end_date\": \"2002-06-07\",\n \"standing_order_frequency\": \"null\",\n \"stat_method\": \"wet_reading_phone\",\n \"test_center_notes\": \"11\",\n \"tests\": [\n {\n \"code\": null,\n \"compendium\": null,\n \"cpts\": [],\n \"created_date\": \"2014-05-09T20:34:33Z\",\n \"deleted_date\": null,\n \"id\": 24504107070,\n \"lab_vendor\": null,\n \"name\": \"TSH\",\n \"practice_created\": 65540,\n \"procedure_class\": null,\n \"questions\": [],\n \"synonyms\": []\n }\n ]\n },\n \"created_date\": \"2022-06-07T21:06:43.614753Z\",\n \"document_date\": \"2022-06-06T15:27:52Z\",\n \"facility\": {\n \"id\": 140743194837419,\n \"vendor\": {\n \"id\": 67186196726,\n \"name\": \"labcorp\",\n \"display_name\": \"LabCorp\"\n },\n \"practice_facility\": \"practice\",\n \"practice_secondary_id\": null,\n \"lab_facility\": \"labcorp\",\n \"description\": \"Labcorp e-ordering\",\n \"user_facing\": true,\n \"compendium\": 140745672294843,\n \"deleted_date\": null,\n \"created_date\": \"2019-10-04T05:37:38Z\",\n \"active\": true,\n \"practice\": 65540\n },\n \"follow_up_method\": \"fol1\",\n \"id\": 140758874652705,\n \"ordering_physician\": 140758834544642,\n \"patient\": 140758838542337,\n \"practice\": 140758831005700,\n \"requisition\": 140758874652705,\n \"resolution\": {\n \"id\": \"140758874849685\",\n \"document\": \": 140758874652705\",\n \"resolving_document\": 140758868754465,\n \"state\": \"outstanding\",\n \"note\": null,\n \"created_date\": \"2022-06-07T21:06:44Z\",\n \"deleted_date\": null\n },\n \"signed_by\": null,\n \"signed_date\": null,\n \"site\": {\n \"address\": \"94-307 Farrington Hwy\",\n \"city\": \"Waipahu\",\n \"created_date\": \"2017-01-26T22:06:57Z\",\n \"deleted_date\": null,\n \"fax\": \"8086773731\",\n \"id\": 68827742612,\n \"name\": \"CLH\",\n \"phone\": \"8086773870\",\n \"practice_created\": null,\n \"state\": \"HI\",\n \"suite\": \"Suite B4\",\n \"vendor\": {\n \"id\": 67556802806,\n \"name\": \"Clinical Labs of Hawaii\",\n \"display_name\": \"Clinical Labs of Hawaii\"\n },\n \"zip\": \"96797\"\n },\n \"special_insurance\": null,\n \"submissions\": [],\n \"specimens\": [],\n \"tags\": [\n {\n \"code\": \"408289007\",\n \"code_type\": 2,\n \"concept_name\": \"wt-mgmt-referral\",\n \"context\": null,\n \"created_date\": \"2015-07-23T19:30:51Z\",\n \"deleted_date\": \"2019-05-29T00:06:03Z\",\n \"description\": \"Referral to weight management program\",\n \"id\": 58719011162,\n \"practice_created\": null,\n \"snomed_result_code\": null,\n \"value\": \"CQM: Ref to Wt Mgt Program\"\n }\n ],\n \"test_date\": \"2002-06-07\",\n \"vendor\": 67191701750,\n \"printable_view\": \"http://127.0.0.1/api/2.0/lab_orders/140758874652705/printable\"\n}"}},"schema":{"type":"object","properties":{"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758874784147,"default":0},"test":{"type":"integer","example":140755679510590,"default":0},"question":{"type":"integer","example":67220537746,"default":0},"value":{"type":"string","example":"v1"},"created_date":{"type":"string","example":"2022-06-07T21:06:44Z"},"deleted_date":{}}}},"bill_type":{"type":"string","example":"Worker's Comp"},"ccs":{"type":"array","items":{"type":"integer","example":140755710312450,"default":0}},"chart_date":{"type":"string","example":"2002-06-07T12:55:44.059474Z"},"confidential":{"type":"boolean","example":true,"default":true},"content":{"type":"object","properties":{"collection_datetime":{"type":"string","example":"2002-06-07T12:55:44.059474Z"},"fasting_method":{"type":"string","example":"fasting_12_hour"},"icd10_codes":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"Z3A.23"},"description":{"type":"string","example":"23 weeks gestation of pregnancy"}}}},"id":{"type":"integer","example":140758874587237,"default":0},"patient_instructions":{"type":"string","example":"23"},"standing_order_end_date":{"type":"string","example":"2002-06-07"},"standing_order_frequency":{"type":"string","example":"null"},"stat_method":{"type":"string","example":"wet_reading_phone"},"test_center_notes":{"type":"string","example":"11"},"tests":{"type":"array","items":{"type":"object","properties":{"code":{},"compendium":{},"cpts":{"type":"array"},"created_date":{"type":"string","example":"2014-05-09T20:34:33Z"},"deleted_date":{},"id":{"type":"integer","example":24504107070,"default":0},"lab_vendor":{},"name":{"type":"string","example":"TSH"},"practice_created":{"type":"integer","example":65540,"default":0},"procedure_class":{},"questions":{"type":"array"},"synonyms":{"type":"array"}}}}}},"created_date":{"type":"string","example":"2022-06-07T21:06:43.614753Z"},"document_date":{"type":"string","example":"2022-06-06T15:27:52Z"},"facility":{"type":"object","properties":{"id":{"type":"integer","example":140743194837419,"default":0},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":67186196726,"default":0},"name":{"type":"string","example":"labcorp"},"display_name":{"type":"string","example":"LabCorp"}}},"practice_facility":{"type":"string","example":"practice"},"practice_secondary_id":{},"lab_facility":{"type":"string","example":"labcorp"},"description":{"type":"string","example":"Labcorp e-ordering"},"user_facing":{"type":"boolean","example":true,"default":true},"compendium":{"type":"integer","example":140745672294843,"default":0},"deleted_date":{},"created_date":{"type":"string","example":"2019-10-04T05:37:38Z"},"active":{"type":"boolean","example":true,"default":true},"practice":{"type":"integer","example":65540,"default":0}}},"follow_up_method":{"type":"string","example":"fol1"},"id":{"type":"integer","example":140758874652705,"default":0},"ordering_physician":{"type":"integer","example":140758834544642,"default":0},"patient":{"type":"integer","example":140758838542337,"default":0},"practice":{"type":"integer","example":140758831005700,"default":0},"requisition":{"type":"integer","example":140758874652705,"default":0},"resolution":{"type":"object","properties":{"id":{"type":"string","example":"140758874849685"},"document":{"type":"string","example":": 140758874652705"},"resolving_document":{"type":"integer","example":140758868754465,"default":0},"state":{"type":"string","example":"outstanding"},"note":{},"created_date":{"type":"string","example":"2022-06-07T21:06:44Z"},"deleted_date":{}}},"signed_by":{},"signed_date":{},"site":{"type":"object","properties":{"address":{"type":"string","example":"94-307 Farrington Hwy"},"city":{"type":"string","example":"Waipahu"},"created_date":{"type":"string","example":"2017-01-26T22:06:57Z"},"deleted_date":{},"fax":{"type":"string","example":"8086773731"},"id":{"type":"integer","example":68827742612,"default":0},"name":{"type":"string","example":"CLH"},"phone":{"type":"string","example":"8086773870"},"practice_created":{},"state":{"type":"string","example":"HI"},"suite":{"type":"string","example":"Suite B4"},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":67556802806,"default":0},"name":{"type":"string","example":"Clinical Labs of Hawaii"},"display_name":{"type":"string","example":"Clinical Labs of Hawaii"}}},"zip":{"type":"string","example":"96797"}}},"special_insurance":{},"submissions":{"type":"array"},"specimens":{"type":"array"},"tags":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"408289007"},"code_type":{"type":"integer","example":2,"default":0},"concept_name":{"type":"string","example":"wt-mgmt-referral"},"context":{},"created_date":{"type":"string","example":"2015-07-23T19:30:51Z"},"deleted_date":{"type":"string","example":"2019-05-29T00:06:03Z"},"description":{"type":"string","example":"Referral to weight management program"},"id":{"type":"integer","example":58719011162,"default":0},"practice_created":{},"snomed_result_code":{},"value":{"type":"string","example":"CQM: Ref to Wt Mgt Program"}}}},"test_date":{"type":"string","example":"2002-06-07"},"vendor":{"type":"integer","example":67191701750,"default":0},"printable_view":{"type":"string","example":"http://127.0.0.1/api/2.0/lab_orders/140758874652705/printable"}}}}}},"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 \"site\": 68827742612,\n \"answers\": [\n {\n \"question\": 67220537746,\n \"test\": 140755679510590,\n \"value\": \"v1\"\n }\n ],\n \"bill_type\": \"Worker's Comp\",\n \"ccs\": [\n 140755710312450\n ],\n \"content\": {\n \"collection_datetime\": \"2002-06-07T12:55:44.059474Z\",\n \"fasting_method\": \"fasting_12_hour\",\n \"icd10_codes\": [\n {\"code\": \"Z3A.23\"}\n ],\n \"patient_instructions\": \"23\",\n \"standing_order_end_date\": \"2002-06-07\",\n \"standing_order_frequency\": \"null\",\n \"stat_method\": \"wet_reading_phone\",\n \"test_center_notes\": \"11\",\n \"tests\": [\n {\"id\": 24504107070}\n ]\n },\n \"chart_date\": \"2002-06-07T12:55:44.059474Z\",\n \"confidential\": true,\n \"document_date\": \"2022-06-06T15:27:52Z\",\n \"facility\": {\"id\": 140743194837419},\n \"follow_up_method\": \"fol1\",\n \"ordering_physician\": 140758834544642,\n \"patient\": 140758838542337,\n \"practice\": 140758831005700,\n \"resolution\": {\n \"state\": \"outstanding\",\n \"resolving_document\": 140758868754465\n },\n \"tags\": [\n 58719011162\n ],\n \"test_date\": \"2002-06-07\",\n \"vendor\": 67191701750\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/lab_orders/12345678/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Lab Order","description":"","operationId":"update-lab-order-1","parameters":[{"name":"id","in":"path","description":"Object id","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ordering_physician"],"properties":{"answers":{"type":"array","description":"Value must be Lab for laboratory reports","items":{"properties":{"test":{"type":"integer","format":"int32"},"question":{"type":"integer","format":"int32"},"value":{"type":"string"}},"required":["test","question","value"],"type":"object"}},"bill_type":{"type":"string"},"ccs":{"type":"array","items":{"type":"string"}},"chart_date ":{"properties":{"WIP":{"type":"string","description":"[WIP] maybe mistake in code, line 208 lab_order.py","format":"date"}},"required":[],"type":"object"},"confidential":{"type":"boolean"},"content":{"type":"object","description":"The Lab Order Content Object","properties":{"tests":{"type":"array","description":"LabOrderTest id","items":{"properties":{"id":{"type":"integer","description":"object id","format":"int64"}},"required":["id"],"type":"object"}},"stat_method":{"type":"string","enum":["wet_reading_phone","wet_reading_fax","stat_phone","stat_fax","stat_phone_fax"]},"patient_instructions":{"type":"string"},"test_center_notes":{"type":"string"},"fasting_method":{"type":"string","enum":["fasting_12_hour","fasting_8_hours","fasting_2_hours","fasting_none","fasting_random"]},"standing_order_frequency":{"type":"string"},"standing_order_end_date":{"type":"string","format":"date"},"collection_datetime":{"type":"string","format":"date"},"icd10_codes":{"type":"array","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}}}},"document_date":{"type":"string","format":"date"},"facility":{"type":"object","properties":{}},"follow_up_method":{"type":"string"},"ordering_physician":{"type":"integer","format":"int32"},"patient":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"resolution":{"type":"object","required":["state"],"properties":{"state":{"type":"string","enum":["(\"outstanding\"","\"Outstanding\")","(\"fulfilled\"","\"Fulfilled\")","(\"cancelled\"","\"Cancelled\")"]},"resolving_document":{"type":"integer","description":"The document id (requisition id number)","format":"int32"}}},"site":{"type":"integer","description":"The location where the patient will have the lab performed. Sites are specific to their lab vendor.","format":"int32"},"tags":{"type":"array","description":"List of Coded Document Tags."},"test_date":{"type":"string","format":"date"},"vendor":{"type":"integer","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"answers\": [\n {\n \"id\": 140758874784147,\n \"test\": 140755679510590,\n \"question\": 67220537746,\n \"value\": \"v1\",\n \"created_date\": \"2022-06-07T21:06:44Z\",\n \"deleted_date\": null\n }\n ],\n \"bill_type\": \"Worker's Comp\",\n \"ccs\": [\n 140755710312450\n ],\n \"chart_date\": \"2002-06-07T12:55:44.059474Z\",\n \"confidential\": true,\n \"content\": {\n \"collection_datetime\": \"2002-06-07T12:55:44.059474Z\",\n \"fasting_method\": \"fasting_12_hour\",\n \"icd10_codes\": [\n {\n \"code\": \"Z3A.23\",\n \"description\": \"23 weeks gestation of pregnancy\"\n }\n ],\n \"id\": 140758874587237,\n \"patient_instructions\": \"23\",\n \"standing_order_end_date\": \"2002-06-07\",\n \"standing_order_frequency\": \"null\",\n \"stat_method\": \"wet_reading_phone\",\n \"test_center_notes\": \"11\",\n \"tests\": [\n {\n \"code\": null,\n \"compendium\": null,\n \"cpts\": [],\n \"created_date\": \"2014-05-09T20:34:33Z\",\n \"deleted_date\": null,\n \"id\": 24504107070,\n \"lab_vendor\": null,\n \"name\": \"TSH\",\n \"practice_created\": 65540,\n \"procedure_class\": null,\n \"questions\": [],\n \"synonyms\": []\n }\n ]\n },\n \"created_date\": \"2022-06-07T21:06:43.614753Z\",\n \"document_date\": \"2022-06-06T15:27:52Z\",\n \"facility\": {\n \"id\": 140743194837419,\n \"vendor\": {\n \"id\": 67186196726,\n \"name\": \"labcorp\",\n \"display_name\": \"LabCorp\"\n },\n \"practice_facility\": \"practice\",\n \"practice_secondary_id\": null,\n \"lab_facility\": \"labcorp\",\n \"description\": \"Labcorp e-ordering\",\n \"user_facing\": true,\n \"compendium\": 140745672294843,\n \"deleted_date\": null,\n \"created_date\": \"2019-10-04T05:37:38Z\",\n \"active\": true,\n \"practice\": 65540\n },\n \"follow_up_method\": \"fol1\",\n \"id\": 140758874652705,\n \"ordering_physician\": 140758834544642,\n \"patient\": 140758838542337,\n \"practice\": 140758831005700,\n \"requisition\": 140758874652705,\n \"resolution\": {\n \"id\": \"140758874849685\",\n \"document\": \": 140758874652705\",\n \"resolving_document\": 140758868754465,\n \"state\": \"outstanding\",\n \"note\": null,\n \"created_date\": \"2022-06-07T21:06:44Z\",\n \"deleted_date\": null\n },\n \"signed_by\": null,\n \"signed_date\": null,\n \"site\": {\n \"address\": \"94-307 Farrington Hwy\",\n \"city\": \"Waipahu\",\n \"created_date\": \"2017-01-26T22:06:57Z\",\n \"deleted_date\": null,\n \"fax\": \"8086773731\",\n \"id\": 68827742612,\n \"name\": \"CLH\",\n \"phone\": \"8086773870\",\n \"practice_created\": null,\n \"state\": \"HI\",\n \"suite\": \"Suite B4\",\n \"vendor\": {\n \"id\": 67556802806,\n \"name\": \"Clinical Labs of Hawaii\",\n \"display_name\": \"Clinical Labs of Hawaii\"\n },\n \"zip\": \"96797\"\n },\n \"special_insurance\": null,\n \"submissions\": [],\n \"specimens\": [],\n \"tags\": [\n {\n \"code\": \"408289007\",\n \"code_type\": 2,\n \"concept_name\": \"wt-mgmt-referral\",\n \"context\": null,\n \"created_date\": \"2015-07-23T19:30:51Z\",\n \"deleted_date\": \"2019-05-29T00:06:03Z\",\n \"description\": \"Referral to weight management program\",\n \"id\": 58719011162,\n \"practice_created\": null,\n \"snomed_result_code\": null,\n \"value\": \"CQM: Ref to Wt Mgt Program\"\n }\n ],\n \"test_date\": \"2002-06-07\",\n \"vendor\": 67191701750,\n \"printable_view\": \"http://127.0.0.1/api/2.0/lab_orders/140758874652705/printable\"\n}"}},"schema":{"type":"object","properties":{"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758874784147,"default":0},"test":{"type":"integer","example":140755679510590,"default":0},"question":{"type":"integer","example":67220537746,"default":0},"value":{"type":"string","example":"v1"},"created_date":{"type":"string","example":"2022-06-07T21:06:44Z"},"deleted_date":{}}}},"bill_type":{"type":"string","example":"Worker's Comp"},"ccs":{"type":"array","items":{"type":"integer","example":140755710312450,"default":0}},"chart_date":{"type":"string","example":"2002-06-07T12:55:44.059474Z"},"confidential":{"type":"boolean","example":true,"default":true},"content":{"type":"object","properties":{"collection_datetime":{"type":"string","example":"2002-06-07T12:55:44.059474Z"},"fasting_method":{"type":"string","example":"fasting_12_hour"},"icd10_codes":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"Z3A.23"},"description":{"type":"string","example":"23 weeks gestation of pregnancy"}}}},"id":{"type":"integer","example":140758874587237,"default":0},"patient_instructions":{"type":"string","example":"23"},"standing_order_end_date":{"type":"string","example":"2002-06-07"},"standing_order_frequency":{"type":"string","example":"null"},"stat_method":{"type":"string","example":"wet_reading_phone"},"test_center_notes":{"type":"string","example":"11"},"tests":{"type":"array","items":{"type":"object","properties":{"code":{},"compendium":{},"cpts":{"type":"array"},"created_date":{"type":"string","example":"2014-05-09T20:34:33Z"},"deleted_date":{},"id":{"type":"integer","example":24504107070,"default":0},"lab_vendor":{},"name":{"type":"string","example":"TSH"},"practice_created":{"type":"integer","example":65540,"default":0},"procedure_class":{},"questions":{"type":"array"},"synonyms":{"type":"array"}}}}}},"created_date":{"type":"string","example":"2022-06-07T21:06:43.614753Z"},"document_date":{"type":"string","example":"2022-06-06T15:27:52Z"},"facility":{"type":"object","properties":{"id":{"type":"integer","example":140743194837419,"default":0},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":67186196726,"default":0},"name":{"type":"string","example":"labcorp"},"display_name":{"type":"string","example":"LabCorp"}}},"practice_facility":{"type":"string","example":"practice"},"practice_secondary_id":{},"lab_facility":{"type":"string","example":"labcorp"},"description":{"type":"string","example":"Labcorp e-ordering"},"user_facing":{"type":"boolean","example":true,"default":true},"compendium":{"type":"integer","example":140745672294843,"default":0},"deleted_date":{},"created_date":{"type":"string","example":"2019-10-04T05:37:38Z"},"active":{"type":"boolean","example":true,"default":true},"practice":{"type":"integer","example":65540,"default":0}}},"follow_up_method":{"type":"string","example":"fol1"},"id":{"type":"integer","example":140758874652705,"default":0},"ordering_physician":{"type":"integer","example":140758834544642,"default":0},"patient":{"type":"integer","example":140758838542337,"default":0},"practice":{"type":"integer","example":140758831005700,"default":0},"requisition":{"type":"integer","example":140758874652705,"default":0},"resolution":{"type":"object","properties":{"id":{"type":"string","example":"140758874849685"},"document":{"type":"string","example":": 140758874652705"},"resolving_document":{"type":"integer","example":140758868754465,"default":0},"state":{"type":"string","example":"outstanding"},"note":{},"created_date":{"type":"string","example":"2022-06-07T21:06:44Z"},"deleted_date":{}}},"signed_by":{},"signed_date":{},"site":{"type":"object","properties":{"address":{"type":"string","example":"94-307 Farrington Hwy"},"city":{"type":"string","example":"Waipahu"},"created_date":{"type":"string","example":"2017-01-26T22:06:57Z"},"deleted_date":{},"fax":{"type":"string","example":"8086773731"},"id":{"type":"integer","example":68827742612,"default":0},"name":{"type":"string","example":"CLH"},"phone":{"type":"string","example":"8086773870"},"practice_created":{},"state":{"type":"string","example":"HI"},"suite":{"type":"string","example":"Suite B4"},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":67556802806,"default":0},"name":{"type":"string","example":"Clinical Labs of Hawaii"},"display_name":{"type":"string","example":"Clinical Labs of Hawaii"}}},"zip":{"type":"string","example":"96797"}}},"special_insurance":{},"submissions":{"type":"array"},"specimens":{"type":"array"},"tags":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"408289007"},"code_type":{"type":"integer","example":2,"default":0},"concept_name":{"type":"string","example":"wt-mgmt-referral"},"context":{},"created_date":{"type":"string","example":"2015-07-23T19:30:51Z"},"deleted_date":{"type":"string","example":"2019-05-29T00:06:03Z"},"description":{"type":"string","example":"Referral to weight management program"},"id":{"type":"integer","example":58719011162,"default":0},"practice_created":{},"snomed_result_code":{},"value":{"type":"string","example":"CQM: Ref to Wt Mgt Program"}}}},"test_date":{"type":"string","example":"2002-06-07"},"vendor":{"type":"integer","example":67191701750,"default":0},"printable_view":{"type":"string","example":"http://127.0.0.1/api/2.0/lab_orders/140758874652705/printable"}}}}}},"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 \"site\": 68827742612,\n \"answers\": [\n {\n \"question\": 67220537746,\n \"test\": 140755679510590,\n \"value\": \"v1\"\n }\n ],\n \"bill_type\": \"Worker's Comp\",\n \"ccs\": [\n 140755710312450\n ],\n \"content\": {\n \"collection_datetime\": \"2002-06-07T12:55:44.059474Z\",\n \"fasting_method\": \"fasting_12_hour\",\n \"icd10_codes\": [\n {\"code\": \"Z3A.23\"}\n ],\n \"patient_instructions\": \"23\",\n \"standing_order_end_date\": \"2002-06-07\",\n \"standing_order_frequency\": \"null\",\n \"stat_method\": \"wet_reading_phone\",\n \"test_center_notes\": \"11\",\n \"tests\": [\n {\"id\": 24504107070}\n ]\n },\n \"chart_date\": \"2002-06-07T12:55:44.059474Z\",\n \"confidential\": true,\n \"document_date\": \"2022-06-06T15:27:52Z\",\n \"facility\": {\"id\": 140743194837419},\n \"follow_up_method\": \"fol1\",\n \"ordering_physician\": 140758834544642,\n \"patient\": 140758838542337,\n \"practice\": 140758831005700,\n \"resolution\": {\n \"state\": \"outstanding\",\n \"resolving_document\": 140758868754465\n },\n \"tags\": [\n 58719011162\n ],\n \"test_date\": \"2002-06-07\",\n \"vendor\": 67191701750\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/lab_orders/12345678/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Lab Order","description":"","operationId":"delete-lab-order","parameters":[{"name":"id","in":"path","description":"The object id","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"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.delete(\"https://sandbox.elationemr.com/api/2.0/lab_orders/140756377075740/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/medication_refills/":{"get":{"summary":"Find Refills","description":"","operationId":"wip-find-refills","parameters":[{"name":"patient","in":"query","description":"Prescribed patient","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice","in":"query","description":"The doctor's practice","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"received_date__gte","in":"query","description":"Date of receiving a drug","schema":{"type":"string","format":"date"}},{"name":"received_date__lte","in":"query","description":"Date of receiving a drug","schema":{"type":"string","format":"date"}},{"name":"prescriber","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/medication_refills/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/medication_refills/?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":"text","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/medication_refills/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["text"]}}},"/imaging_orders/":{"get":{"summary":"Find Imaging Orders","description":"","operationId":"find-imaging-orders","parameters":[{"name":"patient","in":"query","description":"The patient the imaging order belongs to.","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the imaging order belongs to.","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 // See Imaging Order Object definition\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":1,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/imaging_orders/\",\n headers={'Authorization': auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"post":{"summary":"Create Imaging Order","description":"","operationId":"create-imaging-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ancillary_company","chart_date","clinical_reason","document_date","patient","practice","prescribing_user"],"properties":{"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"imaging_center":{"type":"integer","description":"The imaging center the order is associated with.","default":null,"format":"int32"},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"statmethod":{"type":"string","description":"The type of report to get for the order if urgent. Options are \"wet_reading_phone\" and \"wet_reading_fax\""},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the imaging order test to be associated with the order. Imaging order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of imaging tests associated with the order."}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Imaging Order 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 = f\"Bearer {access_token}\"\n\nnew_imaging_order_data = {\n \"ancillary_company\": 140755855605768,\n \"ccs\": [\n 131074\n ],\n \"chart_date\": \"2021-05-26T03:49:04Z\",\n \"clinical_reason\": \"sickness\",\n \"confidential\": true,\n \"document_date\": \"2021-05-26T03:49:04Z\",\n \"follow_up_method\": \"email\",\n \"icd10_codes\": [\n {\n \"code\": \"O09.529\",\n \"description\": \"Supervision of elderly multigravida, unspecified trimester\"\n }\n ],\n \"imaging_center\": 140755855671306,\n \"patient\": 140756664516609,\n \"practice\": 140756660256772,\n \"prescribing_user\": 2032,\n \"statmethod\": \"wet_reading_fax\",\n \"tests\": [\n {\n \"id\": 140756665106487\n }\n ]\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/imaging_orders/\",\n headers={\"Authorization\": auth_header},\n \tjson=new_imaging_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/cardiac_orders/":{"get":{"summary":"Find Cardiac Orders","description":"","operationId":"find-cardiac-orders","parameters":[{"name":"patient","in":"query","description":"The patient the cardiac order belongs to.","schema":{"type":"integer","format":"int32"}},{"name":"practice","in":"query","description":"The practice the cardiac order belongs to.","schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [//list of objects]\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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_orders/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"post":{"summary":"Create Cardiac Order","description":"","operationId":"create-cardiac-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ancillary_company","chart_date","clinical_reason","document_date","patient","practice","prescribing_user"],"properties":{"ancillary_company":{"type":"integer","description":"The ancillary company the cardiac order is associated with.","format":"int32"},"cardiac_center":{"type":"integer","description":"The cardiac center the order is associated with.","default":null,"format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"medications":{"type":"string","description":"Description of beta blockers/medications the patient is taking."},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice.","format":"int32"},"practice":{"type":"integer","description":"The practice the cardiac order is associated with.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the cardiac order test to be associated with the order. Cardiac order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of cardiac tests associated with the order."}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Cardiac Order 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 = f\"Bearer {access_token}\"\n\nnew_cardiac_order_data = {\n \t\"ancillary_company\": 140755855605768,\n \"cardiac_center\": 140755855671306,\n \"ccs\": [\n 131074\n ],\n \"chart_date\": \"2021-05-26T03:49:04Z\",\n \"clinical_reason\": \"sickness\",\n \"confidential\": true,\n \"document_date\": \"2021-05-26T03:49:04Z\",\n \"follow_up_method\": \"email\",\n \"icd10_codes\": [\n {\n \"code\": \"O09.529\",\n \"description\": \"Supervision of elderly multigravida, unspecified trimester\"\n }\n ],\n \"medications\": \"b-blocker\",\n \"patient\": 140756664516609,\n \"practice\": 140756660256772,\n \"prescribing_user\": 2032,\n \"tests\": [\n {\n \"id\": 140756665106487\n }\n ]\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_orders/\",\n headers={'Authorization': auth_header},\n \tjson=new_cardiac_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/pulmonary_orders/":{"get":{"summary":"Find Pulmonary Orders","description":"","operationId":"find-pulmonary-orders","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","description":"The patient the order belongs to.","schema":{"type":"integer","format":"int32"}},{"name":"practice","in":"query","description":"The practice the order belongs to.","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Pulmonary Order objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_orders/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"post":{"summary":"Create Pulmonary Order","description":"","operationId":"create-pulmonary-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ancillary_company","chart_date","clinical_reason","document_date","patient","practice","prescribing_user"],"properties":{"allergies":{"type":"string","description":"Any allergies the patient has."},"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"pulmonary_center":{"type":"integer","description":"The pulmonary center the order is associated with.","default":null,"format":"int32"},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the pulmonary order test to be associated with the order. Pulmonary order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of pulmonary tests associated with the order."}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Pulmonary Order 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 = f\"Bearer {access_token}\"\n\nnew_pulmonary_order_data = {\n \"allergies\": \"Penicillin\",\n \"ancillary_company\": 140755855605768,\n \"ccs\": [\n 131074\n ],\n \"chart_date\": \"2021-05-26T03:49:04Z\",\n \"clinical_reason\": \"sickness\",\n \"confidential\": true,\n \"document_date\": \"2021-05-26T03:49:04Z\",\n \"follow_up_method\": \"email\",\n \"icd10_codes\": [\n {\n \"code\": \"O09.529\",\n \"description\": \"Supervision of elderly multigravida, unspecified trimester\"\n }\n ],\n \"patient\": 140756664516609,\n \"practice\": 140756660256772,\n \"prescribing_user\": 2032,\n \"pulmonary_center\": 140755855671306,\n \"tests\": [\n {\n \"id\": 140756665106487\n }\n ]\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_orders/\",\n headers={\"Authorization\": auth_header},\n \tjson=new_pulmonary_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/sleep_orders/":{"get":{"summary":"Find Sleep Orders","description":"","operationId":"find-sleep-orders","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient","in":"query","description":"The patient the order belongs to.","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the order belongs to.","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Sleep Order Objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/sleep_orders/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"post":{"summary":"Create Sleep Order","description":"","operationId":"create-sleep-order","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ancillary_company","chart_date","clinical_reason","document_date","patient","practice","prescribing_user"],"properties":{"ancillary_company":{"type":"integer","description":"The ancillary company the order is associated with.","format":"int32"},"ccs":{"type":"array","description":"Array of Physician IDs to copy for the order.","items":{"type":"integer","format":"int32"}},"chart_date":{"type":"string","format":"date"},"clinical_reason":{"type":"string","description":"The clinical reason for the order."},"confidential":{"type":"boolean","description":"Whether the order is confidential.","default":false},"document_date":{"type":"string","format":"date"},"follow_up_method":{"type":"string","description":"How to notify the patient of the results."},"icd10_codes":{"type":"array","description":"Array of ICD-10 diagnosis codes associated with the order","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}},"patient":{"type":"integer","description":"The patient the order is associated with. Patient must belong to the specified practice.","format":"int32"},"practice":{"type":"integer","description":"The practice the order is associated with.","format":"int32"},"prescribing_user":{"type":"integer","description":"The user associated with the order. User ID must tie to a physician in the practice.","format":"int32"},"sleep_center":{"type":"integer","description":"The sleep center the order is associated with.","default":null,"format":"int32"},"tests":{"properties":{"":{"properties":{"id":{"type":"integer","description":"The ID of the sleep order test to be associated with the order. Sleep order test must belong to the specified practice.","format":"int32"}},"required":["id"],"type":"object"}},"required":[],"type":"object","description":"An array of sleep tests associated with the order."}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Sleep Order 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 = f\"Bearer {access_token}\"\n\nnew_sleep_order_data = {\n \"ancillary_company\": 140755855605768,\n \"ccs\": [\n 131074\n ],\n \"chart_date\": \"2021-05-26T03:49:04Z\",\n \"clinical_reason\": \"sickness\",\n \"confidential\": true,\n \"document_date\": \"2021-05-26T03:49:04Z\",\n \"follow_up_method\": \"email\",\n \"icd10_codes\": [\n {\n \"code\": \"O09.529\",\n \"description\": \"Supervision of elderly multigravida, unspecified trimester\"\n }\n ],\n \"patient\": 140756664516609,\n \"practice\": 140756660256772,\n \"prescribing_user\": 2032,\n \"sleep_center\": 140755855671306,\n \"tests\": [\n {\n \"id\": 140756665106487\n }\n ]\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/sleep_orders/\",\n headers={\"Authorization\": auth_header},\n \tjson=new_sleep_order_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/lab_order_sets/":{"get":{"summary":"Find Lab Order Sets","description":"","operationId":"find-lab-order-sets","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 5,\n \"next\": null,\n \"previous\": null,\n \"results\": [//list of objects]\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/lab_order_sets/\",\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 Lab Order Set","description":"","operationId":"create-lab-order-set","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","name","content"],"properties":{"practice":{"type":"integer","format":"int32"},"name":{"type":"string"},"content":{"type":"object","properties":{"tests":{"type":"array","description":"LabOrderTest id","items":{"properties":{"id":{"type":"integer","description":"object id","format":"int64"}},"required":["id"],"type":"object"}},"stat_method":{"type":"string","enum":["wet_reading_phone","wet_reading_fax","stat_phone","stat_fax","stat_phone_fax"]},"patient_instructions":{"type":"string"},"test_center_notes":{"type":"string"},"fasting_method":{"type":"string","enum":["fasting_12_hour","fasting_8_hours","fasting_2_hours","fasting_none","fasting_random"]},"standing_order_frequency":{"type":"string"},"standing_order_end_date":{"type":"string","format":"date"},"collection_datetime":{"type":"string","format":"date"},"icd10_codes":{"type":"array","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}}}},"lab_vendor":{"type":"integer","description":"lab_vendor id","format":"int32"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"compendium_code\": null,\n \"content\": {\n \"collection_datetime\": null,\n \"fasting_method\": null,\n \"icd10_codes\": [],\n \"id\": 140758913777765,\n \"patient_instructions\": \"\",\n \"standing_order_end_date\": null,\n \"standing_order_frequency\": null,\n \"stat_method\": null,\n \"test_center_notes\": \"\",\n \"tests\": []\n },\n \"created_date\": \"2022-06-02T13:46:19.300949Z\",\n \"deleted_date\": null,\n \"id\": 140758913843296,\n \"lab_vendor\": null,\n \"name\": \"Diabetes - Annual (Order Set)\",\n \"practice\": 140758894575620\n}"}},"schema":{"type":"object","properties":{"compendium_code":{},"content":{"type":"object","properties":{"collection_datetime":{},"fasting_method":{},"icd10_codes":{"type":"array"},"id":{"type":"integer","example":140758913777765,"default":0},"patient_instructions":{"type":"string","example":""},"standing_order_end_date":{},"standing_order_frequency":{},"stat_method":{},"test_center_notes":{"type":"string","example":""},"tests":{"type":"array"}}},"created_date":{"type":"string","example":"2022-06-02T13:46:19.300949Z"},"deleted_date":{},"id":{"type":"integer","example":140758913843296,"default":0},"lab_vendor":{},"name":{"type":"string","example":"Diabetes - Annual (Order Set)"},"practice":{"type":"integer","example":140758894575620,"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 \"content\": {},\n \"name\": \"Diabetes - Annual (Order Set)\",\n \"practice\": 140758894575620\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/lab_order_sets/\",\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"]}}},"/lab_order_sets/{id}":{"get":{"summary":"Get Lab Order Sets","description":"","operationId":"get-lab-order-sets","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 \"count\": 5,\n \"next\": null,\n \"previous\": null,\n \"results\": [//list of objects]\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/lab_order_sets/140756377075740/\",\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 Lab Order Set","description":"","operationId":"update-lab-order-set","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Object id","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","name","content"],"properties":{"practice":{"type":"integer","format":"int32"},"name":{"type":"string"},"content":{"type":"object","properties":{"tests":{"type":"array","description":"LabOrderTest id","items":{"properties":{"id":{"type":"integer","description":"object id","format":"int64"}},"required":["id"],"type":"object"}},"stat_method":{"type":"string","enum":["wet_reading_phone","wet_reading_fax","stat_phone","stat_fax","stat_phone_fax"]},"patient_instructions":{"type":"string"},"test_center_notes":{"type":"string"},"fasting_method":{"type":"string","enum":["fasting_12_hour","fasting_8_hours","fasting_2_hours","fasting_none","fasting_random"]},"standing_order_frequency":{"type":"string"},"standing_order_end_date":{"type":"string","format":"date"},"collection_datetime":{"type":"string","format":"date"},"icd10_codes":{"type":"array","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}}}},"lab_vendor":{"type":"integer","description":"lab_vendor id","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"compendium_code\": null,\n \"content\": {\n \"collection_datetime\": null,\n \"fasting_method\": null,\n \"icd10_codes\": [],\n \"id\": 140758913777765,\n \"patient_instructions\": \"\",\n \"standing_order_end_date\": null,\n \"standing_order_frequency\": null,\n \"stat_method\": null,\n \"test_center_notes\": \"\",\n \"tests\": []\n },\n \"created_date\": \"2022-06-02T13:46:19.300949Z\",\n \"deleted_date\": null,\n \"id\": 140758913843296,\n \"lab_vendor\": null,\n \"name\": \"Diabetes - Annual (Order Set)\",\n \"practice\": 140758894575620\n}"}},"schema":{"type":"object","properties":{"compendium_code":{},"content":{"type":"object","properties":{"collection_datetime":{},"fasting_method":{},"icd10_codes":{"type":"array"},"id":{"type":"integer","example":140758913777765,"default":0},"patient_instructions":{"type":"string","example":""},"standing_order_end_date":{},"standing_order_frequency":{},"stat_method":{},"test_center_notes":{"type":"string","example":""},"tests":{"type":"array"}}},"created_date":{"type":"string","example":"2022-06-02T13:46:19.300949Z"},"deleted_date":{},"id":{"type":"integer","example":140758913843296,"default":0},"lab_vendor":{},"name":{"type":"string","example":"Diabetes - Annual (Order Set)"},"practice":{"type":"integer","example":140758894575620,"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 \"content\": {},\n \"name\": \"Diabetes - Annual (Order Set)\",\n \"practice\": 140758894575620\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/lab_order_sets/140758913974368/\",\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 Lab Order Set","description":"","operationId":"update-lab-order-set-1","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Object id","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","content"],"properties":{"practice":{"type":"integer","format":"int32"},"name":{"type":"string"},"content":{"type":"object","properties":{"tests":{"type":"array","description":"LabOrderTest id","items":{"properties":{"id":{"type":"integer","description":"object id","format":"int64"}},"required":["id"],"type":"object"}},"stat_method":{"type":"string","enum":["wet_reading_phone","wet_reading_fax","stat_phone","stat_fax","stat_phone_fax"]},"patient_instructions":{"type":"string"},"test_center_notes":{"type":"string"},"fasting_method":{"type":"string","enum":["fasting_12_hour","fasting_8_hours","fasting_2_hours","fasting_none","fasting_random"]},"standing_order_frequency":{"type":"string"},"standing_order_end_date":{"type":"string","format":"date"},"collection_datetime":{"type":"string","format":"date"},"icd10_codes":{"type":"array","items":{"properties":{"code":{"type":"string","description":"icd10 code"}},"type":"object"}}}},"lab_vendor":{"type":"integer","description":"lab_vendor id","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"compendium_code\": null,\n \"content\": {\n \"collection_datetime\": null,\n \"fasting_method\": null,\n \"icd10_codes\": [],\n \"id\": 140758913777765,\n \"patient_instructions\": \"\",\n \"standing_order_end_date\": null,\n \"standing_order_frequency\": null,\n \"stat_method\": null,\n \"test_center_notes\": \"\",\n \"tests\": []\n },\n \"created_date\": \"2022-06-02T13:46:19.300949Z\",\n \"deleted_date\": null,\n \"id\": 140758913843296,\n \"lab_vendor\": null,\n \"name\": \"Diabetes - Annual (Order Set)\",\n \"practice\": 140758894575620\n}"}},"schema":{"type":"object","properties":{"compendium_code":{},"content":{"type":"object","properties":{"collection_datetime":{},"fasting_method":{},"icd10_codes":{"type":"array"},"id":{"type":"integer","example":140758913777765,"default":0},"patient_instructions":{"type":"string","example":""},"standing_order_end_date":{},"standing_order_frequency":{},"stat_method":{},"test_center_notes":{"type":"string","example":""},"tests":{"type":"array"}}},"created_date":{"type":"string","example":"2022-06-02T13:46:19.300949Z"},"deleted_date":{},"id":{"type":"integer","example":140758913843296,"default":0},"lab_vendor":{},"name":{"type":"string","example":"Diabetes - Annual (Order Set)"},"practice":{"type":"integer","example":140758894575620,"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 \"content\": {},\n \"name\": \"Diabetes - Annual (Order Set)\",\n \"practice\": 140758894575620\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/lab_order_sets/140758913974368/\",\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"]}},"delete":{"summary":"Delete Lab Order Sets","description":"","operationId":"delete-lab-order-sets","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":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"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.delete(\"https://sandbox.elationemr.com/api/2.0/lab_order_sets/140756377075740/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/lab_order_tests/":{"get":{"summary":"Find Lab Order Tests","description":"","operationId":"find-lab-order-tests","parameters":[{"name":"code","in":"query","description":"The codes of the lab tests you want to find","schema":{"type":"array","items":{"type":"string"}}},{"name":"lab_vendor","in":"query","description":"The ids of the lab vendors of the lab tests you want to find","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice_created","in":"query","description":"The id's of practice","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice","in":"query","description":"The id's of practice. Has field_name=\"practice_created\"","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"compendium","in":"query","description":"The id's of compendium","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 2848,\n \"next\": \"http://127.0.0.1/api/2.0/lab_order_tests/?compendium=140745672360379&limit=100&offset=100\",\n \"previous\": null,\n \"results\": [\n {\n //look the object definition\n },\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 = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/lab_order_tests/\",\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 Lab Order Test","description":"","operationId":"create-lab-order-test","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","code","practice_created","compendium","lab_vendor"],"properties":{"name":{"type":"string"},"code":{"type":"string"},"practice_created":{"type":"integer","format":"int32"},"compendium":{"type":"integer","format":"int32"},"lab_vendor":{"type":"integer","format":"int32"},"questions":{"type":"array","items":{"properties":{"required":{"type":"boolean"},"sequence":{"type":"integer","format":"int32"},"question":{"type":"object"}},"required":["sequence","question"],"type":"object"}},"synonyms":{"type":"array","items":{"type":"string"}},"cpts":{"type":"array","description":"list of cpts associated with the lab order test","items":{"type":"string"}}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"code\": \"Sean Howard\",\n \"compendium\": 140745672360379,\n \"cpts\": [],\n \"created_date\": \"2022-06-03T16:41:20.584324Z\",\n \"deleted_date\": null,\n \"id\": 140758916530238,\n \"lab_vendor\": 63929778422,\n \"name\": \"Ariana Jones\",\n \"practice_created\": null,\n \"procedure_class\": null,\n \"questions\": [],\n \"synonyms\": []\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"Sean Howard"},"compendium":{"type":"integer","example":140745672360379,"default":0},"cpts":{"type":"array"},"created_date":{"type":"string","example":"2022-06-03T16:41:20.584324Z"},"deleted_date":{},"id":{"type":"integer","example":140758916530238,"default":0},"lab_vendor":{"type":"integer","example":63929778422,"default":0},"name":{"type":"string","example":"Ariana Jones"},"practice_created":{},"procedure_class":{},"questions":{"type":"array"},"synonyms":{"type":"array"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"name\": \"Ariana Jones\", \n \"code\": \"Sean Howard\", \n \"practice_created\": 140758884417540, \n \"compendium\": 140758889267643, \n \"lab_vendor\": 140758889201910\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/lab_order_tests/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_order_compendiums/":{"get":{"summary":"Find Lab Order Compendium","description":"","operationId":"find-lab-order-compendium","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"code","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"lab_vendor","in":"query","description":"The id's of lab_vendor","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"practice_created","in":"query","description":"The id's of practice. Has field_name=\"lab_vendor__practice_created\"","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 28,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 140745672360379,\n \t\t\t\t\t// See Object Definition\n },\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/lab_order_compendiums/\",\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 Lab Order Compendium","description":"","operationId":"create-lab-order-compendium","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["lab_vendor","code","name"],"properties":{"lab_vendor":{"type":"integer","description":"lab vendor id","format":"int32"},"code":{"type":"string","description":"must be unique with each individual 'lab_vendor'"},"name":{"type":"string","description":"must be unique with each individual 'lab_vendor'"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"code\": \"Harris PLC2022-05-06 10:54:18+00:00\",\n \"created_date\": \"2022-06-06T11:16:29.316252Z\",\n \"deleted_date\": null,\n \"id\": 140758847783355,\n \"lab_vendor\": 67186196726,\n \"last_updated\": \"2022-06-06T11:16:29.317032Z\",\n \"name\": \"Harris PLC2022-05-06 10:54:18+00:00 Compendium\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"Harris PLC2022-05-06 10:54:18+00:00"},"created_date":{"type":"string","example":"2022-06-06T11:16:29.316252Z"},"deleted_date":{},"id":{"type":"integer","example":140758847783355,"default":0},"lab_vendor":{"type":"integer","example":67186196726,"default":0},"last_updated":{"type":"string","example":"2022-06-06T11:16:29.317032Z"},"name":{"type":"string","example":"Harris PLC2022-05-06 10:54:18+00:00 Compendium"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"lab_vendor\": 67186196726, \n\t\"code\": \"Harris PLC2022-05-06 10:54:18+00:00\", \n\t\"name\": \"Harris PLC2022-05-06 10:54:18+00:00 Compendium\"\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/lab_order_compendiums/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_vendors/":{"get":{"summary":"Find Lab Vendor","description":"","operationId":"find-lab-vendor","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"practice_created","in":"query","description":"The id's of practice.","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 2,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 140745672294843,\n // See Object Definition\n },\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/lab_vendors/\",\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 Lab Vendor","description":"","operationId":"create-lab-vendor","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","display_name","practice_created","results_integration_available","orders_integration_available"],"properties":{"name":{"type":"string","description":"Value must be Lab for laboratory reports"},"display_name":{"type":"string"},"practice_created":{"type":"integer","format":"int64"},"has_test_compendium":{"type":"boolean"},"results_integration_available":{"type":"boolean"},"orders_integration_available":{"type":"boolean"},"default_compendium":{"type":"object","description":"Not working. Need to change save method","required":["code","name","lab_vendor"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"lab_vendor":{"type":"integer","description":"The id of lab_vendor","format":"int64"}}},"compendiums":{"type":"array","description":"Not working. Need to change save method","items":{"properties":{"code":{"type":"string"},"name":{"type":"string"},"lab_vendor":{"type":"integer","description":"The id of lab_vendor","format":"int64"}},"required":["code","name","lab_vendor"],"type":"object"}}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758848438518,\n \"practice_created\": null,\n \"name\": \"Sonora Quest\",\n \"display_name\": \"Sonora Quest\",\n \"has_order_compendium\": false,\n \"has_test_compendium\": false,\n \"results_integration_available\": false,\n \"orders_integration_available\": false,\n \"compendiums\": [],\n \"default_compendium\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758848438518,"default":0},"practice_created":{},"name":{"type":"string","example":"Sonora Quest"},"display_name":{"type":"string","example":"Sonora Quest"},"has_order_compendium":{"type":"boolean","example":false,"default":true},"has_test_compendium":{"type":"boolean","example":false,"default":true},"results_integration_available":{"type":"boolean","example":false,"default":true},"orders_integration_available":{"type":"boolean","example":false,"default":true},"compendiums":{"type":"array"},"default_compendium":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"practice_created\": null,\n \"name\": \"Sonora Quest\",\n \"display_name\": \"Sonora Quest\",\n \"has_order_compendium\": false,\n \"has_test_compendium\": false,\n \"results_integration_available\": false,\n \"orders_integration_available\": false\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/lab_order_compendiums/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_vendor_patient_sites/":{"get":{"summary":"Find Lab Vendor Patient Site","description":"","operationId":"find-lab-vendor-patient-site","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"practice","in":"query","description":"The id's of practice_created.","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"vendor","in":"query","description":"The id's of vendor.","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 1,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \t\t\t\t\t\t\"id\": 67194323348,\n \t\t\t\t\t// See Object Definition\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_patient_sites/\",\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 Lab Vendor Patient Site","description":"","operationId":"create-lab-vendor-patient-site","parameters":[{"name":"Authentication","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","practice_created","vendor"],"properties":{"name":{"type":"string"},"practice_created":{"type":"integer","description":"Can be null","format":"int32"},"vendor":{"type":"object","description":"vendor id","required":["id"],"properties":{"id":{"type":"integer","description":"object id","format":"int64"}}},"address":{"type":"string"},"suite":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"address\": \"\",\n \"city\": \"\",\n \"created_date\": \"2022-06-06T16:19:15Z\",\n \"deleted_date\": null,\n \"fax\": \"2\",\n \"id\": 140758850208148,\n \"name\": \"name1\",\n \"phone\": \"null\",\n \"practice_created\": null,\n \"state\": \"\",\n \"suite\": \"null\",\n \"vendor\": {\n \"id\": 67186196726,\n \"name\": \"labcorp\",\n \"display_name\": \"LabCorp\"\n },\n \"zip\": \"\"\n}"}},"schema":{"type":"object","properties":{"address":{"type":"string","example":""},"city":{"type":"string","example":""},"created_date":{"type":"string","example":"2022-06-06T16:19:15Z"},"deleted_date":{},"fax":{"type":"string","example":"2"},"id":{"type":"integer","example":140758850208148,"default":0},"name":{"type":"string","example":"name1"},"phone":{"type":"string","example":"null"},"practice_created":{},"state":{"type":"string","example":""},"suite":{"type":"string","example":"null"},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":67186196726,"default":0},"name":{"type":"string","example":"labcorp"},"display_name":{"type":"string","example":"LabCorp"}}},"zip":{"type":"string","example":""}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"address\": \"\",\n \"city\": \"\",\n \"created_date\": \"2022-06-06T16:11:31.678802Z\",\n \"deleted_date\": null,\n \"fax\": \"2\",\n \"name\": \"name1\",\n \"phone\": \"null\",\n \"practice_created\": null,\n \"state\": \"\",\n \"suite\": \"null\",\n \"vendor\": {\"id\": 67186196726},\n \"zip\": \"\"\n}\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_patient_sites/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_vendor_integrations/":{"get":{"summary":"Find Lab Vendor Integration","description":"","operationId":"find-lab-vendor-integration","parameters":[{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"practice","in":"query","description":"The id's of practice","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"lab_vendor","in":"query","description":"The id's of lab_vendor","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 2,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\t\t\n \"allow_print\":true,\n \"created_date\":\"2022-05-06T12:16:10Z\",\n \"deleted_date\":null,\n \"id\":140758864036248,\n \"lab_vendor\":140758863970550,\n \"orders_status\":\"not_requested\",\n \"practice\":140758859186180,\n \"results_status\":\"live\"\n },\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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_integrations/\",\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"post":{"summary":"Create Lab Vendor Integration","description":"","operationId":"create-lab-vendor-integration","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["lab_vendor","practice","orders_status","results_status"],"properties":{"lab_vendor":{"type":"integer","description":"Must bu unique with 'practice'","format":"int32"},"practice":{"type":"integer","description":"Must bu unique with 'lab_vendor'","format":"int32"},"orders_status":{"type":"string","enum":["\"not_requested\"","\"waiting_on_lab\"","\"pending_testing\"","\"completed_testing\"","\"blocked\"","\"live\"",""]},"results_status":{"type":"string","enum":["\"not_requested\"","\"waiting_on_lab\"","\"pending_testing\"","\"completed_testing\"","\"blocked\"","\"live\""]},"allow_print":{"type":"boolean"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"allow_print\": true,\n \"created_date\": \"2022-06-06T18:24:32.446237Z\",\n \"deleted_date\": null,\n \"id\": 140758850273688,\n \"lab_vendor\": 64426082550,\n \"orders_status\": \"not_requested\",\n \"practice\": 140758831005700,\n \"results_status\": \"not_requested\"\n}"}},"schema":{"type":"object","properties":{"allow_print":{"type":"boolean","example":true,"default":true},"created_date":{"type":"string","example":"2022-06-06T18:24:32.446237Z"},"deleted_date":{},"id":{"type":"integer","example":140758850273688,"default":0},"lab_vendor":{"type":"integer","example":64426082550,"default":0},"orders_status":{"type":"string","example":"not_requested"},"practice":{"type":"integer","example":140758831005700,"default":0},"results_status":{"type":"string","example":"not_requested"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n \"lab_vendor\": 1234567889, \n\t\"practice\": 123455, \n\t\"orders_status\": \"not_requested\",\n \"results_status\": \"live\"\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/lab_vendor_integrations/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)\n"}],"samples-languages":["python"]}}},"/lab_facility_identifiers/{id} [WIP]":{"get":{"summary":"Get Lab Facility Identifiers","description":"","operationId":"get-lab-facility-identifiers","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"vendor\": {\n \"id\": 63929778422,\n \"name\": \"DLS\",\n \"display_name\": \"DLS\"\n },\n \"practice_facility\": \"KAWAMOTO\",\n \"practice_secondary_id\": null,\n \"lab_facility\": \"LABFACID\",\n \"description\": \"DLS e-ordering\",\n \"user_facing\": true,\n \"compendium\": 140745672360379,\n \"deleted_date\": null,\n \"created_date\": \"2019-10-04T05:37:31Z\",\n \"active\": true,\n \"practice\": 140758831005700\n}"}},"schema":{"type":"object","properties":{"vendor":{"type":"object","properties":{"id":{"type":"integer","example":63929778422,"default":0},"name":{"type":"string","example":"DLS"},"display_name":{"type":"string","example":"DLS"}}},"practice_facility":{"type":"string","example":"KAWAMOTO"},"practice_secondary_id":{},"lab_facility":{"type":"string","example":"LABFACID"},"description":{"type":"string","example":"DLS e-ordering"},"user_facing":{"type":"boolean","example":true,"default":true},"compendium":{"type":"integer","example":140745672360379,"default":0},"deleted_date":{},"created_date":{"type":"string","example":"2019-10-04T05:37:31Z"},"active":{"type":"boolean","example":true,"default":true},"practice":{"type":"integer","example":140758831005700,"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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/1234567\",\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"put":{"summary":"Put Lab Facility Identifiers","description":"","operationId":"put-lab-facility-identifiers","parameters":[{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["vendor","practice","active","lab_facility","practice_facility"],"properties":{"vendor":{"type":"integer","description":"lab vendor id","format":"int32"},"practice":{"type":"integer","description":"practice id","format":"int32"},"active":{"type":"boolean","description":"Whether the facility identifier should be used. Should be true in most cases."},"user_facing":{"type":"boolean","description":"Whether this facility identifier will be visible in the lab order dialog. Should be true for most cases."},"lab_facility":{"type":"string","description":"The id that represents the lab"},"practice_facility":{"type":"string","description":"The id that represents the practice; often an account number provided by the lab vendor"},"compendium":{"type":"integer","description":"The id of the compendium that will be used when the user selects this facility identifier","format":"int64"},"description":{"type":"string","description":"The text that will displayed to users in the lab order dialog"},"practice_secondary_id":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758850863531,\n \"vendor\": {\n \"id\": 63929778422,\n \"name\": \"DLS\",\n \"display_name\": \"DLS\"\n },\n \"practice_facility\": \"KAWAMOTO\",\n \"practice_secondary_id\": \"54\",\n \"lab_facility\": \"LABFACID\",\n \"description\": \"DLS e-ordering\",\n \"user_facing\": true,\n \"compendium\": 140745672360379,\n \"deleted_date\": null,\n \"created_date\": \"2022-06-07T09:52:18.599593Z\",\n \"active\": true,\n \"practice\": 140758831005700\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758850863531,"default":0},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":63929778422,"default":0},"name":{"type":"string","example":"DLS"},"display_name":{"type":"string","example":"DLS"}}},"practice_facility":{"type":"string","example":"KAWAMOTO"},"practice_secondary_id":{"type":"string","example":"54"},"lab_facility":{"type":"string","example":"LABFACID"},"description":{"type":"string","example":"DLS e-ordering"},"user_facing":{"type":"boolean","example":true,"default":true},"compendium":{"type":"integer","example":140745672360379,"default":0},"deleted_date":{},"created_date":{"type":"string","example":"2022-06-07T09:52:18.599593Z"},"active":{"type":"boolean","example":true,"default":true},"practice":{"type":"integer","example":140758831005700,"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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n 'vendor': 140758909976822, \n 'compendium': 140758910042555, \n 'practice': 140758905192452, \n 'active': True, \n 'user_facing': True, \n 'lab_facility': 'indicate', \n 'practice_facility': 'national', \n 'description': 'test'\n}\n\nresp = requests.put(\"https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/1234567/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"patch":{"summary":"Patch Lab Facility Identifiers","description":"","operationId":"patch-lab-facility-identifiers","parameters":[{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"vendor":{"type":"integer","description":"lab vendor id","format":"int64"},"practice":{"type":"integer","description":"practice id","format":"int64"},"active":{"type":"boolean","description":"Whether the facility identifier should be used. Should be true in most cases."},"user_facing":{"type":"boolean","description":"Whether this facility identifier will be visible in the lab order dialog. Should be true for most cases."},"lab_facility":{"type":"string","description":"The id that represents the lab"},"practice_facility":{"type":"string","description":"The id that represents the practice; often an account number provided by the lab vendor"},"compendium":{"type":"integer","description":"The id of the compendium that will be used when the user selects this facility identifier","format":"int64"},"description":{"type":"string","description":"The text that will displayed to users in the lab order dialog"},"practice_secondary_id":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758850863531,\n \"vendor\": {\n \"id\": 63929778422,\n \"name\": \"DLS\",\n \"display_name\": \"DLS\"\n },\n \"practice_facility\": \"KAWAMOTO\",\n \"practice_secondary_id\": \"54\",\n \"lab_facility\": \"LABFACID\",\n \"description\": \"DLS e-ordering\",\n \"user_facing\": true,\n \"compendium\": 140745672360379,\n \"deleted_date\": null,\n \"created_date\": \"2022-06-07T09:52:18.599593Z\",\n \"active\": true,\n \"practice\": 140758831005700\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758850863531,"default":0},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":63929778422,"default":0},"name":{"type":"string","example":"DLS"},"display_name":{"type":"string","example":"DLS"}}},"practice_facility":{"type":"string","example":"KAWAMOTO"},"practice_secondary_id":{"type":"string","example":"54"},"lab_facility":{"type":"string","example":"LABFACID"},"description":{"type":"string","example":"DLS e-ordering"},"user_facing":{"type":"boolean","example":true,"default":true},"compendium":{"type":"integer","example":140745672360379,"default":0},"deleted_date":{},"created_date":{"type":"string","example":"2022-06-07T09:52:18.599593Z"},"active":{"type":"boolean","example":true,"default":true},"practice":{"type":"integer","example":140758831005700,"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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n 'vendor': 140758909976822, \n 'compendium': 140758910042555, \n 'practice': 140758905192452, \n 'active': True, \n 'user_facing': True, \n 'lab_facility': 'indicate', \n 'practice_facility': 'national', \n 'description': 'test'\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/1234567/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_facility_identifiers/":{"get":{"summary":"Find Lab Facility Identifiers","description":"","operationId":"find-lab-facility-identifiers","parameters":[{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 8,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 140743139328427,\n \"vendor\": {\n \"id\": 63929778422,\n \"name\": \"DLS\",\n \"display_name\": \"DLS\"\n },\n \"practice_facility\": \"KAWAMOTO\",\n \"practice_secondary_id\": null,\n \"lab_facility\": \"LABFACID\",\n \"description\": \"DLS e-ordering\",\n \"user_facing\": true,\n \"compendium\": 140745672360379,\n \"deleted_date\": null,\n \"created_date\": \"2019-10-04T05:37:31Z\",\n \"active\": true,\n \"practice\": 65540\n },\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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/\",\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/lab_facility_identifiers/ [WIP]":{"post":{"summary":"Create Lab Facility Identifiers","description":"","operationId":"create-lab-facility-identifiers","parameters":[{"name":"Authentication","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["vendor","practice","active","lab_facility","practice_facility"],"properties":{"vendor":{"type":"integer","description":"lab vendor id","format":"int32"},"compendium":{"type":"integer","description":"The id of the compendium that will be used when the user selects this facility identifier","format":"int32"},"practice":{"type":"integer","description":"practice id","format":"int32"},"active":{"type":"boolean","description":"Whether the facility identifier should be used. Should be true in most cases."},"user_facing":{"type":"boolean","description":"Whether this facility identifier will be visible in the lab order dialog. Should be true for most cases."},"lab_facility":{"type":"string","description":"The id that represents the lab"},"practice_facility":{"type":"string","description":"The id that represents the practice; often an account number provided by the lab vendor"},"description":{"type":"string","description":"The text that will displayed to users in the lab order dialog"},"practice_secondary_id":{"type":"string"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140758850863531,\n \"vendor\": {\n \"id\": 63929778422,\n \"name\": \"DLS\",\n \"display_name\": \"DLS\"\n },\n \"practice_facility\": \"KAWAMOTO\",\n \"practice_secondary_id\": \"54\",\n \"lab_facility\": \"LABFACID\",\n \"description\": \"DLS e-ordering\",\n \"user_facing\": true,\n \"compendium\": 140745672360379,\n \"deleted_date\": null,\n \"created_date\": \"2022-06-07T09:52:18.599593Z\",\n \"active\": true,\n \"practice\": 140758831005700\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140758850863531,"default":0},"vendor":{"type":"object","properties":{"id":{"type":"integer","example":63929778422,"default":0},"name":{"type":"string","example":"DLS"},"display_name":{"type":"string","example":"DLS"}}},"practice_facility":{"type":"string","example":"KAWAMOTO"},"practice_secondary_id":{"type":"string","example":"54"},"lab_facility":{"type":"string","example":"LABFACID"},"description":{"type":"string","example":"DLS e-ordering"},"user_facing":{"type":"boolean","example":true,"default":true},"compendium":{"type":"integer","example":140745672360379,"default":0},"deleted_date":{},"created_date":{"type":"string","example":"2022-06-07T09:52:18.599593Z"},"active":{"type":"boolean","example":true,"default":true},"practice":{"type":"integer","example":140758831005700,"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\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\n\ndata = {\n 'vendor': 140758909976822, \n 'compendium': 140758910042555, \n 'practice': 140758905192452, \n 'active': True, \n 'user_facing': True, \n 'lab_facility': 'indicate', \n 'practice_facility': 'national', \n 'description': 'test'\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/cardiac_order_tests/{id}":{"get":{"summary":"Get Cardiac Order Test","description":"","operationId":"get-cardiac-order-test","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_order_tests/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/cardiac_order_tests/":{"get":{"summary":"Find Cardiac Order Tests","description":"","operationId":"wip-find-cardiac-order-tests","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the cardiac order test you're searching for","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the cardiac order test is associated with.","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Cardiac Order Test objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_order_tests/\",\n headers={'Authorization': auth_header}\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"post":{"summary":"Create Cardiac Order Test","description":"","operationId":"create-cardiac-order-test","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","practice"],"properties":{"code":{"type":"string","description":"Can be up to 50 characters long.","default":"null"},"name":{"type":"string","description":"Can be up to 255 characters long."},"practice":{"type":"integer","description":"Must specify a practice the cardiac order test is for.","format":"int32"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Cardiac Order Test 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 = f\"Bearer {access_token}\"\n\nnew_cardiac_order_test_data = {\n\t\t\"code\": None,\n \t\"name\": \"Cardiac test\",\n\t\t\"practice\": 65540,\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_order_tests/\",\n headers={'Authorization': auth_header},\n \tjson=new_cardiac_order_test_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/pharmacies/":{"get":{"summary":"Find Pharmacy [WIP]","description":"","operationId":"find-pharmacy-wip","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"active_start_time","in":"query","description":"lookup_expr=\"gte\"","schema":{"type":"string"}},{"name":"active_end_time","in":"query","description":"lookup_expr=\"lte\"","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 70933,\n \"next\": \"http://127.0.0.1/api/2.0/pharmacies/?limit=100&offset=100\",\n \"previous\": null,\n \"results\": [\n {\n \"ncpdpid\": 0059390,\n // See Pharmacy Object Definition\n\t\t\t\t}\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 = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/pharmacies/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/appointments/ [WIP]":{"get":{"summary":"Find Events [WIP]","description":"","operationId":"find-events-wip","parameters":[{"name":"time_slot_type","in":"query","description":"if you want only events, 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","description":"lookup_expr=\"gte\"","schema":{"type":"string","format":"date"}},{"name":"to_date","in":"query","description":"lookup_expr=\"lte\"","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":"{\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"]}},"post":{"summary":"Create Event [WIP]","description":"","operationId":"create-event-wip","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":"integer","description":"value must be null","default":null,"format":"int32"},"physician":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"time_slot_type":{"type":"string","description":"value must be \"event\"","default":"event","enum":["(1","\"appointment\")","(2","\"event\")","(3","\"appointment_slot\")"]},"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"]}}},"/appointments/{id}/ [WIP]":{"put":{"summary":"Update Event [WIP]","description":"","operationId":"update-event-wip","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"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":"integer","description":"value must be null or belong to the practice","default":null,"format":"int32"},"physician":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"time_slot_type":{"type":"string","description":"value must be \"event\"","default":"event","enum":["(1","\"appointment\")","(2","\"event\")","(3","\"appointment_slot\")"]},"service_location":{"type":"integer","description":"ID of an active (non-deleted) practice location where the appointment will occur","format":"int32"}}}}}},"responses":{"200":{"description":"200","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\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 [WIP]","description":"","operationId":"update-event-wip-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","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":"integer","description":"value must be null","default":null,"format":"int32"},"physician":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"time_slot_type":{"type":"string","description":"value must be \"event\"","default":"event","enum":["(1","\"appointment\")","(2","\"event\")","(3","\"appointment_slot\")"]},"service_location":{"type":"integer","description":"ID of an active (non-deleted) practice location where the appointment will occur","format":"int32"}}}}}},"responses":{"200":{"description":"200","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# 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"]}}},"/cardiac_centers/":{"get":{"summary":"Find Cardiac Centers","description":"","operationId":"find-cardiac-centers","parameters":[{"name":"company","in":"query","description":"The ancillary company associated with the cardiac center.","schema":{"type":"integer","format":"int32"}},{"name":"location_name","in":"query","description":"The location name of the cardiac center you're searching for","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the cardiac order test is associated with.","schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Cardiac Center objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_centers/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/medication_history_downloads/{medication_history_download_id}":{"get":{"summary":"Get Historical Medication Download Requests","description":"","operationId":"get-history-object","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"medication_history_download_id","in":"path","description":"The id of the download","schema":{"type":"integer","format":"int32"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 140759728259218,\n \"practice\": 140754475089924,\n \"patient\": 140754479349761,\n \"is_active\": true,\n \"success\": true,\n \"error_code\": null,\n \"error_description\": null,\n \"error_description_code\": null,\n \"num_items\": \"50\",\n \"pbm_name\": \"PROINFORMA PBM\",\n \"pbm_surescripts_participant_id\": \"T00000000022652\",\n \"pbm_member_id\": \"PRO-PBM^FL^33256\",\n \"eligibility\": 140759727734801,\n \"from_date\": null,\n \"until_date\": null,\n \"created_date\": \"2022-06-15T15:12:30Z\",\n \"signed_date\": null,\n \"signed_by\": null,\n \"deleted_date\": null\n },\n {\n //...\n //...\n }\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":123,"default":0},"next":{},"previous":{},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140759728259218,"default":0},"practice":{"type":"integer","example":140754475089924,"default":0},"patient":{"type":"integer","example":140754479349761,"default":0},"is_active":{"type":"boolean","example":true,"default":true},"success":{"type":"boolean","example":true,"default":true},"error_code":{},"error_description":{},"error_description_code":{},"num_items":{"type":"string","example":"50"},"pbm_name":{"type":"string","example":"PROINFORMA PBM"},"pbm_surescripts_participant_id":{"type":"string","example":"T00000000022652"},"pbm_member_id":{"type":"string","example":"PRO-PBM^FL^33256"},"eligibility":{"type":"integer","example":140759727734801,"default":0},"from_date":{},"until_date":{},"created_date":{"type":"string","example":"2022-06-15T15:12:30Z"},"signed_date":{},"signed_by":{},"deleted_date":{}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/medication_history_downloads/":{"post":{"summary":"Create an Historical Medication Download Request","description":"","operationId":"create-history-object","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","patient"],"properties":{"practice":{"type":"integer","description":"Practice ID","format":"int32"},"patient":{"type":"integer","description":"Patient ID","format":"int32"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n}"}},"schema":{"type":"object","properties":{}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"get":{"summary":"Find Historical Medication Download Requests","description":"","operationId":"find-history-object","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n\n \"id\":140759728259218,\n \"practice\":140754475089924,\n \"patient\":140754479349761,\n \"is_active\":true,\n \"success\":true,\n \"error_code\":null,\n \"error_description\":null,\n \"error_description_code\":null,\n \"num_items\":\"50\",\n \"pbm_name\":\"PROINFORMA PBM\",\n \"pbm_surescripts_participant_id\":\"T00000000022652\",\n \"pbm_member_id\":\"PRO-PBM^FL^33256\",\n \"eligibility\":140759727734801,\n \"from_date\":null,\n \"until_date\":null,\n \"created_date\":\"2022-06-15T15:12:30Z\",\n \"signed_date\":null,\n \"signed_by\":null,\n \"deleted_date\":null\n\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140759728259218,"default":0},"practice":{"type":"integer","example":140754475089924,"default":0},"patient":{"type":"integer","example":140754479349761,"default":0},"is_active":{"type":"boolean","example":true,"default":true},"success":{"type":"boolean","example":true,"default":true},"error_code":{},"error_description":{},"error_description_code":{},"num_items":{"type":"string","example":"50"},"pbm_name":{"type":"string","example":"PROINFORMA PBM"},"pbm_surescripts_participant_id":{"type":"string","example":"T00000000022652"},"pbm_member_id":{"type":"string","example":"PRO-PBM^FL^33256"},"eligibility":{"type":"integer","example":140759727734801,"default":0},"from_date":{},"until_date":{},"created_date":{"type":"string","example":"2022-06-15T15:12:30Z"},"signed_date":{},"signed_by":{},"deleted_date":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/cardiac_centers/{id}":{"get":{"summary":"Get Cardiac Center","description":"","operationId":"get-cardiac-center","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140755855671306,\n // See Cardiac Center 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/cardiac_center/140755855671306/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/ancillary_companies/":{"get":{"summary":"Find Ancillary Companies","description":"","operationId":"find-ancillary-companies","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the ancillary company.","schema":{"type":"string"}},{"name":"type","in":"query","description":"The order type the ancillary company can be associated with. Allowed values are \"cardiac\", \"imaging\", \"pulmonary\", and \"sleep\"","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [//list of Ancillary Company objects]\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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/ancillary_companies/?type=cardiac\",\n headers={'Authorization': auth_header}\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/ancillary_companies/{id}":{"get":{"summary":"Get Ancillary Company","description":"","operationId":"get-ancillary-company","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140755855605768,\n // See Ancillary Company 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/ancillary_companies/140755855605768/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/thread_messages/ [WIP]":{"get":{"summary":"Find Thread Messages [WIP]","description":"","operationId":"find-thread-messages-wip","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"thread","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"patient","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"sender","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int32"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/thread_messages/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/thread_messages/?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/thread_messages/\",\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 Thread Message [WIP]","description":"","operationId":"create-thread-message-wip","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["thread","sender","body","send_date"],"properties":{"thread":{"type":"integer","description":"The message thread we're replying to","format":"int32"},"sender":{"type":"integer","description":"The user id of the sender","format":"int32"},"body":{"type":"string","description":"The message"},"send_date":{"type":"string","description":"The timestamp of when this message was sent","format":"date"},"to_document":{"type":"object","description":"A document this message is in reference to","required":["id"],"properties":{"id":{"type":"integer","description":"object id","format":"int64"}}}}}}}},"responses":{"201":{"description":"201","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}},"/message_threads/ [WIP]":{"post":{"summary":"Create Message Thread [WIP]","description":"","operationId":"create-message-thread-wip","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice","document_date","chart_date"],"properties":{"patient":{"type":"integer","description":"The patient chart for which the thread is about","format":"int32"},"practice":{"type":"integer","description":"The id of the practice that owns the patient chart","format":"int32"},"document_date":{"type":"string","format":"date"},"chart_date":{"type":"string","format":"date"},"delivery_date":{"type":"string","format":"date"},"members":{"type":"array","description":"List of Thread Members, when creating only need to specify the id of the thread member and their status","items":{"properties":{"status":{"type":"string","enum":["(\"ReqAct\"","\"Requiring Action\")","(\"Addressed\"","\"Addressed\")"]},"ack_time":{"type":"string","format":"date"},"user":{"type":"integer","description":"must provide or user or group","format":"int32"},"group":{"type":"integer","description":"must provide or user or group","format":"int32"},"thread":{"type":"integer","format":"int32"}},"required":["status"],"type":"object"}},"messages":{"type":"array","description":"List of Thread Messages, when creating only need to provide the body, send_date and sender","items":{"properties":{"body":{"type":"string"},"sender":{"type":"integer","format":"int32"},"send_date":{"type":"string","format":"date"},"to_document":{"type":"integer","format":"int32"},"thread":{"type":"integer","format":"int32"}},"required":["body","sender","send_date"],"type":"object"}},"is_urgent":{"type":"boolean","description":"Whether the message is currently urgent"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"created_date\": \"2022-06-22T15:37:11Z\",\n \"deleted_date\": null,\n \"delivery_date\": \"2001-06-22T13:12:21Z\",\n \"document_date\": \"2001-10-20T17:43:19Z\",\n \"chart_date\": \"2022-06-22T15:37:11Z\",\n \"patient\": 1638401,\n \"practice\": 140758918627332,\n \"id\": 140758939467867,\n \"is_urgent\": true,\n \"members\": [\n {\n \"id\": 140758939533404,\n \"thread\": 140758939467867,\n \"user\": null,\n \"group\": 262157,\n \"status\": \"Addressed\",\n \"ack_time\": \"2011-03-01T09:06:02Z\"\n }\n ],\n \"messages\": [\n {\n \"body\": \"Patient should have appointment already booked.\",\n \"id\": 140758939598942,\n \"patient\": 1638401,\n \"practice\": 140758918627332,\n \"thread\": 140758939467867,\n \"sender\": 4,\n \"send_date\": \"2010-12-13T15:18:11\",\n \"to_document\": null\n }\n ]\n}"}},"schema":{"type":"object","properties":{"created_date":{"type":"string","example":"2022-06-22T15:37:11Z"},"deleted_date":{},"delivery_date":{"type":"string","example":"2001-06-22T13:12:21Z"},"document_date":{"type":"string","example":"2001-10-20T17:43:19Z"},"chart_date":{"type":"string","example":"2022-06-22T15:37:11Z"},"patient":{"type":"integer","example":1638401,"default":0},"practice":{"type":"integer","example":140758918627332,"default":0},"id":{"type":"integer","example":140758939467867,"default":0},"is_urgent":{"type":"boolean","example":true,"default":true},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":140758939533404,"default":0},"thread":{"type":"integer","example":140758939467867,"default":0},"user":{},"group":{"type":"integer","example":262157,"default":0},"status":{"type":"string","example":"Addressed"},"ack_time":{"type":"string","example":"2011-03-01T09:06:02Z"}}}},"messages":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string","example":"Patient should have appointment already booked."},"id":{"type":"integer","example":140758939598942,"default":0},"patient":{"type":"integer","example":1638401,"default":0},"practice":{"type":"integer","example":140758918627332,"default":0},"thread":{"type":"integer","example":140758939467867,"default":0},"sender":{"type":"integer","example":4,"default":0},"send_date":{"type":"string","example":"2010-12-13T15:18:11"},"to_document":{}}}}}}}}},"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 \"delivery_date\": \"2001-06-22T13:12:21Z\",\n \"document_date\": \"2001-10-20T17:43:19Z\",\n \"chart_date\": \"2011-10-20T17:43:19Z\",\n \"patient\": 1638401,\n \"practice\": 140758918627332,\n \"is_urgent\": true,\n \"members\": [\n {\n \"thread\": 6422619,\n \"group\": 262157,\n \"status\": \"Addressed\",\n \"ack_time\": \"2011-03-01T09:06:02Z\"\n }\n ],\n \"messages\": [\n {\n \"body\": \"Patient should have appointment already booked.\",\n \"thread\": 6422619,\n \"sender\": 4,\n \"send_date\": \"2010-12-13T15:18:11\"\n }\n ]\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/message_threads/\",\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"]}}},"/Methods Put and Patch not allowed.":{"patch":{"summary":"[WIP] Methods Put and Patch not allowed.Update Message Thread","description":"","operationId":"update-message-threadwip-methods-put-and-patch-not-allowed","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}},"/message_threads/{id}/ [WIP]":{"delete":{"summary":"Delete Message Thread [WIP]","description":"","operationId":"delete-message-thread-wip","parameters":[{"name":"id","in":"path","description":"The id of the message thread","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","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}},"/service_locations":{"get":{"summary":"Find Service Location","description":"","operationId":"find-service-location","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","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 \"address_line1\": \"6580 Harmon Course\",\n \"address_line2\": \"Suite 565\",\n \"city\": \"West Carolyn\",\n \"created_date\": \"2021-04-14T18:21:58Z\",\n \"deleted_date\": null,\n \"email\": null,\n \"fax\": \"890-372-3727\",\n \"id\": 140754475155703,\n \"is_primary\": true,\n \"name\": \"Chambers Group\",\n \"phone\": \"400.2942x8551\",\n \"place_of_service\": null,\n \"practice\": 140754475089924,\n \"state\": \"UT\",\n \"zip\": \"05056\"\n }\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":1,"default":0},"next":{},"previous":{},"results":{"type":"array","items":{"type":"object","properties":{"address_line1":{"type":"string","example":"6580 Harmon Course"},"address_line2":{"type":"string","example":"Suite 565"},"city":{"type":"string","example":"West Carolyn"},"created_date":{"type":"string","example":"2021-04-14T18:21:58Z"},"deleted_date":{},"email":{},"fax":{"type":"string","example":"890-372-3727"},"id":{"type":"integer","example":140754475155703,"default":0},"is_primary":{"type":"boolean","example":true,"default":true},"name":{"type":"string","example":"Chambers Group"},"phone":{"type":"string","example":"400.2942x8551"},"place_of_service":{},"practice":{"type":"integer","example":140754475089924,"default":0},"state":{"type":"string","example":"UT"},"zip":{"type":"string","example":"05056"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"post":{"summary":"Create Service Location","description":"","operationId":"create-service-location","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["address_line1","city","state","name","practice"],"properties":{"address_line1":{"type":"string","description":"service location address"},"city":{"type":"string","description":"service location city"},"state":{"type":"string","description":"service location state","enum":["AL","AK","AZ","AR","CA","CO","CT","DC","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]},"name":{"type":"string","description":"service location name"},"practice":{"type":"integer","description":"available practice","format":"int32"},"place_of_service":{"type":"string","description":"place of service location","enum":["Pharmacy","Telehealth Provided Other than in Patient’s Home","School","Homeless Shelter","Indian Health ServiceFree-standing Facility","Indian Health ServiceProvider-based Facility","Tribal 638Free-standingFacility","Tribal 638Provider-basedFacility","Prison/Correctional Facility","Telehealth Provided in Patient’s Home","Office","Home","Assisted Living Facility","Group Home","Mobile Unit","Temporary Lodging","Walk-in Retail Health Clinic","Place of Employment-Worksite","Off Campus Outpatient-Hospital","Urgent Care Facility","Inpatient Hospital","On Campus-Outpatient Hospital","Emergency Room - Hospital","Ambulatory Surgical Center","Birthing Center","Military Treatment Facility","Skilled Nursing Facility","Nursing Facility","Custodial Care Facility","Hospice","Ambulance - Land","Ambulance - Air or Water","Independent Clinic","Federally Qualified Health Center","Inpatient Psychiatric Facility","Psychiatric Facility-Partial Hospitalization","Community Mental Health Center","Intermediate Care Facility/Individuals with Intellectual Disabilities","Residential Substance Abuse Treatment Facility","Psychiatric Residential Treatment Center","Non-residential Substance Abuse Treatment Facility","Mass Immunization Center","Comprehensive Inpatient Rehabilitation Facility","Comprehensive Outpatient Rehabilitation Facility","End-Stage Renal Disease Treatment Facility","Public Health Clinic","Rural Health Clinic","Independent Laboratory","Other Place of Service"]},"address_line2":{"type":"string","description":"service location suite"},"email":{"type":"string","description":"service location email"},"fax":{"type":"string","description":"service location fax"},"is_primary":{"type":"boolean","description":"if service location is primary"},"phone":{"type":"string","description":"service location phone"},"zip":{"type":"string","description":"service location zip"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"address_line1\": \"6580 Harmon Course\",\n \"address_line2\": \"Suite 565\",\n \"city\": \"West Carolyn\",\n \"created_date\": \"2021-04-14T18:21:58Z\",\n \"deleted_date\": null,\n \"email\": null,\n \"fax\": \"890-372-3727\",\n \"id\": 140754475155703,\n \"is_primary\": true,\n \"name\": \"Chambers Group\",\n \"phone\": \"400.2942x8551\",\n \"place_of_service\": null,\n \"practice\": 140754475089924,\n \"state\": \"UT\",\n \"zip\": \"05056\"\n}"}},"schema":{"type":"object","properties":{"address_line1":{"type":"string","example":"6580 Harmon Course"},"address_line2":{"type":"string","example":"Suite 565"},"city":{"type":"string","example":"West Carolyn"},"created_date":{"type":"string","example":"2021-04-14T18:21:58Z"},"deleted_date":{},"email":{},"fax":{"type":"string","example":"890-372-3727"},"id":{"type":"integer","example":140754475155703,"default":0},"is_primary":{"type":"boolean","example":true,"default":true},"name":{"type":"string","example":"Chambers Group"},"phone":{"type":"string","example":"400.2942x8551"},"place_of_service":{},"practice":{"type":"integer","example":140754475089924,"default":0},"state":{"type":"string","example":"UT"},"zip":{"type":"string","example":"05056"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/service_locations/{id}":{"get":{"summary":"Get Service Location","description":"","operationId":"get-service-location","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"address_line1\": \"6580 Harmon Course\",\n \"address_line2\": \"Suite 565\",\n \"city\": \"West Carolyn\",\n \"created_date\": \"2021-04-14T18:21:58Z\",\n \"deleted_date\": null,\n \"email\": null,\n \"fax\": \"890-372-3727\",\n \"id\": 140754475155703,\n \"is_primary\": true,\n \"name\": \"Chambers Group\",\n \"phone\": \"400.2942x8551\",\n \"place_of_service\": null,\n \"practice\": 140754475089924,\n \"state\": \"UT\",\n \"zip\": \"05056\"\n}"}},"schema":{"type":"object","properties":{"address_line1":{"type":"string","example":"6580 Harmon Course"},"address_line2":{"type":"string","example":"Suite 565"},"city":{"type":"string","example":"West Carolyn"},"created_date":{"type":"string","example":"2021-04-14T18:21:58Z"},"deleted_date":{},"email":{},"fax":{"type":"string","example":"890-372-3727"},"id":{"type":"integer","example":140754475155703,"default":0},"is_primary":{"type":"boolean","example":true,"default":true},"name":{"type":"string","example":"Chambers Group"},"phone":{"type":"string","example":"400.2942x8551"},"place_of_service":{},"practice":{"type":"integer","example":140754475089924,"default":0},"state":{"type":"string","example":"UT"},"zip":{"type":"string","example":"05056"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"patch":{"summary":"Update Service Location","description":"","operationId":"update-service-location","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"city":{"type":"string","description":"service location city"},"email":{"type":"string","description":"service location email"},"fax":{"type":"string","description":"service location fax"},"is_primary":{"type":"boolean","description":"if service location is primary"},"name":{"type":"string","description":"service location name"},"phone":{"type":"string","description":"service location phone"},"place_of_service":{"type":"string","description":"place of service location","enum":["Pharmacy","Telehealth Provided Other than in Patient’s Home","School","Homeless Shelter","Indian Health ServiceFree-standing Facility","Indian Health ServiceProvider-based Facility","Tribal 638Free-standingFacility","Tribal 638Provider-basedFacility","Prison/Correctional Facility","Telehealth Provided in Patient’s Home","Office","Home","Assisted Living Facility","Group Home","Mobile Unit","Temporary Lodging","Walk-in Retail Health Clinic","Place of Employment-Worksite","Off Campus Outpatient-Hospital","Urgent Care Facility","Inpatient Hospital","On Campus-Outpatient Hospital","Emergency Room - Hospital","Ambulatory Surgical Center","Birthing Center","Military Treatment Facility","Skilled Nursing Facility","Nursing Facility","Custodial Care Facility","Hospice","Ambulance - Land","Ambulance - Air or Water","Independent Clinic","Federally Qualified Health Center","Inpatient Psychiatric Facility","Psychiatric Facility-Partial Hospitalization","Community Mental Health Center","Intermediate Care Facility/Individuals with Intellectual Disabilities","Residential Substance Abuse Treatment Facility","Psychiatric Residential Treatment Center","Non-residential Substance Abuse Treatment Facility","Mass Immunization Center","Comprehensive Inpatient Rehabilitation Facility","Comprehensive Outpatient Rehabilitation Facility","End-Stage Renal Disease Treatment Facility","Public Health Clinic","Rural Health Clinic","Independent Laboratory","Other Place of Service"]},"state":{"type":"string","description":"service location state","enum":["AL","AK","AZ","AR","CA","CO","CT","DC","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]},"zip":{"type":"string","description":"service location zip"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"address_line1\": \"6580 Harmon Course\",\n \"address_line2\": \"Suite 565\",\n \"city\": \"test_city_new\",\n \"created_date\": \"2021-04-14T18:21:58Z\",\n \"deleted_date\": null,\n \"email\": \"test_new@mail.com\",\n \"fax\": \"102-103-104_new\",\n \"id\": 140754475155703,\n \"is_primary\": false,\n \"name\": \"test_name_new\",\n \"phone\": \"+38012345678910\",\n \"place_of_service\": \"Homeless Shelter\",\n \"practice\": 140754475089924,\n \"state\": \"NY\",\n \"zip\": \"1234567\"\n}"}},"schema":{"type":"object","properties":{"address_line1":{"type":"string","example":"6580 Harmon Course"},"address_line2":{"type":"string","example":"Suite 565"},"city":{"type":"string","example":"test_city_new"},"created_date":{"type":"string","example":"2021-04-14T18:21:58Z"},"deleted_date":{},"email":{"type":"string","example":"test_new@mail.com"},"fax":{"type":"string","example":"102-103-104_new"},"id":{"type":"integer","example":140754475155703,"default":0},"is_primary":{"type":"boolean","example":false,"default":true},"name":{"type":"string","example":"test_name_new"},"phone":{"type":"string","example":"+38012345678910"},"place_of_service":{"type":"string","example":"Homeless Shelter"},"practice":{"type":"integer","example":140754475089924,"default":0},"state":{"type":"string","example":"NY"},"zip":{"type":"string","example":"1234567"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"put":{"summary":"Update Service Location","description":"","operationId":"update-service-location-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","required":["address_line1","city","state","name","practice"],"properties":{"address_line1":{"type":"string","description":"service location address"},"city":{"type":"string","description":"service location city"},"state":{"type":"string","description":"service location state","enum":["AL","AK","AZ","AR","CA","CO","CT","DC","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]},"name":{"type":"string","description":"service location name"},"practice":{"type":"integer","description":"available practice","format":"int32"},"place_of_service":{"type":"string","description":"place of service location","enum":["Pharmacy","Telehealth Provided Other than in Patient’s Home","School","Homeless Shelter","Indian Health ServiceFree-standing Facility","Indian Health ServiceProvider-based Facility","Tribal 638Free-standingFacility","Tribal 638Provider-basedFacility","Prison/Correctional Facility","Telehealth Provided in Patient’s Home","Office","Home","Assisted Living Facility","Group Home","Mobile Unit","Temporary Lodging","Walk-in Retail Health Clinic","Place of Employment-Worksite","Off Campus Outpatient-Hospital","Urgent Care Facility","Inpatient Hospital","On Campus-Outpatient Hospital","Emergency Room - Hospital","Ambulatory Surgical Center","Birthing Center","Military Treatment Facility","Skilled Nursing Facility","Nursing Facility","Custodial Care Facility","Hospice","Ambulance - Land","Ambulance - Air or Water","Independent Clinic","Federally Qualified Health Center","Inpatient Psychiatric Facility","Psychiatric Facility-Partial Hospitalization","Community Mental Health Center","Intermediate Care Facility/Individuals with Intellectual Disabilities","Residential Substance Abuse Treatment Facility","Psychiatric Residential Treatment Center","Non-residential Substance Abuse Treatment Facility","Mass Immunization Center","Comprehensive Inpatient Rehabilitation Facility","Comprehensive Outpatient Rehabilitation Facility","End-Stage Renal Disease Treatment Facility","Public Health Clinic","Rural Health Clinic","Independent Laboratory","Other Place of Service"]},"address_line2":{"type":"string","description":"service location suite"},"email":{"type":"string","description":"service location email"},"fax":{"type":"string","description":"service location fax"},"is_primary":{"type":"boolean","description":"if service location is primary"},"phone":{"type":"string","description":"service location phone"},"zip":{"type":"string","description":"service location zip"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"address_line1\": \"6580 Harmon Course\",\n \"address_line2\": \"Suite 565\",\n \"city\": \"West Carolyn\",\n \"created_date\": \"2021-04-14T18:21:58Z\",\n \"deleted_date\": null,\n \"email\": null,\n \"fax\": \"890-372-3727\",\n \"id\": 140754475155703,\n \"is_primary\": true,\n \"name\": \"Chambers Group\",\n \"phone\": \"400.2942x8551\",\n \"place_of_service\": null,\n \"practice\": 140754475089924,\n \"state\": \"UT\",\n \"zip\": \"05056\"\n}"}},"schema":{"type":"object","properties":{"address_line1":{"type":"string","example":"6580 Harmon Course"},"address_line2":{"type":"string","example":"Suite 565"},"city":{"type":"string","example":"West Carolyn"},"created_date":{"type":"string","example":"2021-04-14T18:21:58Z"},"deleted_date":{},"email":{},"fax":{"type":"string","example":"890-372-3727"},"id":{"type":"integer","example":140754475155703,"default":0},"is_primary":{"type":"boolean","example":true,"default":true},"name":{"type":"string","example":"Chambers Group"},"phone":{"type":"string","example":"400.2942x8551"},"place_of_service":{},"practice":{"type":"integer","example":140754475089924,"default":0},"state":{"type":"string","example":"UT"},"zip":{"type":"string","example":"05056"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"delete":{"summary":"Delete Service Location","description":"","operationId":"delete-service-location","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","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":"{\n}"}},"schema":{"type":"object","properties":{}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/imaging_order_tests/":{"get":{"summary":"Find Imaging Order Tests","description":"","operationId":"find-imaging-order-tests","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the imaging order test you're searching for","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the imaging order test is associated with.","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Imaging Order Test Objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/imaging_order_tests/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"post":{"summary":"Create Imaging Order Test","description":"","operationId":"create-imaging-order-test","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","practice"],"properties":{"code":{"type":"string","description":"Can be up to 50 characters long.","default":"null"},"name":{"type":"string","description":"Can be up to 255 characters long."},"practice":{"type":"integer","description":"Must specify a practice the imaging order test is for.","format":"int32"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Imaging Order Test 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 = f\"Bearer {access_token}\"\n\nnew_imaging_order_test_data = {\n\t\t\"code\": None,\n \t\"name\": \"Imaging test\",\n\t\t\"practice\": 65540,\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/imaging_order_tests/\",\n headers={\"Authorization\": auth_header},\n \tjson=new_imaging_order_test_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/imaging_order_tests/{id}":{"get":{"summary":"Get Imaging Order Test","description":"","operationId":"get-imaging-order-test","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Imaging Order Test 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/imaging_order_tests/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/imaging_centers/":{"get":{"summary":"Find Imaging Centers","description":"","operationId":"find-imaging-centers","parameters":[{"name":"company","in":"query","description":"The ancillary company associated with the imaging center.","schema":{"type":"integer","format":"int32"}},{"name":"location_name","in":"query","description":"The location name of the imaging center you're searching for.","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the imaging center is associated with.","schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Imaging Center objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/imaging_centers/\",\n headers={\"Authorization\": auth_header}\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/imaging_centers/{id}":{"get":{"summary":"Get Imaging Center","description":"","operationId":"get-imaging-center","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140755855671306,\n // See Imaging Center 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/imaging_center/140755855671306/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/patient_forms":{"get":{"summary":"Find Patient Forms","description":"","operationId":"find-patient-forms","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"practice","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"created_date__gte","in":"query","description":"Greater than or equal to created date","schema":{"type":"string","format":"date"}},{"name":"created_date__lte","in":"query","description":"Lower than or equal to created date","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n\t\"count\": 2,\n\t\"next\": null,\n\t\"previous\": null,\n\t\"results\": [\n\t\t{\n\t\t\t\"id\": 7,\n\t\t\t\"created_date\": \"2022-07-07T12:43:57Z\",\n\t\t\t\"created_by\": 29,\n\t\t\t\"deleted_date\": null,\n\t\t\t\"deleted_by\": null,\n\t\t\t\"last_modified_date\": \"2022-07-07T12:43:57Z\",\n\t\t\t\"last_modified_by\": 29,\n\t\t\t\"sequence\": 1,\n\t\t\t\"topics\": [\n\t\t\t\t{\n\t\t\t\t\t\"default_sequence\": 3,\n\t\t\t\t\t\"form_type\": \"medical_history\",\n\t\t\t\t\t\"can_skip_explicitly\": true,\n\t\t\t\t\t\"concept\": \"alcohol_use\",\n\t\t\t\t\t\"exports_to_profile_section\": \"Habits\",\n\t\t\t\t\t\"label\": \"Alcohol Use\",\n\t\t\t\t\t\"exports_to_note_section\": \"Habits\",\n\t\t\t\t\t\"exports_to_label\": \"Exports to Habits\",\n\t\t\t\t\t\"display_prompts_in_report\": false,\n\t\t\t\t\t\"exports_to_tooltip\": \"In the patient's chart, this will be exportable to the Habits section in the Clinical Profile, and to the Subjective section of the Visit Note.\",\n\t\t\t\t\t\"can_modify_export_location\": false,\n\t\t\t\t\t\"disabled\": false,\n\t\t\t\t\t\"form_library_id\": 3,\n\t\t\t\t\t\"id\": \"5a7db3f9-762a-404d-9422-ce39a4442a34\",\n\t\t\t\t\t\"questions\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"export_format\": \"Alcohol use: ${alcohol_use}\",\n\t\t\t\t\t\t\t\"prompt\": \"Briefly describe any alcohol use - e.g. how many drinks a week?\",\n\t\t\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\t\t\"max_length\": 5000,\n\t\t\t\t\t\t\t\t\"type\": \"free_text\",\n\t\t\t\t\t\t\t\t\"name\": \"alcohol_use\",\n\t\t\t\t\t\t\t\t\"placeholder_text\": \"e.g. 3-4 drinks a week\",\n\t\t\t\t\t\t\t\t\"can_edit_placeholder_text\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"display_format\": \"${alcohol_use}\",\n\t\t\t\t\t\t\t\"can_edit_prompt\": true\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"form_url\": \"http://127.0.0.1/patient-forms/chambers-group/7/?key=2244ff699c785937a20326079ae58843ea549897801ac5e4f8e9dcd37cce2d8a\",\n\t\t\t\"form_name\": \"(Blank Form)\",\n\t\t\t\"appointment_types\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": 8,\n\t\t\t\"created_date\": \"2022-07-07T15:31:42Z\",\n\t\t\t\"created_by\": 29,\n\t\t\t\"deleted_date\": \"2022-07-07T15:36:04Z\",\n\t\t\t\"deleted_by\": 29,\n\t\t\t\"last_modified_date\": \"2022-07-07T15:36:04Z\",\n\t\t\t\"last_modified_by\": 29,\n\t\t\t\"sequence\": 2,\n\t\t\t\"topics\": [\n\t\t\t\t{\n\t\t\t\t\t\"default_sequence\": 3,\n\t\t\t\t\t\"form_type\": \"medical_history\",\n\t\t\t\t\t\"can_skip_explicitly\": true,\n\t\t\t\t\t\"concept\": \"alcohol_use\",\n\t\t\t\t\t\"exports_to_profile_section\": \"Habits\",\n\t\t\t\t\t\"label\": \"Alcohol Use\",\n\t\t\t\t\t\"exports_to_note_section\": \"Habits\",\n\t\t\t\t\t\"exports_to_label\": \"Exports to Habits\",\n\t\t\t\t\t\"display_prompts_in_report\": false,\n\t\t\t\t\t\"exports_to_tooltip\": \"In the patient's chart, this will be exportable to the Habits section in the Clinical Profile, and to the Subjective section of the Visit Note.\",\n\t\t\t\t\t\"can_modify_export_location\": false,\n\t\t\t\t\t\"disabled\": false,\n\t\t\t\t\t\"form_library_id\": 3,\n\t\t\t\t\t\"id\": \"996a74cc-1791-4bd9-bf25-71ed7e366d40\",\n\t\t\t\t\t\"questions\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"export_format\": \"Alcohol use: ${alcohol_use}\",\n\t\t\t\t\t\t\t\"prompt\": \"Briefly describe any alcohol use - e.g. how many drinks a week?\",\n\t\t\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\t\t\"max_length\": 5000,\n\t\t\t\t\t\t\t\t\"type\": \"free_text\",\n\t\t\t\t\t\t\t\t\"name\": \"alcohol_use\",\n\t\t\t\t\t\t\t\t\"placeholder_text\": \"e.g. 3-4 drinks a week\",\n\t\t\t\t\t\t\t\t\"can_edit_placeholder_text\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"display_format\": \"${alcohol_use}\",\n\t\t\t\t\t\t\t\"can_edit_prompt\": true\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"default_sequence\": 21,\n\t\t\t\t\t\"form_type\": \"medical_history\",\n\t\t\t\t\t\"can_skip_explicitly\": false,\n\t\t\t\t\t\"concept\": \"depression_gad_7\",\n\t\t\t\t\t\"exports_to_profile_section\": \"ClinicalForm\",\n\t\t\t\t\t\"label\": \"Anxiety (GAD-7)\",\n\t\t\t\t\t\"exports_to_note_section\": \"Psych\",\n\t\t\t\t\t\"exports_to_label\": \"Exports to Psych\",\n\t\t\t\t\t\"display_prompts_in_report\": true,\n\t\t\t\t\t\"exports_to_tooltip\": \"In the patient's chart, the calculated score will be exportable to the Psych section in the Clinical Profile, and to the Data section of the Visit Note.\",\n\t\t\t\t\t\"can_modify_export_location\": false,\n\t\t\t\t\t\"disabled\": false,\n\t\t\t\t\t\"form_library_id\": 22,\n\t\t\t\t\t\"id\": \"d051b116-7ea9-4790-a481-e5ed611b2d8e\",\n\t\t\t\t\t\"questions\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"export_format\": null,\n\t\t\t\t\t\t\t\"prompt\": \"Feeling nervous, anxious or on edge in last 2 weeks?\",\n\t\t\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\t\t\"can_edit_prompt\": false,\n\t\t\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\t\t\"type\": \"select\",\n\t\t\t\t\t\t\t\t\"name\": \"69725-0\",\n\t\t\t\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6568-5\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Not at all\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6569-3\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Several Days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6570-1\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"More than half the days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6571-9\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Nearly every day\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"export_format\": null,\n\t\t\t\t\t\t\t\"prompt\": \"Over the past 2 weeks have you not been able to stop or control worrying?\",\n\t\t\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\t\t\"can_edit_prompt\": false,\n\t\t\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\t\t\"type\": \"select\",\n\t\t\t\t\t\t\t\t\"name\": \"68509-9\",\n\t\t\t\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6568-5\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Not at all\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6569-3\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Several Days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6570-1\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"More than half the days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6571-9\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Nearly every day\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"export_format\": null,\n\t\t\t\t\t\t\t\"prompt\": \"Worrying too much about different things in last 2 weeks?\",\n\t\t\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\t\t\"can_edit_prompt\": false,\n\t\t\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\t\t\"type\": \"select\",\n\t\t\t\t\t\t\t\t\"name\": \"69733-4\",\n\t\t\t\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6568-5\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Not at all\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6569-3\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Several Days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6570-1\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"More than half the days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6571-9\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Nearly every day\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"export_format\": null,\n\t\t\t\t\t\t\t\"prompt\": \"Trouble relaxing in last 2 weeks?\",\n\t\t\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\t\t\"can_edit_prompt\": false,\n\t\t\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\t\t\"type\": \"select\",\n\t\t\t\t\t\t\t\t\"name\": \"69734-2\",\n\t\t\t\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6568-5\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Not at all\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6569-3\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Several Days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6570-1\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"More than half the days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6571-9\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Nearly every day\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"export_format\": null,\n\t\t\t\t\t\t\t\"prompt\": \"Being so restless that it is hard to sit still in last 2 weeks?\",\n\t\t\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\t\t\"can_edit_prompt\": false,\n\t\t\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\t\t\"type\": \"select\",\n\t\t\t\t\t\t\t\t\"name\": \"69735-9\",\n\t\t\t\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6568-5\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Not at all\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6569-3\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Several Days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6570-1\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"More than half the days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6571-9\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Nearly every day\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"export_format\": null,\n\t\t\t\t\t\t\t\"prompt\": \"Becoming easily annoyed or irritable in last 4 weeks?\",\n\t\t\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\t\t\"can_edit_prompt\": false,\n\t\t\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\t\t\"type\": \"select\",\n\t\t\t\t\t\t\t\t\"name\": \"69689-8\",\n\t\t\t\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6568-5\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Not at all\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6569-3\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Several Days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6570-1\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"More than half the days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6571-9\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Nearly every day\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"export_format\": null,\n\t\t\t\t\t\t\t\"prompt\": \"Feeling afraid as if something awful might happen?\",\n\t\t\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\t\t\"can_edit_prompt\": false,\n\t\t\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\t\t\"type\": \"select\",\n\t\t\t\t\t\t\t\t\"name\": \"69736-7\",\n\t\t\t\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6568-5\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Not at all\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6569-3\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Several Days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6570-1\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"More than half the days\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"value\": \"LA6571-9\",\n\t\t\t\t\t\t\t\t\t\t\"label\": \"Nearly every day\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"form_url\": \"http://127.0.0.1/patient-forms/chambers-group/8/?key=65687c88852259c2663d64252060d89d629b1c2d050d5301e32aec35941bad2f\",\n\t\t\t\"form_name\": \"(Blank Form)\",\n\t\t\t\"appointment_types\": []\n\t\t}\n\t]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":2,"default":0},"next":{},"previous":{},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":7,"default":0},"created_date":{"type":"string","example":"2022-07-07T12:43:57Z"},"created_by":{"type":"integer","example":29,"default":0},"deleted_date":{},"deleted_by":{},"last_modified_date":{"type":"string","example":"2022-07-07T12:43:57Z"},"last_modified_by":{"type":"integer","example":29,"default":0},"sequence":{"type":"integer","example":1,"default":0},"topics":{"type":"array","items":{"type":"object","properties":{"default_sequence":{"type":"integer","example":3,"default":0},"form_type":{"type":"string","example":"medical_history"},"can_skip_explicitly":{"type":"boolean","example":true,"default":true},"concept":{"type":"string","example":"alcohol_use"},"exports_to_profile_section":{"type":"string","example":"Habits"},"label":{"type":"string","example":"Alcohol Use"},"exports_to_note_section":{"type":"string","example":"Habits"},"exports_to_label":{"type":"string","example":"Exports to Habits"},"display_prompts_in_report":{"type":"boolean","example":false,"default":true},"exports_to_tooltip":{"type":"string","example":"In the patient's chart, this will be exportable to the Habits section in the Clinical Profile, and to the Subjective section of the Visit Note."},"can_modify_export_location":{"type":"boolean","example":false,"default":true},"disabled":{"type":"boolean","example":false,"default":true},"form_library_id":{"type":"integer","example":3,"default":0},"id":{"type":"string","example":"5a7db3f9-762a-404d-9422-ce39a4442a34"},"questions":{"type":"array","items":{"type":"object","properties":{"export_format":{"type":"string","example":"Alcohol use: ${alcohol_use}"},"prompt":{"type":"string","example":"Briefly describe any alcohol use - e.g. how many drinks a week?"},"provider_help_text":{},"input":{"type":"object","properties":{"max_length":{"type":"integer","example":5000,"default":0},"type":{"type":"string","example":"free_text"},"name":{"type":"string","example":"alcohol_use"},"placeholder_text":{"type":"string","example":"e.g. 3-4 drinks a week"},"can_edit_placeholder_text":{"type":"boolean","example":true,"default":true}}},"display_format":{"type":"string","example":"${alcohol_use}"},"can_edit_prompt":{"type":"boolean","example":true,"default":true}}}}}}},"form_url":{"type":"string","example":"http://127.0.0.1/patient-forms/chambers-group/7/?key=2244ff699c785937a20326079ae58843ea549897801ac5e4f8e9dcd37cce2d8a"},"form_name":{"type":"string","example":"(Blank Form)"},"appointment_types":{"type":"array"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/patient_forms/:id":{"get":{"summary":"Get Patient Form","description":"","operationId":"get-patient-form","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n\t\"id\": 7,\n\t\"created_date\": \"2022-07-07T12:43:57Z\",\n\t\"created_by\": 29,\n\t\"deleted_date\": null,\n\t\"deleted_by\": null,\n\t\"last_modified_date\": \"2022-07-07T12:43:57Z\",\n\t\"last_modified_by\": 29,\n\t\"sequence\": 1,\n\t\"topics\": [\n\t\t{\n\t\t\t\"default_sequence\": 3,\n\t\t\t\"form_type\": \"medical_history\",\n\t\t\t\"can_skip_explicitly\": true,\n\t\t\t\"concept\": \"alcohol_use\",\n\t\t\t\"exports_to_profile_section\": \"Habits\",\n\t\t\t\"label\": \"Alcohol Use\",\n\t\t\t\"exports_to_note_section\": \"Habits\",\n\t\t\t\"exports_to_label\": \"Exports to Habits\",\n\t\t\t\"display_prompts_in_report\": false,\n\t\t\t\"exports_to_tooltip\": \"In the patient's chart, this will be exportable to the Habits section in the Clinical Profile, and to the Subjective section of the Visit Note.\",\n\t\t\t\"can_modify_export_location\": false,\n\t\t\t\"disabled\": false,\n\t\t\t\"form_library_id\": 3,\n\t\t\t\"id\": \"5a7db3f9-762a-404d-9422-ce39a4442a34\",\n\t\t\t\"questions\": [\n\t\t\t\t{\n\t\t\t\t\t\"export_format\": \"Alcohol use: ${alcohol_use}\",\n\t\t\t\t\t\"prompt\": \"Briefly describe any alcohol use - e.g. how many drinks a week?\",\n\t\t\t\t\t\"provider_help_text\": null,\n\t\t\t\t\t\"input\": {\n\t\t\t\t\t\t\"max_length\": 5000,\n\t\t\t\t\t\t\"type\": \"free_text\",\n\t\t\t\t\t\t\"name\": \"alcohol_use\",\n\t\t\t\t\t\t\"placeholder_text\": \"e.g. 3-4 drinks a week\",\n\t\t\t\t\t\t\"can_edit_placeholder_text\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"display_format\": \"${alcohol_use}\",\n\t\t\t\t\t\"can_edit_prompt\": true\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t],\n\t\"form_url\": \"http://127.0.0.1/patient-forms/chambers-group/7/?key=2244ff699c785937a20326079ae58843ea549897801ac5e4f8e9dcd37cce2d8a\",\n\t\"form_name\": \"(Blank Form)\",\n\t\"appointment_types\": []\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":7,"default":0},"created_date":{"type":"string","example":"2022-07-07T12:43:57Z"},"created_by":{"type":"integer","example":29,"default":0},"deleted_date":{},"deleted_by":{},"last_modified_date":{"type":"string","example":"2022-07-07T12:43:57Z"},"last_modified_by":{"type":"integer","example":29,"default":0},"sequence":{"type":"integer","example":1,"default":0},"topics":{"type":"array","items":{"type":"object","properties":{"default_sequence":{"type":"integer","example":3,"default":0},"form_type":{"type":"string","example":"medical_history"},"can_skip_explicitly":{"type":"boolean","example":true,"default":true},"concept":{"type":"string","example":"alcohol_use"},"exports_to_profile_section":{"type":"string","example":"Habits"},"label":{"type":"string","example":"Alcohol Use"},"exports_to_note_section":{"type":"string","example":"Habits"},"exports_to_label":{"type":"string","example":"Exports to Habits"},"display_prompts_in_report":{"type":"boolean","example":false,"default":true},"exports_to_tooltip":{"type":"string","example":"In the patient's chart, this will be exportable to the Habits section in the Clinical Profile, and to the Subjective section of the Visit Note."},"can_modify_export_location":{"type":"boolean","example":false,"default":true},"disabled":{"type":"boolean","example":false,"default":true},"form_library_id":{"type":"integer","example":3,"default":0},"id":{"type":"string","example":"5a7db3f9-762a-404d-9422-ce39a4442a34"},"questions":{"type":"array","items":{"type":"object","properties":{"export_format":{"type":"string","example":"Alcohol use: ${alcohol_use}"},"prompt":{"type":"string","example":"Briefly describe any alcohol use - e.g. how many drinks a week?"},"provider_help_text":{},"input":{"type":"object","properties":{"max_length":{"type":"integer","example":5000,"default":0},"type":{"type":"string","example":"free_text"},"name":{"type":"string","example":"alcohol_use"},"placeholder_text":{"type":"string","example":"e.g. 3-4 drinks a week"},"can_edit_placeholder_text":{"type":"boolean","example":true,"default":true}}},"display_format":{"type":"string","example":"${alcohol_use}"},"can_edit_prompt":{"type":"boolean","example":true,"default":true}}}}}}},"form_url":{"type":"string","example":"http://127.0.0.1/patient-forms/chambers-group/7/?key=2244ff699c785937a20326079ae58843ea549897801ac5e4f8e9dcd37cce2d8a"},"form_name":{"type":"string","example":"(Blank Form)"},"appointment_types":{"type":"array"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/sleep_order_tests/":{"get":{"summary":"Find Sleep Order Tests","description":"","operationId":"find-sleep-order-tests","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the sleep order test you're searching for","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the sleep order test is associated with.","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Sleep Order Test Objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/sleep_order_tests/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"post":{"summary":"Create Sleep Order Test","description":"","operationId":"create-sleep-order-test","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","practice"],"properties":{"code":{"type":"string","description":"Can be up to 50 characters long.","default":"null"},"name":{"type":"string","description":"Can be up to 255 characters long."},"practice":{"type":"integer","description":"Must specify a practice the sleep order test is for.","format":"int32"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Sleep Order Test 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 = f\"Bearer {access_token}\"\n\nnew_sleep_order_test_data = {\n\t\t\"code\": None,\n \t\"name\": \"Sleep test\",\n\t\t\"practice\": 65540,\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/sleep_order_tests/\",\n headers={\"Authorization\": auth_header},\n \tjson=new_sleep_order_test_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/sleep_order_tests/{id}":{"get":{"summary":"Get Sleep Order Test","description":"","operationId":"get-sleep-order-test","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Sleep Order Test 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/sleep_order_tests/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/sleep_centers/":{"get":{"summary":"Find Sleep Centers","description":"","operationId":"find-sleep-centers","parameters":[{"name":"company","in":"query","description":"The ancillary company associated with the sleep center.","schema":{"type":"integer","format":"int32"}},{"name":"location_name","in":"query","description":"The location name of the sleep center you're searching for.","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the sleep center is associated with.","schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Sleep Center objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/sleep_centers/\",\n headers={\"Authorization\": auth_header}\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/sleep_centers/{id}":{"get":{"summary":"Get Sleep Center","description":"","operationId":"get-sleep-center","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140755855671306,\n // See Sleep Center 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/sleep_center/140755855671306/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/practices/{id}/eligibility_usage":{"get":{"summary":"Find Insurance Eligibility Usage","description":"","operationId":"get-insurance-eligibility-usage","parameters":[{"name":"id","in":"path","description":"The id of the practice","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"start_date","in":"query","description":"Must be earlier than end_date. If not provided, defaults to first of the current month.","schema":{"type":"string","format":"date","default":"None"}},{"name":"end_date","in":"query","description":"Must be later than start_date. If not provided, defaults to today's date.","schema":{"type":"string","format":"date","default":"None"}},{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"practice_id\": 123456,\n \"eligibility_usage_counter\": 4,\n \"start_date\": \"2022-07-01\",\n \"end_date\": \"2022-07-28\"\n}"}},"schema":{"type":"object","properties":{"practice_id":{"type":"integer","example":123456,"default":0},"eligibility_usage_counter":{"type":"integer","example":4,"default":0},"start_date":{"type":"string","example":"2022-07-01"},"end_date":{"type":"string","example":"2022-07-28"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n \"detail\": \"start_date cannot be after end_date\"\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"string","example":"start_date cannot be after end_date"}}}}}}},"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/practices/123/eligibility_usage\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/pulmonary_order_tests/":{"get":{"summary":"Find Pulmonary Order Tests","description":"","operationId":"find-pulmonary-order-tests","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the pulmonary order test you're searching for","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the pulmonary order test is associated with.","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Pulmonary Order Test Objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_order_tests/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"post":{"summary":"Create Pulmonary Order Test","description":"","operationId":"create-pulmonary-order-test","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","practice"],"properties":{"code":{"type":"string","description":"Can be up to 50 characters long.","default":"null"},"name":{"type":"string","description":"Can be up to 255 characters long."},"practice":{"type":"integer","description":"Must specify a practice the pulmonary order test is for.","format":"int32"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Pulmonary Order Test 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 = f\"Bearer {access_token}\"\n\nnew_pulmonary_order_test_data = {\n\t\t\"code\": None,\n \t\"name\": \"Pulmonary test\",\n\t\t\"practice\": 65540,\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_order_tests/\",\n headers={\"Authorization\": auth_header},\n \tjson=new_pulmonary_order_test_data,\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/pulmonary_order_tests/{id}":{"get":{"summary":"Get Pulmonary Order Test","description":"","operationId":"get-pulmonary-order-test","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140756377075740,\n // See Pulmonary Order Test 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_order_tests/140756377075740/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/pulmonary_centers/":{"get":{"summary":"Find Pulmonary Centers","description":"","operationId":"find-pulmonary-centers","parameters":[{"name":"company","in":"query","description":"The ancillary company associated with the pulmonary center.","schema":{"type":"integer","format":"int32"}},{"name":"location_name","in":"query","description":"The location name of the pulmonary center you're searching for.","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The practice the pulmonary center is associated with.","schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n // array of Pulmonary Center objects\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}}}},"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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_centers/\",\n headers={\"Authorization\": auth_header}\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/pulmonary_centers/{id}":{"get":{"summary":"Get Pulmonary Center","description":"","operationId":"get-pulmonary-center","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int32"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 140755855671306,\n // See Pulmonary Center 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 = f\"Bearer {access_token}\"\n\nresp = requests.get(\n \"https://sandbox.elationemr.com/api/2.0/pulmonary_center/140755855671306/\",\n headers={\"Authorization\": auth_header},\n)\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/appointments/[WIP]":{"post":{"summary":"Create Appointment [WIP]","description":"","operationId":"create-appointment-wip","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["scheduled_date","reason","patient","physician","practice"],"properties":{"scheduled_date":{"type":"string","format":"date"},"duration":{"type":"integer","description":"If duration is not provided, the default duration will be used given a particular reason","format":"int32"},"reason":{"type":"string"},"description":{"type":"string"},"patient":{"type":"integer","format":"int32"},"physician":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"status":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["(\"scheduled\"","\"Scheduled\")","(\"confirmed\"","\"Confirmed\")","(\"checkedIn\"","\"Checked In\")","(\"inRoom\"","\"In Room\")","(\"vitalsTaken\"","\"In Room - Vitals Taken\")","(\"withDr\"","\"With Doctor\")","(\"checkedOut\"","\"Checked Out\")","(\"billed\"","\"Billed\")","(\"notSeen\"","\"Not Seen\")","(\"cancelled\"","\"Cancelled\")"]},"room":{"type":"string","description":"the value must be one of available rooms for the selected practice"}}},"service_location":{"type":"integer","description":"ID of an active (non-deleted) practice location where the appointment will occur","format":"int32"},"billing_details":{"type":"object","properties":{"billing_note":{"type":"string"},"referring_provider":{"type":"string"},"referring_provider_state":{"type":"string","description":"The field must not have more that 2 characters (max_length=2)"}}},"time_slot_type":{"type":"string","default":"appointment","enum":["(1","\"appointment\")","(2","\"event\")","(3","\"appointment_slot\")"]},"metadata":{"type":"object","properties":{"object_id":{"type":"integer","description":"for updating object must provide 'object_id' or 'data'","format":"int32"},"data":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"},"object_web_link":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"}}}}}}}},"responses":{"201":{"description":"201","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\n# sending only required data\ndata = {\n \"scheduled_date\": \"2016-10-13T11:15:00Z\",\n \"reason\": \"Follow-Up\",\n \"patient\": 64901939201,\n \"physician\": 131074,\n \"practice\": 65540\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"]}}},"/appointments/{id}/ [WIP]":{"put":{"summary":"Update Appointment [WIP]","description":"","operationId":"update-appointment-wip","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["scheduled_date","reason","patient","physician","practice"],"properties":{"scheduled_date":{"type":"string","format":"date"},"duration":{"type":"integer","description":"If duration is not provided, the default duration will be used given a particular reason","format":"int32"},"reason":{"type":"string"},"description":{"type":"string"},"patient":{"type":"integer","format":"int32"},"physician":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"status":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["(\"scheduled\"","\"Scheduled\")","(\"confirmed\"","\"Confirmed\")","(\"checkedIn\"","\"Checked In\")","(\"inRoom\"","\"In Room\")","(\"vitalsTaken\"","\"In Room - Vitals Taken\")","(\"withDr\"","\"With Doctor\")","(\"checkedOut\"","\"Checked Out\")","(\"billed\"","\"Billed\")","(\"notSeen\"","\"Not Seen\")","(\"cancelled\"","\"Cancelled\")"]},"room":{"type":"string","description":"the value must be one of available rooms for the selected practice"}}},"service_location":{"type":"integer","description":"ID of an active (non-deleted) practice location where the appointment will occur","format":"int32"},"billing_details":{"type":"object","properties":{"billing_note":{"type":"string"},"referring_provider":{"type":"string"},"referring_provider_state":{"type":"string","description":"The field must not have more that 2 characters (max_length=2)"}}},"time_slot_type":{"type":"string","default":"appointment","enum":["(1","\"appointment\")","(2","\"event\")","(3","\"appointment_slot\")"]},"metadata":{"type":"object","properties":{"object_id":{"type":"integer","description":"for updating object must provide 'object_id' or 'data'","format":"int32"},"data":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"},"object_web_link":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"}}}}}}}},"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 \"scheduled_date\": \"2016-11-28T18:00:00Z\",\n \"duration\": 15,\n \"reason\": \"Follow-Up\",\n \"patient\": 64412254209,\n \"description\": \"\",\n \"physician\": 720898,\n \"practice\": 655364,\n \"status\": {\n \"status\": \"Scheduled\"\n }\n}\n\nresp = requests.put(\"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"]}},"patch":{"summary":"Update Appointment [WIP]","description":"","operationId":"update-appointment-wip-1","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"scheduled_date":{"type":"string","format":"date"},"duration":{"type":"integer","description":"If duration is not provided, the default duration will be used given a particular reason","format":"int32"},"reason":{"type":"string"},"description":{"type":"string"},"patient":{"type":"integer","format":"int32"},"physician":{"type":"integer","format":"int32"},"practice":{"type":"integer","format":"int32"},"status":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["(\"scheduled\"","\"Scheduled\")","(\"confirmed\"","\"Confirmed\")","(\"checkedIn\"","\"Checked In\")","(\"inRoom\"","\"In Room\")","(\"vitalsTaken\"","\"In Room - Vitals Taken\")","(\"withDr\"","\"With Doctor\")","(\"checkedOut\"","\"Checked Out\")","(\"billed\"","\"Billed\")","(\"notSeen\"","\"Not Seen\")","(\"cancelled\"","\"Cancelled\")"]},"room":{"type":"string","description":"the value must be one of available rooms for the selected practice"}}},"service_location":{"type":"integer","description":"ID of an active (non-deleted) practice location where the appointment will occur","format":"int32"},"billing_details":{"type":"object","properties":{"billing_note":{"type":"string"},"referring_provider":{"type":"string"},"referring_provider_state":{"type":"string","description":"The field must not have more that 2 characters (max_length=2)"}}},"time_slot_type":{"type":"string","default":"appointment","enum":["(1","\"appointment\")","(2","\"event\")","(3","\"appointment_slot\")"]},"metadata":{"type":"object","properties":{"object_id":{"type":"integer","description":"for updating object must provide 'object_id' or 'data'","format":"int32"},"data":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"},"object_web_link":{"type":"string","description":"for updating object must provide 'object_id' or 'data'"}}}}}}}},"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\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 \"status\": {\n \"status\": \"Scheduled\"\n }\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"]}}},"/patients/{patient_id}/profile_image":{"get":{"summary":"Get Patient Photo","description":"","operationId":"get-patient-photo","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient_id","in":"path","description":"The id of the patient","schema":{"type":"integer","format":"int32"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n\t\"id\": 140759073227036,\n\t\"patient\": 140754479349761,\n\t\"practice\": 140754475089924,\n\t\"file\": \"https://feature-rm-28957-as-an-api-integrat.dev.elationemr.com/api/2.0/patients/140754479349761/get_photo\",\n\t\"content_type\": \"image/jpeg\",\n\t\"original_filename\": \"test_profile_image\",\n\t\"file_size\": 122452,\n\t\"last_updated\": \"2022-08-17T20:36:39Z\",\n\t\"width\": 961,\n\t\"height\": 1280,\n\t\"created_date\": \"2022-08-17T20:36:39Z\"\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140759073227036,"default":0},"patient":{"type":"integer","example":140754479349761,"default":0},"practice":{"type":"integer","example":140754475089924,"default":0},"file":{"type":"string","example":"https://feature-rm-28957-as-an-api-integrat.dev.elationemr.com/api/2.0/patients/140754479349761/get_photo"},"content_type":{"type":"string","example":"image/jpeg"},"original_filename":{"type":"string","example":"test_profile_image"},"file_size":{"type":"integer","example":122452,"default":0},"last_updated":{"type":"string","example":"2022-08-17T20:36:39Z"},"width":{"type":"integer","example":961,"default":0},"height":{"type":"integer","example":1280,"default":0},"created_date":{"type":"string","example":"2022-08-17T20:36:39Z"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"post":{"summary":"Create Patient Photo","description":"","operationId":"create-patient-photo","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient_id","in":"path","description":"The patient id","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","practice","original_filename","base_64"],"properties":{"patient":{"type":"integer","description":"patient ID","format":"int32"},"practice":{"type":"integer","description":"practice ID","format":"int32"},"original_filename":{"type":"string","description":"filename"},"base_64":{"type":"string","description":"the image is base64 encoded"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n\t\"id\": 140759073227036,\n\t\"patient\": 140754479349761,\n\t\"practice\": 140754475089924,\n\t\"file\": \"https://feature-rm-28957-as-an-api-integrat.dev.elationemr.com/api/2.0/patients/140754479349761/get_photo\",\n\t\"content_type\": \"image/jpeg\",\n\t\"original_filename\": \"test_profile_image\",\n\t\"file_size\": 122452,\n\t\"last_updated\": \"2022-08-17T20:36:39Z\",\n\t\"width\": 961,\n\t\"height\": 1280,\n\t\"created_date\": \"2022-08-17T20:36:39Z\"\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140759073227036,"default":0},"patient":{"type":"integer","example":140754479349761,"default":0},"practice":{"type":"integer","example":140754475089924,"default":0},"file":{"type":"string","example":"https://feature-rm-28957-as-an-api-integrat.dev.elationemr.com/api/2.0/patients/140754479349761/get_photo"},"content_type":{"type":"string","example":"image/jpeg"},"original_filename":{"type":"string","example":"test_profile_image"},"file_size":{"type":"integer","example":122452,"default":0},"last_updated":{"type":"string","example":"2022-08-17T20:36:39Z"},"width":{"type":"integer","example":961,"default":0},"height":{"type":"integer","example":1280,"default":0},"created_date":{"type":"string","example":"2022-08-17T20:36:39Z"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/patients/{patient_id}/profile_image/":{"delete":{"summary":"Delete Patient Photo","description":"","operationId":"delete-patient-photo","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient_id","in":"path","schema":{"type":"string"},"required":true}],"responses":{"204":{"description":"204","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}},"/clinical_questionnaires":{"get":{"summary":"Find Clinical Questionnaire","description":"","operationId":"find-clinical-questionnaire","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n\t\"count\": 2,\n\t\"next\": null,\n\t\"previous\": null,\n\t\"results\": [\n\t\t{\n\t\t\t\"id\": 140737488290228,\n\t\t\t\"name\": \"Education Level\",\n\t\t\t\"category\": \"Social\",\n\t\t\t\"label\": \"Education level\",\n\t\t\t\"summary_format_string\": null,\n\t\t\t\"questions\": [\n\t\t\t\t{\n\t\t\t\t\t\"id\": 1,\n\t\t\t\t\t\"prompt\": \"What is the highest grade or level of school you have completed or the highest degree you have received?\",\n\t\t\t\t\t\"sequence\": 0,\n\t\t\t\t\t\"loinc\": 68921852068,\n\t\t\t\t\t\"answer_type\": \"select_one\",\n\t\t\t\t\t\"help_text\": null,\n\t\t\t\t\t\"min_value\": null,\n\t\t\t\t\t\"max_value\": null,\n\t\t\t\t\t\"identifier\": null,\n\t\t\t\t\t\"answer_choices\": [\n\t\t\t\t\t\t\"High school graduate\",\n\t\t\t\t\t\t\"GED or equivalent\",\n\t\t\t\t\t\t\"Some college, no degree\",\n\t\t\t\t\t\t\"Associate degree: occupational, technical, or vocational program\",\n\t\t\t\t\t\t\"Associate degree: academic program\",\n\t\t\t\t\t\t\"Bachelor's degree (e.g., BA, AB, BS)\",\n\t\t\t\t\t\t\"Master's degree (e.g., MA, MS, MEng, MEd, MSW, MBA)\",\n\t\t\t\t\t\t\"Professional school degree (example: MD, DDS, DVM, JD)\",\n\t\t\t\t\t\t\"Doctoral degree (example: PhD, EdD)\",\n\t\t\t\t\t\t\"Never attended/kindergarten only\",\n\t\t\t\t\t\t\"1st grade\",\n\t\t\t\t\t\t\"2nd grade\",\n\t\t\t\t\t\t\"3rd grade\",\n\t\t\t\t\t\t\"4th grade\",\n\t\t\t\t\t\t\"5th grade\",\n\t\t\t\t\t\t\"6th grade\",\n\t\t\t\t\t\t\"7th grade\",\n\t\t\t\t\t\t\"8th grade\",\n\t\t\t\t\t\t\"9th grade\",\n\t\t\t\t\t\t\"10th grade\",\n\t\t\t\t\t\t\"11th grade\",\n\t\t\t\t\t\t\"12th grade, no diploma\",\n\t\t\t\t\t\t\"Refused\",\n\t\t\t\t\t\t\"Don't know\",\n\t\t\t\t\t\t\"Declined to Specify\"\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"total_score_questions\": null,\n\t\t\t\"information_url\": null\n\t\t},\n\t\t{\n\t\t\t\"id\": 140737488355764,\n\t\t\t\"name\": \"Stress Level\",\n\t\t\t\"category\": \"Psychological\",\n\t\t\t\"label\": \"Stress level\",\n\t\t\t\"summary_format_string\": null,\n\t\t\t\"questions\": [\n\t\t\t\t{\n\t\t\t\t\t\"id\": 2,\n\t\t\t\t\t\"prompt\": \"Do you feel stress - tense, restless, nervous, or anxious, or unable to sleep at night because your mind is troubled all the time - these days?\",\n\t\t\t\t\t\"sequence\": 0,\n\t\t\t\t\t\"loinc\": 69748654244,\n\t\t\t\t\t\"answer_type\": \"select_one\",\n\t\t\t\t\t\"help_text\": null,\n\t\t\t\t\t\"min_value\": null,\n\t\t\t\t\t\"max_value\": null,\n\t\t\t\t\t\"identifier\": null,\n\t\t\t\t\t\"answer_choices\": [\n\t\t\t\t\t\t\"Not at all\",\n\t\t\t\t\t\t\"Only a little\",\n\t\t\t\t\t\t\"To some extent\",\n\t\t\t\t\t\t\"Rather much\",\n\t\t\t\t\t\t\"Very much\",\n\t\t\t\t\t\t\"Declined to specify\"\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"total_score_questions\": null,\n\t\t\t\"information_url\": null\n\t\t},\n\t\t{\n\t\t\t\"id\": 140737488421300,\n\t\t\t\"name\": \"Financial Strain\",\n\t\t\t\"category\": \"Social\",\n\t\t\t\"label\": \"Financial strain\",\n\t\t\t\"summary_format_string\": null,\n\t\t\t\"questions\": [\n\t\t\t\t{\n\t\t\t\t\t\"id\": 3,\n\t\t\t\t\t\"prompt\": \"How hard is it for you to pay for the very basics like food, housing, medical care, and heating?\",\n\t\t\t\t\t\"sequence\": 0,\n\t\t\t\t\t\"loinc\": 69747015844,\n\t\t\t\t\t\"answer_type\": \"select_one\",\n\t\t\t\t\t\"help_text\": null,\n\t\t\t\t\t\"min_value\": null,\n\t\t\t\t\t\"max_value\": null,\n\t\t\t\t\t\"identifier\": null,\n\t\t\t\t\t\"answer_choices\": [\n\t\t\t\t\t\t\"Very hard\",\n\t\t\t\t\t\t\"Hard\",\n\t\t\t\t\t\t\"Somewhat hard\",\n\t\t\t\t\t\t\"Not very hard\",\n\t\t\t\t\t\t\"Declined to specify\"\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"total_score_questions\": null,\n\t\t\t\"information_url\": null\n\t\t},\n\t]\n}"}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/clinical_questionnaires/{id}":{"get":{"summary":"GET Clinical Questionnaire","description":"","operationId":"get-clinical-questionnaire","parameters":[{"name":"Authorization","in":"header","description":"Bearer token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n\t\"id\": 140737488421300,\n\t\"name\": \"Financial Strain\",\n\t\"category\": \"Social\",\n\t\"label\": \"Financial strain\",\n\t\"summary_format_string\": null,\n\t\"questions\": [\n\t\t{\n\t\t\t\"id\": 3,\n\t\t\t\"prompt\": \"How hard is it for you to pay for the very basics like food, housing, medical care, and heating?\",\n\t\t\t\"sequence\": 0,\n\t\t\t\"loinc\": 69747015844,\n\t\t\t\"answer_type\": \"select_one\",\n\t\t\t\"help_text\": null,\n\t\t\t\"min_value\": null,\n\t\t\t\"max_value\": null,\n\t\t\t\"identifier\": null,\n\t\t\t\"answer_choices\": [\n\t\t\t\t\"Very hard\",\n\t\t\t\t\"Hard\",\n\t\t\t\t\"Somewhat hard\",\n\t\t\t\t\"Not very hard\",\n\t\t\t\t\"Declined to specify\"\n\t\t\t]\n\t\t}\n\t],\n\t\"total_score_questions\": null,\n\t\"information_url\": null\n}"}},"schema":{"type":"object","properties":{"id":{"type":"integer","example":140737488421300,"default":0},"name":{"type":"string","example":"Financial Strain"},"category":{"type":"string","example":"Social"},"label":{"type":"string","example":"Financial strain"},"summary_format_string":{},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":3,"default":0},"prompt":{"type":"string","example":"How hard is it for you to pay for the very basics like food, housing, medical care, and heating?"},"sequence":{"type":"integer","example":0,"default":0},"loinc":{"type":"integer","example":69747015844,"default":0},"answer_type":{"type":"string","example":"select_one"},"help_text":{},"min_value":{},"max_value":{},"identifier":{},"answer_choices":{"type":"array","items":{"type":"string","example":"Very hard"}}}}},"total_score_questions":{},"information_url":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/fax_lines/":{"get":{"summary":"Find Fax Lines","description":"","operationId":"find-fax-lines","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 123,\n \"next\": \"https://sandbox.elationemr.com/api/2.0/fax_lines/?limit=10&offset=10\",\n \"previous\": \"https://sandbox.elationemr.com/api/2.0/fax_lines/?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/fax_lines/\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/fax_lines/{id}/":{"get":{"summary":"Get Fax Line","description":"","operationId":"get-fax-line","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\": 140753462345031,\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/fax_lines/140753462345031/\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/bills/{id}/actions/release-to-pms/":{"patch":{"summary":"Release a Bill To PMS","description":"","operationId":"release-a-bill-to-pms","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","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\n# releasing bill to the linked PMS (e.g. Kareo)\n\nresp = requests.patch(\n \"https://sandbox.elationemr.com/api/2.0/bills/67176497153/actions/release-to-pms/\",\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'}\n)\n\nprint resp.status_code\n\n"}],"samples-languages":["python"]}}},"/patients/{id}/incoming_files":{"post":{"summary":"File Incoming Files to Patient Chart","description":"","operationId":"file-incoming-file-to-patient-chart","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files","document_type"],"properties":{"files":{"type":"array","description":"Array of incoming file IDs","items":{"type":"integer","format":"int64"}},"document_type":{"type":"string","description":"Can be VisitNote, NonvisitNote, or a report_type value found in Report Type API"},"reviewer_user":{"type":"integer","description":"Reviewer's user_id. If one isn't given, then the patient's assigned physician will be used.","format":"int64"},"document_date":{"type":"string","description":"Document date","format":"date"},"document_tags":{"type":"array","description":"Array of document tag IDs","items":{"type":"integer","format":"int64"}},"custom_title":{"type":"string","description":"Custom title"},"urgent":{"type":"boolean","description":"Set to true to mark as urgent","default":false},"sign_off":{"type":"boolean","description":"Sign off on behalf of reviewer","default":false},"import_history":{"type":"boolean","description":"Import history for new visit / non-visit note"}}}}}},"responses":{"201":{"description":"201","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\ndata = {\n \"files\": [140758830940249, 140758831464657],\n \"reviewer_user\": 64811630594,\n \"document_type\": \"Misc\",\n \"document_date\": \"2022-09-09\",\n \"document_tags\": [127362],\n \"custom_title\": \"My Special Report\",\n \"urgent\": True,\n \"sign_off\": False,\n \"import_history\": False,\n}\n\nresp = requests.post(\n \"https://sandbox.elationemr.com/api/2.0/patients/64184451073/incoming_files\",\n data=json.dumps(data),\n headers={\n 'Authorization': auth_header,\n 'Content-type': 'application/json',\n },\n)\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))\n"}],"samples-languages":["python"]}}},"/report_types":{"get":{"summary":"Find Report Types","description":"","operationId":"find-report-types","parameters":[{"name":"practice","in":"query","schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 10,\n \"next\": null,\n \"previous\": null,\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/report_types/\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/report_types/{id}":{"get":{"summary":"Get Report Type","description":"","operationId":"get-report-type","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"id\": 1,\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/report_types/1/\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/incoming_files":{"post":{"summary":"Create Incoming Files","description":"","operationId":"create-incoming-files","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","group_name"],"properties":{"practice":{"type":"integer","format":"int32"},"group_name":{"type":"string","description":"Name of the incoming file group"},"images":{"type":"array","description":"List of Images in base64 to upload"},"files":{"type":"array","description":"List of Files in base64 to upload"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n\t// see incoming file object\n}"}},"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\ndata = {\n \"practice\": 12345678,\n \"group_name\": \"my group name\",\n \"images\": [\n \t{\n \t\"content_type\": \"application/pdf\", # required\n \"base64_content\": \"iVBORw0KGgo==\" # required\n }\n ],\n \"files\": [\n \t{\n \t\"base64_content\": \"ImNvdW50KCopIgoy==\", # required\n \"content_type\": \"plain/txt\", # required\n \"filename\": \"my_file.txt\" # required\n }\n ]\n}"}],"samples-languages":["python"]}}},"/patient-provider-teams":{"get":{"summary":"List Provider Teams","description":"","operationId":"get-patient-provider-teams","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 2,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"patient_provider_team_id\": 140758828450078,\n \"patient_id\": 140758827991041,\n \"team_members\": [\n {\n \"patient_provider_team_id\": 140758828450078,\n \"patient_provider_team_member_id\": 140758828515615,\n \"patient_id\": 140758827991041,\n \"physician_id\": 131074,\n \"group\": \"main\",\n \"rank\": 1,\n \"treatment_reason\": \"pcp at sacred heart\",\n \"earliest_activity\": \"2022-05-17T20:11:24\",\n \"latest_activity\": \"2022-05-17T20:11:24\",\n \"activity_summary_last_refreshed\": null\n }\n ]\n },\n {\n \"patient_provider_team_id\": 140758897525022,\n \"patient_id\": 140758896934913,\n \"team_members\": []\n }\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":2,"default":0},"next":{},"previous":{},"results":{"type":"array","items":{"type":"object","properties":{"patient_provider_team_id":{"type":"integer","example":140758828450078,"default":0},"patient_id":{"type":"integer","example":140758827991041,"default":0},"team_members":{"type":"array","items":{"type":"object","properties":{"patient_provider_team_id":{"type":"integer","example":140758828450078,"default":0},"patient_provider_team_member_id":{"type":"integer","example":140758828515615,"default":0},"patient_id":{"type":"integer","example":140758827991041,"default":0},"physician_id":{"type":"integer","example":131074,"default":0},"group":{"type":"string","example":"main"},"rank":{"type":"integer","example":1,"default":0},"treatment_reason":{"type":"string","example":"pcp at sacred heart"},"earliest_activity":{"type":"string","example":"2022-05-17T20:11:24"},"latest_activity":{"type":"string","example":"2022-05-17T20:11:24"},"activity_summary_last_refreshed":{}}}}}}}}}}}},"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/patient-provider-teams\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/patient-provider-teams/{team_id}/team_members":{"get":{"summary":"List Team Members for a given team","description":"","operationId":"list-patientproviderteammembers-of-a-given-team","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"team_id","in":"path","description":"The identifier of the patient provider team","schema":{"type":"integer","format":"int32"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 1,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"patient_provider_team_id\": 140758828450078,\n \"patient_provider_team_member_id\": 140758828515615,\n \"patient_id\": 140758827991041,\n \"physician_id\": 131074,\n \"group\": \"main\",\n \"rank\": 1,\n \"treatment_reason\": \"pcp at sacred heart\",\n \"earliest_activity\": \"2022-05-17T20:11:24\",\n \"latest_activity\": \"2022-05-17T20:11:24\",\n \"activity_summary_last_refreshed\": null\n }\n ]\n}"}},"schema":{"type":"object","properties":{"count":{"type":"integer","example":1,"default":0},"next":{},"previous":{},"results":{"type":"array","items":{"type":"object","properties":{"patient_provider_team_id":{"type":"integer","example":140758828450078,"default":0},"patient_provider_team_member_id":{"type":"integer","example":140758828515615,"default":0},"patient_id":{"type":"integer","example":140758827991041,"default":0},"physician_id":{"type":"integer","example":131074,"default":0},"group":{"type":"string","example":"main"},"rank":{"type":"integer","example":1,"default":0},"treatment_reason":{"type":"string","example":"pcp at sacred heart"},"earliest_activity":{"type":"string","example":"2022-05-17T20:11:24"},"latest_activity":{"type":"string","example":"2022-05-17T20:11:24"},"activity_summary_last_refreshed":{}}}}}}}}},"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/patient-provider-teams/{{id}}/team_members\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/patient-provider-team-members":{"post":{"summary":"Create a Provider Team Member","description":"","operationId":"create-a-patientproviderteammember","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient_provider_team_id","physician_id"],"properties":{"patient_provider_team_id":{"type":"integer","format":"int64"},"physician_id":{"type":"integer","format":"int64"},"treatment_reason":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"patient_provider_team_id\": 58726220062,\n \"patient_provider_team_member_id\": 140758911484191,\n \"patient_id\": 887422977,\n \"physician_id\": 983042,\n \"group\": \"main\",\n \"rank\": 1,\n \"treatment_reason\": \"pcp at sacred heart\",\n \"earliest_activity\": null,\n \"latest_activity\": null,\n \"activity_summary_last_refreshed\": null\n}"}},"schema":{"type":"object","properties":{"patient_provider_team_id":{"type":"integer","example":58726220062,"default":0},"patient_provider_team_member_id":{"type":"integer","example":140758911484191,"default":0},"patient_id":{"type":"integer","example":887422977,"default":0},"physician_id":{"type":"integer","example":983042,"default":0},"group":{"type":"string","example":"main"},"rank":{"type":"integer","example":1,"default":0},"treatment_reason":{"type":"string","example":"pcp at sacred heart"},"earliest_activity":{},"latest_activity":{},"activity_summary_last_refreshed":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n \"detail\": \"Patient provider team not found.\"\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Patient provider team not found."}}}}}},"409":{"description":"409","content":{"text/plain":{"examples":{"Result":{"value":"{\n \"detail\": \"Physician already a member of the specified patient-provider team.\"\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Physician already a member of the specified patient-provider team."}}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"python","code":"import requests\nimport json\n\naccess_token = \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\"\nauth_header = \"Bearer %s\" % (access_token)\n\nbody = {\"patient_provider_team_id\": 58726220062, \"physician_id\": 983042, \"treatment_reason\": \"pcp at sacred heart\"}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/patient-provider-teams\",\n headers={'Authorization': auth_header}, data=body)\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/patient-provider-team-members/{team_member_id}":{"patch":{"summary":"Update Team Member","description":"","operationId":"update-patientproviderteammember-details","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"team_member_id","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"treatment_reason":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"patient_provider_team_id\": 58726220062,\n \"patient_provider_team_member_id\": 140758911484191,\n \"patient_id\": 887422977,\n \"physician_id\": 983042,\n \"group\": \"main\",\n \"rank\": 1,\n \"treatment_reason\": \"surgeon at sacred heart\",\n \"earliest_activity\": null,\n \"latest_activity\": null,\n \"activity_summary_last_refreshed\": null\n}"}},"schema":{"type":"object","properties":{"patient_provider_team_id":{"type":"integer","example":58726220062,"default":0},"patient_provider_team_member_id":{"type":"integer","example":140758911484191,"default":0},"patient_id":{"type":"integer","example":887422977,"default":0},"physician_id":{"type":"integer","example":983042,"default":0},"group":{"type":"string","example":"main"},"rank":{"type":"integer","example":1,"default":0},"treatment_reason":{"type":"string","example":"surgeon at sacred heart"},"earliest_activity":{},"latest_activity":{},"activity_summary_last_refreshed":{}}}}}},"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\nbody = {\"treatment_reason\": \"surgeon at sacred heart\"}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/patient-provider-teams/140758911484191\",\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 a Team Member","description":"","operationId":"delete-patientproviderteammember","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"team_member_id","in":"path","schema":{"type":"string"},"required":true}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":""}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n\t\"detail\": \"Patient provider team member not found.\"\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Patient provider team member not found."}}}}}}},"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/patient-provider-teams/140758911484191\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/patients/{patient_id}/patient_provider_team":{"post":{"summary":"Create a Provider Team for a given Patient","description":"","operationId":"create-a-patientproviderteam-for-a-given-patient","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient_id","in":"path","schema":{"type":"integer","format":"int32"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"patient_provider_team_id\": 140758911549726,\n \"patient_id\": 140758827991041,\n \"team_members\": []\n},"}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n \"detail\": \"Patient not found.\"\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Patient not found."}}}}}},"409":{"description":"409","content":{"application/json":{"examples":{"Result":{"value":"{\n \"detail\": \"Patient provider team already exists for given patient.\"\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Patient provider team already exists for given patient."}}}}}}},"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.post(\"https://sandbox.elationemr.com/api/2.0/patients/140758827991041/patient_provider_team\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}},"get":{"summary":"List the Team Members for a given Patient","description":"","operationId":"list-the-patient-provider-team-members-for-a-given-patient","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"patient_id","in":"path","schema":{"type":"integer","format":"int32"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"patient_provider_team_id\": 140758828450078,\n \"patient_id\": 453050369,\n \"team_members\": [\n {\n \"patient_provider_team_id\": 140758911549726,\n \"patient_provider_team_member_id\": 140758911615263,\n \"patient_id\": 140758828450078,\n \"physician_id\": 983042,\n \"group\": \"main\",\n \"rank\": 1,\n \"treatment_reason\": \"jd and turk\",\n \"earliest_activity\": null,\n \"latest_activity\": null,\n \"activity_summary_last_refreshed\": null\n }\n ]\n}"}},"schema":{"type":"object","properties":{"patient_provider_team_id":{"type":"integer","example":140758828450078,"default":0},"patient_id":{"type":"integer","example":453050369,"default":0},"team_members":{"type":"array","items":{"type":"object","properties":{"patient_provider_team_id":{"type":"integer","example":140758911549726,"default":0},"patient_provider_team_member_id":{"type":"integer","example":140758911615263,"default":0},"patient_id":{"type":"integer","example":140758828450078,"default":0},"physician_id":{"type":"integer","example":983042,"default":0},"group":{"type":"string","example":"main"},"rank":{"type":"integer","example":1,"default":0},"treatment_reason":{"type":"string","example":"jd and turk"},"earliest_activity":{},"latest_activity":{},"activity_summary_last_refreshed":{}}}}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n\t\"detail\": \"Patient provider team does not exist for given patient.\"\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Patient provider team does not exist for given patient."}}}}}}},"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/140758828450078/patient_provider_team\",\n headers={'Authorization': auth_header})\n\nprint(resp.status_code)\nprint(json.dumps(json.loads(resp.content), indent=2))"}],"samples-languages":["python"]}}},"/patients/{id}/outstanding_balance/":{"post":{"summary":"Updating Outstanding Balance","description":"","operationId":"updating-outstanding-balance","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["balance"],"properties":{"balance":{"type":"integer","description":"the outstanding balance in cents","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n\t\"balance\": 123.45\n}"}},"schema":{"type":"object","properties":{"balance":{"type":"number","example":123.45,"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 \"balance\": 12345\n}\n\nresp = requests.post(\"https://sandbox.elationemr.com/api/2.0/patients/64184451073/outstanding_balance\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"]}}},"/ccda/{patient-id}":{"get":{"summary":"Get CCDA (CEHRT 2022)","description":"We include an endpoint to allow you to retrieve a CCDA v2.1 representation of the data in a patient's chart.","operationId":"get-ccda-cehrt-2022","parameters":[{"name":"patient_id","in":"path","description":"The id of the patient chart.","schema":{"type":"string"},"required":true},{"name":"start_date","in":"query","description":"iso8601 datetime before which we'll exclude data from the CCDA output. See note in supported sections below.","schema":{"type":"string","format":"date"}},{"name":"end_date","in":"query","description":"iso8601 datetime after which we'll exclude data from the CCDA output. See note in supported sections below.","schema":{"type":"string","format":"date"}},{"name":"sections","in":"query","description":"Comma separated list of sections. See supported sections below.","schema":{"type":"array","items":{"type":"string"}}},{"name":"template","in":"query","description":"The template used to display the desired information on the CCDA","schema":{"type":"string"}}],"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/ccda/64184451073/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/billing_codes/":{"post":{"summary":"Create a Billing Code","description":"Create a CPT code that users can add to bills. To view them in the app, go to Practice Settings - Billing.","operationId":"create-a-billing-code","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","code"],"properties":{"practice":{"type":"integer","description":"The practice id","format":"int32"},"code":{"type":"string","description":"The code"},"description":{"type":"string","description":"The user visible description of the code"},"charge":{"type":"string","description":"The amount of money to be charged for the code"},"sequence":{"type":"integer","description":"The position in the list of codes when viewing them as a list","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 4,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 7890102,\n \"practice\": 123456,\n \"code\": \"90471\",\n \"description\": \"vaccine injection, procedure only\",\n \"charge\": null,\n \"sequence\": 10 // sequence in the list of CPTs on the settings page\n },\n {\n \"id\": 7890103,\n \"practice\": 123456,\n \"code\": \"96372\",\n \"description\": \"injection, procedure only\",\n \"charge\": null,\n \"sequence\": 9\n },\n {\n \"id\": 7890104,\n \"practice\": 123456,\n \"code\": \"99203\",\n \"description\": \"new patient, low-moderate complexity office visit\",\n \"charge\": null,\n \"sequence\": 11\n },\n {\n \"id\": 7890105,\n \"practice\": 123456,\n \"code\": \"99204\",\n \"description\": \"new patient, moderate complexity office visit\",\n \"charge\": null,\n \"sequence\": 12\n },\n ...\n\t\t]\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/billing_codes/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/visit_note_types/":{"get":{"summary":"Find Visit Note Types","description":"","operationId":"find-visit-note-types","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 16,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 58716782701,\n \t// 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/visit_note_types/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/visit_note_types/{id}":{"get":{"summary":"Get Visit Note Type","description":"","operationId":"get-visit-note-types","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \t\"id\": 12345678910,\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 = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/visit_note_types/12345678910\",\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 Visit Note Type","description":"","operationId":"delete-visit-note-type","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"204":{"description":"204","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\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/visit_note_types/123456789\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/visit_note_types/:id":{"patch":{"summary":"Update Visit Note Type","description":"","operationId":"update-visit-note-types","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The name of the visit note type"},"is_mu_office_visit":{"type":"boolean"},"snomed_code":{"type":"object","description":"Snomed code associated with visit note type","properties":{}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \t\"content\": \"test\",\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 \"name\": \"Test Visit Note\",\n \"is_mu_office_visit\": false,\n \"snomed_code\": {\n \"code\": \"308335008\"\n }\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/visit_note_types/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/appointment_types/":{"get":{"summary":"Find Appointment Types","description":"","operationId":"find-appointment-types","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 10,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 12345678910,\n \t// 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/appointment_types/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/appointment_types/{id}":{"get":{"summary":"Get Appointment Type","description":"","operationId":"get-appointment-type","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"abbreviation\": \"T/APT\",\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 = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/appointment_types/12345678910\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Appointment Type","description":"","operationId":"update-appointment-type","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"abbreviation":{"type":"string","description":"Abbreviated name for the appointment type"},"color":{"type":"string","description":"The color of the appointment types when shown on the Elation calendar"},"default_duration":{"type":"integer","description":"Default duration of the appointment type, in minutes","format":"int32"},"description":{"type":"string","description":"Description of the appointment type"},"patient_forms_hours_prior":{"type":"integer","description":"Patient forms advance hours for this appointment type","format":"int32"},"is_telehealth":{"type":"boolean","description":"If appointment type is telehealth"},"name":{"type":"string","description":"Name of the appointment type"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"abbreviation\": \"T/APT\",\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 \"abbreviation\": \"T/APT\",\n \"color\": \"\",\n \"default_duration\": 30, \t\n \"description\": \"Test appointment type PATCH\",\n \"patient_forms\": [],\n \"patient_form_hours_prior\": 72,\n \"is_telehealth\": true,\n \"name\": \"Test Appointment Type\"\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/appointment_types/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/visit_note_templates/":{"get":{"summary":"Find Visit Note Templates","description":"","operationId":"find-visit-note-templates","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 10,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"content\": ...,\n \t// 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/visit_note_templates/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/visit_note_templates/{id}":{"get":{"summary":"Get Visit Note Template","description":"","operationId":"get-visit-note-template","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \t\"content\": ...,\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 = \"VFroUHsmrErlVI6nJ08Alwhri5RGCW\"\nauth_header = \"Bearer %s\" % (access_token)\n\nresp = requests.get(\"https://sandbox.elationemr.com/api/2.0/visit_note_templates/12345678910\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}},"patch":{"summary":"Update Visit Note Template","description":"","operationId":"update-visit-note-template","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","description":"Content of the visit note template"},"name":{"type":"string","description":"Name of the visit note template"}}}}}},"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\ndata = {\n \"content\": \"test\",\n \"name\": \"test\"\n}\n\nresp = requests.patch(\"https://sandbox.elationemr.com/api/2.0/visit_note_templates/\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}},"delete":{"summary":"Delete Visit Note Template","description":"","operationId":"delete-visit-note-template","parameters":[{"name":"Authorization","in":"header","schema":{"type":"string"}}],"responses":{"204":{"description":"204","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\ndata = {\n \"content\": \"test\",\n \"name\": \"test\"\n}\n\nresp = requests.delete(\"https://sandbox.elationemr.com/api/2.0/visit_note_templates/123456789\",\n json=data,\n headers={'Authorization': auth_header,\n 'Content-type': 'application/json'})\n\nprint(resp.status_code)\nprint(resp.text)"}],"samples-languages":["python"]}}},"/physicians/{id}/availabilities":{"put":{"summary":"Update Physician Availabilities","description":"","operationId":"update-physician-availabilities","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},"get":{"summary":"Get Physician Availabilities","description":"","operationId":"get-physician-availabilities","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}},"/billing_codes/{billing_code_id}/":{"get":{"summary":"Get a Billing Code","description":"Get a CPT code that the practice has set up. To view all codes in the app, go to Practice Settings - Billing.","operationId":"get-billing-code","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"billing_code_id","in":"path","description":"The internal elation id of the billing code","schema":{"type":"integer","format":"int32"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 4,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 7890102,\n \"practice\": 123456,\n \"code\": \"90471\",\n \"description\": \"vaccine injection, procedure only\",\n \"charge\": null,\n \"sequence\": 10 // sequence in the list of CPTs on the settings page\n },\n {\n \"id\": 7890103,\n \"practice\": 123456,\n \"code\": \"96372\",\n \"description\": \"injection, procedure only\",\n \"charge\": null,\n \"sequence\": 9\n },\n {\n \"id\": 7890104,\n \"practice\": 123456,\n \"code\": \"99203\",\n \"description\": \"new patient, low-moderate complexity office visit\",\n \"charge\": null,\n \"sequence\": 11\n },\n {\n \"id\": 7890105,\n \"practice\": 123456,\n \"code\": \"99204\",\n \"description\": \"new patient, moderate complexity office visit\",\n \"charge\": null,\n \"sequence\": 12\n },\n ...\n\t\t]\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/billing_codes/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/billing_codes/ (COPY)":{"get":{"summary":"Get Billing Codes","description":"Get the CPT codes that the practice has set up. To view them in the app, go to Practice Settings - Billing.","operationId":"get-billing-codes","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"practice","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"code","in":"query","schema":{"type":"string"}},{"name":"description","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 4,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 7890102,\n \"practice\": 123456,\n \"code\": \"90471\",\n \"description\": \"vaccine injection, procedure only\",\n \"charge\": null,\n \"sequence\": 10 // sequence in the list of CPTs on the settings page\n },\n {\n \"id\": 7890103,\n \"practice\": 123456,\n \"code\": \"96372\",\n \"description\": \"injection, procedure only\",\n \"charge\": null,\n \"sequence\": 9\n },\n {\n \"id\": 7890104,\n \"practice\": 123456,\n \"code\": \"99203\",\n \"description\": \"new patient, low-moderate complexity office visit\",\n \"charge\": null,\n \"sequence\": 11\n },\n {\n \"id\": 7890105,\n \"practice\": 123456,\n \"code\": \"99204\",\n \"description\": \"new patient, moderate complexity office visit\",\n \"charge\": null,\n \"sequence\": 12\n },\n ...\n\t\t]\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/billing_codes/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/billing_codes/{billing_code_id}":{"patch":{"summary":"Update a Billing Code","description":"Update a CPT code that users can add to bills. To view them in the app, go to Practice Settings - Billing.","operationId":"update-a-billing-code","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"billing_code_id","in":"path","description":"The id of the billing code","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"practice":{"type":"integer","description":"The practice id","format":"int32"},"code":{"type":"string","description":"The code"},"description":{"type":"string","description":"The user visible description of the code"},"charge":{"type":"string","description":"The amount of money to be charged for the code"},"sequence":{"type":"integer","description":"The position in the list of codes when viewing them as a list","format":"int32"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 4,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"id\": 7890102,\n \"practice\": 123456,\n \"code\": \"90471\",\n \"description\": \"vaccine injection, procedure only\",\n \"charge\": null,\n \"sequence\": 10 // sequence in the list of CPTs on the settings page\n },\n {\n \"id\": 7890103,\n \"practice\": 123456,\n \"code\": \"96372\",\n \"description\": \"injection, procedure only\",\n \"charge\": null,\n \"sequence\": 9\n },\n {\n \"id\": 7890104,\n \"practice\": 123456,\n \"code\": \"99203\",\n \"description\": \"new patient, low-moderate complexity office visit\",\n \"charge\": null,\n \"sequence\": 11\n },\n {\n \"id\": 7890105,\n \"practice\": 123456,\n \"code\": \"99204\",\n \"description\": \"new patient, moderate complexity office visit\",\n \"charge\": null,\n \"sequence\": 12\n },\n ...\n\t\t]\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/billing_codes/\",\n headers={'Authorization': auth_header})\n\nprint resp.status_code\nprint json.dumps(json.loads(resp.content), indent=2)"}],"samples-languages":["python"]}}},"/patient_insurances/{id}/eligibility_full_report/":{"get":{"summary":"Get Eligibility Full Report","description":"","operationId":"get-eligibility-full-report","parameters":[{"name":"id","in":"path","description":"patient insurance ID","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"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}},"/patient_form_requests":{"post":{"summary":"Create Patient Form Request","description":"","operationId":"create-patient-form-request","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient","patient_forms"],"properties":{"patient":{"type":"integer","description":"The ID of the patient that should be associated with the request.","format":"int64"},"patient_forms":{"type":"array","description":"The IDs of the forms that should be associated to the request. Please note that you must create these forms before trying to create a request.","items":{"type":"integer","format":"int64"}},"notification_date":{"type":"string","description":"This is the date that the request will appear in the Practice's action queue. This value must be in the future, excluding the current day. The default value is one week into the future.","format":"date"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"examples":{"Result":{"value":"{\n \"created_date\": \"2024-01-31T15:57:54Z\",\n \"forms_url\": \"http://app.elationemr.com/practice/655364/patient/64058687489/patient-forms/?key=aeNZ4gjq2L8g1vGl9XUxF0VLtIqKZQkXJuAy5hKq\",\n \"id\": 140775209894361,\n \"notification_date\": \"2024-02-07\",\n \"patient_forms\": [\n 6\n ],\n \"patient\": 64058687489,\n \"practice\": 655364\n}"}},"schema":{"type":"object","properties":{"created_date":{"type":"string","example":"2024-01-31T15:57:54Z"},"forms_url":{"type":"string","example":"http://app.elationemr.com/practice/655364/patient/64058687489/patient-forms/?key=aeNZ4gjq2L8g1vGl9XUxF0VLtIqKZQkXJuAy5hKq"},"id":{"type":"integer","example":140775209894361,"default":0},"notification_date":{"type":"string","example":"2024-02-07"},"patient_forms":{"type":"array","items":{"type":"integer","example":6,"default":0}},"patient":{"type":"integer","example":64058687489,"default":0},"practice":{"type":"integer","example":655364,"default":0}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Empty Forms Array":{"value":"{\n \"patient_forms\": [\n \"No patient form IDs provided.\"\n ]\n}"},"Invalid Form IDs":{"value":"{\n \"patient_forms\": [\n \"Unable to locate any patient forms with the provided IDs.\"\n ]\n}"},"Invalid Date Format":{"value":"{\n \"notification_date\": [\n \"Date has wrong format. Use one of these formats instead: YYYY-MM-DD.\"\n ]\n}"},"Empty Patient ID":{"value":"{\n \"patient\": [\n \"This field is required.\"\n ]\n}"}},"schema":{"oneOf":[{"title":"Empty Forms Array","type":"object","properties":{"patient_forms":{"type":"array","items":{"type":"string","example":"No patient form IDs provided."}}}},{"title":"Invalid Form IDs","type":"object","properties":{"patient_forms":{"type":"array","items":{"type":"string","example":"Unable to locate any patient forms with the provided IDs."}}}},{"title":"Invalid Date Format","type":"object","properties":{"notification_date":{"type":"array","items":{"type":"string","example":"Date has wrong format. Use one of these formats instead: YYYY-MM-DD."}}}},{"title":"Empty Patient ID","type":"object","properties":{"patient":{"type":"array","items":{"type":"string","example":"This field is required."}}}}]}}}}},"deprecated":false},"get":{"summary":"List Patient Form Requests","description":"","operationId":"list-patient-form-requests","responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"count\": 2,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"created_date\": \"2024-01-31T13:09:31Z\",\n \"forms_url\": \"http://app.elationemr.com/practice/655364/patient/64058687489/patient-forms/?key=rh3oAXE73txk48BQoppyD8YJpJEmLoT8EUBIQ9zM\",\n \"id\": 140775209566681,\n \"notification_date\": \"2024-02-07\",\n \"patient_forms\": [\n 1,\n 2\n ],\n \"patient\": 64058687489,\n \"practice\": 655364\n },\n {\n \"created_date\": \"2024-01-31T13:14:47Z\",\n \"forms_url\": \"http://app.elationemr.com/practice/655364/patient/64058687489/patient-forms/?key=uAm3304Gil5rH0acpBbeVgWR4idSXhlM1ThLwngk\",\n \"id\": 140775209632217,\n \"notification_date\": \"2024-02-07\",\n \"patient_forms\": [\n 6\n ],\n \"patient\": 64058687489,\n \"practice\": 655364\n }\n ]\n}"},"Empty List":{"value":"{\n \"count\": 0,\n \"next\": null,\n \"previous\": null,\n \"results\": []\n}"}},"schema":{"oneOf":[{"type":"object","properties":{"count":{"type":"integer","example":2,"default":0},"next":{},"previous":{},"results":{"type":"array","items":{"type":"object","properties":{"created_date":{"type":"string","example":"2024-01-31T13:09:31Z"},"forms_url":{"type":"string","example":"http://app.elationemr.com/practice/655364/patient/64058687489/patient-forms/?key=rh3oAXE73txk48BQoppyD8YJpJEmLoT8EUBIQ9zM"},"id":{"type":"integer","example":140775209566681,"default":0},"notification_date":{"type":"string","example":"2024-02-07"},"patient_forms":{"type":"array","items":{"type":"integer","example":1,"default":0}},"patient":{"type":"integer","example":64058687489,"default":0},"practice":{"type":"integer","example":655364,"default":0}}}}}},{"title":"Empty List","type":"object","properties":{"count":{"type":"integer","example":0,"default":0},"next":{},"previous":{},"results":{"type":"array"}}}]}}}}},"deprecated":false}},"/patient_form_requests/{patient_form_request_id}":{"delete":{"summary":"Delete Patient Form Request","description":"","operationId":"delete-patient-form-request","parameters":[{"name":"patient_form_request_id","in":"path","description":"The ID of the PatientFormRequest object to be deleted.","schema":{"type":"integer","format":"int64"},"required":true}],"responses":{"204":{"description":"204","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"get":{"summary":"Get Patient Form Request","description":"","operationId":"get-patient-form-request","parameters":[{"name":"patient_form_request_id","in":"path","description":"The ID of the PatientFormRequest object.","schema":{"type":"integer","format":"int64"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"created_date\": \"2024-01-31T13:09:31Z\",\n \"forms_url\": \"http://app.elationemr.com/practice/655364/patient/64058687489/patient-forms/?key=rh3oAXE73txk48BQoppyD8YJpJEmLoT8EUBIQ9zM\",\n \"id\": 140775209566681,\n \"notification_date\": \"2024-02-07\",\n \"patient_forms\": [\n 1,\n 2\n ],\n \"patient\": 64058687489,\n \"practice\": 655364\n}"}},"schema":{"type":"object","properties":{"created_date":{"type":"string","example":"2024-01-31T13:09:31Z"},"forms_url":{"type":"string","example":"http://app.elationemr.com/practice/655364/patient/64058687489/patient-forms/?key=rh3oAXE73txk48BQoppyD8YJpJEmLoT8EUBIQ9zM"},"id":{"type":"integer","example":140775209566681,"default":0},"notification_date":{"type":"string","example":"2024-02-07"},"patient_forms":{"type":"array","items":{"type":"integer","example":1,"default":0}},"patient":{"type":"integer","example":64058687489,"default":0},"practice":{"type":"integer","example":655364,"default":0}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"ID Not Found":{"value":"{\n \"detail\": \"Not found.\"\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"string","example":"Not found."}}}}}}},"deprecated":false},"put":{"summary":"Update Patient Form Request","description":"","operationId":"update-patient-form-request","parameters":[{"name":"patient_form_request_id","in":"path","description":"The ID of the request that should be updated.","schema":{"type":"integer","format":"int64"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient_forms","patient"],"properties":{"notification_date":{"type":"string","description":"This is the date that the request will appear in the Practice's action queue. This value must be in the future, excluding the current day.","format":"date"},"patient_forms":{"type":"array","description":"The IDs of the PatientForm objects to associate with this request.","items":{"type":"integer","format":"int64"}},"patient":{"type":"integer","description":"The ID of the Patient object this request should be associated with.","format":"int64"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n \"created_date\": \"2024-01-31T15:57:54Z\",\n \"forms_url\": \"http://app.elationemr.com/practice/655364/patient/64058687489/patient-forms/?key=aeNZ4gjq2L8g1vGl9XUxF0VLtIqKZQkXJuAy5hKq\",\n \"id\": 140775209894361,\n \"notification_date\": \"2024-02-07\",\n \"patient_forms\": [\n 6\n ],\n \"patient\": 64058687489,\n \"practice\": 655364\n}"}},"schema":{"type":"object","properties":{"created_date":{"type":"string","example":"2024-01-31T15:57:54Z"},"forms_url":{"type":"string","example":"http://app.elationemr.com/practice/655364/patient/64058687489/patient-forms/?key=aeNZ4gjq2L8g1vGl9XUxF0VLtIqKZQkXJuAy5hKq"},"id":{"type":"integer","example":140775209894361,"default":0},"notification_date":{"type":"string","example":"2024-02-07"},"patient_forms":{"type":"array","items":{"type":"integer","example":6,"default":0}},"patient":{"type":"integer","example":64058687489,"default":0},"practice":{"type":"integer","example":655364,"default":0}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Cannot Update Patient ID":{"value":"{\n \"detail\": \"Patient ID cannot be modified.\"\n}"},"Cannot Modify Patient Forms":{"value":"{\n \"detail\": \"Patient forms cannot be modified.\"\n}"}},"schema":{"oneOf":[{"title":"Cannot Update Patient ID","type":"object","properties":{"detail":{"type":"string","example":"Patient ID cannot be modified."}}},{"title":"Cannot Modify Patient Forms","type":"object","properties":{"detail":{"type":"string","example":"Patient forms cannot be modified."}}}]}}}}},"deprecated":false}},"/practice_medications/":{"get":{"summary":"Find Practice Medications","description":"","operationId":"find-practice-medications","parameters":[{"name":"name","in":"query","description":"The name of the practice medication","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The id of the practice","schema":{"type":"integer","format":"int32"}}],"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},"post":{"summary":"Create Practice Medication","description":"","operationId":"create-practice-medication","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["practice","name","type"],"properties":{"practice":{"type":"integer","description":"The practice id","format":"int32"},"name":{"type":"string","description":"The name that will display for the medication in the search and when referenced by the prescription or documented med"},"type":{"type":"string","description":"Whether the practice medication is an OTC or Prescription drug","enum":["prescription","otc"]},"is_controlled":{"type":"boolean","description":"Whether the drug is a controlled substance or not","default":false},"obsolete_date":{"type":"string","description":"The date at which this practice medication became obsolete","default":"null","format":"date-time"},"strength":{"type":"string","description":"The strength of the drug, e.g. 40mg"}}}}}},"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}},"/practice_medications/{practice_medication_id}/":{"patch":{"summary":"Obsolete Practice Medication","description":"","operationId":"obsolete-practice-medication","parameters":[{"name":"practice_medication_id","in":"path","description":"The id of the practice medication","schema":{"type":"integer","format":"int32"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"obsoleted_date":{"type":"string","description":"The date at which this practice medication became obsolete","format":"date-time"}}}}}},"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},"get":{"summary":"Fetch Practice Medication","description":"","operationId":"fetch-practice-medication","parameters":[{"name":"practice_medication_id","in":"path","description":"The id of the practice medication","schema":{"type":"integer","format":"int32"},"required":true}],"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}},"/allergy_documentation/":{"post":{"summary":"Create Allergy Documentation (NKDA)","description":"","operationId":"create-allergy-documentation-nkda","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patient"],"properties":{"patient":{"type":"integer","description":"The id of the patient","format":"int32"}}}}}},"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},"get":{"summary":"Find Allergy Documentation (NKDA)","description":"","operationId":"find-allergy-documentation-nkda","parameters":[{"name":"patient","in":"query","description":"The patient id","schema":{"type":"array","items":{"type":"integer","format":"int32"}}}],"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}},"/allergy_documentation/{allergy_documentation_id}/":{"get":{"summary":"Get Allergy Documentation (NKDA)","description":"","operationId":"get-allergy-documentation-nkda","parameters":[{"name":"allergy_documentation_id","in":"path","description":"The id of the allergy documentation","schema":{"type":"integer","format":"int32"},"required":true}],"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},"delete":{"summary":"Delete Allergy Documentation (NKDA)","description":"","operationId":"delete-allergy-documentation-nkda","parameters":[{"name":"allergy_documentation_id","in":"path","description":"The id of the allergy documentation","schema":{"type":"integer","format":"int32"},"required":true}],"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}},"/contacts/{contact_id}/":{"get":{"summary":"Fetch Contact","description":"","operationId":"fetch-contact","parameters":[{"name":"contact_id","in":"path","description":"The id of the contact","schema":{"type":"string"},"required":true}],"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}},"/injections/{id}/":{"get":{"summary":"Get Injection","description":"","operationId":"get-injection","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"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}},"/packaged_medications/":{"get":{"summary":"Find Packaged Medications","description":"","operationId":"find-packaged-medications","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"ndc","in":"query","description":"The National Drug Code associated with the packaged medication","schema":{"type":"string"}},{"name":"reference_medication_id","in":"query","description":"The id of the reference medication associated with the packaged medication","schema":{"type":"integer","format":"int64"}},{"name":"name","in":"query","description":"The name of the packaged medication","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}},"/reference_medications/{id}/":{"get":{"summary":"Get Reference Medication","description":"","operationId":"get-reference-medication","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"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}},"/packaged_medications/{id}/":{"get":{"summary":"Get Packaged Medication","description":"","operationId":"get-packaged-medication","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"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}},"/reference_medications/":{"get":{"summary":"Find Reference Medications","description":"","operationId":"find-reference-medications","parameters":[{"name":"ndc","in":"query","description":"Any of the National Drug Codes associated with the reference medication","schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"rxnorm_cui","in":"query","description":"Any of the RxNorm Concept Identifiers associated with the reference medication","schema":{"type":"string"}},{"name":"practice","in":"query","description":"The ID of the practice that created the reference medication","schema":{"type":"integer","format":"int64"}},{"name":"name","in":"query","description":"The name of the reference medication","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}},"/injections/":{"get":{"summary":"Find Injections","description":"","operationId":"find-injections","parameters":[{"name":"Authorization","in":"header","required":true,"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}},"/packaged_medication_labelers/":{"get":{"summary":"Find Packaged Medication Labelers","description":"","operationId":"find-packaged-medication-labelers","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the packaged medication labeler","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}},"/packaged_medication_labelers/{id}/":{"get":{"summary":"Get Packaged Medication Labeler","description":"","operationId":"get-packaged-medication-labeler","parameters":[{"name":"id","in":"path","schema":{"type":"integer","format":"int64"},"required":true},{"name":"Authorization","in":"header","required":true,"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":{"headers":[]},"x-readme-fauxas":true}