Start a conversation

General calculation templates

  • Check if all fields are filled in

    If you want to check whether certain fields are filled in, you can use the template below. In this template, there are 2 fields:  Variable name Field label dem_pat_gender Gender dem_pat_yob Year of Bi...

  • Rounding numbers

    If you want to round numbers to an X number of decimals, you can use the templates below. Change the number after 'toFixed(' to change the number of decimals. To round up to 0 decimals, use: var num =...

  • Allow data entry with different measurement units

    You can enter data with different measurement units, and standardise all collected data with the same measurement unit with a calculation. For example, let's say that you are collecting the medication...

  • Converting weight and length units

    Sometimes you need to convert the units of a given measure to keep a unified format across your study. These conversions are usually inches or feet to centimeters and pounds to kilograms. In all these...

  • Check if all fields are complete (and list empty fields)

    With this calculation template, you can check whether a group of fields have been filled in or are empty. If certain fields are not filled in, they will be listed in the calculation. In this example, ...