import requests


def email_physician(email):
    """Sends email to physician with patient details

    The attending physician must be alerted and provided
    with the relevant patient information in order to take
    action regarding tachycardia symptoms.

    Args:
        email (dict): email to be sent to physician

    Returns:
        str: message regarding send status of email
    """
    email_server = "http://vcm-7631.vm.duke.edu:5007/hrss/send_email"
    r = requests.post(email_server, json=email)
    if r.status_code != 200:
        return "Error: {} - {}".format(r.status_code, r.text)
    else:
        return "Success: {}".format(r.text)