Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

This document describes the steps to add customised tokens used for various label types in OpenSpecimen. For example specimen print tokens, specimen label tokens, visit label tokens, ppid label tokens etc.This guide is intended for developers or technical IT staff. 

Prerequisites

One should have done the setup the plugin as per steps given at how to write a plugin for OpenSpecimen?

Steps

...

Below is the detailed example

...

of specimen print label token

...

 to add collection container name. At the bottom of each step, specified the changes required to implement other type of tokens.

  1. Write a class that extends AbstractLabelTmplToken and implements LabelTmplToken. The following example describes how to implement LabelTmplToken:

...

Label TypeRegistrar Bean
PPID Label Token
ppidTokensRegistrar
Specimen Label Token
specimenTokenRegistrar
Visit Label Token
visitTokenRegistrar