Skip to content

Commit

Permalink
Urinary - 8746/3 and 8721/3 subtypes added to 8720/3
Browse files Browse the repository at this point in the history
  • Loading branch information
bekeles committed Dec 20, 2024
1 parent dd0779b commit 601d112
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/imsweb/mph/MphConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ private MphConstants() {
content.put("8380", "8380");
content.put("8144", "8144");
content.put("8480", "8480");
content.put("8746/3", "8746/3");
content.put("8721/3", "8721/3");
content.put("8013/3", "8013/3");
content.put("8041/3", "8041/3");
content.put("8249/3", "8249/3");
Expand Down Expand Up @@ -684,6 +686,8 @@ private MphConstants() {
content.put("8144", "8140"); // Carcinoma NOS 8010
content.put("8480", "8140"); // Carcinoma NOS 8010
content.put("8720/3", "8720/3"); // Malignant melanoma 8720/3
content.put("8746/3", "8720/3"); // Malignant melanoma 8720/3
content.put("8721/3", "8720/3"); // Malignant melanoma 8720/3
content.put("8714/3", "8714/3"); // Malignant perivascular epithelioid cell tumor 8714/3
content.put("8246/3", "8246/3"); // Neuroendocrine carcinoma, NOS 8246/3
content.put("8013/3", "8246/3"); // Neuroendocrine carcinoma, NOS 8246/3
Expand Down
16 changes: 16 additions & 0 deletions src/test/java/com/imsweb/mph/Mph2018RuleTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -4253,6 +4253,13 @@ public void test2018Urinary() {
Assert.assertEquals(ruleCountToTest, output.getAppliedRules().size());
Assert.assertTrue(output.getReason().contains("tumors that are two or more different subtypes/variants in Column 3, Table 2"));
Assert.assertEquals(ruleStepToTest, output.getStep());
i1.setHistologyIcdO3("8746");
i2.setHistologyIcdO3("8721");
output = _utils.computePrimaries(i1, i2);
Assert.assertEquals(MphUtils.MpResult.MULTIPLE_PRIMARIES, output.getResult());
Assert.assertEquals(ruleCountToTest, output.getAppliedRules().size());
Assert.assertTrue(output.getReason().contains("tumors that are two or more different subtypes/variants in Column 3, Table 2"));
Assert.assertEquals(ruleStepToTest, output.getStep());
// Does not apply.
i1.setHistologyIcdO3("8144");
i2.setHistologyIcdO3("8010");
Expand Down Expand Up @@ -4334,6 +4341,15 @@ public void test2018Urinary() {
Assert.assertEquals(ruleCountToTest, output.getAppliedRules().size());
Assert.assertTrue(output.getReason().contains("tumors that are on the same row in Table 2"));
Assert.assertEquals(ruleStepToTest, output.getStep());
i1.setHistologyIcdO3("8720");
i1.setBehaviorIcdO3("3");
i2.setHistologyIcdO3("8746");
i2.setBehaviorIcdO3("3");
output = _utils.computePrimaries(i1, i2);
Assert.assertEquals(MphUtils.MpResult.SINGLE_PRIMARY, output.getResult());
Assert.assertEquals(ruleCountToTest, output.getAppliedRules().size());
Assert.assertTrue(output.getReason().contains("tumors that are on the same row in Table 2"));
Assert.assertEquals(ruleStepToTest, output.getStep());
i1.setHistologyIcdO3("8144");
i1.setBehaviorIcdO3("2");
i2.setHistologyIcdO3("8140");
Expand Down

0 comments on commit 601d112

Please sign in to comment.