I wrote a Groovy logic rule for this for one specific date format for
birthdates for an implementation we have (on an ancient OpenMRS 1.6.x
setup). I essentially took the date of birth and arranged individual fields
from it into the format I needed. I then used lookup fn.logic to run the
rule and output the date.
I don’t know if one could use Groovy to write a generalized data format
rule though. I imagine a more general logic rule could also be written in
Java using a DateFormatter?
There may be more elegant solutions of course
Chief Executive Officer
Interactive Health Solutions