Skip to content

Commit 1108da3

Browse files
committed
Added MPH lenient tests and fixed other failing test.
1 parent 16de303 commit 1108da3

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/com/imsweb/seerapi/client/mph/MphInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class MphInput {
99
* for rule : Do the tumors have ICD-O-3 histology codes that are different at the first (Xxxx), second (Xxxx), or third (xxXx) number?
1010
* If lenient mode is on 8000 is considered as NOS and be considered to match any 8nnn histologies.
1111
*/
12-
public enum MpHistologyMatchMode {
12+
public enum HistologyMatchMode {
1313
STRICT,
1414
LENIENT
1515
}

src/main/java/com/imsweb/seerapi/client/mph/MphService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import retrofit2.http.POST;
99
import retrofit2.http.Query;
1010

11-
import com.imsweb.seerapi.client.mph.MphInput.MpHistologyMatchMode;
11+
import com.imsweb.seerapi.client.mph.MphInput.HistologyMatchMode;
1212

1313
public interface MphService {
1414

@@ -27,6 +27,6 @@ public interface MphService {
2727
* @return a result indicating whether the two diseases are the same primary
2828
*/
2929
@POST("mph")
30-
Call<MphOutput> mph(@Body MphInputPair pair, @Query("histology-matching-mode") MpHistologyMatchMode matchMode);
30+
Call<MphOutput> mph(@Body MphInputPair pair, @Query("histology-matching-mode") HistologyMatchMode matchMode);
3131

3232
}

src/test/java/com/imsweb/seerapi/client/mph/MphTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import com.imsweb.seerapi.client.BadRequestException;
99
import com.imsweb.seerapi.client.SeerApi;
10-
import com.imsweb.seerapi.client.mph.MphInput.MpHistologyMatchMode;
10+
import com.imsweb.seerapi.client.mph.MphInput.HistologyMatchMode;
1111

1212
import static org.junit.Assert.assertEquals;
1313
import static org.junit.Assert.assertTrue;
@@ -131,13 +131,13 @@ public void testLenientMode() throws IOException {
131131
assertEquals("M12", result.getStep());
132132

133133
// specify STRICT
134-
result = _MPH.mph(new MphInputPair(input1, input2), MpHistologyMatchMode.STRICT).execute().body();
134+
result = _MPH.mph(new MphInputPair(input1, input2), HistologyMatchMode.STRICT).execute().body();
135135
assertEquals(9, result.getAppliedRules().size());
136136
assertEquals(MphOutput.Result.MULTIPLE_PRIMARIES, result.getResult());
137137
assertEquals("M12", result.getStep());
138138

139139
// specify LENIENT
140-
result = _MPH.mph(new MphInputPair(input1, input2), MpHistologyMatchMode.LENIENT).execute().body();
140+
result = _MPH.mph(new MphInputPair(input1, input2), HistologyMatchMode.LENIENT).execute().body();
141141
assertEquals(10, result.getAppliedRules().size());
142142
assertEquals(MphOutput.Result.SINGLE_PRIMARY, result.getResult());
143143
assertEquals("M13", result.getStep());

0 commit comments

Comments
 (0)