working hospital interface, need refactoring