Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 4225

Show
Ignore:
Timestamp:
05/15/08 17:37:41 (8 months ago)
Author:
tmdugan
Message:

-- atd

* fixed patient name rule to account for 0 length strings for each part of the name

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/atd/src/org/openmrs/module/atd/ruleLibrary/patientName.java

    r4103 r4225  
    266266                String name = ""; 
    267267                 
    268                 if(lastName != null
     268                if(lastName != null&&lastName.length()>0
    269269                { 
    270270                        name+=Util.properCase(lastName); 
     
    272272                name+=", "; 
    273273                 
    274                 if(firstName != null
     274                if(firstName != null&&firstName.length()>0
    275275                { 
    276276                        name+=Util.properCase(firstName); 
    277277                } 
    278278                 
    279                 if(middleName != null
     279                if(middleName != null&&middleName.length()>0
    280280                { 
    281281                        name+=" "+Util.properCase(middleName);