def test_parse_65(self): self.assertEqual( EMBRYO_COUNT.parse("reproductive data=4 2.5mm embryos"), [{ "end": 33, "start": 18, "value": 4 }], )
def test_parse_61(self): self.assertEqual( EMBRYO_COUNT.parse("VO, mamm. lg., 4L, CRL=26, embryos saved"), [{ "end": 34, "left": 4, "start": 15, "value": 4 }], )
def test_parse_53(self): self.assertEqual( EMBRYO_COUNT.parse("emb 1x13( R), 1+ pl sc (L),"), [{ "end": 11, "right": 1, "start": 0, "value": 1 }], )
def test_parse_59(self): self.assertEqual( EMBRYO_COUNT.parse("reproductive data=2Rx1Lx23 mm fetuses"), [{ "end": 24, "left": 1, "right": 2, "start": 0, "value": 3 }], )
def test_parse_58(self): self.assertEqual( EMBRYO_COUNT.parse("2 embryos each side (4 total), 3x4mm"), [{ "end": 19, "left": 2, "right": 2, "start": 0, "value": 4 }], )
def test_parse_56(self): self.assertEqual( EMBRYO_COUNT.parse("5 3mm embyros: 1R, 4L"), [{ "end": 21, "left": 4, "right": 1, "start": 0, "value": 5 }], )
def test_parse_64(self): self.assertEqual( EMBRYO_COUNT.parse("RBS 4029; EMB-R 2, EMB-L 3, CR 8 mm"), [{ "end": 26, "left": 3, "right": 2, "start": 10, "value": 5 }], )
def test_parse_52(self): self.assertEqual( EMBRYO_COUNT.parse("emb 5x21 (R2 L3),"), [{ "end": 15, "left": 3, "right": 2, "start": 0, "value": 5 }], )
def test_parse_67(self): self.assertEqual( EMBRYO_COUNT.parse("reproductive data=3 embryos (3R, 1L)"), [{ "end": 35, "left": 1, "right": 3, "start": 18, "value": 4 }], )
def test_parse_50(self): self.assertEqual( EMBRYO_COUNT.parse("reproductive data=embryos left:3 right:3 ;"), [{ "end": 40, "left": 3, "right": 3, "start": 18, "value": 6 }], )
def test_parse_49(self): self.assertEqual( EMBRYO_COUNT.parse("embs=1R (CR=32 mm), 1L (CR=32&28mm) ;"), [{ "end": 22, "left": 1, "right": 1, "start": 0, "value": 2 }], )
def test_parse_60(self): self.assertEqual( EMBRYO_COUNT.parse("VC, R2, L3=19, embryos saved"), [{ "end": 22, "left": 3, "right": 2, "start": 4, "value": 5 }], )
def test_parse_55(self): self.assertEqual( EMBRYO_COUNT.parse("reproductive data=5 3mm embryos: 1R, 4L"), [{ "end": 39, "left": 4, "right": 1, "start": 18, "value": 5 }], )
def test_parse_63(self): self.assertEqual( EMBRYO_COUNT.parse("Pregnant with 4 embryos (rt = 1, lt = 3;"), [{ "end": 39, "left": 3, "right": 1, "start": 14, "value": 4 }], )
def test_parse_54(self): self.assertEqual( EMBRYO_COUNT.parse( "reproductive data=3 large, 20mm embryos: 2R, 1L."), [{ "end": 47, "left": 1, "right": 2, "start": 32, "value": 3 }], )
def test_parse_62(self): self.assertEqual( EMBRYO_COUNT.parse( "corpora lutea: L-4, R-5; embryos: L-2, R-3 (5x3mm)"), [{ "end": 42, "left": 2, "right": 3, "start": 25, "value": 5 }], )
def test_parse_66(self): self.assertEqual( EMBRYO_COUNT.parse( "reproductive data=Emb = 4 : CR = 17mm : 2R x 2L"), [{ "end": 47, "left": 2, "right": 2, "start": 18, "value": 4 }], )
def test_parse_02(self): self.assertEqual( EMBRYO_COUNT.parse("not pregnant; no embs"), [{ "end": 12, "start": 0, "value": 0 }, { "end": 21, "start": 14, "value": 0 }], )
def test_parse_57(self): self.assertEqual( EMBRYO_COUNT.parse("""vulva w/sm blood clot; R horn 2 mmx2.5 mm, L 1 emb x 3 mm and 1 emb 2.5 mm;"""), [ { "end": 66, "start": 61, "value": 1 }, { "end": 83, "start": 78, "value": 1 }, ], )
def test_parse_51(self): self.assertEqual( EMBRYO_COUNT.parse( "R horn 5embsx18mm, L horn 1 resorb embx5mm, 1embx18mm; "), [ { "end": 27, "left": 1, "right": 5, "start": 0, "value": 6 }, { "end": 48, "start": 44, "value": 1 }, ], )
def test_parse_48(self): self.assertEqual( EMBRYO_COUNT.parse( "1 embryo right horn 4x8mm, 1 embryo left horn"), [ { "end": 14, "right": 1, "start": 0, "value": 1 }, { "end": 40, "left": 1, "start": 27, "value": 1 }, ], )
def test_parse_15(self): self.assertEqual( EMBRYO_COUNT.parse("Med. nipples, no scars or embryos, mod. fat"), [Trait(value=0, start=14, end=33)], )
def test_parse_14(self): self.assertEqual( EMBRYO_COUNT.parse("reproductive data: 3 embryos - 14 mm, 2R/1L;"), [Trait(value=3, left=1, right=2, start=19, end=43)], )
def test_parse_01(self): self.assertEqual(EMBRYO_COUNT.parse("pregnant; 4 emb"), [Trait(value=4, start=10, end=15)])
def test_parse_13(self): self.assertEqual(EMBRYO_COUNT.parse('; 3 emb. x 06 mm.",'), [Trait(value=3, start=2, end=7)])
def test_parse_12(self): self.assertEqual( EMBRYO_COUNT.parse('; 4 emb. x 07 mm, 3L2R", "weight":"23.0"'), [Trait(value=5, left=3, right=2, start=2, end=22)], )
def test_parse_11(self): self.assertEqual( EMBRYO_COUNT.parse( "reproductive data=V****a open. 4 small embryos."), [Trait(value=4, start=32, end=47)], )
def test_parse_10(self): self.assertEqual( EMBRYO_COUNT.parse("reproductive data=5 embryos (3L, 2R);"), [Trait(value=5, left=3, right=2, start=18, end=35)], )
def test_parse_09(self): self.assertEqual( EMBRYO_COUNT.parse("7 embryos, 4 male, and 3 female"), [Trait(value=7, male=4, female=3, start=0, end=31)], )
def test_parse_08(self): self.assertEqual( EMBRYO_COUNT.parse( "; reproductive data=embryos: 4 right , 2 left ;"), [Trait(value=6, left=2, right=4, start=20, end=45)], )