예제 #1
0
 def test_corpus_uteri_sarcomas_cancer_IIIC(self):
     self.assertEquals(
         'IIIC', tnm_stage('C54.0', 'T1', 'N1', 'M0', '', '', '', 'S'))
     self.assertEquals(
         'IIIC', tnm_stage('C54.0', 'T2', 'N1', 'M0', '', '', '', 'S'))
     self.assertEquals(
         'IIIC', tnm_stage('C54.0', 'T3', 'N1', 'M0', '', '', '', 'S'))
예제 #2
0
 def test_corpus_uteri_sarcomas_cancer_IVA(self):
     self.assertEquals(
         'IVA', tnm_stage('C54.0', 'T4', 'N0', 'M0', '', '', '', 'S'))
     self.assertEquals(
         'IVA', tnm_stage('C54.0', 'T4', 'N1', 'M0', '', '', '', 'S'))
     self.assertEquals(
         'IVA', tnm_stage('C54.0', 'T4', 'N2', 'M0', '', '', '', 'S'))
예제 #3
0
 def test_colon_cancer_IIIA(self):
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1a', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1a', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1b', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1b', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1c', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1c', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N2a', 'M0', 'C'))
예제 #4
0
 def test_colon_cancer_IIIA(self):
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1a', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1a', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1b', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1b', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N1c', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T2', 'N1c', 'M0', 'C'))
     self.assertEquals('IIIA', tnm_stage('C18.0', 'T1', 'N2a', 'M0', 'C'))
예제 #5
0
 def test_lung_cancer_IIIA(self):
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T1a', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T1b', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T2a', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T2b', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T3', 'N1', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T3', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T4', 'N0', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T4', 'N1', 'M0'))
예제 #6
0
 def test_lung_cancer_IIIA(self):
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T1a', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T1b', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T2a', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T2b', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T3', 'N1', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T3', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T4', 'N0', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C34.0', 'T4', 'N1', 'M0'))
예제 #7
0
 def test_lung_cancer_IB(self):
     self.assertEquals('IB', tnm_stage('C34.0', 'T2a', 'N0', 'M0'))
예제 #8
0
 def test_stomach_cancer_0(self):
     self.assertEquals('0', tnm_stage('C16.9', 'Tis', 'N0', 'M0'))
예제 #9
0
 def test_stomach_cancer_IIIC(self):
     self.assertEquals('IIIC', tnm_stage('C16.9', 'T4b', 'N2', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C16.9', 'T4b', 'N3', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C16.9', 'T4a', 'N3', 'M0'))
예제 #10
0
 def test_breast_cancer_IV(self):
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N0', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T0', 'N1mi', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N1mi', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T0', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N0', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N0', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T0', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T4', 'N0', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T4', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T4', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'Tis', 'N3', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N3', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N3', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N3', 'M1'))
예제 #11
0
 def test_breast_cancer_IB(self):
     self.assertEquals('IB', tnm_stage('C50.0', 'T0', 'N1mi', 'M0'))
     self.assertEquals('IB', tnm_stage('C50.0', 'T1', 'N1mi', 'M0'))
예제 #12
0
 def test_cervix_uteri_cancer_IVA(self):
     self.assertEquals('IVA', tnm_stage('C53.0', 'T4', 'N0', 'M0'))
     self.assertEquals('IVA', tnm_stage('C53.0', 'T4', 'N1', 'M0'))
 def test_corpus_uteri_sarcomas_cancer_IIIC(self):
     self.assertEquals('IIIC', tnm_stage('C54.0', 'T1', 'N1', 'M0', '', '', '', 'S'))
     self.assertEquals('IIIC', tnm_stage('C54.0', 'T2', 'N1', 'M0', '', '', '', 'S'))
     self.assertEquals('IIIC', tnm_stage('C54.0', 'T3', 'N1', 'M0', '', '', '', 'S'))
 def test_cervix_uteri_cancer_0(self):
     self.assertEquals('0', tnm_stage('C53.0', 'Tis', 'N0', 'M0'))
 def test_cervix_uteri_cancer_IVB(self):
     self.assertEquals('IVB', tnm_stage('C53.0', 'Tis', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1a', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1a1', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1a2', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1b', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1b1', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1b2', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2a', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2a1', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2a2', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2b', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T3', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T3a', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T3b', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T4', 'N0', 'M1'))
 def test_cervix_uteri_cancer_IVA(self):
     self.assertEquals('IVA', tnm_stage('C53.0', 'T4', 'N0', 'M0'))
     self.assertEquals('IVA', tnm_stage('C53.0', 'T4', 'N1', 'M0'))
 def test_cervix_uteri_cancer_IIIB(self):
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T3b', 'N0', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T3b', 'N1', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T1', 'N1', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T2', 'N1', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T3', 'N1', 'M0'))
예제 #18
0
 def test_breast_cancer_IA(self):
     self.assertEquals('IA', tnm_stage('C50.0', 'T1', 'N0', 'M0'))
