An apparatus and computerized method of intravenously monitoring a patients blood chemistry transmits real time measurements to an electronically controlled closed loop system that auto-regulates blood osmolality and glucose level with medications infused through a catheter designed for such purpose. The closed loop system utilizes a glucose algorithm and an osmolality algorithm implemented in hardware and software to control the flow of dextrose, insulin and hypertonic saline to a patient in an effort to achieve better patient outcomes in instances of trauma, surgery and medical illnesses.