PharmaLedger-IMI / eco-iot-pmed-workspace

UC6-UC7-UC9 ECO-IoT-PMED
MIT License
2 stars 6 forks source link

do not allow to add TP number if the patient status is changed to discontinued or withdrawn #479

Closed Ana-ui closed 1 year ago

Ana-ui commented 1 year ago

NOTE: if I change a subject status from "planned" to "Discontinued" or "withdrawn" and the system allows me to assign a TP number and a device

Mastaleru commented 1 year ago

@Ana-ui the tp number should also no be changed if the status is unavailable or completed.

Mastaleru commented 1 year ago

@cosmintuca use arrays functions .eg. indexOf, includes