Single MySQL query with row averages based on conditions
Keep the raw data in MySQL.  But plan on coding the logic in PHP (or whatever).  You have only begun to touch on how complex the math can get.  What about the blood pressure readings, plus whether the patient is/was taking a BP lowering drug?