Skip to content

Commit

Permalink
Bug in 2018+ lung rule (#145)
Browse files Browse the repository at this point in the history
- Added a unit test to fail
  • Loading branch information
bekeles committed Sep 30, 2024
1 parent c49ce6a commit e35c700
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/com/imsweb/mph/Mph2018RuleTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -2724,6 +2724,13 @@ public void test2018Lung() {
i2.setHistologyIcdO3("8083");
output = _utils.computePrimaries(i1, i2);
Assert.assertNotEquals(ruleStepToTest, output.getStep());
// Small cell carcinoma 8041/3 row: “Neuroendocrine carcinoma, NOS” removed from beneath Typical Carcinoid 8240/3 and added as its own subtype/variant with the code 8246/3
i1.setHistologyIcdO3("8041");
i2.setHistologyIcdO3("8240");
i1.setBehaviorIcdO3("3");
i2.setBehaviorIcdO3("3");
output = _utils.computePrimaries(i1, i2);
Assert.assertNotEquals(ruleStepToTest, output.getStep());
//Histologies not in table->
i1.setHistologyIcdO3("8000");
i2.setHistologyIcdO3("8002");
Expand Down

0 comments on commit e35c700

Please sign in to comment.