Custom PDF Printing Templates


Introduction

Custom PDF templates can be uploaded into CareRight for overriding the inbuilt default PDF templates

There are two steps involved in the Customisation of PDF Print templates

Step 1:  Create PDF Print templates - Using PDF Editor

Step 2: Customise/Upload  PDF Printing  templates in CareRight


Step1:  Create PDF Print templates - Using PDF Editor

PDF Print Templates works by fetching the information from corresponding fields in CareRight. The naming of the PDF field in the template using that to look up the value to substitute for the field and the final PDF supplied populated.

Different PDF editor software can be used for Editing the form Fields, for example, Adobe Acrobat.

To prepare a PDF template,

  • Open the template in PDF editing Software in Prepare form mode
  • Rename the form fields that match with CareRight form field naming conventions
    • The field names take the format of substitution variable names. A variable name can either be a model, relationship, or property of a model.
    • To separate the different values use square brackets [  ]  to contain the different names.
    • names are case sensitive
    • Example:
    • Root Models

Each template type may have different root models. These are the models that are available to use in the template, to access other models they must be available by following relationships from the root model.

The following root models are available:

Template categoryModel TypeVariable Name
TYPE_INVOICEInvoiceinvoice
TYPE_ESTIMATEEstimateestimate
TYPE_HSP_MAINTENANCEHspClaimhsp_claim
TYPE_HSP_CLAIMHspClaimhsp_claim
TYPE_RECEIPTStatementstatement
TYPE_COMBINED_PAYMENTStatementstatement
TYPE_IHC_HOSPITAL_CLAIM_FORMIhcClaimihc_claim
TYPE_IHC_LEFT_CLAIM_FORMIhcClaimihc_claim
TYPE_IHC_RIGHT_CLAIM_FORMIhcClaimihc_claim
TYPE_SACR_FORMAdmissionadmission
TYPE_DEFAULT_REQUESTRequestrequest


The list of models, relationships, and attributes available are published in Data Model. For PDF print templates the context to use is "Triggers" and the types supported are "Attribute", "Association (x)" (where x is a model type), and "Trigger property".

Example:

To find how to access a patient's current admission apply the filters:

  1. Model: Patient
  2. Context: Triggers
  3. Filter: admission
  4. Search
  5. Click on "trigger property" to access the documentation on that element.


  • Once the template form fields are named correctly, Save them to the local repository.

Step 2: Customise/Upload PDF Printing  templates in CareRight


To upload the PDF templates created in Step1,

  1. Click Administration.
  2. Click Correspondence
  3. Click Printing Templates
  4. Select PDF menu from within the blue banner.
    • The PDF printing templates screen will display:
  5. The PDF printing templates area of CareRight has two sections:
    • Custom Templates: These are printing templates customized for your practice or individual medical providers 
    • Default Templates:  These are PDF printing templates supplied as out-of-the-box functionality in CareRight. These cannot be modified. 
  6. Click on the New button.
  7. Upload the customized PDF template, Select the Default template, and Apply Overrides if Required.
  8. Check the Published Checkbox
  9. Click on Create Custom Template.


Once the custom template is uploaded into CareRight, the template will override to corresponding print output.

What fields can I use in a custom template?

In general terms, anything available under System Administration > Data Model, filtered by Templates, is available for use.

Depending on where your specific custom template will be used, you may have a different data structure - for example, Invoice details might not be available on a Patient letter.