Skip to content

Conversion (conversion) โ€‹

Performs an arithmetic conversion of an existing parameter.

FieldDescriptionRequired
parameterName of the new parameter to be included in the param column of the output fileโœ… Yes
paramcdParameter code for the new parameter to be included in the paramcd column of the output file. Only alphanumeric characters and underscore (_) are allowed.โœ… Yes
uniqueIdUnique ID variable in the input file.โœ… Yes
unitsUnits of the new parameterโœ… Yes
paramcdParameter code for the original parameter to be converted.โœ… Yes
columnColumn of input file for condition matching.โœ… Yes
valueValue of column to be matched for data filtering (if under term1 - conditions), or value for conversion factor (if under term2)โœ… Yes
operatorArithmetic operator for conversion. Accepted values are +, -, *, and /โœ… Yes

โ€‹

Tip

All conversions are calculated as follows:

  • new parameter = [term1] [operator] [term2]
  • where [term1] is a parameter from the input file and [term2] is a conversion factor

If you need to perform a calculation such as 1 - [parameter], use the addition operator and a negative value for [term2].

Example: โ€‹

json
{
  "description": "Conversion Calculation Description",
  "version": "3.0.0",
  "parameter": "Apparent Clearance (linear) in liters/hr",
  "paramcd": "CL_f_lin_liter",
  "uniqueId": "subject",
  "units": "L/hr",
  "term1": {
    "paramcd": "CL_f_lin",
    "conditions": [
      {
        "column": "day",
        "value": "Day 1"
      }
    ]
  },
  "operator": "/",
  "term2": {
    "value": 1000
  },
  "type": "conversion"
}

Behavior: Creates a new parameter named Apparent Clearance (linear) in liters/hr using the following equation: new parameter = CL_f_lin / 1000.