Versions Compared

Key

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

Table of Contents

Purpose

Specification

...

  1. Only authenticated and authorized HR, ADMIN, OWNER employees from MSP, OUTPATIENT, PRIMARY_CARE, EMERGENCY legal entities can deactivate equipments.
  2. Only ACTIVE equipment can be deactivated
  3. Legal entity can deactivate only its own equipments

...

Update object in DB

1. equipments table

PatameterSourceDescription
statusConst: INACTIVEBy default INACTIVE for deactivated records
updated_atTimestamp: now()Get current date-time
updated_byToken: user
_idExtract user from token

2. division_equipment table

Parameter
Source
Description
statusConst: INACTIVEBy default INACTIVE for deactivated recordsupdated_atTimestamp: now()Get current date-timeupdated_byToken: user
_idExtract user from token

Save object to DB

1. equipment_status_hstr table


Parameter
Source
Description
idUUIDAutogenerated
equipment_idUUIDReference to equipments.id
statusConst: INACTIVEBy default INACTIVE for deactivated records
inserted_byToken: user_idExtract user from token
inserted_atTimestamp: now()Get current date-time