ЕСОЗ - публічна документація

Table specs

IN PROGRESS

Schema 

https://drive.google.com/file/d/1phygA8_ulSjZAJ7KwFVfEgVq7vch4qbm/view?usp=sharing

Table Desctiptions

edr_data 

(edr_id), unique

Name
Type
M/O
Description and constraints
Status
iduuidM

edr_id integerM

namevarcharM

short_namevarcharO

public_namevarcharM

legal_formvarcharO

edrpouvarcharM

kvedsjsonbM



registration_addressjsonbM



is_activebooleanM

stateintegerM

inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

PK(id), unique

(edr_data_id, type) must be unique when status <> closed and is_active = true

NameTypeM/ODescription and constraintsStatus
iduuidM

namevarchar(255)O
DEPRECATED
short_namevarchar(255)O
DEPRECATED
public_namevarchar(255)O
DEPRECATED
owner_property_typevarchar(255)O
DEPRECATED
legal_formvarchar(255)O
DEPRECATED
kvedsjsonbO
DEPRECATED
registration_addressjsonbOobject AddressesDEPRECATED
edr_data_iduuidMFK(edr_data)
typevarcharM

Dictionary LEGAL_ENTITY_TYPE

PRIMARY_CARE, OUTPATIENT, EMERGENCY, PHARMACY

MSP, MSP_PHARMACY (could not be created or updated in e-Health, should be processed as PRIMARY_CARE, then should be deprecated)


edrpouvarcharM

accreditationjsonbOarray of object accreditation
residence_addressjsonbO

object Addresses


phonesjsonbMarray of object Phones
emailvarcharM

is_activebooleanM

websitevarcharO

receiver_funds_codevarcharO

archivejsonbOarray of object Table specs#available_time
created_by_mis_client_iduuidO

nhs_verifiedbooleanM

nhs_reviewedbooleanM

inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

license_id uuidOFK(licenses)
statusbooleanMactive, closed, suspended, reorganised
status_reasonvarcharO

nhs_verified_change_datetimestampO

licenses 

PK(id), unique

(edr_data_id, type), unique

NameTypeM/ODescription and constraintsStatus
iduuidM

license_numbervarcharO

typevarcharMDictionary LICENSE_TYPE
issued_byvarcharM

issued_datedateM

issuer_statusvarcharO

expiry_datedateO

active_from_datedateM

what_licensedtextO

order_novarcharM

is_activebooleanM

inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

employees

PK(id), unique

(legal_entity_id, employee_type, is_active = true, employee_type = OWNER OR PHARMACY_OWNER), unique

NameTypeM/ODescription and constraintsStatus
iduuidM

positionvarcharMDictionary: position
statusvarcharMAPPROVED, DISMISSED
status_reasonvarcharO

employee_typevarcharMDictionary: employee_type
is_activebooleanMby default false
inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

start_datedateM

end_datedateO

legal_entity_iduuidM

division_iduuidMO

party_iduuidM

additional_infojsonbO

specialityjsonbO

divisions

PK(id), unique

NameTypeM/ODescription and constraintsStatus
iduuidM

external_idvarcharO

namevarcharM

typevarcharMDictionary: division_type
mountain_groupbooleanM

phonesjsonbM

emailvarcharO

legal_entity_iduuidM

locationgeometryO

statusvarcharMACTIVE, INACTIVE
working_hoursjsonbOobject Table specs#available_time
dls_idvarcharO

dls_verifiedbooleanO

is_activebooleanMby default = true
inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

healthcare_services

PK(id), unique

(division_id, speciality_type, providing_conditions), unique

NameTypeM/ODescription and constraintsStatus
iduuidM

legal_entity_iduuidMreference to legal entity
division_iduuidMreference to division
speciality_typevarcharMDictionary: speciality_type
providing_conditionsvarcharMDictionary: INPATIENT, OUTPATIENT, HOME, FIELD
category[uuid]Oarray of references to service_group with parent_group_id = nullNo Implementation yet
type[uuid]Oarray of references to array of references to service_group with no grandparentsNo Implementation yet
statusvarcharM

ACTIVE, INACTIVE

Available transitions:

Active → Inactive

Inactive → Active


