I have created a custom patient id comprising a 0 character string. Everything seems to be working fine except the id no longer shows in the top right of the patient related screens and instead is replaced by the text "Patient ID ". By memory the out of the box Reference App had a 6 character id. Could anyone suggest a small modification that would allow the new id to display as intended?
Is this something you can easily reproduce at int-refapp.openmrs.org for us to have a look?
I can try, but it will mean replacing the standard Patient Registration form with an Xform. Is this OK?
I will look at it immediately and revert.
Daniel, I have st everything to use the x form for registration, but have not done much in the way of customization. I have created an id type like ours, have upload a pool of ids and set autogen on.
The id is generating OK but I have provoked an error where it also demands an OpenMRS ID. I have tried to turn off all the mandatory settings but must have missed something. Maybe you will be quicker.
Once a new patient is created then with this id you should see the problem.
@mafrica i think you could have been affected by a server restart. Can you try turning off and check again? http://int02.openmrs.org/openmrs/admin/patients/patientIdentifierType.form?patientIdentifierTypeId=3
I had forgotten a setting. Now sorted. Take a look at patient Ivanka Trump
Good. I was able to finally reproduce it. Let me investigate.
@mafrica the identifier displayed there is the one whose type is pointed to by the setting named “emr.primaryIdentifierType”. So if you set the value of this setting to the uuid of the identfier type you are using, it should display as expected.
Perfect. Thank you.
If someone encounters this and he was not helped by the above, possibly your running emrapi 1.27.0 or later. See commit : https://github.com/openmrs/openmrs-module-emrapi/commit/9f1eb1fee481deb9ff34d883558c1171f0918f72#diff-0e8ec544c2dc4fee40711c8b5f5c8f29 .
The GP “emr.primaryIdentifierType” was converted/moved to a metadata mapping here. So you probably want to update the metadata_term_mapping of name = “emr.primaryIdentifierType” and set its metadata_uuid with uuid of your new identifierType. Hope that would help someone.