A streamlined, local web application designed for Smiles Dental Clinic to generate and print medical prescriptions efficiently.
- Project Description
- Key Features
- Technical Stack
- Dependencies
- Project Structure
- How to Run
- Usage Guide
The Prescription Pad is a specialized web tool built to simplify the medical prescription workflow. It allows healthcare professionals to quickly select medications, manage patient details, and produce professional-grade printed prescriptions. The application focuses on clean layout and optimized print formatting, ensuring that prescriptions are clear and legible.
- Intuitive Selection: Grouped categories for Antibiotics, Painkillers, Gum paint, Toothpaste, and Miscellaneous medications.
- Dynamic Entries: Add multiple medications from pre-defined lists or enter custom "Extra" items.
- Live Preview: View added medications in real-time before printing.
- Print Optimization: Utilizes specialized Print CSS to ensure the layout fits perfectly on a single page with professional signature placement.
- Automated Workflow: Re-initializes for the next patient automatically after a print action.
- Responsive Layout: Clean design that works well in modern browsers.
- HTML5: Semantic structure for the prescription form and layout.
- CSS3: Advanced styling including
@media printrules for professional output. - JavaScript (Vanilla): Refactored and modular logic for dynamic content management.
This project is built using vanilla technologies and has no external package dependencies, making it lightweight and easy to deploy.
- Google Fonts: Uses "Open Sans" for professional typography (requires internet connection).
.
├── assets/
│ └── images/
│ ├── icon.ico # Application Favicon
│ └── icon.jpg # Alternative Icon Asset
├── css/
│ ├── styles.css # Main application styles
│ └── print.css # Print-specific optimizations
├── js/
│ └── script.js # Core application logic
├── index.html # Main entry point
└── README.md # Project documentation
- Clone or download the repository to your local machine.
- Open
index.htmlin any modern web browser (Chrome, Firefox, Edge, etc.). - No server setup or build process is required.
- Patient Details: Enter the patient's name and select their gender.
- Adding Medications:
- Use the dropdown menus to select common medications.
- Click the "Add" button next to the selection.
- Use the "Extra" text field for custom medications not in the lists.
- Managing List: Use the "Delete" button to remove the last added item if a mistake is made.
- Printing: Click the "Print" button. The application will format the items and open the browser's print dialog.
- Reset: The page will automatically refresh after printing, ready for the next patient.
Developed for professional clinical use.