The Delhi High Court has upheld the legality of the city civic body's decision mandating marking of attendance by all employees of its two hospitals through a mobile application, saying the measure was taken for improving the healthcare system and instilling discipline and accountability among its employees.