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

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 25 Next »

DRAFT

Schema

Examples

Services - Service Groups relations example

Composite Service example - TBC

 


Data Model

Service

NameTypeM/ODescription
idUUIDM
codestringM
namestringM
is_activebooleanM
parent_idUUIDOfor future use (composition_id)
categorystringMenum
is_compositionbooleanMfor future use
request_allowedbooleanM
inserted_atdatetimeM
inserted_bydatetimeM
updated_atdatetimeM
updated_bydatetimeM

Service group

NameTypeM/ODescription
idUUIDM
codestringM
namestringM
is_activebooleanM
parent_idUUIDO
request_allowedbooleanM
inserted_atdatetimeM
inserted_bydatetimeM
updated_atdatetimeM
updated_bydatetimeM

Service in group

NameTypeM/ODescription
idUUIDM
service_idUUIDM
group_idUUIDM
aliasstringO
is_activebooleanM
inserted_atdatetimeM
inserted_bydatetimeM
updated_atdatetimeM
updated_bydatetimeM

Programs (existing reimbursement medical_programs table is used)

This entity defines medical programs information structure.

Name
Type
M/O
Description and constraints
Status
iduuidM

is_activebooleanM

namevarcharM

inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

same_mnn_in_treatment_period

booleanMNot used for service programs
typevarcharMmedication, serviceNEW
legal_entity_typesjsonbM

Used for service programs, array of legal_entity_types dictionary values.

Program can be set on service request if it were created by an employee from legal entity with one of types listed in array

NEW

Program_services (new table)

Name
Type
M/O
Description and constraints
Status
iduuidM

service_iduuidOservice_id OR service_group_id is mandatory
program_iduuidM

service_group_iduuidOservice_id OR service_group_id is mandatory

request_allowed

booleanM

consumer_pricedoubleM

descriptiontextOused for text description of un-automated conditions which should be checked for program member vs patient qualification (e.g. sex or age of patient)
is_activebooleanM

inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

contract_program_members (new table)

Name
Type
M/O
Description and constraints
Status
iduuidM

contract_iduuidMFK(contract_id)
program_member_iduuidMFK(program_members)
is_activebooleanM

inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

  • No labels