Cyber physical system for medical healthcare