Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • CDMS
  • Frequently Asked Questions
  • Application Programming Interface (API)

How are grid field values and checkbox values retrieved from the API in EDC/CDMS?

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • CDMS
    Castor CDMS Manual Castor CDMS Calculations Manual Frequently Asked Questions Articles for Data Managers Castor CDMS Compliance Release Documents
  • eConsent
    Castor eConsent Manual Castor eConsent Compliance Release Documents
  • SMS
    Castor SMS Manual Castor SMS Compliance Release Documents
  • Castor Connect
    Castor Connect Compliance Release Documents Castor Connect Manual Castor Connect - Participant Quick Start Guide
  • Helpdesk
    News Other Resources Castor products knowledge resources
  • Status page
  • Completing a Study
+ More

Table of Contents

Grids Checkboxes

Grids

Grid field values are stored as so-called JSON objects. A JSON object looks like this:

{"0":{"0":"A","1":"C"},"1":{"0":"B","1":"D"}}

 

In this case, the grid field consists of 2 rows, numbered 0 and 1 (outside the inner brackets), and two columns, also numbered 0 and 1 (inside the inner brackets). For the case above, the grid would look like this in Castor:

See also our article on calculating with grids.

 

This is because a grid is seen as one field, and all values of the grid cells need to be saved within that one field. Since the API retrieves the 'raw' data directly from the database, grid values will be retrieved in JSON format as well. It is possible to convert a JSON object into a dataframe in R with the jsonlite package.

Checkboxes

For checkbox fields all option values that are checked are saved in the field value, separated by a semicolon. For example, see the field below.

 

The option group of the field looks like this:

 

Since the first two options with the values 1 and 2 are selected, the field value is saved as, and will be retrieved from the API like this:

0;1
cdms api edc api

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Can I use an Application Programming Interface (API) to access Castor CDMS?
  • Can I add/edit a participants email address through the API in EDC/CDMS?
  • Can I retrieve uploaded files through the API in EDC/CDMS?
ISO 27001
FDA - 21 CFR part 11
ICH GCP compliant
HIPAA compliant
CDISC
ISO 9001
gdpr compliant

Products & Industries

  • Electronic Data Capture (EDC)
  • ePRO
  • eConsent
  • Decentralized Clinical Trials (DCT)
  • Clinical Data Management
  • Medical Device & Diagnostics
  • Biotech & Pharma
  • CROs
  • Academic Research

Resources

  • Thought Leadership
  • Blog
  • Castor Academy
  • Knowledge Base

 

Company

  • About Us
  • Careers
  • News
  • Contact Support
  • Contact Us

Legal & Compliance

  • Terms of Use
  • Privacy & Cookie Statement
  • Responsible Disclosure Policy
  • Good Clinical Practice (GCP)
  • ISO Compliance Certificates
  • GDPR & HIPAA Compliance
  • Security Statement

© 2022, Castor. All Rights Reserved.

Follow us on social media


Knowledge Base Software powered by Helpjuice

Definition by Author

0
0
Expand