Registry settings

create

request
POST /api/v2/registry/settings HTTP/1.1

{
  "activeFrom" : "2025-08-28",
  "departmentId" : 1000000003,
  "doctorOffices" : 3,
  "receptionDuration" : 40
}
Table 305. request description
Path Type Description Constraints

activeFrom

String

First date of the setting’s effect

Must not be null

departmentId

Number

The department’s id

Must not be null

doctorOffices

Number

Number of available record slots i.e. offices

Must be at least 1.
Must not be null

receptionDuration

Number

Duration of a record in minutes

Must not be null.
Положительная продолжительность

response
HTTP/1.1 201 Created
Location: /api/v2/registry/settings/8

{
  "id" : 8,
  "activeFrom" : "2025-08-28",
  "activeTo" : null,
  "departmentId" : 1000000003,
  "doctorOffices" : 3,
  "receptionDuration" : 40
}

list

request
GET /api/v2/registry/settings?departmentId=1000000003 HTTP/1.1
Table 306. request description
Parameter Description

departmentId

The department’s id

response
HTTP/1.1 200 OK

[ {
  "id" : 2,
  "activeFrom" : "2009-01-01",
  "activeTo" : null,
  "departmentId" : 1000000003,
  "doctorOffices" : 2,
  "receptionDuration" : 30
} ]
Table 307. response description
Path Type Description

id

Number

The setting’s id

activeFrom

String

First date of the setting’s effect

activeTo

String

Last date of the setting’s effect

departmentId

Number

The department’s id

doctorOffices

Number

Number of available record slots i.e. offices

receptionDuration

Number

Duration of a record in minutes

get by date

request
GET /api/v2/registry/settings?departmentId=1000000003&date=2025-08-28 HTTP/1.1
Table 308. request description
Parameter Description

departmentId

The department’s id

date

Date of the setting’s effect

response
HTTP/1.1 200 OK

{
  "id" : 8,
  "activeFrom" : "2025-08-28",
  "activeTo" : null,
  "departmentId" : 1000000003,
  "doctorOffices" : 3,
  "receptionDuration" : 40
}
Table 309. response description
Path Type Description

id

Number

The setting’s id

activeFrom

String

First date of the setting’s effect

activeTo

String

Last date of the setting’s effect

departmentId

Number

The department’s id

doctorOffices

Number

Number of available record slots i.e. offices

receptionDuration

Number

Duration of a record in minutes

delete

request
DELETE /api/v2/registry/settings/8 HTTP/1.1
Table 310. /api/v2/registry/settings/{id}
Parameter Description

id

The registry setting’s id

response
HTTP/1.1 200 OK