Widget:SandboxNew: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 159: | Line 159: | ||
function questionCount(exam, main, sub) { | function questionCount(exam, main, sub) { | ||
var queryString = "[[ ExamType :: " + exam + " ]] [[ | var queryString = "[[ ExamType :: " + exam + " ]] [[ MainCategory :: "; | ||
for (var j = 0; j < | for (var j = 0; j < main.length; j++) { | ||
queryString += | queryString += main[j]; | ||
if (i != | if (i != main.length - 1) { | ||
queryString += " || "; | queryString += " || "; | ||
} | } | ||
} | } | ||
queryString += " ]] [[ | queryString += " ]] [[ SubCategory :: "; | ||
for (var i = 0; i < | for (var i = 0; i < sub.length; i++) { | ||
queryString += | queryString += sub[i]; | ||
if (i != | if (i != sub.length - 1) { | ||
queryString += " || "; | queryString += " || "; | ||
} | } | ||
} | } | ||
queryString += " ]]"; | queryString += " ]]"; | ||
var api = new mw.Api(); | var api = new mw.Api(); | ||
api.post({ | api.post({ | ||
Line 247: | Line 246: | ||
} else if (exam === "USMLE Step 3") { | } else if (exam === "USMLE Step 3") { | ||
categories['main'] = new Array("Community Medical Health Center", "Primary Care Office", "Inpatient Facilities", "Emergency Room"); | categories['main'] = new Array("Community Medical Health Center", "Primary Care Office", "Inpatient Facilities", "Emergency Room"); | ||
categories['sub'] = new Array("Allergy/Immunology", "Cardiovascular", "Dermatology", "Endocrine", "Gastrointestinal", "Hepatology", "Genitourinary", "Head and Neck", "Hematology", "Infectious Disease", "Musculoskeletal/Rheumatology", "Neurology", "Obstetrics and Gynecology", "Oncology", "Ophthalmology", "Pediatrics", "Poisoning", "Preventive Medicine", "Psychiatry", "Respiratory", "Surgery", "Biostatistics/ Epidemiology", "Ethics", "Electrolytes", "Genetics", "Miscellaneous"); | categories['sub'] = new Array("Allergy/Immunology", "Cardiovascular", "Dermatology", "Endocrine", "Gastrointestinal", "Hepatology", "Genitourinary", "Head and Neck", "Hematology", "Infectious Disease", "Musculoskeletal/Rheumatology", "Neurology", "Obstetrics and Gynecology", "Oncology", "Ophthalmology", "Pediatrics", "Poisoning", "Preventive Medicine", "Psychiatry", "Respiratory", "Surgery", "Biostatistics/Epidemiology", "Ethics", "Electrolytes", "Genetics", "Miscellaneous"); | ||
} else if (exam === "Board Review") { | } else if (exam === "Board Review") { | ||
categories['main'] = new Array("Adolescent Medicine", "Advanced Heart Failure and Transplant Cardiology", "Allergy & Immunology", "Cardiovascular Disease", "Clinical Cardiac Electrophysiology", "Critical Care Medicine", "Endocrinology", "Diabetes and Metabolism", "Gastroenterology", "Geriatric Medicine", "Hematology", "Hospice & Palliative Medicine", "Hospital Medicine", "Focused Practice", "Infectious Disease", "Internal Medicine", "Interventional Cardiology", "Medical Oncology", "Nephrology", "Pulmonary Disease", "Rheumatology", "Sleep Medicine", "Sports Medicine", "Transplant Hepatology"); | categories['main'] = new Array("Adolescent Medicine", "Advanced Heart Failure and Transplant Cardiology", "Allergy & Immunology", "Cardiovascular Disease", "Clinical Cardiac Electrophysiology", "Critical Care Medicine", "Endocrinology", "Diabetes and Metabolism", "Gastroenterology", "Geriatric Medicine", "Hematology", "Hospice & Palliative Medicine", "Hospital Medicine", "Focused Practice", "Infectious Disease", "Internal Medicine", "Interventional Cardiology", "Medical Oncology", "Nephrology", "Pulmonary Disease", "Rheumatology", "Sleep Medicine", "Sports Medicine", "Transplant Hepatology"); |