Intelligent point of care testing for medicine diagnosis