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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »


ERD



Data structures

PERSONS

NameTypeM/ODescription and constraintsReport
iduuidM
X
last_namevarcharM

first_namevarcharM

second_namevarcharO

birth_datedateM
X
birth_countryvarcharM

birth_settlementvarcharM

gendervarcharM

emailvarcharO

tax_idvarcharO

invalid_tax_idbooleanO

death_datedateO
X
is_activebooleanM

documentsjsonb[ ] M

addressesjsonb[ ]M
X
phonesjsonb[ ] O

secretvarcharO

emergency_contactjsonbM

confidant_personjsonb[]O

patient_signedbooleanM

process_disclosure_data_consentbooleanM

authentication_methodsjsonbM

preferred_way_communicationvarcharM

PARTIES

NameTypeM/ODescription and constraintsReport
iduuidM
X
last_namevarcharM
X
first_namevarcharM
X
second_namevarcharO
X
person_iduuidO

emailvarcharM

birth_datedateM

gendervarcharM

tax_idvarcharM

no_tax_idbooleanO

documentsjsonb[]M

phonesjsonb[]M

educationsjsonb[]O

qualificationsjsonb[]O

specialitiesjsonb[]O

science_degreejsonbO

about_myselfdateO

working_experiencestringO

propertiesjsonbO

EMPLOYEES

NameTypeM/ODescription and constraintsReport
iduuidM
X
person_iduuidO

positionvarcharM
X
statusvarcharM
X
status_reasonvarcharO

employeevarcharM

employee_typevarcharM
X
is_activebooleanM
X
start_datetimestampM
X
end_datetimestampO
X
legal_entity_iduuidM
X
division_iduuidO
X
specialityjsonbO

USERS

NameTypeM/ODescription and constraints
iduuidM
emailvarcharM
tax_idvarcharOunique 
passwordvarcharM
settingsjsonbO
priv_settingsjsonbO
is_blockedbooleanO
block_reasonvarcharO
person_iduuidO
inserted_attimeatampM
updated_attimeatampM

OPEN_IDS

NameTypeM/ODescription and constraints
iduuidM
person_iduuidM
typevarcharM
open_idvarcharM
NameTypeM/ODescription and constraintsReport
iduuidM
X
namevarcharM
X
short_namevarcharM
X
public_namevarcharM
X
statusvarcharM
X
typevarcharM
X
owner_property_typevarcharM
X
legal_formvarcharM
X
edrpouvarcharM
X
kvedsvarcharM
X
addressesjsonb[ ] M
X
phonesjsonb[ ] M
X
emailvarcharM
X
is_activebooleanM
X
mis_verifiedbooleanO
X
nhs_verifiedbooleanO
X
websitevarcharO
X
beneficiaryvarcharO

receiver_funds_codevarcharO

archivejsonbO

DIVISIONS

NameTypeM/ODescription and constraintsReport
iduuidM
X
external_id varcharO
X
namevarcharM
X
typevarcharO
X
mountaint_groupbooleanM
X
locationgeometryM
X
addressesjsonb[ ]M
X
phonesjsonb[ ]M
X
emailvarcharM
X
working_hoursjsonb[ ]O
X
is_activebooleanO
X
legal_entity_iduuidM
X
statusenum ('')M
X


REGISTERS

NameTypeM/ODescription and constraints
iduuidM
file_namevarcharM
statusenum[new, processing, processed ]

M


typeDICTIONARY='REGISTER_TYPE'M
qty

jsonb:

{not_found: number,

processing: number,

errors: number,

total: number}

M
errorsarray (e.g. ["Row has length 4 - expected length 5 on line 5"])M
inserted_atuuidM
inserted_bytimestampM
updated_atuuidM
updated_bytimestampM

REGISTER_ENTRIES

Name SourceM/ODescription and constraints
iduuidM
register_iduuidM
repson_typeenum('')M

type

DICTIONARY='DOCUMENT_TYPE'M

number

varcharM
status

enum (processing, matched, not_found)

M
inserted_atuuidM
inserted_bytimestampM
updated_atuuidM
updated_bytimestampM

JSONB structures 

Address

This data type defines address structure

NameTypeM/ODescription and constraints
typeDictionary: ADDRESS_TYPEM
countryDictionary: COUNTRYM
areastringM
regionstringO
settlementstringM
settlement_idstringMsettlement_id must be a valid UAddresses entity
settlement_typeDictionary: SETTLEMENT_TYPEM
street_typeDictionary: STREET_TYPEM
streetstringO
buildingstringM
apartmentstringO
zipstringO

Phone

This data type defines Phone structure

NameTypeM/ODescription and constraints
typeDictionary: PHONE_TYPEM
numberstringM

Document

This data type defines Document structure

NameTypeM/ODescription and constraints
typeDictionary: DOCUMENT_TYPEM
numberstringM
issued_atdateO
issued_bystringO

Emergency_contact

NameTypeM/ODescription and constraints
first_namestringM
last_namestringM
second_namestringO
phonesjsonb []M

Confidant_person

NameTypeM/ODescription and constraints
typeenum: [PRIMARY,
SECONDARY]
M
first_namestringM
last_namestringM
second_namestringO
birth_datedateM
birth_countryDictionary: COUNTRYM
birth_settlementstringM
genderstringM
tax_idstringM
secretstringO
documents_personDocument: jsonb[ ]M
documents_relationshipDocument: jsonb[ ]M
phonesPhone: jsonb[ ]M

Authentification_method

NameTypeM/ODescription and constraints
typeenum['OFFLINE'/'MOBILE_PHONE']M
numberstringO

Archive

NameTypeM/ODescription and constraints
datedateO
placestringO

Education

NameTypeM/ODescription and constraints
countryDictionary: COUNTRYM
cityvarcharM
institution_namevarcharM
issued_datedateO
diploma_numbervarcharM
degreeDictionary: EDUCATION_DEGREEM
specialityvarcharM

Qualification

NameTypeM/ODescription and constraints
typeDictionary: QUALIFICATION_TYPEM
institution_namevarcharM
specialityvarcharM
issued_datedateO
certificate_numbervarcharO
valid_todateO
additional_infovarcharO

Specialities

NameTypeM/ODescription and constraints
typeDictionary: SPECIALITY_TYPEM
levelDictionary: SPECIALITY_LEVELM
qualification_typeDictionary: SPEC_QUALIFICATION_TYPEM
attestation_namevarcharM
attestation_datedateM
valid_to_datedateO
certificate_numbervarcharM

Speciality

NameTypeM/ODescription and constraints
typeDictionary: SPECIALITY_TYPEM
speciality_officiotrueM
levelDictionary: SPECIALITY_LEVELM
qualification_typeDictionary: SPEC_QUALIFICATION_TYPEM
attestation_namevarcharM
attestation_datedateM
valid_to_datedateO
certificate_numbervarcharM

Science_degree

NameTypeM/ODescription and constraints
countryDictionary: COUNTRYM
citynameM
degreeDictionary: SCIENCE_DEGREEM
institution_namevarcharM
diploma_numbervarcharM
specialitydateM

Properties

NameTypeM/ODescription and constraints
limitnumberM
counternumberM
  • No labels