copy timeout code from clinic to chw