Erick,
I haven't tested this, but if you know the id of the patient identifier, you
should be able to do something like this:
org.openmrs.PatientIdentifier identifier = patient.getPatientIdentifier(123);
identifier.setVoided(false);
identifier.setVoidReason("");
identifier.setVoidedBy(null);
patient.savePatientIdentifier(identifier);
Take care,
Mark
From: [email protected] [mailto:[email protected]] On Behalf Of
Erick Mugoma
Sent: Monday, March 26, 2012 12:41 AM
To: [email protected]
Subject: [OPENMRS-IMPLEMENTERS] Groovy code to Un-void Patient Identifier
Hi
Can someone show me how to write a simple groovy code that can be used to
un-void a specific patient Identifier. I don't want to do this using SQL since
we are running the sync module and I want the changes to be propagated to all
the children.
Any help will be greatly appreciated.
Thanks
Erick
________________________________
Click here to
unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l>
from OpenMRS Implementers' mailing list
_________________________________________
To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-implement-l" in the body
(not the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]