Two additional patient identifiers have been created and added to the Registration App. The App definition is here. They are getting displayed during new registration and entries can be made, but post registration, it’s not possible to visualise/ edit them in the patient dashboard.
Both the new IDs have been added as a list to the Global property emr.extraPatientIdentifierTypes like below:
I had tried reproducing the error on the QA server before but was not able to save a new App definition, as the save button continued to stay in the disabled state (even after stopping the default/Built-in registration App 'referenceapplication.registrationapp.registerPatient '):
The global property should just be a comma-separated list of UUIDs. The extra stuff in there (double-quotes and [) means that the setting won’t be parsed correctly.
Thanks @dkayiwa
Now I’m able to save the App definition. Also to begin with, to keep things simple, I’m trying to add just one additional patient identifier
These were moved from global properties to metadata mappings.
The metadatamapping_metadata_term_mapping table has an entry for emr.extraPatientIdentifierTypes with code = emr.extraPatientIdentifierTypes, metadataClass = org.openmrs.module.metadatamapping.MetadataSet metadataUUID = someuuid. This means that the extra patient identifier types are mapped to a metadata set with that UUID. The metadatamapping_metadata_set table has one entry with that UUID.
You need to create a metadatamapping_metadata_set_member for each extra patient identifier.
In the metadatamapping_metadata_set_member table, metadata_set_id is a foreign key referencing that in the metadatamapping_metadata_set table. The metadata_class can be org.openmrs.PatientIdentifierType and metadata_uuid is the patient identifier type uuid.