Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
titleDRAFT

Table of Contents

Schema

Image RemovedImage Added

Examples

Services - Service Groups relations example

...


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

services (new table)


Name
Type
M/O
Description and constraints
Status
iduuidM

contract_iduuidMFK(contract_id)
program_memberservices_iduuidMFK(program_membersservices)
is_activebooleanM

inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM