Advanced features of Castor EDC: automations, calculations, encryption and API
For study builders, admins and data managers who know the basics. The course covers the automation engine, calculations written in JavaScript, encryption of sensitive fields, and the Castor EDC API. It comes with an example study structure to download.

- Course
- Advanced features of Castor EDC-CDMS
- Time
- 2.5 to 3 hours (Academy estimate)
- Format
- 19 tutorials, 5 quizzes, 80% to pass a quiz, 5 attempts
- For
- Study builders, study admins and data managers
- Price
- Free on Castor Academy
What the course covers
Five sections that you can take in order or use as a reference later. Each ends with a quiz.
- Use the automation engine to hide a form or add a query automatically
- Write calculations in JavaScript, with the calculation helper and the AI calculation helper
- Handle the common cases: if-else logic, empty fields, scores, checkboxes and dates
- Encrypt a field, set who may see encrypted data, search encrypted fields, and export and import encrypted data
- Get started with the Castor EDC API
Lessons
-
Introduction to the course
- Introduction to the course
- Example study structure to download
-
Automations
- What is the Castor EDC-CDMS automation engine?
- Enabling Automations and automatically hiding a form
- Automatically adding a query
-
Introduction to Calculations
- What are the Calculations?
- Common applications of Calculations
- JavaScript - the programming language used in Calculations
- Calculation with a Moment Java Script
- Calculation helper
- AI calculation helper
-
Most common used calculations
- The if-else statement
- Using several if-else statements
- Calculating with empty fields
- Calculating scores
- Calculating with checkbox fields
- Calculating with dates
-
Encryption
- Encryption - what it is and how it works
- Encrypt user rights
- Encrypting a field
- Searching encrypted fields
- Exporting and importing encrypted data
- Encryption in Castor EDC-CDMS - Take away message
-
Application Programming Interface (API)
- API
Related courses
Questions
Does Castor EDC have an API?
Yes. The course ends with a section on the Castor EDC API and a quiz. To see what teams build with it, read our article on the Castor API in clinical trials.
How do calculations work in Castor EDC?
Calculations in Castor EDC are written in JavaScript. The course has two sections on them: an introduction that includes the calculation helper and the AI calculation helper, and a section on the most common calculations, such as if-else statements, scores and dates.
How does field encryption work?
The Encryption section starts with a lesson on what encryption is and how it works in Castor EDC. It then covers user rights for encrypted data, encrypting a field, searching encrypted fields, and exporting and importing encrypted data.
How long does the course take?
The Academy estimates 2.5 to 3 hours: 19 tutorials, reading and 5 quizzes.
Other Castor Academy topics
- Study building and eCRF design Build a study from scratch: structure, eCRF forms, field logic, validations, randomization and go-live.
- Data entry Enter and sign data in visits and forms, work with repeating data, answer queries, send surveys and export data.
- Monitoring Review data, verify it against source with SDV plans, manage queries and read the audit trail.
- eConsent Set up consent forms as an admin; consent participants on site, on paper or by video call as an investigator.
- Castor Connect and ePRO Configure surveys for the Castor Connect app, activate participants, handle PIN resets and run on-site ePRO.
Reviewed by Kevin Thornton, November 2026