예제 #19
0
 def test_breast_cancer_0(self):
     self.assertEquals('0', tnm_stage('C50.0', 'Tis', 'N0', 'M0'))
예제 #20
0
 def test_stomach_cancer_IA(self):
     self.assertEquals('IA', tnm_stage('C16.9', 'T1', 'N0', 'M0'))
예제 #21
0
 def test_lung_cancer_0(self):
     self.assertEquals('0', tnm_stage('C34.0', 'Tis', 'N0', 'M0'))
예제 #22
0
 def test_stomach_cancer_IIB(self):
     self.assertEquals('IIB', tnm_stage('C16.9', 'T4a', 'N0', 'M0'))
     self.assertEquals('IIB', tnm_stage('C16.9', 'T3', 'N1', 'M0'))
     self.assertEquals('IIB', tnm_stage('C16.9', 'T2', 'N2', 'M0'))
     self.assertEquals('IIB', tnm_stage('C16.9', 'T1', 'N3', 'M0'))
 def test_corpus_uteri_sarcomas_cancer_I(self):
     self.assertEquals('I', tnm_stage('C54.0', 'T1', 'N0', 'M0', '', '', '', 'S'))
예제 #24
0
 def test_stomach_cancer_IIIC(self):
     self.assertEquals('IIIC', tnm_stage('C16.9', 'T4b', 'N2', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C16.9', 'T4b', 'N3', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C16.9', 'T4a', 'N3', 'M0'))
예제 #25
0
 def test_cervix_uteri_cancer_I(self):
     self.assertEquals('I', tnm_stage('C53.0', 'T1', 'N0', 'M0'))
예제 #26
0
    def test_stomach_cancer_IV(self):
        self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N3', 'M1'))
예제 #27
0
 def test_breast_cancer_IV(self):
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N0', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T0', 'N1mi', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N1mi', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T0', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N0', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N0', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T0', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T4', 'N0', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T4', 'N1', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T4', 'N2', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'Tis', 'N3', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T1', 'N3', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T2', 'N3', 'M1'))
     self.assertEquals('IV', tnm_stage('C50.0', 'T3', 'N3', 'M1'))
예제 #28
0
 def test_stomach_cancer_0(self):
     self.assertEquals('0', tnm_stage('C16.9', 'Tis', 'N0', 'M0'))
예제 #29
0
 def test_breast_cancer_IIIA(self):
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T0', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T1', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T2', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T3', 'N1', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T3', 'N2', 'M0'))
예제 #30
0
 def test_colon_cancer_0(self):
     self.assertEquals('0', tnm_stage('C18.0', 'Tis', 'N0', 'M0', ''))
예제 #31
0
    def test_stomach_cancer_IV(self):
        self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'Tis', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T0', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T1', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T2', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T3', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4a', 'N3', 'M1'))

        self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N0', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N1', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N2', 'M1'))
        self.assertEquals('IV', tnm_stage('C16.9', 'T4b', 'N3', 'M1'))
예제 #32
0
 def test_colon_cancer_I(self):
     self.assertEquals('I', tnm_stage('C18.0', 'T1', 'N0', 'M0', 'A'))
     self.assertEquals('I', tnm_stage('C18.0', 'T2', 'N0', 'M0', 'A'))
예제 #33
0
 def test_stomach_cancer_IA(self):
     self.assertEquals('IA', tnm_stage('C16.9', 'T1', 'N0', 'M0'))
예제 #34
0
 def test_colon_cancer_IIC(self):
     self.assertEquals('IIC', tnm_stage('C18.0', 'T4b', 'N0', 'M0', 'B'))
예제 #35
0
 def test_lung_cancer_IIB(self):
     self.assertEquals('IIB', tnm_stage('C34.0', 'T2b', 'N1', 'M0'))
     self.assertEquals('IIB', tnm_stage('C34.0', 'T3', 'N0', 'M0'))
