We will generate new patient record id in php file instead of inside the app.
Refactor