Exemplo n.º 1
0
 def test_isbatch(self):
     self.assertFalse(hl7.ishl7(sample_batch))
     self.assertFalse(hl7.ishl7(sample_batch1))
     self.assertFalse(hl7.ishl7(sample_batch2))
     self.assertTrue(hl7.isbatch(sample_batch))
     self.assertTrue(hl7.isbatch(sample_batch1))
     self.assertTrue(hl7.isbatch(sample_batch2))
Exemplo n.º 2
0
 def test_ishl7(self):
     self.assertTrue(hl7.ishl7(sample_hl7))
     self.assertFalse(hl7.ishl7(sample_batch))
     self.assertFalse(hl7.ishl7(sample_batch1))
     self.assertFalse(hl7.ishl7(sample_batch2))
     self.assertFalse(hl7.ishl7(sample_file))
     self.assertFalse(hl7.ishl7(sample_file1))
     self.assertFalse(hl7.ishl7(sample_file2))
Exemplo n.º 3
0
 def test_ishl7_wrongsegment(self):
     message = "OBX|1|SN|1554-5^GLUCOSE^POST 12H CFST:MCNC:PT:SER/PLAS:QN||^182|mg/dl|70_105|H|||F\r"
     self.assertFalse(hl7.ishl7(message))
Exemplo n.º 4
0
 def test_ishl7_None(self):
     self.assertFalse(hl7.ishl7(None))
Exemplo n.º 5
0
 def test_ishl7_empty(self):
     self.assertFalse(hl7.ishl7(""))
Exemplo n.º 6
0
 def test_ishl7_wrongsegment(self):
     message = 'OBX|1|SN|1554-5^GLUCOSE^POST 12H CFST:MCNC:PT:SER/PLAS:QN||^182|mg/dl|70_105|H|||F\r'
     self.assertFalse(hl7.ishl7(message))
Exemplo n.º 7
0
 def test_ishl7_None(self):
     self.assertFalse(hl7.ishl7(None))
Exemplo n.º 8
0
 def test_ishl7_empty(self):
     self.assertFalse(hl7.ishl7(''))
Exemplo n.º 9
0
 def test_ishl7(self):
     self.assertTrue(hl7.ishl7(sample_hl7))
Exemplo n.º 10
0
 def test_isfile(self):
     self.assertFalse(hl7.ishl7(sample_file))
     self.assertTrue(hl7.isfile(sample_file))
Exemplo n.º 11
0
 def test_isfile(self):
     self.assertFalse(hl7.ishl7(sample_file))
     self.assertTrue(hl7.isfile(sample_file))