Configuring the Batch Application
| Forms | See also |
|---|---|
| BATCH—AddSchemes Form
BATCH—CriteriaSubcontract Form |
Configuring Access to CCLAS Applications, Tables and Fields Creating a Laboratory Batch Job Creating a Subcontract Batch Job |
Overview
Batching allows for the creation of laboratory batch jobs, subcontract batch jobs and instrument run files, all types, of batches, that is, groups of samples for a given scheme or linked schemes.
This process is pertinent to LIMS and laboratory managers who configure the LIMS, and the look and feel of applications to enhance laboratory processes and the user experience, and batching sessions in particular, to limit access, configure query forms, and to customise the process.
Process
Configuring Access to the Batch Application
Ensure the Batch.exe file is located in the folder defined by the ExeDirectory Program Settings—GLOBALSETTINGS for CCLASMGR. Give users, or users with specific roles, access to the application by setting the AccessLevel Program Settings - BATCH. Once a user has sufficient access rights, they can run the Batch application either from the Batch node on the CCLAS menu or directly from the CCLAS Exe folder.
To display tips to users upon start up of the Batch application, enable the ShowTipOfTheDay Program Settings - BATCH, and enter the tips, with one tip per line, in a file, place the file in a folder under the CCLAS root folder defined by the CCLASRootDirectory Program Settings—GLOBALSETTINGS for CCLASMGR, then set the TipofTheDayFile Program Settings - BATCH to the folder and file name, for example %CCLASRootDirectory%TIPS\BATCH.TIP.
To maintain the window size and position between closing and launching the Batch application, set the Window Program Settings - BATCH.
Configuring Batch Sample Search
Set the MainListViewColumnn Program Settings - BATCH to specify which columns from the SAMPLE table are presented in the grid.
To filter samples for batching based on field criteria:
- Set the Criterian Program Settings - BATCH to specify the column filtering properties using the database view or PROFJOB table, and set the CurrentCriteria Program Settings - BATCH to default the current criteria.
- o enable the Properties main menu option to allow users to update the criteria, enable the AllowProperties Program Settings - BATCH.
Set the CriteriaReadyWaiting Program Settings - BATCH to specify the criteria based on a ready or waiting laboratory batching status.
When searching by scheme:
-
Set the SchemeSampleTypes Program Settings - BATCH to nominate the default sample types. If this setting is not defined, then the SampleTypes Program Settings - BATCH is used.
-
Set the SchemeDateField Program Settings - BATCH to nominate the date field used in the criteria. If this setting is not defined, then the DateField Program Settings - BATCH is used.
-
Enable the DateSelect Program Settings - BATCH to default the date criteria to Between, thereby forcing the entry of a date range to enhance system performance of the sample search.
-
Set the SchemeAnalyteStatus and SchemeLabbatchStatus Program Settings - BATCH to contain the default setting for whether to await checks.
-
Set the SchemeSelectAnalytes Program Settings - BATCH to nominate the default selection when specifying whether any or all analytes must be registered for a scheme for selection of a sample.
-
Set the SchemeMaxSampleNumbers and SchemeMinSampleNumbers Program Settings - BATCH to contain the default sample counts.
-
Set the Edit1ListViewColumnn Program Settings - BATCH to the columns of scheme details displayed in the BATCH—CriteriaScheme Form form.
-
Set the SummaryExpandAll Program Settings - BATCH to control the default state of expansion of the summary grid.
-
Set the SummaryBandBackgroundColour Program Settings - BATCH to the alternating rows' background colour for scheme summary grid.
When searching by subcontract:
-
Set the SampleTypes Program Settings - BATCH to nominate the default sample types.
-
Set the InstrumentDateField Program Settings - BATCH to nominate the date field used in the criteria. If this setting is not defined, then the DateField Program Settings - BATCH is used.
-
Enable the DateSelect Program Settings - BATCH to default the date criteria to Between, thereby forcing the entry of a date range to enhance system performance of the sample search.
-
Set the InstrumentAnalyteStatus Program Settings - BATCH to contain the default setting for whether to await checks.
When searching by instrument:
-
Set the InstrumentSampleTypes Program Settings - BATCH to nominate the default sample types. If this setting is not defined, then the SampleTypes Program Settings - BATCH is used.
-
Set the InstrumentDateField Program Settings - BATCH to nominate the date field used in the criteria. If this setting is not defined, then the DateField Program Settings - BATCH is used.
-
Enable the DateSelect Program Settings - BATCH to default the date criteria to Between, thereby forcing the entry of a date range to enhance system performance of the sample search.
-
Set the InstrumentAnalyteStatus and InstrumentLabbatchStatus Program Settings - BATCH to contain the default setting for whether to await checks.
-
Set the InstrumentMaxSampleNumbers and InstrumentMinSampleNumbers Program Settings - BATCH to contain the default sample counts.
Set the GridAlternateColour1 and GridAlternateColour2 Program Settings - BATCH to the rows' background colour of alternating jobs returned from a search.
Enable the LockOpenSamples Program Settings - BATCH to lock samples for update in other applications whilst they are being searched for and batchjed.
If the BatchSchemeAddNew.SCR script file is located in the folder defined by the ConfigDirectory Program Settings—GLOBALSETTINGS for CCLASMGR and contains a query form, then it is displayed at the bottom of the scheme search screen to return schemes based on criteria. If it does not exist, then all schemes are returned.
If the BatchProcedureAddNew.SCR script file is located in the folder defined by the ConfigDirectory Program Settings—GLOBALSETTINGS for CCLASMGR and contains a query form, then it is displayed at the bottom of the procedure search screen to return procedures based on criteria. If it does not exist, then all procedures are returned.
Configuring Laboratory Batch Creation
The LBAutoJobNo Program Settings—GLOBALSETTINGS for CCLASMGR defines the default job template.
Configuring Subcontract Batch Creation
The SubContractAutoJobNo Program Settings—GLOBALSETTINGS for CCLASMGR defines the default job template.
The SubContractCuidSequence Program Settings - BATCH defines the default CUID unique number sequence used to determine the sample idents in a subcontract batch job.
The laboratory in which a subcontract batch job is created depends upon the scheme's Executing Lab code and the analytical laboratories defined for the scheme (refer to the SCHEME—SchemeEdit Form), and the AutoDeleteSubContractBatch and AutoRetrieveSubContractBatch Program Settings - BATCH:
- Where the scheme's Executing Lab code is not defined (which is only possible where no analysis laboratories are defined for the scheme), or is defined and set to the current laboratory, then the subcontract batch job is created within the current laboratory.
- Where the scheme's Executing Lab code is defined and set to one of the scheme's analysis laboratories excluding the current laboratory, then the subcontract batch job is created within the current laboratory, and if the AutoRetrieveSubContractBatch Program Settings - BATCH is enabled, then the subcontract batch job is exported to the subcontracted executing laboratory, and further to this, if the AutoDeleteSubContractBatch Batch program setting is enabled, then the subcontract batch job is deleted from the current laboratory leaving the batch job only in the subcontracted executing laboratory.
The SubContractCuidSequence Program Settings - BATCH defines the default CUID unique number sequence used to determine the sample idents in a subcontract job.
Configuring Batch Creation
If the BatchUDF.VBS script file is located in the folder defined by the ConfigDirectory Program Settings—GLOBALSETTINGS for CCLASMGR, and:
- The BeforeQueryData subroutine exists in the script, before samples are located matching the criteria, then it is invoked. The exposed objects are: clsBatch, clsBDProfJob, clsSecurity, and oRSSamples.
- The AfterQueryData subroutine exists in the script, after samples are located matching the criteria, but before the samples are displayed on the form, then it is invoked. The exposed objects are: clsBatch, clsBDProfJob, clsSecurity, and oRSSamples.
- The BatchUDF1 subroutine exists in the script, before the analytical result records (PROFJOB_CUID_SCHEME_ANALYTE) are created, then it is invoked. The Job number is passed in as a parameter.
- The BatchUDF2 subroutine exists in the script, after the analytical result records are created, but before requested paperwork is generated, then it is invoked. This script typically displays a job paperwork dialog box. The Job number is passed in as a parameter.
- The BatchUDF3 subroutine exists in the script file, after the instrument run file is generated, then it is invoked. The Instrument Run File name is passed in as a parameter.
Configuring Report Generation
Set the ReportLDFn Program Settings - BATCH to the required report templates.
Configuring Paperwork Generation
If the PRepUDF.VBS script file is located in the folder defined by the ConfigDirectory Program Settings—GLOBALSETTINGS for CCLASMGR, and:
- The PRepUDF1 subroutine exists in the script, before the paperwork report is created in Microsoft Excel™, then it is invoked.
- The PRepUDF2 subroutine exists in the script, after the paperwork report is created in Microsoft Excel™, then it is invoked.
- The PRepUDF3 subroutine exists in the script, before the paperwork report is created in Microsoft Word™, then it is invoked.
- The PRepUDF4 subroutine exists in the script, after the paperwork report is created in Microsoft Word™, then it is invoked.
- The BeforeCrystalGenerate subroutine exists in the script, before the paperwork report is generated in Crystal Reports™, then it is invoked.
- The AfterCrystalGenerate subroutine exists in the script, after the paperwork report is created in Crystal Reports™, then it is invoked.
Configuring User Forms
The ScreenFilen Program Settings - BATCH define the user forms available to apply custom functionality within the Batch application.
Configuring Weight and Volume Transfer to the Original Sample Scheme
Results entered against a sample in a laboratory batch job is stored directly to the original component jobs. Weights and volumes captured against sample-CUID schemes in laboratory batches are copied back to the original job's sample scheme where the LBWeightVolumeTransfer Program Settings—GLOBALSETTINGS for CCLASMGR is enabled, to allow for the reporting of raw results to the client.
Configuring Data Entry into Laboratory Batch Jobs
Enable the LBWeightVolumeTransfer Program Settings—GLOBALSETTINGS for CCLASMGR to have the weights and volumes captured against batch CUID schemes automatically copied back to the original job's sample scheme, thereby allow for the reporting of raw results to the client.
