Prescriptions
The Prescriptions module allows creating, editing, printing and sending medical prescriptions. The main screen is a TreeTable with expandable patients; each patient shows their prescriptions (with medications, indications and presentation).
How the screen is organized
The screen shows a TreeTable with two levels:
- Patient level: one row per patient with their medical record and name.
- Prescription level: when expanded, the patient's prescriptions are listed with type, date, doctor and summary.
Above the table there is a toolbar with a search engine (300 ms debounce) and, if the user has PRESCRIPTIONS: WRITE, a button to create a new prescription.
Prescription types
The system supports several prescription types defined in the PrescriptionType enum. Each one can have a different visual presentation (tags, medication tags, QR). The most common types are:
- FertilCenter prescription
- PAP Center prescription
- Generic prescription
Available actions
- New prescription: opens the creation dialog (write indications, select medications, assign patient).
- Edit prescription: adjust information before printing or sending it.
- Print prescription (PDF): generates a PDF with the complete prescription and a QR.
- Send prescription: opens the send dialog to share it through the configured channels.
- Scan prescription: public scanning flow (used to digitize external prescriptions).
- Delete prescription: requires
PRESCRIPTIONS: ADMIN.
Roles and permissions
PRESCRIPTIONS: WRITEto create, edit, print and send prescriptions.PRESCRIPTIONS: ADMINto delete prescriptions.
Documented features
| Feature | Page |
|---|---|
| Create prescription | Create prescription |
| Edit prescription | Edit prescription |
| Print prescription (PDF) | Print prescription |
| Send prescription | Send prescription |
| Delete prescription | Delete prescription |
Relation with other modules
- Patients: prescriptions are associated with the patient.
- Medications: the medications and their variants (active components, presentations, formulas) are selected from the medications catalog.
- Templates: the templates allow reusing frequent formats and medications.
- Presentations: the presentation container parameters are configured in their module.
- Medical studies: from a finished prescription you can link to a study or interpretation.
Operational recommendations
- Verify the patient before generating the prescription: name, medical record and responsible doctor.
- Use templates for frequent medications and reduce capture time.
- Confirm the indications and dosage before printing or sending.
- Sent prescriptions are recorded in the audit log.