Beispiel #1
0
def main():
  triage = Triage('/home/jerome/Desktop/WORKAREA/v2/Gui/triage/email.cfg')

  triage.login()

  headers = {'Subject': 'refer rxbox test 1', 'X-Eccs-Priority': 'emergency', 
	      'X-Eccs-Rxboxextension': '2001', 'X-Eccs-Test': '1'}
  body='Patient not breathing.'
  afilename=['Ebido_113056.edf']
  attach={}

  for i in afilename:
	f = open(i, 'r')
	attach[i] = f.read()
	f.close()
	
  print "sending..\n";
  triage.request(headers, body, attach)
  print "sent";
Beispiel #2
0
def main():
    triage = Triage("/home/jerome/Desktop/WORKAREA/v2/Gui/triage/email.cfg")

    triage.login()

    headers = {"Subject": "cobra bite", "X-Eccs-Priority": "emergency", "X-Eccs-Rxboxextension": "2001"}
    body = "Patient not breathing."

    triage.request(headers, body)
    response = triage.wait()

    print response

    while True:
        for i in range(1, 5):
            response["filename"] = "file%s.jpg" % (i,)
            response["sequence_id"] = i
            triage.upload(response)
            time.sleep(15)
Beispiel #3
0
def main():
    triage = Triage("/home/jerome/Desktop/WORKAREA/v2/Gui/triage/email.cfg")

    triage.login()

    headers = {
        "Subject": "refer rxbox test 1",
        "X-Eccs-Priority": "emergency",
        "X-Eccs-Rxboxextension": "2001",
        "X-Eccs-Test": "1",
    }
    body = "Patient not breathing."
    afilename = ["Ebido_113056.edf"]
    attach = {}

    for i in afilename:
        f = open(i, "r")
        attach[i] = f.read()
        f.close()

    print "sending..\n"
    triage.request(headers, body, attach)
    print "sent"
Beispiel #4
0
def main():
    triage = Triage('/home/jerome/Desktop/WORKAREA/v2/Gui/triage/email.cfg')

    triage.login()

    headers = {
        'Subject': 'cobra bite',
        'X-Eccs-Priority': 'emergency',
        'X-Eccs-Rxboxextension': '2001'
    }
    body = 'Patient not breathing.'

    triage.request(headers, body)
    response = triage.wait()

    print response

    while True:
        for i in range(1, 5):
            response['filename'] = "file%s.jpg" % (i, )
            response['sequence_id'] = i
            triage.upload(response)
            time.sleep(15)