Update Discharge Summary
curl --request PATCH \
--url https://api.eka.care/ipd/service/discharge-summaries/{summary_id} \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"content_html": "<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>",
"content_json": [
{
"type": "heading",
"text": "Discharge Summary"
},
{
"type": "paragraph",
"text": "Patient recovered. Follow up in 7 days."
}
]
}
'import requests
url = "https://api.eka.care/ipd/service/discharge-summaries/{summary_id}"
payload = {
"content_html": "<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>",
"content_json": [
{
"type": "heading",
"text": "Discharge Summary"
},
{
"type": "paragraph",
"text": "Patient recovered. Follow up in 7 days."
}
]
}
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content_html: '<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>',
content_json: [
{type: 'heading', text: 'Discharge Summary'},
{type: 'paragraph', text: 'Patient recovered. Follow up in 7 days.'}
]
})
};
fetch('https://api.eka.care/ipd/service/discharge-summaries/{summary_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.eka.care/ipd/service/discharge-summaries/{summary_id}")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"content_html\": \"<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>\",\n \"content_json\": [\n {\n \"type\": \"heading\",\n \"text\": \"Discharge Summary\"\n },\n {\n \"type\": \"paragraph\",\n \"text\": \"Patient recovered. Follow up in 7 days.\"\n }\n ]\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/discharge-summaries/{summary_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"content_html\": \"<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>\",\n \"content_json\": [\n {\n \"type\": \"heading\",\n \"text\": \"Discharge Summary\"\n },\n {\n \"type\": \"paragraph\",\n \"text\": \"Patient recovered. Follow up in 7 days.\"\n }\n ]\n}", false);
var response = await client.PatchAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/discharge-summaries/{summary_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content_html\": \"<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>\",\n \"content_json\": [\n {\n \"type\": \"heading\",\n \"text\": \"Discharge Summary\"\n },\n {\n \"type\": \"paragraph\",\n \"text\": \"Patient recovered. Follow up in 7 days.\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1cbf6e4b0a1b2c3d4ee09",
"admission_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"patient_id": "pid-321",
"actor_name": "Vivek Sharma",
"actor_oid": "161467756044203",
"content_html": "<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>",
"content_json": [
{
"type": "heading",
"text": "Discharge Summary"
},
{
"type": "paragraph",
"text": "Patient recovered. Follow up in 7 days."
}
],
"createdAt": "2026-10-07T12:00:00.000Z",
"updatedAt": "2026-10-07T12:30:00.000Z",
"__v": 0
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}{
"success": false,
"error": "Discharge summary not found"
}Discharge summaries
Update Discharge Summary
Overview
This API updates the content of a discharge summary of your workspace. It is a partial update: only the fields sent in the request body are changed, and fields that are omitted keep their current value. The original author (actor_name and actor_oid) is not changed.
Returns 404 with Discharge summary not found when the summary_id does not exist or belongs to another workspace.
PATCH
/
ipd
/
service
/
discharge-summaries
/
{summary_id}
Update Discharge Summary
curl --request PATCH \
--url https://api.eka.care/ipd/service/discharge-summaries/{summary_id} \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"content_html": "<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>",
"content_json": [
{
"type": "heading",
"text": "Discharge Summary"
},
{
"type": "paragraph",
"text": "Patient recovered. Follow up in 7 days."
}
]
}
'import requests
url = "https://api.eka.care/ipd/service/discharge-summaries/{summary_id}"
payload = {
"content_html": "<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>",
"content_json": [
{
"type": "heading",
"text": "Discharge Summary"
},
{
"type": "paragraph",
"text": "Patient recovered. Follow up in 7 days."
}
]
}
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content_html: '<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>',
content_json: [
{type: 'heading', text: 'Discharge Summary'},
{type: 'paragraph', text: 'Patient recovered. Follow up in 7 days.'}
]
})
};
fetch('https://api.eka.care/ipd/service/discharge-summaries/{summary_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.eka.care/ipd/service/discharge-summaries/{summary_id}")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"content_html\": \"<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>\",\n \"content_json\": [\n {\n \"type\": \"heading\",\n \"text\": \"Discharge Summary\"\n },\n {\n \"type\": \"paragraph\",\n \"text\": \"Patient recovered. Follow up in 7 days.\"\n }\n ]\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/discharge-summaries/{summary_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"content_html\": \"<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>\",\n \"content_json\": [\n {\n \"type\": \"heading\",\n \"text\": \"Discharge Summary\"\n },\n {\n \"type\": \"paragraph\",\n \"text\": \"Patient recovered. Follow up in 7 days.\"\n }\n ]\n}", false);
var response = await client.PatchAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/discharge-summaries/{summary_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content_html\": \"<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>\",\n \"content_json\": [\n {\n \"type\": \"heading\",\n \"text\": \"Discharge Summary\"\n },\n {\n \"type\": \"paragraph\",\n \"text\": \"Patient recovered. Follow up in 7 days.\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1cbf6e4b0a1b2c3d4ee09",
"admission_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"patient_id": "pid-321",
"actor_name": "Vivek Sharma",
"actor_oid": "161467756044203",
"content_html": "<h2>Discharge Summary</h2><p>Patient recovered. Follow up in 7 days.</p>",
"content_json": [
{
"type": "heading",
"text": "Discharge Summary"
},
{
"type": "paragraph",
"text": "Patient recovered. Follow up in 7 days."
}
],
"createdAt": "2026-10-07T12:00:00.000Z",
"updatedAt": "2026-10-07T12:30:00.000Z",
"__v": 0
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}{
"success": false,
"error": "Discharge summary not found"
}Headers
Path Parameters
Id of the discharge summary to update.
Body
application/json
The summary fields to change. Send only the fields you want to update.
Was this page helpful?

