You can design an xform to override the default OpenMRS patient registration short form by doing the following.
That is all. Just go ahead and try to create a new patient, you will see the patient xform come up.
Every time you create new person attributes, or just want to edit this form, simply go under the OpenMRS administration screen and click the "Patient Xform Design" link. This will always load the form with your previous changes. Modify it in any way you and and save to make your changes available for patient registration.
If you want to turn off using the patient xform for registration, just go back to the OpenMRS global properties and set the value of the "xforms.usePatientXform" property to false.
If you want to delete the form to reset the process you can do so by deleting the form with form_id = 0 in your database like so:
You can also fill some observations using the patient registration form by doing the following:
Starting from version 4.0.0 of the xforms module, you can use the idgen module to create new patient identifiers after setting these two global properties:
To change the primary patient identifier - in the Reference App this shows on the top right of all patient screens preceded by the text "Patient id" - change the global setting emr.primaryIdentifierType to the UUID of the new patient identifier which can be found by picking the new identifier in Advanced Administration/Patient/Manage Identifier Types.
Attributes can be defined using the Advanced Administration/Person/Manage Person Attribute Types. In order for the additional attributes to be added to the Patient Registration XForm- open the form from the Advanced Administration/Xforms/Patient XForm Design and then right click on the Patient heading in the left hand pane and pick "Refresh". The new attributes will appear at the foot of the left pane.