How to use a custom field in a patient's record