We present a means of generating a mobile clientserver application that enables customized remote monitoring of patients with chronic diseases. The customization is based on parameters and formal descriptions of: type of chronic disease, patient preferences, the monitoring procedure required by the doctor, prescribed medication and information about the current context (i.e., environment) of the patient, obtained from sensors. Based on this, the system determines which pieces of information should be regularly obtained from the patient through questionnaires and/or sensors of the smart phone and sensors connected to it. Relevant information are the ones that help to detect possible changes in the patient's health condition and the monitoring process of a patient by the doctor. The medical treatment and the kind of chronic disease will define the set of data to be collected. It should be stressed that the goal is not to support automatic medical diagnosis, but only to provide means for physicians to obtain updated information about their patients, so as to allow remote monitoring of patients.