From b689468077f9310b8b135b358357dc66b86000d7 Mon Sep 17 00:00:00 2001 From: Amjith Titus Date: Wed, 15 Jan 2025 17:14:40 +0530 Subject: [PATCH] Print Prescription cleanup --- public/locale/en.json | 7 + src/CAREUI/misc/PrintPreview.tsx | 2 +- src/Utils/request/api.tsx | 4 +- src/pages/Encounters/PrintPrescription.tsx | 326 ++++++++++----------- 4 files changed, 164 insertions(+), 175 deletions(-) diff --git a/public/locale/en.json b/public/locale/en.json index a8211b379a4..6b1d2e0558d 100644 --- a/public/locale/en.json +++ b/public/locale/en.json @@ -593,6 +593,7 @@ "comments": "Comments", "communication__sent_to_hcx": "Sent communication to HCX", "completed": "Completed", + "computer_generated_prescription": "This is a computer generated prescription.", "configure": "Configure", "configure_facility": "Configure Facility", "confirm": "Confirm", @@ -865,6 +866,7 @@ "encounter_class__obsenc": "Observation", "encounter_class__planned": "Planned", "encounter_class__vr": "Virtual", + "encounter_date": "Encounter Date", "encounter_date_field_label__A": "Date & Time of Admission to the Facility", "encounter_date_field_label__DC": "Date & Time of Domiciliary Care commencement", "encounter_date_field_label__DD": "Date & Time of Consultation", @@ -1064,6 +1066,7 @@ "general_info_detail": "Provide the patient's personal details, including name, date of birth, gender, and contact information for accurate identification and communication.", "generate_link_abha": "Generate/Link ABHA Number", "generate_report": "Generate Report", + "generated_on": "Generated on:", "generated_summary_caution": "This is a computer generated summary using the information captured in the CARE system.", "generating": "Generating", "generating_discharge_summary": "Generating discharge summary", @@ -1288,6 +1291,7 @@ "medication_taken_between": "Medication Taken Between", "medicine": "Medicine", "medicine_administration_history": "Medicine Administration History", + "medicine_prescription": "Medicine Prescription", "medicines_administered": "Medicine(s) administered", "medicines_administered_error": "Error administering medicine(s)", "member_id_required": "Member Id is required", @@ -1370,6 +1374,7 @@ "no_log_update_delta": "No changes since previous log update", "no_log_updates": "No log updates found", "no_medical_history_available": "No Medical History Available", + "no_medications_found_for_this_encounter": "No medications found for this encounter.", "no_notices_for_you": "No notices for you.", "no_observations": "No Observations", "no_ongoing_medications": "No Ongoing Medications", @@ -1613,6 +1618,7 @@ "prescription_logs": "Prescription Logs", "prescription_medication": "Prescription Medication", "prescription_medications": "Prescription Medications", + "prescriptions": "Prescriptions", "prescriptions__dosage_frequency": "Dosage & Frequency", "prescriptions__medicine": "Medicine", "prescriptions__route": "Route", @@ -1627,6 +1633,7 @@ "principal": "Principal", "principal_diagnosis": "Principal diagnosis", "print": "Print", + "print_prescriptions": "Print Prescriptions", "print_referral_letter": "Print Referral Letter", "priority": "Priority", "prn_prescription": "PRN Prescription", diff --git a/src/CAREUI/misc/PrintPreview.tsx b/src/CAREUI/misc/PrintPreview.tsx index daf79ecbb34..c34c75f3299 100644 --- a/src/CAREUI/misc/PrintPreview.tsx +++ b/src/CAREUI/misc/PrintPreview.tsx @@ -29,7 +29,7 @@ export default function PrintPreview(props: Props) { return ( -
+