//Script for UPDM 2019 Data Models
//Script to decode and populate the MANUFACTURECOMPONENT value from the BARCODE value

if ($feature.BARCODE == null)  // Preserve original MANUFACTURECOMPONENT value if BARCODE is null
  return $feature.MANUFACTURECOMPONENT;
 
return mid($feature.BARCODE,10,2);