예제 #36
0
 def test_breast_cancer_IIIB(self):
     self.assertEquals('IIIB', tnm_stage('C50.0', 'T4', 'N0', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C50.0', 'T4', 'N1', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C50.0', 'T4', 'N2', 'M0'))
예제 #37
0
 def test_lung_cancer_IV(self):
     self.assertEquals('IV', tnm_stage('C34.0', 'Tis', 'N0', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N0', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N0', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N0', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N0', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N1', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N1', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N1', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N1', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N0', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N2', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N2', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N2', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N2', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N1', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N2', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N0', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N1', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N3', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N3', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N3', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N3', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N3', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N2', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N3', 'M1a'))
     self.assertEquals('IV', tnm_stage('C34.0', 'Tis', 'N0', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N0', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N0', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N0', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N0', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N1', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N1', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N1', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N1', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N0', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N2', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N2', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N2', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N2', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N1', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N2', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N0', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N1', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1a', 'N3', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T1b', 'N3', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2a', 'N3', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T2b', 'N3', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T3', 'N3', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N2', 'M1b'))
     self.assertEquals('IV', tnm_stage('C34.0', 'T4', 'N3', 'M1b'))
예제 #38
0
 def test_colon_cancer_IIIC(self):
     self.assertEquals('IIIC', tnm_stage('C18.0', 'T4a', 'N2a', 'M0', 'C'))
     self.assertEquals('IIIC', tnm_stage('C18.0', 'T3', 'N2b', 'M0', 'C'))
     self.assertEquals('IIIC', tnm_stage('C18.0', 'T4a', 'N2b', 'M0', 'C'))
     self.assertEquals('IIIC', tnm_stage('C18.0', 'T4b', 'N1', 'M0', 'C'))
     self.assertEquals('IIIC', tnm_stage('C18.0', 'T4b', 'N2', 'M0', 'C'))
예제 #39
0
 def test_lung_cancer_IA(self):
     self.assertEquals('IA', tnm_stage('C34.0', 'T1a', 'N0', 'M0'))
     self.assertEquals('IA', tnm_stage('C34.0', 'T1b', 'N0', 'M0'))
예제 #40
0
    def test_colon_cancer_IVA(self):
        self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N0', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2', 'M1a', ''))

        self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N1c', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N1c', 'M1a', ''))

        self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2b', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2b', 'M1a', ''))

        self.assertEquals('IVA', tnm_stage('C18.0', 'Tis', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T1', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T2', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T3', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4a', 'N2a', 'M1a', ''))
        self.assertEquals('IVA', tnm_stage('C18.0', 'T4b', 'N2a', 'M1a', ''))
    def test_corpus_uteri_sarcomas_cancer_IVB(self):
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1a', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1b', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1c', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T2', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T3', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T3a', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T3b', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T4', 'N0', 'M1', '', '', '', 'S'))

        self.assertEquals('IVB', tnm_stage('C54.0', 'T1', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1a', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1b', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1c', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T2', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T3', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T3a', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T3b', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T4', 'N1', 'M1', '', '', '', 'S'))

        self.assertEquals('IVB', tnm_stage('C54.0', 'T1', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1a', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1b', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T1c', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T2', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T3', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T3a', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T3b', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals('IVB', tnm_stage('C54.0', 'T4', 'N2', 'M1', '', '', '', 'S'))
예제 #42
0
 def test_corpus_uteri_carcinomas_cancer_IIIA(self):
     self.assertEquals('IIIA', tnm_stage('C54.0', 'T3a', 'N0', 'M0', '', '', '', 'C'))
예제 #43
0
 def test_cervix_uteri_cancer_IIIB(self):
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T3b', 'N0', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T3b', 'N1', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T1', 'N1', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T2', 'N1', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C53.0', 'T3', 'N1', 'M0'))
예제 #44
0
    def test_corpus_uteri_sarcomas_cancer_IVB(self):
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1a', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1b', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1c', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T2', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T3', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T3a', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T3b', 'N0', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T4', 'N0', 'M1', '', '', '', 'S'))

        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1a', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1b', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1c', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T2', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T3', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T3a', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T3b', 'N1', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T4', 'N1', 'M1', '', '', '', 'S'))

        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1a', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1b', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T1c', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T2', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T3', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T3a', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T3b', 'N2', 'M1', '', '', '', 'S'))
        self.assertEquals(
            'IVB', tnm_stage('C54.0', 'T4', 'N2', 'M1', '', '', '', 'S'))
