OpenSpecimen supports printing for specimen and visit labels. On configuring printing, OpenSpecimen generates and writes the labels as CMD or CSV files on the file system. OpenSpecimen does not actually print the labels. It only writes the required data in the file format understood by the printer automation software like Bartender, NiceLabel, etc. The print software can be configured to process these CMD files in an automated fashion.
OpenSpecimen print rules support is very flexible. It supports:
For configuring the printing into the OpenSpecimen please refer configuration section.
It also writes the JSON files to a database table which can also be used to print labels. The CMD or CSV files is the most preferred and used method. |
Below is the block diagram of the workflow:
OpenSpecimen works with any printer or scanner. The interaction with the printer is done via printer software which is explained below.
A: BarTender Automation Edition is most recommended. You are free to choose any other option as long as they support automated printing. Most of them follow similar approaches and should work with OpenSpecimen.
A: It doesn't matter on which server/desktop the automation software is running. As long as the automation software is able to read the files generated by the OpenSpecimen software, it could be on any server.
A: No. There could be a single printer for multiple users based on the group/network requirements. If using multiple printers that can be configured in the automation software to read the labels and send them to different printers as per the requirement.
A: One can create different rules based on the collection site, IP address. For each rule you can specify a different directory for property 'Output Directory'. Then configure the automation software to link the different directories with appropriate printers.
A: Any number of users can print. Rules are not based on user. Ignore this field, this is just a legacy from old print rules which we are checking if we really need it.
A: You might need to configure the same user to print to different printers located at different sites or buildings. E.g., there are two printers in two floors. Use Joe needs to print to first floor's printer when he is on the first floor and second floor's printer when he is on the second floor. This can be achieved using the IP addresses or ranges.
You can configure printing based on IP addresses of users. E.g. some sites assign dynamic IP addresses based on location of users. You can specify range of IP address. You can leave this blank if you do not want to use this feature.
A: No. It is just configurable keywords that you configure in the printer software and then use it in the rules. Example include whether label is printed for cap or slide etc
A: No. This is same as above. However, historically, this has been used to specify the path of printer label design template
Refer to the files below for help setting up a File Integration:
https://support.seagullscientific.com/hc/en-us/articles/227353867-Print-Document-Using-a-Data-File-Integration-Video-6-31-
https://support.seagullscientific.com/hc/en-us/articles/227354787-Print-Document-Using-Print-Command-Script-Video-9-40-
Also, we have two webinar with additional information:
https://support.seagullscientific.com/hc/en-us/articles/115004072388-Building-a-file-integration-using-a-CSV-file-38-26-
https://support.seagullscientific.com/hc/en-us/articles/115003215107-Building-a-file-integration-using-Print-Command-Script-27-58-
OpenSpecimen uses print rules to decide on how specimen label content should be formatted and printed. Refer toCreate Print Rules Via UI for more details. The printing rules can be customized based on CP, specimen type among other attributes as explained in below table.
Rules are matched in sequential fashion and stopped at first matching rule. Users are notified with an error message when none of the rules match specimen whose label is to be printed.
There are 2 options:
OS_LABEL_PRINT_JOB_ITEMS
in JSON format. The printer software can be configured to poll this table at periodic intervals for new rows, read data and send it to printer. Please refer /wiki/spaces/DEV/pages/4948040 for more detailsCmdFilesDir
rule variable value. The format of cmd file is as specified by CmdFileFmt
rule variable value. Printer software can configured to poll CmdFilesDir
directory at periodic intervals for new cmd files and print labels. Adopters can implement custom print tokens by extending class AbstractLabelTmplToken
and providing implementation for following methods:
getName()
- returns unique name of token. Example: "specimen_requirement_code"getReplacement(Specimen s)
- returns string to be included in printed labelThe custom token implementation class needs to be registered with specimenPrintLabelTokensRegistrar
bean
Example 1: Label printed with barcode, specimen label and location
Example 2: Label printed with barcode and specimen label
Example 3: Label printed with site name, barcode and specimen label