Versions Compared

Key

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

Purpose

Specification

Apiary TBD

...

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

...

Update object in DB

1. equipments table


Parameter
Source
Description
statusConst: ACTIVEBy default ACTIVE for activated recordsupdated_atTimestamp: now()Get current date-timeupdated_byToken: user
Patameter
Source
Description
statusConst: ACTIVEBy default ACTIVE for activated records
updated_atTimestamp: now()Get current date-time
updated_byToken: user_idExtract user from token

2. division_equipment table

_idExtract user from token


Save object to DB

1. equipment_status_hstr table


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