Conversion (conversion) โ
Performs an arithmetic conversion of an existing parameter.
| Field | Description | Required |
|---|---|---|
parameter | Name of the new parameter to be included in the param column of the output file | โ Yes |
paramcd | Parameter code for the new parameter to be included in the paramcd column of the output file. Only alphanumeric characters and underscore (_) are allowed. | โ Yes |
uniqueId | Unique ID variable in the input file. | โ Yes |
units | Units of the new parameter | โ Yes |
paramcd | Parameter code for the original parameter to be converted. | โ Yes |
column | Column of input file for condition matching. | โ Yes |
value | Value of column to be matched for data filtering (if under term1 - conditions), or value for conversion factor (if under term2) | โ Yes |
operator | Arithmetic 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.