Skip to content

Print prescription

ModulePrescriptions
Suggested profileDoctor / Reception
PermissionPRESCRIPTIONS: WRITE
StatusValidated

Objective

Generate a printable PDF of the prescription, with header, patient data, medications, indications and a verification QR code.

Before starting

  • Have the prescription already created or selected.
  • Access to the Prescriptions module.

Step by step

  1. Enter the Prescriptions module.
  2. Search for the patient and expand their row.
  3. Locate the prescription to print.
  4. Click the prescription's Print icon.
  5. The system generates the PDF using jspdf and jspdf-autotable. The PDF is downloaded or opens in a new tab, depending on the browser.
  6. From the PDF viewer, send to the printer or save.

Expected result

  • The PDF contains:
    • Header with the logo and clinic data.
    • Patient data (name, medical record, age, sex).
    • Date of issue.
    • List of medications with presentation, dose, frequency and duration.
    • Additional indications.
    • Verification QR code.
    • Doctor's signature (in the configured format).

Pending: add screenshot of recetas-imprimir-01-pdf.png.

Common errors

SituationWhat to do
The PDF is not generatedCheck the connection; retry.
Data is missing in the PDFReview the prescription; some fields require additional information (for example, the logo if it has not been configured).
The QR does not appearCheck the prescription configuration; the QR requires patient and prescription information.

Suggested permissions

  • PRESCRIPTIONS: WRITE.

Operational recommendations

  • Before printing, verify that the responsible doctor is properly identified in the prescription.
  • Print on letterhead paper if the clinic requires it.

Relation with other modules

  • Patients: the patient data is included in the PDF.
  • Medications: the medications are listed with their presentation and dose.