METHOD_0 ( ) { org . IDENT_0 . module . IDENT_1 . IDENT_2 p = new org . IDENT_0 . module . IDENT_1 . METHOD_1 ( ) ; org . IDENT_0 . module . IDENT_1 . METHOD_1 IDENT_3 = new org . IDENT_0 . module . IDENT_1 . METHOD_1 ( ) ; p . METHOD_2 ( org . openmrs . api . context . Context . METHOD_3 ( ) . METHOD_4 ( ) ) ; p . setName ( STRING_0 ) ; IDENT_3 . setName ( STRING_1 ) ; IDENT_3 . METHOD_5 ( ( STRING_2 + STRING_3 ) ) ; s . METHOD_6 ( IDENT_3 ) ; p . METHOD_5 ( ( STRING_2 + STRING_4 ) ) ; org . openmrs . api . context . Context . METHOD_3 ( ) . METHOD_7 ( STRING_5 ) ; java . util . List < org . openmrs . IDENT_4 > IDENT_5 = s . METHOD_8 ( p ) ; java . util . List < org . openmrs . IDENT_4 > IDENT_6 = null ; int IDENT_7 = IDENT_5 . size ( ) ; p . METHOD_5 ( ( ( STRING_2 + STRING_6 ) + ( IDENT_3 . METHOD_9 ( ) ) ) ) ; IDENT_5 = s . METHOD_8 ( p ) ; IDENT_6 = s . METHOD_8 ( IDENT_3 ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( org . IDENT_0 . module . IDENT_1 . METHOD_1 ) { if ( ( IDENT_8 . METHOD_10 ( ) ) == null ) { return new java . util . ArrayList < org . openmrs . IDENT_4 > ( ) ; } java . lang . String query = IDENT_8 . METHOD_10 ( ) ; if ( ( query . indexOf ( STRING_7 3 ) ) == 0 ) { query = query . substring ( 1 ) ; } org . openmrs . IDENT_9 IDENT_10 = null ; java . util . Date IDENT_11 = null ; java . util . Date IDENT_12 = null ; org . openmrs . IDENT_13 IDENT_14 = null ; org . openmrs . IDENT_15 IDENT_16 = null ; java . lang . String IDENT_17 = null ; java . util . List < org . openmrs . IDENT_4 > IDENT_18 = null ; java . util . List < org . openmrs . IDENT_15 > IDENT_19 = new java . util . ArrayList < org . openmrs . IDENT_15 > ( ) ; java . util . List < org . openmrs . IDENT_4 > IDENT_20 = new java . util . ArrayList < org . openmrs . IDENT_4 > ( ) ; org . openmrs . IDENT_21 location = null ; java . lang . String IDENT_22 = "" ; java . lang . String [ ] IDENT_23 = query . split ( STRING_8 ) ; for ( int i = 0 ; i < ( IDENT_23 . length ) ; i ++ ) { if ( ( IDENT_23 [ i ] . indexOf ( STRING_9 ) ) != ( - 1 ) ) { IDENT_10 = org . openmrs . api . context . Context . METHOD_11 ( ) . METHOD_12 ( IDENT_23 [ i ] . substring ( INT_0 ) ) ; } else if ( ( IDENT_23 [ i ] . indexOf ( STRING_10 ) ) != ( - 1 ) ) { location = org . openmrs . api . context . Context . METHOD_13 ( ) . METHOD_14 ( IDENT_23 [ i ] . substring ( 9 ) ) ; } else if ( ( IDENT_23 [ i ] . indexOf ( STRING_11 ) ) != ( - 1 ) ) { IDENT_11 = METHOD_15 ( IDENT_23 [ i ] . substring ( 10 ) ) ; } else if ( ( IDENT_23 [ i ] . indexOf ( STRING_7 4 ) ) != ( - 1 ) ) { IDENT_12 = METHOD_15 ( IDENT_23 [ i ] . substring ( 8 ) ) ; } else if ( ( IDENT_23 [ i ] . indexOf ( STRING_12 ) ) != ( - 1 ) ) { IDENT_18 = new java . util . ArrayList < org . openmrs . IDENT_4 > ( ) ; java . lang . String [ ] IDENT_24 = IDENT_23 [ i ] . substring ( 7 ) . split ( STRING_7 2 ) ; for ( int j = 0 ; j < ( IDENT_24 . length ) ; j ++ ) { IDENT_18 . addAll ( METHOD_8 ( METHOD_16 ( IDENT_24 [ j ] ) ) ) ; } } else if ( ( IDENT_23 [ i ] . indexOf ( STRING_13 ) ) != ( - 1 ) ) { java . lang . String [ ] IDENT_25 = IDENT_23 [ i ] . substring ( 10 ) . split ( STRING_7 2 ) ; for ( int k = 0 ; k < ( IDENT_25 . length ) ; k ++ ) { IDENT_19 . addAll ( METHOD_17 ( METHOD_16 ( IDENT_25 [ k ] ) ) ) ; IDENT_20 . addAll ( METHOD_8 ( METHOD_16 ( IDENT_25 [ k ] ) ) ) ; } } else if ( ( IDENT_23 [ i ] . indexOf ( STRING_7 0 ) ) != ( - 1 ) ) { IDENT_17 = IDENT_23 [ i ] . substring ( 9 ) ; IDENT_14 = org . openmrs . api . context . Context . METHOD_18 ( ) . METHOD_19 ( IDENT_17 ) ; } else if ( ( IDENT_23 [ i ] . indexOf ( STRING_7 1 ) ) != ( - 1 ) ) { IDENT_17 = IDENT_23 [ i ] . substring ( 8 ) ; IDENT_16 = org . openmrs . api . context . Context . METHOD_20 ( ) . METHOD_21 ( IDENT_17 ) ; } else if ( ( IDENT_23 [ i ] . indexOf ( STRING_14 ) ) != ( - 1 ) ) { IDENT_22 = IDENT_23 [ i ] . substring ( INT_1 ) ; } } java . util . List < org . openmrs . IDENT_9 > IDENT_26 = new java . util . ArrayList < org . openmrs . IDENT_9 > ( ) ; java . util . List < org . openmrs . IDENT_13 > IDENT_27 = new java . util . ArrayList < org . openmrs . IDENT_13 > ( ) ; java . util . List < org . openmrs . IDENT_4 > IDENT_5 = new java . util . ArrayList < org . openmrs . IDENT_4 > ( ) ; IDENT_26 . add ( IDENT_10 ) ; IDENT_27 . add ( IDENT_14 ) ; if ( IDENT_18 != null ) { IDENT_5 = IDENT_18 ; java . util . Iterator < org . openmrs . IDENT_4 > IDENT_28 = IDENT_5 . iterator ( ) ; while ( IDENT_28 . hasNext ( ) ) { org . openmrs . IDENT_4 IDENT_29 = IDENT_28 . next ( ) ; if ( ( ( ( ( IDENT_11 != null ) && ( IDENT_29 . METHOD_22 ( ) . METHOD_23 ( IDENT_11 ) ) ) || ( ( IDENT_12 != null ) && ( IDENT_29 . METHOD_22 ( ) . METHOD_24 ( IDENT_12 ) ) ) ) || ( ( IDENT_10 != null ) && ( ! ( IDENT_29 . METHOD_25 ( ) . equals ( IDENT_10 ) ) ) ) ) || ( ( IDENT_16 != null ) && ( ! ( IDENT_29 . METHOD_26 ( ) . equals ( IDENT_16 ) ) ) ) ) { IDENT_28 . remove ( ) ; } else if ( IDENT_14 != null ) { java . util . Iterator < java . util . Set < org . openmrs . IDENT_13 > > IDENT_30 = IDENT_29 . METHOD_27 ( ) . values ( ) . iterator ( ) ; boolean IDENT_31 = false ; while ( ( IDENT_30 . hasNext ( ) ) && ( ! IDENT_31 ) ) { java . util . Set < org . openmrs . IDENT_13 > IDENT_32 = IDENT_30 . next ( ) ; if ( IDENT_32 . contains ( IDENT_14 ) ) { IDENT_31 = true ; } } if ( ! IDENT_31 ) { IDENT_28 . remove ( ) ; } } } } else { if ( IDENT_17 != null ) { IDENT_5 = org . openmrs . api . context . Context . METHOD_11 ( ) . METHOD_28 ( IDENT_16 , location , IDENT_11 , IDENT_12 , null , IDENT_26 , IDENT_27 , null , null , Boolean . IDENT_33 ) ; } else { IDENT_5 = org . openmrs . api . context . Context . METHOD_11 ( ) . METHOD_28 ( IDENT_16 , location , IDENT_11 , IDENT_12 , null , IDENT_26 , null , null , null , Boolean . IDENT_33 ) ; } } if ( IDENT_19 != null ) { java . util . Iterator < org . openmrs . IDENT_4 > IDENT_28 = IDENT_5 . iterator ( ) ; java . util . Iterator < org . openmrs . IDENT_4 > IDENT_34 ; while ( IDENT_28 . hasNext ( ) ) { org . openmrs . IDENT_4 IDENT_29 = IDENT_28 . next ( ) ; if ( IDENT_19 . contains ( IDENT_29 . METHOD_26 ( ) ) ) { IDENT_34 = IDENT_20 . iterator ( ) ; boolean IDENT_35 = false ; while ( ( IDENT_34 . hasNext ( ) ) && ( ! IDENT_35 ) ) { org . openmrs . IDENT_4 IDENT_36 = IDENT_34 . next ( ) ; if ( ( IDENT_36 . METHOD_26 ( ) . equals ( IDENT_29 . METHOD_26 ( ) ) ) && ( IDENT_36 . METHOD_22 ( ) . METHOD_24 ( IDENT_29 . METHOD_22 ( ) ) ) ) { IDENT_28 . remove ( ) ; IDENT_35 = true ; } } } } } if ( IDENT_22 . equals ( STRING_15 ) ) { boolean IDENT_37 ; java . util . Iterator < org . openmrs . IDENT_4 > IDENT_28 = IDENT_5 . iterator ( ) ; while ( IDENT_28 . hasNext ( ) ) { IDENT_37 = true ; org . openmrs . IDENT_4 IDENT_29 = IDENT_28 . next ( ) ; java . util . Iterator < org . openmrs . IDENT_38 > IDENT_39 = IDENT_29 . METHOD_29 ( ) . iterator ( ) ; while ( IDENT_39 . hasNext ( ) ) { org . openmrs . IDENT_38 o = IDENT_39 . next ( ) ; if ( o . METHOD_30 ( ) ) { IDENT_37 = false ; break ; } } if ( IDENT_37 ) { IDENT_28 . remove ( ) ; } } } return IDENT_5 ; }
org . junit . Assert . assertEquals ( IDENT_5 . size ( ) , ( IDENT_7 - ( IDENT_6 . size ( ) ) ) )