Special field types
- Castor has three special fields that can be used to help structure the CRF, to show the value of completed fields or to perform calculations using existing data.
- A remark field is essentially a header or a line of text for your users to see and does not require an answer from the user.
- In my step, a group of questions is related to Informed Consent
- I can add a remark field to separate this section from other questions
- A summary field summarizes data that’s already present in the CRF
- For example, during the inclusion phase, the patient’s recorded weight is added
- We can reference this value in other phase or step
- To do that choose a summary field from the panel on the right
- In the ‘summary/calculation template’ add a variable enclosed in the curly brackets, or braces.
- Once the value is added to the original field, you will be able to see it in the summary field later in the form
- If the original value is changed, the value will be updated in the summary field
- A calculation field allows you to make advanced calculations on data that is present in the CRF
- For example, a calculation field can be used to calculate the BMI automatically using the entered values for two variables: weight and height
- To create a calculation field, click on the calculation field in the right panel, and using JavaScript syntax, create a template in the calculation field
- In our helpdesk you can find various templates for you to use.
- I would like to calculate patient’s age at the moment of the visit
- Create a calculation field, add label and variable name
- To calculate the difference between two dates, I am using a template from the helpdesk article, which is copied into my field.
- The calculation template is added to the field ‘summary/calculation template’
- Next, we should replace the variable names with our own study variables.
- When I enter the assessment date and the patient’s birth year, the patient’s age at the moment of the visit will automatically be calculated.
- JavaScript offers a lot of flexibility in performing various calculations
- You can find templates and more information on these fields in the online user manual.