Partially Update Non Visit Note
Update an existing non visit note.
curl --request PATCH \
--url https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"bullets": [
{
"text": "<string>",
"author": 123,
"id": 123,
"version": 32767
}
],
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"note_documents": [
{
"document": {
"authoring_practice": 123,
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"id": 123,
"patient": 123,
"last_modified": "2023-11-07T05:31:56Z"
},
"summary": "<string>"
}
],
"note_items": [
{
"item": {
"is_confidential": true,
"patient": 123,
"type": "<string>"
}
}
],
"patient": 123,
"signed_by": 123,
"signed_date": "2023-11-07T05:31:56Z",
"tags": [
123
],
"type": "<string>"
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/"
payload = {
"bullets": [
{
"text": "<string>",
"author": 123,
"id": 123,
"version": 32767
}
],
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"note_documents": [
{
"document": {
"authoring_practice": 123,
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"id": 123,
"patient": 123,
"last_modified": "2023-11-07T05:31:56Z"
},
"summary": "<string>"
}
],
"note_items": [{ "item": {
"is_confidential": True,
"patient": 123,
"type": "<string>"
} }],
"patient": 123,
"signed_by": 123,
"signed_date": "2023-11-07T05:31:56Z",
"tags": [123],
"type": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bullets: [{text: '<string>', author: 123, id: 123, version: 32767}],
chart_date: '2023-11-07T05:31:56Z',
document_date: '2023-11-07T05:31:56Z',
note_documents: [
{
document: {
authoring_practice: 123,
chart_date: '2023-11-07T05:31:56Z',
document_date: '2023-11-07T05:31:56Z',
id: 123,
patient: 123,
last_modified: '2023-11-07T05:31:56Z'
},
summary: '<string>'
}
],
note_items: [{item: {is_confidential: true, patient: 123, type: '<string>'}}],
patient: 123,
signed_by: 123,
signed_date: '2023-11-07T05:31:56Z',
tags: [123],
type: '<string>'
})
};
fetch('https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/', 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/non_visit_notes/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'bullets' => [
[
'text' => '<string>',
'author' => 123,
'id' => 123,
'version' => 32767
]
],
'chart_date' => '2023-11-07T05:31:56Z',
'document_date' => '2023-11-07T05:31:56Z',
'note_documents' => [
[
'document' => [
'authoring_practice' => 123,
'chart_date' => '2023-11-07T05:31:56Z',
'document_date' => '2023-11-07T05:31:56Z',
'id' => 123,
'patient' => 123,
'last_modified' => '2023-11-07T05:31:56Z'
],
'summary' => '<string>'
]
],
'note_items' => [
[
'item' => [
'is_confidential' => true,
'patient' => 123,
'type' => '<string>'
]
]
],
'patient' => 123,
'signed_by' => 123,
'signed_date' => '2023-11-07T05:31:56Z',
'tags' => [
123
],
'type' => '<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/non_visit_notes/{id}/"
payload := strings.NewReader("{\n \"bullets\": [\n {\n \"text\": \"<string>\",\n \"author\": 123,\n \"id\": 123,\n \"version\": 32767\n }\n ],\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"note_documents\": [\n {\n \"document\": {\n \"authoring_practice\": 123,\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"id\": 123,\n \"patient\": 123,\n \"last_modified\": \"2023-11-07T05:31:56Z\"\n },\n \"summary\": \"<string>\"\n }\n ],\n \"note_items\": [\n {\n \"item\": {\n \"is_confidential\": true,\n \"patient\": 123,\n \"type\": \"<string>\"\n }\n }\n ],\n \"patient\": 123,\n \"signed_by\": 123,\n \"signed_date\": \"2023-11-07T05:31:56Z\",\n \"tags\": [\n 123\n ],\n \"type\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"bullets\": [\n {\n \"text\": \"<string>\",\n \"author\": 123,\n \"id\": 123,\n \"version\": 32767\n }\n ],\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"note_documents\": [\n {\n \"document\": {\n \"authoring_practice\": 123,\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"id\": 123,\n \"patient\": 123,\n \"last_modified\": \"2023-11-07T05:31:56Z\"\n },\n \"summary\": \"<string>\"\n }\n ],\n \"note_items\": [\n {\n \"item\": {\n \"is_confidential\": true,\n \"patient\": 123,\n \"type\": \"<string>\"\n }\n }\n ],\n \"patient\": 123,\n \"signed_by\": 123,\n \"signed_date\": \"2023-11-07T05:31:56Z\",\n \"tags\": [\n 123\n ],\n \"type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bullets\": [\n {\n \"text\": \"<string>\",\n \"author\": 123,\n \"id\": 123,\n \"version\": 32767\n }\n ],\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"note_documents\": [\n {\n \"document\": {\n \"authoring_practice\": 123,\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"id\": 123,\n \"patient\": 123,\n \"last_modified\": \"2023-11-07T05:31:56Z\"\n },\n \"summary\": \"<string>\"\n }\n ],\n \"note_items\": [\n {\n \"item\": {\n \"is_confidential\": true,\n \"patient\": 123,\n \"type\": \"<string>\"\n }\n }\n ],\n \"patient\": 123,\n \"signed_by\": 123,\n \"signed_date\": \"2023-11-07T05:31:56Z\",\n \"tags\": [\n 123\n ],\n \"type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"patient": 123,
"type": "<string>",
"bullets": [
{
"text": "<string>",
"author": 123,
"id": 123,
"updated_date": "2023-11-07T05:31:56Z",
"version": 32767
}
],
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"note_documents": [
{
"document": {
"authoring_practice": 123,
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"id": 123,
"patient": 123,
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"document_type": 123,
"last_modified": "2023-11-07T05:31:56Z",
"sign_date": "2023-11-07T05:31:56Z",
"signed_by": 123
},
"id": 123,
"summary": "<string>"
}
],
"note_items": [
{
"item": {
"is_confidential": true,
"patient": 123,
"type": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123
},
"id": 123
}
],
"signed_by": 123,
"signed_date": "2023-11-07T05:31:56Z",
"tags": [
123
]
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Body
The bullets of the non visit note.
Show child attributes
Show child attributes
The documents referenced by the non visit note.
Show child attributes
Show child attributes
The items in the clinical record on the left hand side of the chart referenced by the non visit note.
Show child attributes
Show child attributes
The ids of the document tags you want to attach.
The type of the non visit note.
Response
The type of the non visit note.
The bullets of the non visit note.
Show child attributes
Show child attributes
The documents referenced by the non visit note.
Show child attributes
Show child attributes
The items in the clinical record on the left hand side of the chart referenced by the non visit note.
Show child attributes
Show child attributes
The ids of the document tags you want to attach.
Was this page helpful?
curl --request PATCH \
--url https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"bullets": [
{
"text": "<string>",
"author": 123,
"id": 123,
"version": 32767
}
],
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"note_documents": [
{
"document": {
"authoring_practice": 123,
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"id": 123,
"patient": 123,
"last_modified": "2023-11-07T05:31:56Z"
},
"summary": "<string>"
}
],
"note_items": [
{
"item": {
"is_confidential": true,
"patient": 123,
"type": "<string>"
}
}
],
"patient": 123,
"signed_by": 123,
"signed_date": "2023-11-07T05:31:56Z",
"tags": [
123
],
"type": "<string>"
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/"
payload = {
"bullets": [
{
"text": "<string>",
"author": 123,
"id": 123,
"version": 32767
}
],
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"note_documents": [
{
"document": {
"authoring_practice": 123,
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"id": 123,
"patient": 123,
"last_modified": "2023-11-07T05:31:56Z"
},
"summary": "<string>"
}
],
"note_items": [{ "item": {
"is_confidential": True,
"patient": 123,
"type": "<string>"
} }],
"patient": 123,
"signed_by": 123,
"signed_date": "2023-11-07T05:31:56Z",
"tags": [123],
"type": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bullets: [{text: '<string>', author: 123, id: 123, version: 32767}],
chart_date: '2023-11-07T05:31:56Z',
document_date: '2023-11-07T05:31:56Z',
note_documents: [
{
document: {
authoring_practice: 123,
chart_date: '2023-11-07T05:31:56Z',
document_date: '2023-11-07T05:31:56Z',
id: 123,
patient: 123,
last_modified: '2023-11-07T05:31:56Z'
},
summary: '<string>'
}
],
note_items: [{item: {is_confidential: true, patient: 123, type: '<string>'}}],
patient: 123,
signed_by: 123,
signed_date: '2023-11-07T05:31:56Z',
tags: [123],
type: '<string>'
})
};
fetch('https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/', 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/non_visit_notes/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'bullets' => [
[
'text' => '<string>',
'author' => 123,
'id' => 123,
'version' => 32767
]
],
'chart_date' => '2023-11-07T05:31:56Z',
'document_date' => '2023-11-07T05:31:56Z',
'note_documents' => [
[
'document' => [
'authoring_practice' => 123,
'chart_date' => '2023-11-07T05:31:56Z',
'document_date' => '2023-11-07T05:31:56Z',
'id' => 123,
'patient' => 123,
'last_modified' => '2023-11-07T05:31:56Z'
],
'summary' => '<string>'
]
],
'note_items' => [
[
'item' => [
'is_confidential' => true,
'patient' => 123,
'type' => '<string>'
]
]
],
'patient' => 123,
'signed_by' => 123,
'signed_date' => '2023-11-07T05:31:56Z',
'tags' => [
123
],
'type' => '<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/non_visit_notes/{id}/"
payload := strings.NewReader("{\n \"bullets\": [\n {\n \"text\": \"<string>\",\n \"author\": 123,\n \"id\": 123,\n \"version\": 32767\n }\n ],\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"note_documents\": [\n {\n \"document\": {\n \"authoring_practice\": 123,\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"id\": 123,\n \"patient\": 123,\n \"last_modified\": \"2023-11-07T05:31:56Z\"\n },\n \"summary\": \"<string>\"\n }\n ],\n \"note_items\": [\n {\n \"item\": {\n \"is_confidential\": true,\n \"patient\": 123,\n \"type\": \"<string>\"\n }\n }\n ],\n \"patient\": 123,\n \"signed_by\": 123,\n \"signed_date\": \"2023-11-07T05:31:56Z\",\n \"tags\": [\n 123\n ],\n \"type\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"bullets\": [\n {\n \"text\": \"<string>\",\n \"author\": 123,\n \"id\": 123,\n \"version\": 32767\n }\n ],\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"note_documents\": [\n {\n \"document\": {\n \"authoring_practice\": 123,\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"id\": 123,\n \"patient\": 123,\n \"last_modified\": \"2023-11-07T05:31:56Z\"\n },\n \"summary\": \"<string>\"\n }\n ],\n \"note_items\": [\n {\n \"item\": {\n \"is_confidential\": true,\n \"patient\": 123,\n \"type\": \"<string>\"\n }\n }\n ],\n \"patient\": 123,\n \"signed_by\": 123,\n \"signed_date\": \"2023-11-07T05:31:56Z\",\n \"tags\": [\n 123\n ],\n \"type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/non_visit_notes/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bullets\": [\n {\n \"text\": \"<string>\",\n \"author\": 123,\n \"id\": 123,\n \"version\": 32767\n }\n ],\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"note_documents\": [\n {\n \"document\": {\n \"authoring_practice\": 123,\n \"chart_date\": \"2023-11-07T05:31:56Z\",\n \"document_date\": \"2023-11-07T05:31:56Z\",\n \"id\": 123,\n \"patient\": 123,\n \"last_modified\": \"2023-11-07T05:31:56Z\"\n },\n \"summary\": \"<string>\"\n }\n ],\n \"note_items\": [\n {\n \"item\": {\n \"is_confidential\": true,\n \"patient\": 123,\n \"type\": \"<string>\"\n }\n }\n ],\n \"patient\": 123,\n \"signed_by\": 123,\n \"signed_date\": \"2023-11-07T05:31:56Z\",\n \"tags\": [\n 123\n ],\n \"type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"patient": 123,
"type": "<string>",
"bullets": [
{
"text": "<string>",
"author": 123,
"id": 123,
"updated_date": "2023-11-07T05:31:56Z",
"version": 32767
}
],
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"note_documents": [
{
"document": {
"authoring_practice": 123,
"chart_date": "2023-11-07T05:31:56Z",
"document_date": "2023-11-07T05:31:56Z",
"id": 123,
"patient": 123,
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"document_type": 123,
"last_modified": "2023-11-07T05:31:56Z",
"sign_date": "2023-11-07T05:31:56Z",
"signed_by": 123
},
"id": 123,
"summary": "<string>"
}
],
"note_items": [
{
"item": {
"is_confidential": true,
"patient": 123,
"type": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123
},
"id": 123
}
],
"signed_by": 123,
"signed_date": "2023-11-07T05:31:56Z",
"tags": [
123
]
}