This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | %macro calculateTotalCost(uninsuredAgeGroup1, uninsuredAgeGroup2, uninsuredAgeGroup3, uninsuredAgeGroup4, uninsuredAgeGroup5, uninsuredAgeGroup6, elec, blglu, renal, cbc, urin, pg, IV, stcx); | |
| /*age grouping variable*/ | |
| if age < 18 then age_grp=1; | |
| else if 18<=age<25 then age_grp=2; | |
| else if 25<=age<35 then age_grp=3; | |
| else if 35<=age<45 then age_grp=4; | |
| else if 45<=age<=64 then age_grp=5; | |
| else if age ge 65 then age_grp=6; | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public boolean isDuplicate(String id) { | |
| Key key = new Key(namespace, set, id); | |
| LOG.debug("Checking if seen: " + id); | |
| // Check the record/bin a few times incase there is some write contention | |
| int count = 0; | |
| Boolean duplicate; | |
| do { | |
| duplicate = checkDuplicate(key); | |
| } while (duplicate == null && count++ < RETRY_COUNT); |