예제 #45
0
 def test_cervix_uteri_cancer_IVB(self):
     self.assertEquals('IVB', tnm_stage('C53.0', 'Tis', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1a', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1a1', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1a2', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1b', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1b1', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T1b2', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2a', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2a1', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2a2', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T2b', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T3', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T3a', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T3b', 'N0', 'M1'))
     self.assertEquals('IVB', tnm_stage('C53.0', 'T4', 'N0', 'M1'))
예제 #46
0
 def test_breast_cancer_IB(self):
     self.assertEquals('IB', tnm_stage('C50.0', 'T0', 'N1mi', 'M0'))
     self.assertEquals('IB', tnm_stage('C50.0', 'T1', 'N1mi', 'M0'))
예제 #47
0
 def test_corpus_uteri_sarcomas_cancer_IIIB(self):
     self.assertEquals(
         'IIIB', tnm_stage('C54.0', 'T3b', 'N0', 'M0', '', '', '', 'S'))
예제 #48
0
 def test_breast_cancer_IIIB(self):   
     self.assertEquals('IIIB', tnm_stage('C50.0', 'T4', 'N0', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C50.0', 'T4', 'N1', 'M0'))
     self.assertEquals('IIIB', tnm_stage('C50.0', 'T4', 'N2', 'M0'))
 def test_corpus_uteri_carcinomas_cancer_IIIB(self):
     self.assertEquals('IIIB', tnm_stage('C54.0', 'T3b', 'N0', 'M0', '', '', '', 'C'))
예제 #50
0
 def test_breast_cancer_IIIC(self):
     self.assertEquals('IIIC', tnm_stage('C50.0', 'Tis', 'N3', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C50.0', 'T1', 'N3', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C50.0', 'T2', 'N3', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C50.0', 'T3', 'N3', 'M0'))
예제 #51
0
 def test_breast_cancer_IA(self):
     self.assertEquals('IA', tnm_stage('C50.0', 'T1', 'N0', 'M0'))
예제 #52
0
 def test_corpus_uteri_carcinomas_cancer_IIIC2(self):
     self.assertEquals('IIIC2', tnm_stage('C54.0', 'T1', 'N2', 'M0', '', '', '', 'C'))
     self.assertEquals('IIIC2', tnm_stage('C54.0', 'T2', 'N2', 'M0', '', '', '', 'C'))
     self.assertEquals('IIIC2', tnm_stage('C54.0', 'T3', 'N2', 'M0', '', '', '', 'C'))
예제 #53
0
 def test_breast_cancer_IIIA(self):
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T0', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T1', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T2', 'N2', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T3', 'N1', 'M0'))
     self.assertEquals('IIIA', tnm_stage('C50.0', 'T3', 'N2', 'M0'))
 def test_corpus_uteri_carcinomas_cancer_IVA(self):
     self.assertEquals('IVA', tnm_stage('C54.0', 'T4', 'N0', 'M0', '', '', '', 'C'))
     self.assertEquals('IVA', tnm_stage('C54.0', 'T4', 'N1', 'M0', '', '', '', 'C'))
     self.assertEquals('IVA', tnm_stage('C54.0', 'T4', 'N2', 'M0', '', '', '', 'C'))
예제 #55
0
 def test_breast_cancer_IIIC(self):   
     self.assertEquals('IIIC', tnm_stage('C50.0', 'Tis', 'N3', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C50.0', 'T1', 'N3', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C50.0', 'T2', 'N3', 'M0'))
     self.assertEquals('IIIC', tnm_stage('C50.0', 'T3', 'N3', 'M0'))
예제 #56
0
 def test_corpus_uteri_carcinomas_cancer_0(self):
     self.assertEquals('0', tnm_stage('C54.0', 'Tis', 'N0', 'M0', '', '', '', 'C'))
예제 #57
0
 def test_breast_cancer_0(self):
     self.assertEquals('0', tnm_stage('C50.0', 'Tis', 'N0', 'M0'))
예제 #58
0
 def test_stomach_cancer_IIB(self):
     self.assertEquals('IIB', tnm_stage('C16.9', 'T4a', 'N0', 'M0'))
     self.assertEquals('IIB', tnm_stage('C16.9', 'T3', 'N1', 'M0'))
     self.assertEquals('IIB', tnm_stage('C16.9', 'T2', 'N2', 'M0'))
     self.assertEquals('IIB', tnm_stage('C16.9', 'T1', 'N3', 'M0'))