Versions Compared

Key

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

Purpose

Specification

...

  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 deactivatedactivated
  3. Legal entity can activate only its own equipments

...


Patameter
Source
Description
statusConst: ACTIVEBy default ACTIVE for activated records
updated_atTimestamp: now()Get current date-time
updated_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: ACTIVEBy default ACTIVE for activated records
inserted_byToken: user_idExtract user from token
inserted_atTimestamp: now()Get current date-time