422
: ErrorResultРегистрирует новое заболевание для пациента.
Request
POST https://demo.onco-reg.ru/api/1.0/json/ehr/add HTTP/1.1
X-Oncor-API-Token:
Content-Type: application/json
{
"ehr":{
"patient_id":"#66:33481"
}
}
Response 200
{
"result":[
{
"id":"#873:36386",
"patient_id":"#66:33481",
"summary":""
}
]
}
Response 422
{
"error":{
"name":"PatientNotFoundException",
"message":"Patient \"\" not found",
"uuid":"9b2ef941-b81d-43e3-8e87-e8b0dad6e6e2"
}
}