A Goal-Based Framework for Supporting Medical Assistance: The Case of Chronic Diseases