requests.observation

Here are the examples of the python api requests.observation taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

0 Source : mail.py
with MIT License
from fga-eps-mds

def send_appointment_cancel_message(patient, requests):

    subject = str(_("DRDOWN: Your medical appointment was canceled."))
    text = str(_(
        "Dear Sir / Madam, we would like to inform you that your request\n "
        " has been rejected for the following reason:"
        "\t%(reason)s -\n"
        "For more information, please visit the Dr. Down website."
        "\n\nThanks for your atention,\n\tDr. Down team.",
        )) % {
            'reason': requests.observation,
        }

    user_list = [
        patient.user.email,
    ]

    if patient.responsible is not None:
        user_list.append(patient.responsible.user.email)

    html = __get_html(
        template_name="notifications/emails/appointment_canceled.html",
        context={'object': requests, }
    )

    return send_message(user_list, subject, text, html)


def send_appointment_sucess_message(patient, requests):