Skip to content

Instantly share code, notes, and snippets.

@githubsaturn
Last active November 25, 2021 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save githubsaturn/e4393a7bda9a220e9e4445b19293c00d to your computer and use it in GitHub Desktop.
Save githubsaturn/e4393a7bda9a220e9e4445b19293c00d to your computer and use it in GitHub Desktop.
ACCEPT
{
"ModelInfo":
{
"modelName": "ACCEPT Model",
"modelId": "accept",
"authKey": "aaHYJJb4hcrmBYY3"
}
,
"CRF": [
{
"CRF_NAME": "ACCEPT",
"VERSION": "English",
"VERSION_DESCRIPTION": "ACCEPT",
"REVISION_NOTES": "Hamid.2021-02-19"
}
],
"Sections": [
{
"SECTION_LABEL": "main",
"SECTION_TITLE": "Acute COPD Exacerbation Prediction Tool (ACCEPT)",
"INSTRUCTIONS": null,
"BORDERS": null
}
],
"Items": [
{
"ITEM_NAME": "ID",
"DATA_TYPE": "ST",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": "\"10001\"",
"DESCRIPTION_LABEL": "ID",
"RIGHT_ITEM_TEXT": null,
"HEADER": "ACCEPT",
"COLUMN_NUMBER": null,
"QUESTION_NUMBER": 1,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": null,
"VALIDATION": null,
"VALIDATION_ERROR_MESSAGE": null,
"HIDDEN": 1
},
{
"ITEM_NAME": "male",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "single-select",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 0,
"DESCRIPTION_LABEL": "Gender",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 2,
"RESPONSE_OPTIONS_TEXT": "select one,male,female",
"RESPONSE_VALUES_OR_CALCULATIONS": "-1,1,0",
"WIDTH_DECIMAL": 0.0,
"VALIDATION": "func: (val == 0) || (val == 1)",
"VALIDATION_ERROR_MESSAGE": null,
"HIDDEN": 0
},
{
"ITEM_NAME": "age",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 70,
"DESCRIPTION_LABEL": "Age (year)\u00a0",
"RIGHT_ITEM_TEXT": "(year)",
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 3,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": "func: val<110 && val>15",
"VALIDATION_ERROR_MESSAGE": "Age should be between 15 and 110 ",
"HIDDEN": 0
},
{
"ITEM_NAME": "smoker",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "single-select",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 0,
"DESCRIPTION_LABEL": "Is the patient currently a smoker?",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 4,
"RESPONSE_OPTIONS_TEXT": "select one,yes,no",
"RESPONSE_VALUES_OR_CALCULATIONS": "-1,1,0",
"WIDTH_DECIMAL": null,
"VALIDATION": "func: (val == 0) || (val == 1)",
"VALIDATION_ERROR_MESSAGE": "Please select an option",
"HIDDEN": 0
},
{
"ITEM_NAME": "oxygen",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "single-select",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 1,
"DESCRIPTION_LABEL": "Has the patient received oxygen therapy within the last year?",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 5,
"RESPONSE_OPTIONS_TEXT": "select one,yes,no",
"RESPONSE_VALUES_OR_CALCULATIONS": "-1,1,0",
"WIDTH_DECIMAL": null,
"VALIDATION": "func: (val == 0) || (val == 1)",
"VALIDATION_ERROR_MESSAGE": "Please select an option",
"HIDDEN": 0
},
{
"ITEM_NAME": "statin",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "single-select",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 1,
"DESCRIPTION_LABEL": "Is the patient currently on statins?",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 6,
"RESPONSE_OPTIONS_TEXT": "select one,yes,no",
"RESPONSE_VALUES_OR_CALCULATIONS": "-1,1,0",
"WIDTH_DECIMAL": null,
"VALIDATION": "func: (val == 0) || (val == 1)",
"VALIDATION_ERROR_MESSAGE": "Please select an option",
"HIDDEN": 0
},
{
"ITEM_NAME": "LAMA",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "single-select",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 1,
"DESCRIPTION_LABEL": "Is the patient currently on LAMAs?",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 7,
"RESPONSE_OPTIONS_TEXT": "select one,yes,no",
"RESPONSE_VALUES_OR_CALCULATIONS": "-1,1,0",
"WIDTH_DECIMAL": null,
"VALIDATION": "func: (val == 0) || (val == 1)",
"VALIDATION_ERROR_MESSAGE": "Please select an option",
"HIDDEN": 0
},
{
"ITEM_NAME": "LABA",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "single-select",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 1,
"DESCRIPTION_LABEL": "Is the patient currently on LABAs?",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 8,
"RESPONSE_OPTIONS_TEXT": "select one,yes,no",
"RESPONSE_VALUES_OR_CALCULATIONS": "-1,1,0",
"WIDTH_DECIMAL": null,
"VALIDATION": "func: (val == 0) || (val == 1)",
"VALIDATION_ERROR_MESSAGE": "Please select an option",
"HIDDEN": 0
},
{
"ITEM_NAME": "ICS",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "single-select",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 0,
"DESCRIPTION_LABEL": "Is the patient currently on inhaled corticosteroids?",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 9,
"RESPONSE_OPTIONS_TEXT": "select one,yes,no",
"RESPONSE_VALUES_OR_CALCULATIONS": "-1,1,0",
"WIDTH_DECIMAL": null,
"VALIDATION": "func: (val == 0) || (val == 1)",
"VALIDATION_ERROR_MESSAGE": "Please select an option",
"HIDDEN": 0
},
{
"ITEM_NAME": "FEV1",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 33,
"DESCRIPTION_LABEL": "Post-bronchodilator FEV1 (% predicted)\u00a0",
"RIGHT_ITEM_TEXT": "%",
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 10,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": "func: val<150 && val>0",
"VALIDATION_ERROR_MESSAGE": "FEV1percentage should be between 0 and 150 ",
"HIDDEN": 0
},
{
"ITEM_NAME": "BMI",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 25,
"DESCRIPTION_LABEL": "Body mass index (BMI)\u00a0",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 11,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": "func: val<40 && val>10",
"VALIDATION_ERROR_MESSAGE": "BMI should be between 10 and 40 ",
"HIDDEN": 0
},
{
"ITEM_NAME": "SGRQ",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 33,
"DESCRIPTION_LABEL": "St. Georges Respiratory Questionnaire Score (SGRQ)",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 12,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": "func: val<40 && val>10",
"VALIDATION_ERROR_MESSAGE": "SGRQ should be between 10 and 40 ",
"HIDDEN": 0
},
{
"ITEM_NAME": "LastYrExacCount",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 2,
"DESCRIPTION_LABEL": "Number of All Exacerbations within the last 12 months",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 13,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": "func: val<20 && val>=0",
"VALIDATION_ERROR_MESSAGE": "Number of excerbation should be between 0 and 20",
"HIDDEN": 0
},
{
"ITEM_NAME": "LastYrSevExacCount",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 1,
"DESCRIPTION_LABEL": "Number of Severe Exacerbations within the last 12 months",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 14,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": "func: val<20 && val>=0",
"VALIDATION_ERROR_MESSAGE": "Number of excerbation should be between 0 and 20",
"HIDDEN": 0
},
{
"ITEM_NAME": "randomized_azithromycin",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 0,
"DESCRIPTION_LABEL": "randomized_azithromycin",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 15,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": null,
"VALIDATION_ERROR_MESSAGE": null,
"HIDDEN": 1
},
{
"ITEM_NAME": "randomized_statin",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 0,
"DESCRIPTION_LABEL": "randomized_statin",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 16,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": null,
"VALIDATION_ERROR_MESSAGE": null,
"HIDDEN": 1
},
{
"ITEM_NAME": "randomized_LAMA",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 0,
"DESCRIPTION_LABEL": "randomized_LAMA",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 17,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": null,
"VALIDATION_ERROR_MESSAGE": null,
"HIDDEN": 1
},
{
"ITEM_NAME": "randomized_LABA",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 0,
"DESCRIPTION_LABEL": "randomized_LABA",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 18,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": null,
"VALIDATION_ERROR_MESSAGE": null,
"HIDDEN": 1
},
{
"ITEM_NAME": "randomized_ICS",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 0,
"DESCRIPTION_LABEL": "randomized_ICS",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 19,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": null,
"VALIDATION_ERROR_MESSAGE": null,
"HIDDEN": 1
},
{
"ITEM_NAME": "random_sampling_N",
"DATA_TYPE": "INT",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": 100,
"DESCRIPTION_LABEL": "random_sampling_N",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 20,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": null,
"VALIDATION_ERROR_MESSAGE": null,
"HIDDEN": 1
},
{
"ITEM_NAME": "calculate_CIs",
"DATA_TYPE": "ST",
"RESPONSE_TYPE": "text",
"SECTION_LABEL": "Main",
"DEFAULT_VALUE": "\"FALSE\"",
"DESCRIPTION_LABEL": "calculate_CIs",
"RIGHT_ITEM_TEXT": null,
"HEADER": null,
"COLUMN_NUMBER": 1.0,
"QUESTION_NUMBER": 21,
"RESPONSE_OPTIONS_TEXT": null,
"RESPONSE_VALUES_OR_CALCULATIONS": null,
"WIDTH_DECIMAL": 0.0,
"VALIDATION": null,
"VALIDATION_ERROR_MESSAGE": null,
"HIDDEN": 1
}
],
"OutputSections": [
{
"SECTION_LABEL": "ExacerbationRisk",
"SECTION_TITLE": "Exacerbation Risk",
"HEADER": "Comparison Treatment ",
"FOOTER": "Treatment Effect:\nBased on the MACRO trial, Azithromycin (250mg/day) will reduce the absolute exacerbation risk by 8.1% for all exacerbations, and 1.3% for severe exacerbations.\nReference: Albert RK, Connett J, Bailey WC, et al. Azithromycin for prevention of exacerbations of COPD. N Engl J Med 2011; 365: 689\u201398.\nReference: Sadatsafavi M, Sin DD, Zafari Z, et al. The Association Between Rate and Severity of Exacerbations in Chronic Obstructive Pulmonary Disease: An Application of a Joint Frailty-Logistic Model. Am J Epidemiol 2016; 184: 681\u20139.\nThe probability that roflumilast (500 \u00b5g/day) will provide a net benefit to this patient is between 90% and 100%, providing that the patient has a chronic bronchitis phenotype. Based on the harm-benefit analysis by Yu et al., roflumilast is likely to provide a net benefit if the baseline risk of having at least one severe exacerbation per year exceeds 22%.\nReference: Yu T, Fain K, Boyd CM, et al. Benefits and harms of roflumilast in moderate to severe COPD. Thorax 2014; 69: 616\u201322."
},
{
"SECTION_LABEL": "ExacerbationRate",
"SECTION_TITLE": "Exacerbation Rate",
"HEADER": "Comparison Treatment ",
"FOOTER": "Treatment Effect:\nBased on the MACRO trial, for every 100 people treated with Azithromycin (250mg/day) an average of 25 exacerbations will be prevented every year, of which 10 are severe exacerbations.\nReference: Albert et al., Azithromycin for prevention of exacerbations of COPD, New England Journal of Medicine 365.8 (2011): 689-698\nReference: Sadatsafavi M, Sin DD, Zafari Z, et al. The Association Between Rate and Severity of Exacerbations in Chronic Obstructive Pulmonary Disease: An Application of a Joint Frailty-Logistic Model. Am J Epidemiol 2016; 184: 681\u20139."
},
{
"SECTION_LABEL": "LikelyScenarios",
"SECTION_TITLE": "Likely Scenarios",
"HEADER": "interpretation Guide:\nThe heatmap shows the probablity of all possible numbers of exacerbation and severe exacerbations with the next year.",
"FOOTER": "Treatment Effect:\nBased on the MACRO trial, for every 100 people treated with Azithromycin (250mg/day) an average of 25 exacerbations will be prevented every year, of which 10 are severe exacerbations.\nReference: Albert et al., Azithromycin for prevention of exacerbations of COPD, New England Journal of Medicine 365.8 (2011): 689-698\nReference: Sadatsafavi M, Sin DD, Zafari Z, et al. The Association Between Rate and Severity of Exacerbations in Chronic Obstructive Pulmonary Disease: An Application of a Joint Frailty-Logistic Model. Am J Epidemiol 2016; 184: 681\u20139."
}
],
"OutputItems": [
{
"Section": "ExacerbationRisk",
"Type": "graph",
"Title": "My Graph Title From JSON",
"valName": "graph_1"
},
{
"Section": "ExacerbationRisk",
"Type": "number",
"Title": "Azithromycin Predicted Lower PI",
"valName": "azithromycin_predicted_severe_exac_rate_lower_PI"
},
{
"Section": "ExacerbationRisk",
"Type": "number",
"Title": "Azithromycin Predicted Upper PI",
"valName": "azithromycin_predicted_severe_exac_rate_upper_PI"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment