how do i check whether an encounter type is new @wluyima ?  

sofar all i have done at this pointer is put a test if(encounterType.getEncounterTypeId() != null) arround view