Analyzing Katana referral hospital as a complex adaptive system: agents, interactions and adaptation to a changing environment