本文整理汇总了Python中nedda.staging.staging.tnm_stage函数的典型用法代码示例。如果您正苦于以下问题:Python tnm_stage函数的具体用法?Python tnm_stage怎么用?Python tnm_stage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tnm_stage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_colon_cancer_IIIA
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'))
示例2: test_lung_cancer_IIIA
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'))
示例3: test_corpus_uteri_carcinomas_cancer_IIIC2
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'))
示例4: test_cervix_uteri_cancer_IIIB
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'))
示例5: test_corpus_uteri_carcinomas_cancer_IIIB
def test_corpus_uteri_carcinomas_cancer_IIIB(self):
self.assertEquals('IIIB', tnm_stage('C54.0', 'T3b', 'N0', 'M0', '', '', '', 'C'))
示例6: test_breast_cancer_IB
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'))
示例7: test_cervix_uteri_cancer_IVB
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'))
示例8: test_corpus_uteri_sarcomas_cancer_IIIC
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'))
示例9: test_corpus_uteri_sarcomas_cancer_I
def test_corpus_uteri_sarcomas_cancer_I(self):
self.assertEquals('I', tnm_stage('C54.0', 'T1', 'N0', 'M0', '', '', '', 'S'))
示例10: test_stomach_cancer_0
def test_stomach_cancer_0(self):
self.assertEquals('0', tnm_stage('C16.9', 'Tis', 'N0', 'M0'))
示例11: test_colon_cancer_0
def test_colon_cancer_0(self):
self.assertEquals('0', tnm_stage('C18.0', 'Tis', 'N0', 'M0', ''))
示例12: test_stomach_cancer_IIIC
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'))
示例13: test_stomach_cancer_IV
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'))
示例14: test_stomach_cancer_IIB
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'))
示例15: test_stomach_cancer_IA
def test_stomach_cancer_IA(self):
self.assertEquals('IA', tnm_stage('C16.9', 'T1', 'N0', 'M0'))