Electronic Health Record: A Systems Analysis of the Medications Domain