main.templatetags package

Submodules

main.templatetags.campaign_tags module

TemplateTags used to carry out more complex display actions on Campaigns.

main.templatetags.campaign_tags.is_selected(campaign: main.models.Campaign, selected: str) → bool

Given a campaign and a campaign name, check if they match. :param campaign: :param selected: :return:

main.templatetags.encounter_tags module

main.templatetags.encounter_tags.temp_round(temp)

main.templatetags.help_tags module

main.templatetags.help_tags.is_help_off(session)

main.templatetags.patient_tags module

main.templatetags.patient_tags.complaint_as_string(m)
main.templatetags.patient_tags.get_campaign_info(m)
main.templatetags.patient_tags.get_chief_complaint(encounter)
main.templatetags.patient_tags.get_medications(t)
main.templatetags.patient_tags.has_middle_name(patient)
main.templatetags.patient_tags.has_suffix(patient)
main.templatetags.patient_tags.imperial_primary_height(m)
main.templatetags.patient_tags.imperial_secondary_height(m)
main.templatetags.patient_tags.imperial_temperature(m)
main.templatetags.patient_tags.imperial_weight(m)
main.templatetags.patient_tags.last_timestamp(patient)
main.templatetags.patient_tags.mask_social(patient)
main.templatetags.patient_tags.open_encounters(patient)

main.templatetags.user_tags module

Django TemplateTags for processing complex logic interacting with fEMRUser objects in templates.

main.templatetags.user_tags.campaign_active(campaign_name: str) → bool

Return whether the given campaign_name refers to an active campaign. :param campaign_name: :return:

main.templatetags.user_tags.has_campaign(user: main.models.fEMRUser, campaign_name: str) → bool

Given a campaign name, return whether user is a member of that campaign. :param user: :param campaign_name: :return:

main.templatetags.user_tags.has_group(user: main.models.fEMRUser, group_name: str) → bool

Given group_name, return whether user is a member of that group. :param user: :param group_name: :return:

Module contents