{
  "$schema": "./schema/portfolio.json",
  "version": 2,
  "description": "bio.viz's charts, listed in safety.viz's portfolio manifest format (version 2) so that safety.viz's demo app can list and draw them beside its own. Each chart takes two named tables: the results, from the labs and vitals file, and the participants, from the subject-level file, which is optional. Each setting is the key in the chart's own settings (src/<chart>/configure.js), with the standard column it defaults to and whether the chart cannot be made without it; the participant table's id column is read from the subject-level file, so the two files may name the participant differently. The standard domains are the app's. A test holds this list to the charts (tests/unit/core/portfolio.test.js).",
  "groups": {
    "biomarkers": {
      "label": "Biomarkers",
      "order": 0
    }
  },
  "modules": {
    "group-comparison": {
      "library": "bio.viz",
      "export": "groupComparison",
      "title": "Group comparison",
      "group": "biomarkers",
      "domains": ["bds"],
      "optionalDomains": ["subject"],
      "tables": {
        "results": {
          "domain": "bds",
          "required": true
        },
        "participants": {
          "domain": "subject",
          "required": false
        }
      },
      "unmappedSettings": "omit",
      "settings": {
        "id_col": {
          "domain": "bds",
          "column": "USUBJID",
          "required": true
        },
        "measure_col": {
          "domain": "bds",
          "column": "TEST",
          "required": true
        },
        "value_col": {
          "domain": "bds",
          "column": "STRESN",
          "required": true
        },
        "visit_col": {
          "domain": "bds",
          "column": "VISIT",
          "required": true
        },
        "visit_order_col": {
          "domain": "bds",
          "column": "VISITNUM",
          "required": false
        },
        "unit_col": {
          "domain": "bds",
          "column": "STRESU",
          "required": false
        },
        "participant_id_col": {
          "domain": "subject",
          "column": "USUBJID",
          "required": false
        },
        "studyday_col": {
          "domain": "bds",
          "column": null,
          "required": false
        },
        "normal_col_high": {
          "domain": "bds",
          "column": null,
          "required": false
        },
        "normal_col_low": {
          "domain": "bds",
          "column": null,
          "required": false
        }
      }
    },
    "association-scatter": {
      "library": "bio.viz",
      "export": "associationScatter",
      "title": "Association scatter",
      "group": "biomarkers",
      "domains": ["bds"],
      "optionalDomains": ["subject"],
      "tables": {
        "results": {
          "domain": "bds",
          "required": true
        },
        "participants": {
          "domain": "subject",
          "required": false
        }
      },
      "unmappedSettings": "omit",
      "settings": {
        "id_col": {
          "domain": "bds",
          "column": "USUBJID",
          "required": true
        },
        "measure_col": {
          "domain": "bds",
          "column": "TEST",
          "required": true
        },
        "value_col": {
          "domain": "bds",
          "column": "STRESN",
          "required": true
        },
        "visit_col": {
          "domain": "bds",
          "column": "VISIT",
          "required": true
        },
        "visit_order_col": {
          "domain": "bds",
          "column": "VISITNUM",
          "required": false
        },
        "unit_col": {
          "domain": "bds",
          "column": "STRESU",
          "required": false
        },
        "participant_id_col": {
          "domain": "subject",
          "column": "USUBJID",
          "required": false
        },
        "studyday_col": {
          "domain": "bds",
          "column": null,
          "required": false
        },
        "normal_col_high": {
          "domain": "bds",
          "column": null,
          "required": false
        },
        "normal_col_low": {
          "domain": "bds",
          "column": null,
          "required": false
        }
      }
    },
    "correlation-matrix": {
      "library": "bio.viz",
      "export": "correlationMatrix",
      "title": "Correlation matrix",
      "group": "biomarkers",
      "domains": ["bds"],
      "optionalDomains": ["subject"],
      "tables": {
        "results": {
          "domain": "bds",
          "required": true
        },
        "participants": {
          "domain": "subject",
          "required": false
        }
      },
      "unmappedSettings": "omit",
      "settings": {
        "id_col": {
          "domain": "bds",
          "column": "USUBJID",
          "required": true
        },
        "measure_col": {
          "domain": "bds",
          "column": "TEST",
          "required": true
        },
        "value_col": {
          "domain": "bds",
          "column": "STRESN",
          "required": true
        },
        "visit_col": {
          "domain": "bds",
          "column": "VISIT",
          "required": true
        },
        "visit_order_col": {
          "domain": "bds",
          "column": "VISITNUM",
          "required": false
        },
        "unit_col": {
          "domain": "bds",
          "column": "STRESU",
          "required": false
        },
        "participant_id_col": {
          "domain": "subject",
          "column": "USUBJID",
          "required": false
        }
      }
    },
    "biomarker-screen": {
      "library": "bio.viz",
      "export": "biomarkerScreen",
      "title": "Biomarker screen",
      "group": "biomarkers",
      "domains": ["bds"],
      "optionalDomains": ["subject"],
      "tables": {
        "results": {
          "domain": "bds",
          "required": true
        },
        "participants": {
          "domain": "subject",
          "required": false
        }
      },
      "unmappedSettings": "omit",
      "settings": {
        "id_col": {
          "domain": "bds",
          "column": "USUBJID",
          "required": true
        },
        "measure_col": {
          "domain": "bds",
          "column": "TEST",
          "required": true
        },
        "value_col": {
          "domain": "bds",
          "column": "STRESN",
          "required": true
        },
        "visit_col": {
          "domain": "bds",
          "column": "VISIT",
          "required": true
        },
        "visit_order_col": {
          "domain": "bds",
          "column": "VISITNUM",
          "required": false
        },
        "unit_col": {
          "domain": "bds",
          "column": "STRESU",
          "required": false
        },
        "participant_id_col": {
          "domain": "subject",
          "column": "USUBJID",
          "required": false
        },
        "outcome_id_col": {
          "domain": "bds",
          "column": null,
          "required": false
        },
        "endpoint_col": {
          "domain": "bds",
          "column": "PARAMCD",
          "required": true
        },
        "endpoint_label_col": {
          "domain": "bds",
          "column": "PARAM",
          "required": false
        },
        "time_col": {
          "domain": "bds",
          "column": "AVAL",
          "required": true
        },
        "censor_col": {
          "domain": "bds",
          "column": "CNSR",
          "required": true
        },
        "event_col": {
          "domain": "bds",
          "column": null,
          "required": false
        }
      }
    },
    "cross-tab": {
      "library": "bio.viz",
      "export": "crossTab",
      "title": "Cross-tabulation",
      "group": "biomarkers",
      "domains": ["bds"],
      "optionalDomains": ["subject"],
      "tables": {
        "results": {
          "domain": "bds",
          "required": true
        },
        "participants": {
          "domain": "subject",
          "required": false
        }
      },
      "unmappedSettings": "omit",
      "settings": {
        "id_col": {
          "domain": "bds",
          "column": "USUBJID",
          "required": true
        },
        "measure_col": {
          "domain": "bds",
          "column": "TEST",
          "required": true
        },
        "value_col": {
          "domain": "bds",
          "column": "STRESN",
          "required": true
        },
        "visit_col": {
          "domain": "bds",
          "column": "VISIT",
          "required": true
        },
        "visit_order_col": {
          "domain": "bds",
          "column": "VISITNUM",
          "required": false
        },
        "unit_col": {
          "domain": "bds",
          "column": "STRESU",
          "required": false
        },
        "participant_id_col": {
          "domain": "subject",
          "column": "USUBJID",
          "required": false
        },
        "studyday_col": {
          "domain": "bds",
          "column": null,
          "required": false
        },
        "normal_col_high": {
          "domain": "bds",
          "column": null,
          "required": false
        },
        "normal_col_low": {
          "domain": "bds",
          "column": null,
          "required": false
        }
      }
    }
  }
}
