Пример #1
0
 def test_parse_02(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "sex=female ; "
             "reproductive data=OVARIES ENLARGED - 7X12 MM, LACTATING"),
         [Trait(value="enlarged", start=31, end=47)],
     )
Пример #2
0
 def test_parse_01(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "sex=female ; "
             "reproductive data=Ovaries and uterus small, immature"),
         [Trait(value="small, immature", start=31, end=65)],
     )
Пример #3
0
 def test_parse_35(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "reproductive data=imp, pelv fused, nipp tiny, nullip, "
             "both ov w/ few sm foll;"),
         [Trait(value="few sm foll", side="both", start=54, end=76)],
     )
Пример #4
0
 def test_parse_06(self):
     self.assertEqual(
         OVARIES_STATE.parse("ovaries: R 2 c. alb, L sev c. alb;"),
         [
             Trait(value="c. alb", side="r", start=0, end=33),
             Trait(value="sev c. alb", side="l", start=0, end=33),
         ],
     )
Пример #5
0
 def test_parse_21(self):
     self.assertEqual(
         OVARIES_STATE.parse("corpus luteum visible in both ovaries"),
         [
             Trait(value="corpus luteum visible",
                   side="both",
                   start=0,
                   end=37)
         ],
     )
Пример #6
0
 def test_parse_05(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "reproductive data=L ov 2 lg foll + 2 c.l.; "
             "R ov 3 c.l.; L horn 4 dark scars, 3 lt; "
             "R horn 6 dark, 6 lt; +corp. alb both ovaries;"),
         [
             Trait(value="lg foll", side="l", start=18, end=32),
             Trait(value="c.l.", side="r", start=43, end=54),
             Trait(value="+corp. alb", side="both", start=104, end=127),
         ],
     )
Пример #7
0
 def test_parse_04(self):
     self.assertEqual(
         OVARIES_STATE.parse("; ovaries mod size;"),
         [Trait(value="mod size", start=2, end=18)],
     )
Пример #8
0
 def test_parse_37(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "Rov 3 cl, Lov 4 cl, both ov sm-med foll; no molt no scars;"),
         [Trait(value="sm-med foll", side="both", start=20, end=39)],
     )
Пример #9
0
 def test_parse_26(self):
     self.assertEqual(
         OVARIES_STATE.parse("Cyst on ovary"),
         [Trait(value="cyst on", start=0, end=13)],
     )
Пример #10
0
 def test_parse_12(self):
     self.assertEqual(
         OVARIES_STATE.parse("ovaries mod size;"),
         [Trait(value="mod size", start=0, end=16)],
     )
Пример #11
0
 def test_parse_11(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "reproductive data=Ovaries and uterus small, immature"),
         [Trait(value="small, immature", start=18, end=52)],
     )
Пример #12
0
 def test_parse_09(self):
     self.assertEqual(
         OVARIES_STATE.parse("reproductive data=Left ovary=3x1.5mm, "
                             "pale pink in color; uterus thin"),
         [Trait(value="pale pink", side="left", start=18, end=47)],
     )
Пример #13
0
 def test_parse_07(self):
     self.assertEqual(
         OVARIES_STATE.parse("ovaries immature;"),
         [Trait(value="immature", start=0, end=16)],
     )
Пример #14
0
 def test_parse_32(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "ovaries well developed, but not pregnant apparently;"),
         [Trait(value="well developed", start=0, end=22)],
     )
Пример #15
0
 def test_parse_31(self):
     self.assertEqual(
         OVARIES_STATE.parse("Left side of ovaries large and cancerous"),
         [Trait(value="large and cancerous", start=13, end=40)],
     )
Пример #16
0
 def test_parse_30(self):
     self.assertEqual(
         OVARIES_STATE.parse("ovaries pink, fat"),
         [Trait(value="pink", start=0, end=12)],
     )
Пример #17
0
 def test_parse_29(self):
     self.assertEqual(
         OVARIES_STATE.parse("ovary not seen"),
         [Trait(value="not seen", start=0, end=14)],
     )
Пример #18
0
 def test_parse_28(self):
     self.assertEqual(
         OVARIES_STATE.parse("Mod. fat, ovaries black"),
         [Trait(value="black", start=10, end=23)],
     )
Пример #19
0
 def test_parse_27(self):
     self.assertEqual(
         OVARIES_STATE.parse("; 4 bodies in L ovary;"),
         [Trait(value="4 bodies in", side="l", start=2, end=21)],
     )
Пример #20
0
 def test_parse_33(self):
     self.assertEqual(
         OVARIES_STATE.parse("ovaries pink and smooth, fat around base of "
                             "tail and oviduct"),
         [Trait(value="pink and smooth", start=0, end=23)],
     )
Пример #21
0
 def test_parse_24(self):
     self.assertEqual(
         OVARIES_STATE.parse("inactive ovary"),
         [Trait(value="inactive", start=0, end=14)],
     )
Пример #22
0
 def test_parse_34(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "Yng. 7 blastocysts and 2 ovaries preserved (where?)"),
         [],
     )
Пример #23
0
 def test_parse_08(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "reproductive data=Ovary, fallopian tubes dark red."),
         [Trait(value="fallopian tubes dark red", start=18, end=49)],
     )
Пример #24
0
 def test_parse_22(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "reproductive data=only 1 fully developed ovary ;"),
         [Trait(value="fully developed", start=25, end=46)],
     )
Пример #25
0
 def test_parse_10(self):
     self.assertEqual(
         OVARIES_STATE.parse(", ovaries immature (no lg folls) ;"),
         [Trait(value="immature", start=2, end=18)],
     )
Пример #26
0
 def test_parse_36(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "stomach, jaw, claw, ovaries, womb too large to preserve"),
         [],
     )
Пример #27
0
 def test_parse_23(self):
     self.assertEqual(
         OVARIES_STATE.parse("ovaries shrunken"),
         [Trait(value="shrunken", start=0, end=16)],
     )
Пример #28
0
 def test_parse_03(self):
     self.assertEqual(
         OVARIES_STATE.parse("reproductive data=ovaries and uterine horns "
                             "covered with copious fat ;"),
         [Trait(value="covered with copious fat", start=18, end=68)],
     )
Пример #29
0
 def test_parse_13(self):
     self.assertEqual(
         OVARIES_STATE.parse(
             "reproductive data=Ovaries minute, not embryos."),
         [Trait(value="minute", start=18, end=32)],
     )
Пример #30
0
 def test_parse_25(self):
     self.assertEqual(
         OVARIES_STATE.parse("no embryos, nips small, ovary < 1 x 1 mm"),
         [])