• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Specimen label token for 'todays date'?

    Hi,

    Is there a Specimen label token for - “today’s date”? Format editable, but ideally ‘yymmdd’
    If not please could one be created. I think it would be very useful to all.

    Many thanks,
    John

    Hi @John_M,

    No, there is no label token for “today’s date”. We will consider this for future release if there are requests from many users.

    Thanks

    Hi @pgovindrao,
    I’m happy to have a go at making one if there is a how to guide available.
    Thanks,
    John

    Hi, @pgovindrao @Srikanth_Adiga2

    I have developed a %TODAY_DATE% token for samples on Community Edition, tested and working on 6.1RC4 onwards. Please see the attached java file.

    Pre-application build:-

    1. Add java file to - “openspecimen-X.X\WEB-INF\src\com\krishagni\catissueplus\core\biospecimen\label\specimen” folder

    2. Edit the “WEB-INF\applicationContext.xml” file to register the new java file. Search for ‘SpecimenYoc2LabelToken’, then add a new line below it:-

    bean class=“com.krishagni.catissueplus.core.biospecimen.label.specimen.SpecimenTDLabelToken”/

    You are welcome to add this to the current CE and EE versions of OpenSpecimen if you wish. The date is in the format ‘yyMMdd’, as this keeps the sample label length down, but can be edited as required in the java file.

    John

    SpecimenTDLabelToken.java (901 Bytes)

    Hi @John_M,

    We’ll include this token in the upcoming version 7.0.

    Thanks,
    Swapnil I.