Versions Compared

Key

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

...

From v6.3, you can configure any field as a print-token , including custom fields. Previously, you could only had options select specific tokens to choose from the dropdown, or a new plugin had to be created for new tokens. To set a field in print rule you need to click on ‘Switch to advanced mode’ under ‘Label Token’ field.

Expand
titleSwitch to advanced mode

Here you can use the new ‘eval(…)’ method to create custom print-tokens.

Note

Switching from advanced to basic mode is permitted only if simple token expressions are used.

Syntax:

Code Block
eval(displayLabel, expr);

Replace “displayLabel” with header of the print-token in the output file and, “expr” with expression to evaluate the value.

Download print file

From v5.0For usage of “eval” function, refer to examples in the below pages:

Child pages (Children Display)

Download Print File

Sometimes you might not be able to integrate OpenSpecimen with the printer due to network issues. E.g. in a multi-site study where the printers are in a collection site outside the VPN. In such cases, you can download the labels print integration file to and upload it manually to the barcode printing software like Bartender.

This is also useful during testing to check that the print rules are configured properly. This avoids having the testers to login to print labelsthe server VM to check the content of the print files.

Expand
titleSteps to enable system level setting to download print files
  1. Login as super admin user

  2. Click on the 'Settings'

  3. Search for the property 'Download Labels Print File' or click on the 'Administrative' module and click on the property

  4. Select the option 'Enabled' of 'New Value' field and click on 'Update'

  5. Navigate to specimen or participants and visit's overview pages and click on 'Print', the print integration file in CSV format will be downloaded

  6. A downloaded print CSV file will have one-row per specimen and each row will contain the data to be printed on the specimen labels/stickers based on the print rule set

...