Skip to content

Commit

Permalink
Changed behavior recode for 9421-9422 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
depryf committed Mar 20, 2021
1 parent e60c9e0 commit 8da8491
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Algorithms Version History

**Changes in version 3.2**

- Changed Behavior recode logic for 9421-9422 histology codes.

**Changes in version 3.1**

- Added new version of the ICCC algorithm and switched the default algorithm to that version.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public static String computeBehaviorRecode(String site, String hist, String beha
//Step 2, The behavior code for all the urinary bladder cases is set to a value of 3 (malignant).
if (iSite >= 670 && iSite <= 679)
iBehavior = 3;
//Step 3, Any case with an ICD-O-3 behavior of 1 and ICD-O-3 histology of 9421-9422 will have the behavior set to 3.
if (iBehavior == 1 && (iHist == 9421 || iHist == 9422))
iBehavior = 3;

//Step 3, Any case with an ICD-O-3 behavior of 1 and ICD-O-3 histology of 9421-9422 will have the behavior set to 3
// - this step was removed

//Step 4, The recode is created based on primary site, ICD-O-3 histology, and ICD-O-3 behavior:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void testComputeBehaviorRecode() {
rec.put(_PROP_HISTOLOGY_3, "9421");
rec.put(_PROP_DATE_OF_DIAGNOSIS_YEAR, "2005");
//All cases not covered above, with an ICD-O-3 behavior code of 3 (malignant) are coded to 3 (malignant) in the new variable.
Assert.assertEquals("3", computeBehaviorRecode(rec)); //behavior is changed from 1 to 3
Assert.assertEquals("5", computeBehaviorRecode(rec)); //behavior NO LONGER changed from 1 to 3
//Not in the special histology 9421 & 9422
rec.put(_PROP_HISTOLOGY_3, "9420");
Assert.assertEquals("5", computeBehaviorRecode(rec));
Expand All @@ -86,8 +86,6 @@ public void testComputeBehaviorRecode() {
rec.put(_PROP_HISTOLOGY_3, "8000");
rec.put(_PROP_DATE_OF_DIAGNOSIS_YEAR, "2005");
Assert.assertEquals("1", computeBehaviorRecode(rec));
rec.put(_PROP_HISTOLOGY_3, "9422");
Assert.assertEquals("3", computeBehaviorRecode(rec));

//Cases with ICD-O-3 behavior code of 2 (in situ) are coded as 2 (in situ) in the new variable.
rec.put(_PROP_PRIMARY_SITE, "C669");
Expand Down

0 comments on commit 8da8491

Please sign in to comment.