This disclosure comprises a system, computer program product and apparatus for delivering medications and/or medical treatments that are appropriate to the resilient context of an individual patient. The resilient context comprises a predictive model for each of one or more patient function measures and a predictive model of patient resilience where said models are all developed by learning from the data associated with the individual patient. The medical advice, medical diagnoses and/or medical treatments may be provided “as is” and/or they may be customized to match the specific resilient context of the individual patient.