Commit 0eafe77d authored by R.W.Majeed's avatar R.W.Majeed

fixed parse error for empty deceased date

parent 6ec3fc05
......@@ -164,7 +164,8 @@ public class GroupedXMLReader implements ObservationSupplier {
// patient known to be deceased
currentPatient.setDeceased(true);
String date = patientData.get("deceased");
if( date != null ){
// will be empty string for <deceased/>
if( date != null && date.length() != 0 ){
try {
currentPatient.setDeathDate(DateTimeAccuracy.parsePartialIso8601(date));
} catch (ParseException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment