Versions Compared

Key

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

Table of Contents

...

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

  1. Know how to create plugins in OpenSpecimen - how to write a plugin for OpenSpecimen?
  2. Know Java programming language

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 Java 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