Workflow Cascade from SSA to JSA

A job scheme analyte's Workflow Status is evaluated from each underlying sample scheme analyte's Workflow Status.

JSA's
Workflow Status

Comment

Not Started

Set at job scheme analyte creation,

or by the cascade engine when all sample scheme analytes associated with the job scheme analyte have a Workflow Status of Not Started, Repeat, Listed Not Received, Insufficient Sample, Not Analysed or No Result.

Started

Set by the cascade engine when, for the sample scheme analyte associated with the job scheme analyte, where the scheme version analyte's Workflow Active is selected, and:

  • At least one has sample scheme analyte's Workflow Status is Check, Analysed, Released or Completed
  • All sample scheme analytes' Workflow Status are not all Analysed, Released or Completed, Listed Not Received, Insufficient Sample, Not Analysed or No Result.

Analysed

Set by the cascade engine when, for the sample scheme analytes associated with the job scheme analyte, where the scheme version analyte's Workflow Active is selected, and:

  • At least one sample scheme analyte's Workflow Status is Analysed.
  • All other sample scheme analytes' Workflow Status are Analysed, Released or Completed, Listed Not Received, Insufficient Sample, Not Analysed or No Result, or the scheme version analyte's Allow Null Result is selected and the sample scheme analyte's Workflow Status is Not Started.

Released

Set by the cascade engine when, for the sample scheme analytes associated with the job scheme analyte, where the scheme version analyte's Workflow Active is selected, and:

  • At least one sample scheme analyte's Workflow Status is Released.
  • All other sample scheme analytes' Workflow Status are Released or Completed, Listed Not Received, Insufficient Sample, Not Analysed or No Result, or the scheme version analyte's Allow Null Result is selected and the sample scheme analyte's Workflow Status is Not Started.

Completed

Set by the cascade engine in context of result entry via a laboratory-batch job when all sample scheme analytes associated with the job scheme analyte, where the scheme version analyte's Workflow Active is selected, and:

  • At least one sample scheme analyte's Workflow Status is Completed.
  • All other sample scheme analytes' Workflow Status are Completed, Listed Not Received, Insufficient Sample, Not Analysed or No Result, or the scheme version analyte's Allow Null Result is selected and the sample scheme analyte's Workflow Status is Not Started.

or set by the cascade engine in context of a non-laboratory-batch job when all sample scheme analytes associated with the job scheme analyte, where the scheme version analyte's Workflow Active is selected, if the sample scheme analyte is not associated with a laboratory-batch job or if the sample scheme analyte is associated with a laboratory-batch job and that laboratory-batch job has its Validated Date stamped, and:

  • At least one sample scheme analyte's Workflow Status is Completed.
  • All other sample scheme analytes' Workflow Status is Completed, Listed Not Received, Insufficient Sample, Not Analysed or No Result, or the scheme version analyte's Allow Null Result is selected and the sample scheme analyte's Workflow Status is Not Started.

Proceeding from the first row, where the statement is correct on a row, the workflow status in the right-hand column of that row is set on the job scheme, and the process exits.

Underlying sample scheme analytes

Job scheme analyte

If not all LNR, IS, NA, NR, and at least 1 result where all SVA.WFA=N

CPL, exit

If all NST, REP where SVA.WFA=Y

NST, exit

If all CPL, LNR, IS, NA, NR where SVA.WFA=Y or NST, REP where SVA.WFA=N

CPL, exit

If all REL, CPL, LNR, IS, NA, NR where SVA.WFA=Y or NST, REP where SVA.WFA=N

REL, exit

If all ANA, REL, CPL, LNR, IS, NA, NR where SVA.WFA=Y or NST, REP where SVA.WFA=N

ANA, exit

Else

STA, exit