Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename prescribed_medication to treatment_plan #1522

Merged
merged 3 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion care/abdm/utils/fhir.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def _careplan(self):
else None,
),
note=[
Annotation(text=self.consultation.prescribed_medication),
Annotation(text=self.consultation.treatment_plan),
Annotation(text=self.consultation.consultation_notes),
Annotation(text=self.consultation.special_instruction),
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.2 on 2023-08-24 14:42

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("facility", "0378_consultationbedasset_consultationbed_assets"),
]

operations = [
migrations.RenameField(
model_name="patientconsultation",
old_name="prescribed_medication",
new_name="treatment_plan",
),
]
2 changes: 1 addition & 1 deletion care/facility/models/patient_consultation.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class PatientConsultation(PatientBaseModel, PatientRelatedPermissionMixin):
)
examination_details = models.TextField(null=True, blank=True)
history_of_present_illness = models.TextField(null=True, blank=True)
prescribed_medication = models.TextField(null=True, blank=True)
treatment_plan = models.TextField(null=True, blank=True)
consultation_notes = models.TextField(null=True, blank=True)
course_in_facility = models.TextField(null=True, blank=True)
investigation = JSONField(default=dict)
Expand Down
2 changes: 1 addition & 1 deletion care/facility/tests/test_patient_consultation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class TestPatientConsultation(TestBase, TestClassMixin, APITestCase):
"category": CATEGORY_CHOICES[0][0],
"examination_details": "examination_details",
"history_of_present_illness": "history_of_present_illness",
"prescribed_medication": "prescribed_medication",
"treatment_plan": "treatment_plan",
"suggestion": PatientConsultation.SUGGESTION_CHOICES[0][0],
}

Expand Down
4 changes: 2 additions & 2 deletions care/templates/reports/patient_discharge_summary_pdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -534,12 +534,12 @@ <h4 class="mt-6 font-medium text-gray-500">
</div>
{% endif %}

{% if consultation.prescribed_medication %}
{% if consultation.treatment_plan %}
<h4 class="mt-6 font-medium text-gray-500">
Prescribed medication:
</h4>
<p>
{{ consultation.prescribed_medication }}
{{ consultation.treatment_plan }}
</p>
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion care/utils/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def get_consultation_data(cls):
"category": CATEGORY_CHOICES[0][0],
"examination_details": "examination_details",
"history_of_present_illness": "history_of_present_illness",
"prescribed_medication": "prescribed_medication",
"treatment_plan": "treatment_plan",
"suggestion": PatientConsultation.SUGGESTION_CHOICES[0][0],
"referred_to": None,
"admission_date": None,
Expand Down
2 changes: 1 addition & 1 deletion data/dummy/facility.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"category": "Moderate",
"examination_details": "",
"history_of_present_illness": "",
"prescribed_medication": "",
"treatment_plan": "",
"consultation_notes": "Transfer",
"course_in_facility": null,
"discharge_advice": [],
Expand Down
Loading