Versions Compared

Key

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

...

Expand
titleSteps to create distribution print rule:
  1. Click on Create → ‘Distribution’ from the print rules page.

    Image RemovedImage Added
  2. Refer to the Print Rules page and the table below for details and click on the ‘Create’ button

...

Expand
titleAdvanced print-token 'eval(...)' examples

Token Type

Object variable

Field name

Example

Description

Order

orderItem

Specimen Label

eval(“Label”, #orderItem.specimen.label)

Evaluates the specimen label of the ordered item.

Order

orderItem

DP custom field

eval(“DP Custom Field”,#orderItem.order.distributionProtocol.getExtension()?.getAttrValues()?.get("ST2"))

Evaluates the distribution protocol custom-field value for fieldName “ST2”.

cOrder

orderItem

Specimen custom field

eval(“Spec Custom Field”, #orderItem.specimen.getExtension()?.getAttrValues()?.get("ST21"))

Evaluates the specimen custom-field value for fieldName “ST21”, from the specimen listed in order-items.

Order

specimen

Specimen custom field (PV Dropdwon)

pv_prop("Stain",specimen,stain,value,true)

  • Stain = Caption

  • specimen = Level at which custom field is added

  • stain = Variable name of the field in the custom field form

Order

orderItem

Visit Clinical Status

  • eval("clinical_status",#orderItem.specimen.visit.clinicalStatus.value)

Evaluates the Clinical status of the specimen for the visit.