Problems
Create Problem
Create a new problem.
POST
/
api
/
2.0
/
problems
/
Create Problem
curl --request POST \
--url https://sandbox.elationemr.com/api/2.0/problems/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"dx": [
{
"icd10": [
"<string>"
],
"icd9": [
"<string>"
],
"snomed": "<string>"
}
],
"patient": 123,
"start_date": "2023-12-25",
"rank": 123,
"resolved_date": "2023-12-25",
"synopsis": "<string>"
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/problems/"
payload = {
"description": "<string>",
"dx": [
{
"icd10": ["<string>"],
"icd9": ["<string>"],
"snomed": "<string>"
}
],
"patient": 123,
"start_date": "2023-12-25",
"rank": 123,
"resolved_date": "2023-12-25",
"synopsis": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: '<string>',
dx: [{icd10: ['<string>'], icd9: ['<string>'], snomed: '<string>'}],
patient: 123,
start_date: '2023-12-25',
rank: 123,
resolved_date: '2023-12-25',
synopsis: '<string>'
})
};
fetch('https://sandbox.elationemr.com/api/2.0/problems/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.elationemr.com/api/2.0/problems/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'description' => '<string>',
'dx' => [
[
'icd10' => [
'<string>'
],
'icd9' => [
'<string>'
],
'snomed' => '<string>'
]
],
'patient' => 123,
'start_date' => '2023-12-25',
'rank' => 123,
'resolved_date' => '2023-12-25',
'synopsis' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.elationemr.com/api/2.0/problems/"
payload := strings.NewReader("{\n \"description\": \"<string>\",\n \"dx\": [\n {\n \"icd10\": [\n \"<string>\"\n ],\n \"icd9\": [\n \"<string>\"\n ],\n \"snomed\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"start_date\": \"2023-12-25\",\n \"rank\": 123,\n \"resolved_date\": \"2023-12-25\",\n \"synopsis\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.elationemr.com/api/2.0/problems/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"<string>\",\n \"dx\": [\n {\n \"icd10\": [\n \"<string>\"\n ],\n \"icd9\": [\n \"<string>\"\n ],\n \"snomed\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"start_date\": \"2023-12-25\",\n \"rank\": 123,\n \"resolved_date\": \"2023-12-25\",\n \"synopsis\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/problems/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"<string>\",\n \"dx\": [\n {\n \"icd10\": [\n \"<string>\"\n ],\n \"icd9\": [\n \"<string>\"\n ],\n \"snomed\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"start_date\": \"2023-12-25\",\n \"rank\": 123,\n \"resolved_date\": \"2023-12-25\",\n \"synopsis\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"description": "<string>",
"dx": [
{
"icd10": [
"<string>"
],
"icd9": [
"<string>"
],
"snomed": "<string>"
}
],
"patient": 123,
"start_date": "2023-12-25",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"practice": 123,
"rank": 123,
"resolved_date": "2023-12-25",
"synopsis": "<string>"
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Maximum string length:
200The diagnoses for imo codes.
Show child attributes
Show child attributes
Available options:
Active, Controlled, Resolved Date the problem was resolved. Set only if status is Resolved.
Available options:
confirmed, differential, entered_in_error, provisional, refuted, unconfirmed Response
201 - application/json
Maximum string length:
200The diagnoses for imo codes.
Show child attributes
Show child attributes
Available options:
Active, Controlled, Resolved Date the problem was resolved. Set only if status is Resolved.
Available options:
confirmed, differential, entered_in_error, provisional, refuted, unconfirmed Was this page helpful?
⌘I
Create Problem
curl --request POST \
--url https://sandbox.elationemr.com/api/2.0/problems/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"dx": [
{
"icd10": [
"<string>"
],
"icd9": [
"<string>"
],
"snomed": "<string>"
}
],
"patient": 123,
"start_date": "2023-12-25",
"rank": 123,
"resolved_date": "2023-12-25",
"synopsis": "<string>"
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/problems/"
payload = {
"description": "<string>",
"dx": [
{
"icd10": ["<string>"],
"icd9": ["<string>"],
"snomed": "<string>"
}
],
"patient": 123,
"start_date": "2023-12-25",
"rank": 123,
"resolved_date": "2023-12-25",
"synopsis": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: '<string>',
dx: [{icd10: ['<string>'], icd9: ['<string>'], snomed: '<string>'}],
patient: 123,
start_date: '2023-12-25',
rank: 123,
resolved_date: '2023-12-25',
synopsis: '<string>'
})
};
fetch('https://sandbox.elationemr.com/api/2.0/problems/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.elationemr.com/api/2.0/problems/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'description' => '<string>',
'dx' => [
[
'icd10' => [
'<string>'
],
'icd9' => [
'<string>'
],
'snomed' => '<string>'
]
],
'patient' => 123,
'start_date' => '2023-12-25',
'rank' => 123,
'resolved_date' => '2023-12-25',
'synopsis' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.elationemr.com/api/2.0/problems/"
payload := strings.NewReader("{\n \"description\": \"<string>\",\n \"dx\": [\n {\n \"icd10\": [\n \"<string>\"\n ],\n \"icd9\": [\n \"<string>\"\n ],\n \"snomed\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"start_date\": \"2023-12-25\",\n \"rank\": 123,\n \"resolved_date\": \"2023-12-25\",\n \"synopsis\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.elationemr.com/api/2.0/problems/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"<string>\",\n \"dx\": [\n {\n \"icd10\": [\n \"<string>\"\n ],\n \"icd9\": [\n \"<string>\"\n ],\n \"snomed\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"start_date\": \"2023-12-25\",\n \"rank\": 123,\n \"resolved_date\": \"2023-12-25\",\n \"synopsis\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/problems/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"<string>\",\n \"dx\": [\n {\n \"icd10\": [\n \"<string>\"\n ],\n \"icd9\": [\n \"<string>\"\n ],\n \"snomed\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"start_date\": \"2023-12-25\",\n \"rank\": 123,\n \"resolved_date\": \"2023-12-25\",\n \"synopsis\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"description": "<string>",
"dx": [
{
"icd10": [
"<string>"
],
"icd9": [
"<string>"
],
"snomed": "<string>"
}
],
"patient": 123,
"start_date": "2023-12-25",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"practice": 123,
"rank": 123,
"resolved_date": "2023-12-25",
"synopsis": "<string>"
}