Versions Compared

Key

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

Status
titleDRAFT

...


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
medical_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_services (new table)


Name
Type
M/O
Description and constraints
Status
iduuidM

contract_iduuidMFK(contract_id)
program_services_iduuidMFK(program_services)
is_activebooleanM

inserted_attimestampM

inserted_byuuidM

updated_attimestampM

updated_byuuidM

Endpoint response tree structure

Node 1
  • service_groups w/o sub-groups, w/o parent_group_id
  • service_groups with sub-groups, w/o parent_group_id
  • services which aren't included in any service_groups
Node 2
  • service_groups with parent_group_id with service_groups of the first node
  • services which are included in the service_groups of the Node 1
Node 3
  • service_groups with parent_group_id with service_groups from the second node
  • services which are included in the service_groups of the Node 2
Node 4
  • service_groups with parent_group_id with service_groups from the third node
  • services which are included in the service_groups of the Node 3
Node 5
  • services which are included in the service_groups of the Node 4