How to register a patient