Example Templates

These example templates can be used as starting points for your own printer configuration. Copy the template content to a file in your PrinterTemplates directory.

Cassette Printer Templates

Avantik.txt
Avantik / Dakwe UV Laser Printer (use Avantik.Animal.txt for multi-template scenarios)
Animal
[{HopperNumber}]/{SurgicalWheel}/{CaseDate}/{CaseSurgicalNumber}/{SpecimenPart}{CassettePart}/{AnimalName}/{Study}/{Gender,1}{Cohort:Arm,2}/{PrimaBarcode}
Sample Output
[1]/S/24/123/A1/MOUSE-001/ABC-Study/MG1/2*2U*BEXY*1

Includes hopper number, surgical wheel, date, case number, specimen/cassette parts, animal name, study, gender (1 char), cohort arm (2 chars), and barcode.

The following examples are designed for Thermo/Microwriter cassette printers.

Thermo.txt
Default cassette template
Fallback
$#H{HopperNumber}#M#4{SurgicalWheel}{CaseDate}-#3{CaseSurgicalNumber}-{SpecimenPart}{CassettePart}#N#4#4{PatientName:Last,7}.{PatientName:First,1}^{PrimaBarcode}
Sample Output
$#H1#M#4S24-#3123-A1#N#4#4Smith.J^2*2U*BEXY*1

Includes hopper number, surgical wheel, date, case number, specimen/cassette parts, patient name (7 chars max), and barcode.

Thermo.ClinicalPatient.txt
Human clinical patients
ClinicalPatient
$#H{HopperNumber}#M#4{SurgicalWheel}{CaseDate}-#3{CaseSurgicalNumber}-{SpecimenPart}{CassettePart}#N#4#4{PatientName:Last,7}.{PatientName:First,1}^{PrimaBarcode}

Same as default - shows patient last name and first initial.

Thermo.Animal.txt
Research animal cases
Animal
$#H{HopperNumber}#M#4{SurgicalWheel}{CaseDate}-#3{CaseSurgicalNumber}-{SpecimenPart}{CassettePart}#N#4#4{AnimalIdentifier,9}#5{PrincipalInvestigator:InitialsOnly}^{PrimaBarcode}
Sample Output
$#H1#M#4S24-#3456-A1#N#4#4MOUSE-001#5JDS^2*2U*BEXY*1

Replaces patient name with animal ID (9 chars) and PI initials for research cases.

Thermo.ControlCassette.txt
Quality control cassettes
ControlCassette
$#H{HopperNumber}#M#4{SurgicalWheel}{CaseDate}-#3{CaseSurgicalNumber}-{SpecimenPart}{CassettePart}#N#4QC^{PrimaBarcode}

Simplified template for control cassettes - displays "QC" instead of patient information.

Slide Printer Templates

These examples are designed for SlideMate slide printers.

SlideMate.txt
Default slide template
Fallback
$#1{SurgicalWheel}{CaseDate}#2{CaseSurgicalNumber}#3{SpecimenPart}-{CassettePart}-{SlidePart}#4{StainTest:Abbreviation}#7{Tissue:Abbreviation,15}^{PrimaBarcode}
Sample Output
$#1S24#2123#3A-1-1#4H+E#7L-ADP^2*2U*BEXY*1

Includes surgical wheel, date, case number, specimen/cassette/slide parts, stain abbreviation, tissue, and barcode.

SlideMate.ClinicalPatient.txt
Human clinical patients
ClinicalPatient
$#1{SurgicalWheel}{CaseDate}#2{CaseSurgicalNumber}#3{SpecimenPart}-{CassettePart}-{SlidePart}#4{StainTest:Abbreviation}#5{PatientName:Last,7}.{PatientName:First,1}#7{Tissue:Abbreviation,15}^{PrimaBarcode}

Adds patient name to the slide label.

SlideMate.Animal.txt
Research animal cases
Animal
$#1{SurgicalWheel}{CaseDate}#2{CaseSurgicalNumber}#3{SpecimenPart}-{CassettePart}-{SlidePart}#4{StainTest:Abbreviation}#5{AnimalIdentifier,9}#6{PrincipalInvestigator:InitialsOnly}#7{Tissue:Abbreviation,15}^{PrimaBarcode}
Sample Output
$#1S24#2456#3A-1-1#4H+E#5MOUSE-001#6JDS#7L-ADP^2*2U*BEXY*1

Includes animal ID and PI initials for research slides.

SlideMate.ControlSlide.txt
Quality control slides
ControlSlide
$#1{SurgicalWheel}{CaseDate}#2{CaseSurgicalNumber}#3{SpecimenPart}-{CassettePart}-{SlidePart}#7{Tissue:Abbreviation,15}^{PrimaBarcode}

Control slides omit the stain test abbreviation since they serve as reference material.

Customizing Templates

These templates use printer-specific command codes (like $#H, #M, #N). Consult your printer's documentation for the correct command codes for your hardware.