Fix

-Fixed a null pointer with the medical record system.