coverage_area[uuid]Oarray of references to divisionsNo Implementation yet
commentvarcharO

available_timejsonbOarray of object Table specs#available_time
restricted_periodsjsonbOobject Table specs#restricted_periods
is_activebooleanMby default = true
inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

healthcare_services_status_hstr

PK(id), unique

NameTypeM/ODescription and constraintsStatus
iduuidM

healthcare_service_iduuidMreference to healthcare service
statusvarcharM

inserted_attimestampM

equipment

PK(id), unique

NameTypeM/ODescription and constraintsStatus
iduuidM
ok
statusvarcharM

active, inactive

Available transitions:

Active → Inactive

Inactive → Active

ok
typejsonbMobject CodeableConceptok
external_idvarchar

Not in FHIR,

ok

division_iduuidMreference to divisionok
legal_entity_iduuidMreference to legal entityok
udijsonbO

array of objects. Contains unique identifiers assigned to the asset by the manufacturer (like IMEI for phones)

Object fields:

  • value - string, required.
  • type - string, required (EQUIPMENT_UDI_TYPE dict)
  • assigner_name - string, optional
ok
lot_numbervarcharO
ok
manufacturervarcharO
ok
manufacture_datedateOdateok
expiration_datedateOdateok
model_numbervarcharO
ok
part_numbervarcharO
ok
versionvarcharO
ok
namevarcharO
ok
serial_numbervarcharO
ok
notevarcharO
ok
is_activebooleanMby default = trueok
inserted_attimestampM
ok
inserted_byuuidM
ok
updated_attimestampM
ok
updated_byuuidM
ok

equipment_status_hstr

PK(id), unique

NameTypeM/ODescription and constraintsStatus
iduuidM

equipment_iduuidMreference to equipment
statusvarcharM

inserted_attimestampM

inserted_byuuidM

employee_roles

PK(id), unique

(employee_id,healthcare_service_id, status=active), unique

NameTypeM/ODescription and constraintsStatus
iduuidM

healthcare_service_iduuidMreference to healthcare service
employee_iduuidMreference to employee
start_datetimestampMfullfilled automatically when new record is created
end_datetimestampOfullfilled automatically on deactivating record
statusvarcharM

ACTIVE, INACTIVE

Available transition: Active → Inactive


is_activebooleanMby default = true
inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

licensed_healthcare_services

PK(id), unique

(healthcare_service_id, status=active), unique

NameTypeM/ODescription and constraintsStatus
iduuidM

healthcare_service_iduuidMFK on healthcare_services.id
statusvarcharM

ACTIVE, INACTIVE

Available transition:

Active → Inactive

Inactive → Active


is_activebooleanMby default = true
inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

licensed_healthcare_services_status_hstr

PK(id), unique

NameTypeM/ODescription and constraintsStatus
iduuidM

licensed_healthcare_service_iduuidMreference to licensed healthcare service
statusvarcharM

inserted_attimestampM

Objects

Addresses 

see https://uaehealthapi.docs.apiary.io/#reference/dummy-methods/dummy-for-legal-entity/create/update-legal-entity

NametypeM/ODescription and constraints












Phones

NameTypeM/ODescription and constraints
type
stringM
Dictionary PHONE_TYPE type of phone Land Line or Mobile. At least one of type must be present. Each type can be represented only once.
MOBILE
number
stringM
phone number in format '+38/'
+380503410870

Archive

NameTypeM/ODescription and constraints
date
stringM

the date when paper documents were transferred to archive

2017-02-28
place
stringM

the address of building where paper documents are

вул. Грушевського 15

Accreditation

NameTypeM/ODescription and constraints
category
M
issued_date
O
expiry_date
O
order_no
M
order_date
M

available_time

NameTypeM/ODescription and constraints
days_of_week[varchar]Mvalues: mon | tue | wed | thu | fri | sat | sun
all_daybooleanO
available_start_timevarcharO
available_end_timevarcharO

restricted_periods

NameTypeM/ODescription and constraints
descriptionvarcharMreason why service is not available
duringjsonbMobject period

period

NameTypeM/ODescription and constraints
starttimestampM
endtimestampM

ЕСОЗ - публічна документація