Medical Certificate & Letter Templates
The Medical Certificates module in Mazecare allows healthcare facilities to standardize, automate, and issue legally compliant clinical documents. Healthcare providers can create tailored templates for sick leave certificates, fitness-to-work/school clearances, referral letters, and medical evaluation notes with automated patient data merging, electronic signatures, and customized print layouts.
Template Architecture & Lifecycle
Medical certificate generation in Mazecare is built upon a two-tier configuration structure:
- Certificate Template: Controls the document wording, clinical clauses, diagnosis merge tags, and legal disclaimers.
- Print Template: Governs the physical print canvas, letterhead margins, headers, footers, pagination, doctor signature blocks, and clinic stamp positioning.
Dynamic Variable Merge Tags
Mazecare provides intelligent merge tags that dynamically pull patient, encounter, and practitioner information directly into the certificate body:
| Variable Merge Tag | Description | Rendered Example |
|---|---|---|
{{patientName}} | Full legal name of the patient | Jane Doe |
{{patientDOB}} | Patient date of birth | 1992-05-14 |
{{patientEmail}} | Patient registered email address | jane.doe@example.com |
{{currentDate}} | Document generation date and timestamp | 2026-08-18 |
{{providerName}} | Full name and title of the issuing doctor | Dr. Alexander Sterling |
{{startDate}} | Effective start date of the medical leave | 2026-08-18 |
{{endDate}} | Effective end date of the medical leave | 2026-08-20 |
{{totalDays}} | Total calculated days of absence | 3 Days |
{{diagnosis}} | Primary ICD-11 diagnosis or clinical assessment | Acute Upper Respiratory Infection |
{{clinicName}} | Registered clinic or branch facility name | Mazecare Medical Centre |
Step-by-Step Configuration Walkthrough
Step 1: Create a Certificate Content Template
Certificate Content Templates store the reusable text formulations for specific medical scenarios (e.g., Sick Leave, Fit to Resume Duty, Referral Note).
- In the top navigation search or settings menu, navigate to Settings → Medical Certificates → Certificate Template.
- Review the list of existing templates. You can search templates by keyword or adjust displayed table columns.

- Click the + New Medical Certificate Template button in the top right corner.
- Fill in the template details:
- Template Name: Enter a clear, descriptive title (e.g.,
Standard Medical Certificate (Sick Leave)). - Template Description: Provide a brief summary of the clinical document's purpose.
- Template Name: Enter a clear, descriptive title (e.g.,

- In the Certificate Content rich-text editor, type or paste the standard legal and medical text.
- Type
@to open the dynamic merge tag selector and pick relevant fields such asPatient Name,Patient DOB,Current Date, andProvider Name.

- Format your content using the rich-text formatting tools:
- Headings & Hierarchy: Headings (H1, H2) for clear section divisions.
- Text Styling: Bold, Italic, Strikethrough, and Text Highlights.
- Structure: Bullet lists, numbered lists, block quotes, and horizontal dividers.
- HTML Editor Mode: Switch to the HTML Editor tab for granular HTML formatting and custom inline styling.
- Click Create (or Save Changes) to publish the certificate template.
Step 2: Configure Print Templates & Canvas Layouts
Print templates determine how the certificate renders onto physical paper or exported PDFs, including letterhead spacing, margins, orientation, and practitioner signature blocks.
- Navigate to Settings → Medical Certificates → Print Template.
- View existing print templates or click + Create Template to open the Visual Print Canvas Builder.

- Configure layout settings using the left-hand configuration accordion:
A. Basic Configuration
- Name: Enter the print template identifier (e.g.,
Official Letterhead - A4 Medical Certificate). - Description: Add internal notes describing which branches or paper stocks this layout applies to.
B. Page Layout
- Paper Kind: Select standard dimensions, such as A4, A5, or Letter.
- Orientation: Choose Portrait (standard for single-page certificates) or Landscape.
- Color Mode: Select Color for color letterheads or Grayscale for monochrome thermal/laser printing.
C. Margins & Physical Letterhead Spacing
- Specify precise Top, Bottom, Left, and Right margins in millimeters (
mm). - Tip: Set the top margin to
30mm–45mmif your clinic prints on pre-printed physical letterhead paper.
D. Header & Footer Settings
- Header HTML Template: Bind an existing reusable header component or leave unselected for default text.
- Left / Center / Right Content: Add custom header or footer annotations.
- Pagination Tag: Use
[page]/[toPage]in the footer to automatically output page numbering (e.g.,Page 1 of 1).
E. Advanced Configuration (Electronic Signatures)
- Is Signature Shown: Toggle on to automatically affix the issuing doctor's stored electronic signature and official clinic stamp onto the document.

- Review the Live Interactive Canvas:
- Use the zoom controls (
+,-, scale percentage, andReset Scale) to inspect high-resolution typography and layout fidelity. - Click Download or Print to test physical printer calibration.
- Use the zoom controls (
- Code Mode (Advanced HTML/CSS Customization):
- Click the Code Mode toggle in the top toolbar to inspect and customize raw HTML templates and CSS layout rules.

- Click Save in the top bar to activate the print template.
Step 3: Clinical Workflow & Certificate Issuance
Once configured, practitioners and clinical staff can issue medical certificates directly from the patient consultation encounter or patient chart.
- Navigate to the patient's record (Patients → Select Patient → Certificates tab) or open an active Consultation Encounter.
- Click + Medical Certificate.

- Complete the certificate issuance details:
- Template: Choose a predefined template from the searchable dropdown (e.g., Standard Medical Certificate). The editor automatically populates with the standard template text.
- Provider: Select the attending physician or issuing practitioner.
- Title: Enter a clear certificate title (e.g., Medical Absence Certificate - 3 Days).
- Content: Customize diagnoses, symptoms, dates of absence, and specific recommendations as needed.
- Click Preview to verify the dynamic merge engine:
- Mazecare instantly evaluates all merge tags with real-time patient and provider data.

- Save and finalize the document:
- Save Draft: Saves the document in editable draft status for further clinical review.
- Save Permanent: Locks the certificate permanently, applies the digital signature timestamp, and records the document in the patient's permanent electronic health record.
- The issued certificate can be printed immediately, exported as a PDF, or sent digitally to the patient.
Best Practices & Compliance
- Standardized Diagnostic Language: Use standardized diagnosis terminology in certificates to ensure acceptance by insurance carriers, employers, and educational institutions.
- Digital Doctor Signatures: Ensure each practitioner has an uploaded high-resolution signature image in their user profile for automated document signing.
- Letterhead Alignment: When utilizing pre-printed corporate stationery, use test prints to calibrate margin spacing so that text flows neatly beneath pre-printed logos and header lines.
Form Builder & Questionnaires
Design clinical intake forms, modular questionnaire items, multi-step patient screening assessments, and automated EMR data binding in Mazecare.
PDF & Drawing Templates
Configure standardized PDF headers, footers, clinic branding letterheads, legal disclaimers, and interactive PDF drawing templates in Mazecare.