Untested code now works, just need to get the items added then new patient page done