Prescription

Generate Professional Medical Prescriptions with Carbone

Download Template

Download data sample

  • Template type document docx simple
  • Carbone min. v4.0.0+
  • Features loop html date alias count
  • Target Prescription Medical Healthcare Document Generation

Overview

Learn how to generate professional medical prescriptions that include:

  • Organized information in tables
  • Dynamic patient and doctor details
  • Proper date formatting
  • Digital signatures

Step-by-Step Guide

1. Design the Basic Layout

Create a professional header with:

  • Your medical practice logo
  • Basic information
  • Any required illustrative elements

2. Create the Prescription Table

  • Insert a table:

    • Go to the Insert menu
    • Select Table
    • Create a table with appropriate dimensions (e.g., 6x3)
    • Add column headers
  • Add dynamic data:

    • Insert Carbone tags for dynamic content
    • Example: {d.pres[i].name} for medication names
    • Use [i+1] notation for array iteration (e.g., {d.pres[i+1]})

You can enhance table appearance by applying styles from the Table Design menu.

3. Implement Aliases for Better Code Readability

  • Define aliases using #:
    {#doctorPR = d.doctor.profile.personal}
  • Reference aliases using $:
    {$doctorPR.name.f}

4. Handle Dates Professionally

  • Current date insertion:

    • Use {c.now} for current UTC date
    • Apply the :formatD formatter with specific patterns
    • Example: {c.now:formatD(LLLL)}
  • Future dates:

    • Use :addD formatter for date calculations
    • Example: {c.now:addD('15','day'):formatD(LLLL)}

5. Add Digital Signatures

  • Insert a placeholder image
  • Configure dynamic signature:
    • Right-click the image
    • Select View Alt Text
    • Set the path: {$doctorp.signature}

Technical Tips for Better Layout

Prevent Row Breaks Across Pages

  • Select the entire table
  • Right-click → Table Properties
  • Go to Row tab
  • Uncheck "Allow rows to break across pages"

Repeat Headers on New Pages

  • Select the table's header row
  • Right-click → Table Properties
  • Go to Row tab
  • Check "Repeat as header row at the top of each page"

Trusted by 600+ paid customers in 40+ countries

Finance
Healthcare
Public
Retail
Industries
Energy
Software
Telecom
1dior.png
22thales.png
23younited.png
2danfoss.png
3cma-cgm.png
3illumina.svg
4KparK.png
6scalingo.png
7defense.png
8bmw.png
8telus.png
bestseller.png
flagship_bioscience.png
insly.png
ninox.png
sodexo.png