Email from Jeremy Keeton (jkeeton@pih.org) @ 7/16/2008 3:02 AM EDT
===== BEGIN email snippet
I think I’ve figured out what’s going on here. I did the following:
1. I generated the first PDF called “bobete_emr.pdf” directly from the emr
2. I downloaded the report design and the dataset directly from the server and opened them up in the BIRT RCP designer
3. I setup the dataset without editing the datatypes under “Select the file and columns for the dataset” and generated “bobete_wo_datatypes.pdf”
4. Lastly I setup the dataset and edited the datatypes (only the ones that were dates) and generated “bobete_w_datatypes.pdf” –THIS generated the correct report with the correct numbers.
So it looks like somehow BIRT in OpenMRS doesn’t know that the following report params are dates:
Any of the report params with the word date, obs_datetime and the column Earliest ARV start
So when it does a comparison against these dates (i.e. “DateTimeSpan.years(dataSetRowBirthdate?,paramsReport End Date? )>14”) it sees “Birthdate” as a string and counts ‘0’ patients.
One other note, there was a warning in the catalina.log file for every patient that says “There exists an error in toDate method” Unparsable date: “2007-08-16”. I’ve attached a sample, I couldn’t attach the whole log file because for some reason it was 760MB after running this, so I'm guessing this means there was a very long error for every patient.
===== END email snippet