Skip to content

Commit

Permalink
Rename prescribed_medication to treatment_plan
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Aug 9, 2023
1 parent 47cbc02 commit 505d3fb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Components/Facility/ConsultationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -847,15 +847,15 @@ export const ConsultationDetails = (props: any) => {
</div>
</div>
)}
{consultationData.prescribed_medication && (
{consultationData.treatment_plan && (
<div className="overflow-hidden rounded-lg bg-white shadow">
<div className="px-4 py-5 sm:p-6">
<h3 className="text-lg font-semibold leading-relaxed text-gray-900">
Treatment Summary
</h3>
<div className="mt-2">
<ReadMore
text={consultationData.prescribed_medication}
text={consultationData.treatment_plan}
minChars={250}
/>
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type FormDetails = {
kasp_enabled_date: null;
examination_details: string;
history_of_present_illness: string;
prescribed_medication: string;
treatment_plan: string;
consultation_notes: string;
ip_no: string;
op_no: string;
Expand Down Expand Up @@ -123,7 +123,7 @@ const initForm: FormDetails = {
kasp_enabled_date: null,
examination_details: "",
history_of_present_illness: "",
prescribed_medication: "",
treatment_plan: "",
consultation_notes: "",
ip_no: "",
op_no: "",
Expand Down Expand Up @@ -603,7 +603,7 @@ export const ConsultationForm = (props: any) => {
kasp_enabled_date: JSON.parse(state.form.is_kasp) ? new Date() : null,
examination_details: state.form.examination_details,
history_of_present_illness: state.form.history_of_present_illness,
prescribed_medication: state.form.prescribed_medication,
treatment_plan: state.form.treatment_plan,
discharge_date: state.form.discharge_date,
ip_no: state.form.ip_no,
op_no: state.form.op_no,
Expand Down Expand Up @@ -1181,10 +1181,10 @@ export const ConsultationForm = (props: any) => {
</div>
<div
className="col-span-6"
ref={fieldRef["prescribed_medication"]}
ref={fieldRef["treatment_plan"]}
>
<TextAreaFormField
{...field("prescribed_medication")}
{...field("treatment_plan")}
label="Treatment Plan / Treatment Summary"
placeholder="Optional information"
/>
Expand Down
6 changes: 2 additions & 4 deletions src/Components/Facility/TreatmentSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,8 @@ const TreatmentSummary = (props: any) => {

<div className="border-b-2 border-gray-800 px-5 py-2">
<b>Treatment :</b>
{consultationData.prescribed_medication ? (
<p className="ml-4">
{consultationData.prescribed_medication}
</p>
{consultationData.treatment_plan ? (
<p className="ml-4">{consultationData.treatment_plan}</p>
) : (
<p className="ml-4">---</p>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Facility/models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export interface ConsultationModel {
modified_date?: string;
other_symptoms?: string;
patient?: string;
prescribed_medication?: string;
treatment_plan?: string;
referred_to?: number | null;
suggestion?: string;
ip_no?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Patient/PatientRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const initForm: any = {
test_id: "",
srf_id: "",
test_type: testType[0],
prescribed_medication: false,
treatment_plan: false,
ongoing_medication: "",
designation_of_health_care_worker: "",
instituion_of_health_care_worker: "",
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Shifting/ShiftDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ export default function ShiftDetails(props: { id: string }) {
<span className="font-semibold leading-relaxed">
{t("treatment_summary")}:{" "}
</span>
{consultation.prescribed_medication || "-"}
{consultation.treatment_plan || "-"}
</div>
</div>
<div className="mt-6 flex justify-between">
Expand Down

0 comments on commit 505d3fb

Please sign in to comment.