... | @@ -22,12 +22,14 @@ The PEP (support) team can configure the type or types of data to import from Ca |
... | @@ -22,12 +22,14 @@ The PEP (support) team can configure the type or types of data to import from Ca |
|
|
|
|
|
## Data format
|
|
## Data format
|
|
|
|
|
|
Castor data are stored in PEP as JSON, which is [a data format](https://www.json.org/) that associates keys with values. Imported Castor JSON data always consist of a `crf` and a `reports` node at the top level.
|
|
Castor data are stored in PEP as JSON, which is [a data format](https://www.json.org/) that associates keys with values. PEP stores Castor data as a top level JSON node with sub-nodes named `crf` and `reports`.
|
|
|
|
|
|
- The `crf` node's value is an object containing the data entered into Castor.
|
|
- The `crf` node's value is an object containing the data entered into Castor.
|
|
- Keys in this object correspond with Castor question IDs.
|
|
- Keys in this object correspond with Castor question IDs.
|
|
- Values contain the (raw) answer entered into Castor.
|
|
- Values contain the (raw) answer entered into Castor.
|
|
- The `reports` node contains (a JSON array containing) any Castor reports associated with the imported data, e.g. due to a CRF containing [repeated measurements](https://helpdesk.castoredc.com/article/191-the-repeated-measure-field).
|
|
- The `reports` node contains any Castor reports associated with the imported data, e.g. due to a CRF containing [repeated measurements](https://helpdesk.castoredc.com/article/191-the-repeated-measure-field). Its value is a JSON array containing containing objects representing individual measurements.
|
|
|
|
- Keys in these objects correspond with Castor question IDs.
|
|
|
|
- Values contain the (raw) answer entered into Castor.
|
|
|
|
|
|
For example, the following data might be stored in PEP:
|
|
For example, the following data might be stored in PEP:
|
|
|
|
|
... | @@ -60,7 +62,7 @@ For example, the following data might be stored in PEP: |
... | @@ -60,7 +62,7 @@ For example, the following data might be stored in PEP: |
|
|
|
|
|
In the sample data:
|
|
In the sample data:
|
|
|
|
|
|
- the `DiagParkYear` node contains a value of `1960`, indicating that the answer `1960` was entered for a question with this ID.
|
|
- the `DiagParkYear` node contains a value of `1960`, indicating that the answer `1960` was entered for a question with this ID. Presumably this patient was diagnosed with Parkinson's disease in the year 1960, but note that PEP does not deal with Castor data semantics.
|
|
- the `WalkingAid` node (apparently) contains the answers to a [checkbox](https://helpdesk.castoredc.com/article/185-create-a-field-with-option-groups-radio-button-checkbox-and-dropdown)-type question.
|
|
- the `WalkingAid` node (apparently) contains the answers to a [checkbox](https://helpdesk.castoredc.com/article/185-create-a-field-with-option-groups-radio-button-checkbox-and-dropdown)-type question.
|
|
- the `reports` node contains no entries, indicating that no repeated measurements are associated with these Castor data. Perhaps the Castor configuration contained no questions of that type, or zero repeated measurements were taken.
|
|
- the `reports` node contains no entries, indicating that no repeated measurements are associated with these Castor data. Perhaps the Castor configuration contained no questions of that type, or zero repeated measurements were taken.
|
|
|
|
|
... | | ... | |