{% extends 'base.html' %} {% load static %} {% block title %}Clinical Decision Support{% endblock %} {% block content %}

Clinical Decision Support

AI-powered clinical recommendations and alerts

Patient Selection

{% if patient %}
{{ patient.first_name }} {{ patient.last_name }}
ID: {{ patient.patient_id }}
{% endif %}
{% if patient %}

Patient Summary

Age: {{ patient.age }}

Gender: {{ patient.get_gender_display }}

Allergies: {{ patient.allergies|default:"None documented" }}

Blood Type: {{ patient.blood_type|default:"Unknown" }}

Primary Care Provider: {{ patient.primary_care_provider|default:"Not assigned" }}

Insurance: {{ patient.primary_insurance|default:"Not provided" }}

Last Visit: {{ patient.last_encounter_date|date:"M d, Y"|default:"No visits" }}

Risk Score: {{ patient.risk_score|default:"Not calculated" }}

{% if critical_alerts %}

Critical Alerts

{% for alert in critical_alerts %} {% endfor %}
{% endif %}

Drug Interactions

{% if drug_interactions %} {% for interaction in drug_interactions %}
{{ interaction.drug1 }} + {{ interaction.drug2 }}
{{ interaction.description }}
{{ interaction.severity }}
{% endfor %} {% else %}

No drug interactions detected

{% endif %}

Allergy Alerts

{% if allergy_alerts %} {% for alert in allergy_alerts %}
{{ alert.allergen }}
{{ alert.reaction_type }}
{{ alert.severity }}
{% endfor %} {% else %}

No allergy conflicts detected

{% endif %}

Clinical Recommendations

{% for recommendation in recommendations %}
{{ recommendation.title }}

{{ recommendation.description }}

Evidence Level: {{ recommendation.evidence_level }}
Source: {{ recommendation.source }}
Priority: {{ recommendation.priority }}
Category: {{ recommendation.get_category_display }}
{{ recommendation.priority }}
{% empty %}

No clinical recommendations available

{% endfor %}

Diagnostic Suggestions

{% if diagnostic_suggestions %} {% for suggestion in diagnostic_suggestions %}
{{ suggestion.test_name }}

{{ suggestion.indication }}

Confidence: {{ suggestion.confidence }}%
{% endfor %} {% else %}

No diagnostic suggestions available

{% endif %}

Treatment Protocols

{% if treatment_protocols %} {% for protocol in treatment_protocols %}
{{ protocol.name }}

{{ protocol.description }}

Success Rate: {{ protocol.success_rate }}%
{% endfor %} {% else %}

No treatment protocols suggested

{% endif %}

Risk Assessment

{% for risk in risk_assessments %}
{{ risk.name }}
{{ risk.score }}%

{{ risk.description }}

{{ risk.level }} Risk
{% empty %}

No risk assessments available

{% endfor %}

Relevant Clinical Guidelines

{% if clinical_guidelines %}
{% for guideline in clinical_guidelines %}
{{ guideline.title }}

{{ guideline.summary }}

{{ guideline.organization }} View
{% endfor %}
{% else %}

No relevant clinical guidelines found

{% endif %}
{% else %}

Select a Patient

Please select a patient to view clinical decision support recommendations

{% endif %}
{% endblock %} {% block js %} {% endblock %}