select count(*) from patient_identifier_type where name='Health Id'; Adding an identifier for healthId set @uuid = uuid(); insert into patient_identifier_type(name,description, creator, date_created, location_behavior, uniqueness_behavior, uuid) VALUES('Health Id','Health Identifier type', 1, curdate(), 'NOT_USED', 'UNIQUE', @uuid); Adding a global property for extra patient identifier type set @hid_identifier_uuid = null; select uuid into @hid_identifier_uuid from patient_identifier_type where name = 'Health Id'; update global_property set property_value=@hid_identifier_uuid where property = 'emr.extraPatientIdentifierTypes';