Design Of A Distributed Real-Time E-Health Cyber Ecosystem With Collective Actions: Diagnosis, Dynamic Queueing, And Decision Making