Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

From there you can format it using the tool of your choice to see the output you’re looking for. A Google search for “prettify JSON” will help locate free online tools; the Foundry Health internal team uses VS Code to do this.

Code Block
{
    "item": {
        "nameid": "VS_Significance"136424,         "dataType": "string",         "dataCollectionStatus": "Unsaved",  // Unique ID for the item data
"sasFieldName": "VSCLSIG",         "codeListItemsname": ["AE_START_DATE",           // Name {of the item (e.g., 'Adverse Event Start Date')
         "codedValuedataType": "CSincompleteDatetime",  // Data type (e.g., 'string', 'date', 'incompleteDatetime')
        "decodedataCollectionStatus": "Clinically Significant"
     Complete",// Status: 'Complete', 'In Progress', etc.
      },  "sasFieldName": "AESTDTC",         // {Corresponding SAS field   name
           "codedValuevalue": "NCS2024-08- T13:39: ",      // Captured value (can be incomplete)
     "decode": "Not Clinically Significant"codeListItems": [            }     // Optional: List of allowed coded values
],         "measurementUnits": [],  {
      "measurementUnit": null,         "valuecodedValue": null"CS",         "outOfRange": false,
// Coded value
       "nonconformantMessage": null,         "lengthdecode": null,"Clinically Significant" // Meaning of coded value
           "significantDigits": null},
            "canceled": false{
                "codedValue": "NCS",
          }
}

formJson

The formJson object contains the complete formData along with all contained itemGroupData and their child itemData.

In addition, quite a bit of context metadata can be found within the formJson object:

Code Block
"form": {      "decode": "Not Clinically Significant"
            }
        ],
        "measurementUnits": [],        // Array of applicable measurement units
        "measurementUnit": null,       // Specific measurement unit (if used)
        "outOfRange": true,            // Whether the value is out of an acceptable range
        "nonconformantMessage": null,  // Message if the item is nonconformant
        "length": null,                // Optional: Length constraint for the value
        "significantDigits": null,     // Optional: Number of significant digits allowed
        "canceled": false              // Whether this item has been canceled
    }
}

formJson

The formJson object contains the complete formData along with all contained itemGroupData and their child itemData.

In addition, quite a bit of context metadata can be found within the formJson object:

Code Block
{
    "form": {
        "name": "Form Name",                // Name of the form (e.g., 'Demographics')
        "studyEventName": "Event Name",      // Name of the study event
        "cohort": {                         // Cohort-related metadata
            "id": 88,
            "name": "Cohort Name",
            "epoch": {
                "id": 80,
                "name": "Screening"         // Epoch or phase name
            }
        },
        "timepoint": null,                   // Timepoint (if applicable)
        "canceled": false,                   // Whether the form is canceled
        "dataCollectionStatus": "Complete",  // Status: Complete, In Progress, etc.
        "subject": {                         // Information about the subject/volunteer
            "id": 165,
            "screeningNumber": "S440113001", // Subject screening number
            "randomizationNumber": "1302",   // Randomization number
            "subjectStudyStatus": "Active",  // Status of subject in study
            "volunteer": {                   // Volunteer details
                "id": 135,
                "initials": "M-M",
                "age": 30,
                "sexMale": true,
                "dateOfBirth": "1990-XX-05" // Supports incomplete dates
            }
        },
        "itemGroups": [                     // Array of item groups within the form
            {
                "itemGroupRepeatKey": 1,    // Identifier for repeated groups
                "items": [                  // Array of individual items
                    {
                        "name": "DemographicsItem Name",   // Name of the "studyEventNameitem
                        "dataType": "Day -28 to Day -2string",  // Data  "cohort": {
 type (e.g., string, date, etc.)
      "id": 88,         "name": "12Nov2020",       "value": "some "epoch": {
 value", // Collected data value
          "id": 80,             "namecanceled": "Screening"false,     // Whether the item }is canceled
   },     "timepoint": null,     "canceled": false,     "dataCollectionStatus": "Complete"

Here you will also find metadata about the subject/volunteer

Code Block
"subject": {     "idsasFieldName": 165,
    "locked": false,"SAS_NAME", // SAS field name mapping
            "screeningNumber": "S440113001",     "leadInNumber": "L0001",     "randomizationNumbercodeListItems": "1302",[]    // "subjectStudyStatus"Optional: "Active",
 Code list if applicable
  "subjectEligibilityType": "Unspecified",     "volunteer": {         "id": 135, }
       "initials": "M-M",        ]
"age": 30,         "sexMale": true, }
       "dateOfBirth": "1990-XX-05" ]
    }
}

All of this data can be directly accessed from the expression.

...