Submit a score
POST application/x-www-form-urlencoded (or equivalent) with the seven NEDOCS
inputs. Values are whole numbers sent as strings. Minutes are used for time fields.
Body parameters
| Field | Description |
|---|---|
totalpat | Total patients in the ED |
totaladmits | Total admits waiting in the ED |
edbeds | Total ED beds |
ipbeds | Total inpatient beds (hospital-wide) |
longestadmit | Longest admit time (minutes) |
lastbedtime | Last bed / door-to-bed time (minutes) |
ventilators | 1:1 or ventilator patients |
id | Hospital API key (optional in body if present in URL) |
Response
{"Status":"Ok","Message":"Score saved"}— score calculated and notifications sent{"Status":"Error","Message":"…"}— calculation or notification failure, or subscription expired
Example (C#)
using System.Net;
using System.Collections.Specialized;
using (var client = new WebClient())
{
var values = new NameValueCollection
{
["totalpat"] = "81",
["totaladmits"] = "12",
["edbeds"] = "75",
["ipbeds"] = "511",
["longestadmit"] = "360",
["lastbedtime"] = "40",
["ventilators"] = "1"
};
client.UploadValues("https://nedocs.org/api/submitscore/{your-api-key}", values);
}
Example (curl)
curl -X POST "https://nedocs.org/api/submitscore/{your-api-key}" \
-d "totalpat=81" \
-d "totaladmits=12" \
-d "edbeds=75" \
-d "ipbeds=511" \
-d "longestadmit=360" \
-d "lastbedtime=40" \
-d "ventilators=1"