|
|
Line 3: |
Line 3: |
| -- Define biomarkers with their long form and system | | -- Define biomarkers with their long form and system |
| local biomarkers = { | | local biomarkers = { |
| -- Cardiovascular System
| | { |
| {key = "SBP", name = "Systolic Blood Pressure (SBP)", system = "Cardiovascular System"},
| | system = "Cardiovascular System", |
| {key = "DBP", name = "Diastolic Blood Pressure (DBP)", system = "Cardiovascular System"},
| | data = { |
| {key = "PP", name = "Pulse Pressure", system = "Cardiovascular System"},
| | {key = "SBP", name = "Systolic Blood Pressure (SBP)"}, |
| {key = "MAP", name = "Mean Arterial Pressure", system = "Cardiovascular System"},
| | {key = "DBP", name = "Diastolic Blood Pressure (DBP)"}, |
| {key = "Pulse", name = "Pulse", system = "Cardiovascular System"},
| | {key = "PP", name = "Pulse Pressure"}, |
| {key = "PWV", name = "Pulse Wave Velocity", system = "Cardiovascular System"},
| | {key = "MAP", name = "Mean Arterial Pressure"}, |
| {key = "HR", name = "Heart Rate", system = "Cardiovascular System"},
| | {key = "Pulse", name = "Pulse"}, |
| {key = "IMT", name = "Intima-Media Thickness", system = "Cardiovascular System"},
| | {key = "PWV", name = "Pulse Wave Velocity"}, |
| {key = "MinIMT", name = "Minimum Intima-Media Thickness", system = "Cardiovascular System"},
| | {key = "HR", name = "Heart Rate"}, |
| {key = "EDV", name = "End Diastolic Velocity", system = "Cardiovascular System"},
| | {key = "IMT", name = "Intima-Media Thickness"}, |
| {key = "MVEAP", name = "Mitral Valve E/A Peak", system = "Cardiovascular System"},
| | {key = "MinIMT", name = "Minimum Intima-Media Thickness"}, |
| {key = "MVEL_MVES_MVEA", name = "MVEL, MVES, MVEA", system = "Cardiovascular System"},
| | {key = "EDV", name = "End Diastolic Velocity"}, |
| {key = "AI", name = "Atherosclerosis Index", system = "Cardiovascular System"},
| | {key = "MVEAP", name = "Mitral Valve E/A Peak"}, |
| {key = "NTproBNP", name = "NT-proBNP", system = "Cardiovascular System"},
| | {key = "MVEL_MVES_MVEA", name = "MVEL, MVES, MVEA"}, |
| {key = "CTnI", name = "Cardiac Troponin I", system = "Cardiovascular System"},
| | {key = "AI", name = "Atherosclerosis Index"}, |
| {key = "CPK", name = "Creatine Phosphokinase", system = "Cardiovascular System"},
| | {key = "NTproBNP", name = "NT-proBNP"}, |
| {key = "Homocysteine", name = "Homocysteine", system = "Cardiovascular System"},
| | {key = "CTnI", name = "Cardiac Troponin I"}, |
| | {key = "CPK", name = "Creatine Phosphokinase"}, |
| | {key = "Homocysteine", name = "Homocysteine"}, |
| | } |
| | }, |
|
| |
|
| -- Respiratory System | | { |
| {key = "FVC", name = "Forced Vital Capacity (FVC)", system = "Respiratory System"},
| | system = "Respiratory System", |
| {key = "FEV1", name = "Forced Expiratory Volume in 1 Second (FEV1)", system = "Respiratory System"},
| | data = { |
| {key = "VC", name = "Vital Capacity", system = "Respiratory System"},
| | {key = "FVC", name = "Forced Vital Capacity (FVC)"}, |
| {key = "MMFR", name = "Maximal Midexpiratory Flow Rate 75/25", system = "Respiratory System"},
| | {key = "FEV1", name = "Forced Expiratory Volume in 1 Second (FEV1)"}, |
| {key = "VO2Max", name = "VO2 Max", system = "Respiratory System"},
| | {key = "VC", name = "Vital Capacity"}, |
| {key = "CR", name = "Chest Radiography", system = "Respiratory System"},
| | {key = "MMFR", name = "Maximal Midexpiratory Flow Rate 75/25"}, |
| | {key = "VO2Max", name = "VO2 Max"}, |
| | {key = "CR", name = "Chest Radiography"}, |
| | } |
| | }, |
|
| |
|
| -- Nervous System | | { |
| {key = "MMSE", name = "Mini-Mental State Examination (MMSE)", system = "Nervous System"},
| | system = "Nervous System", |
| {key = "DST", name = "Digital Symbol Test", system = "Nervous System"},
| | data = { |
| {key = "NM", name = "Numeric Memory", system = "Nervous System"},
| | {key = "MMSE", name = "Mini-Mental State Examination (MMSE)"}, |
| {key = "AM", name = "Associated Memory", system = "Nervous System"},
| | {key = "DST", name = "Digital Symbol Test"}, |
| {key = "TM", name = "Topological Memory", system = "Nervous System"},
| | {key = "NM", name = "Numeric Memory"}, |
| {key = "STM", name = "Short-Time Memory", system = "Nervous System"},
| | {key = "AM", name = "Associated Memory"}, |
| {key = "Concentration", name = "Concentration", system = "Nervous System"},
| | {key = "TM", name = "Topological Memory"}, |
| {key = "IMD", name = "Intellectuality - Mental Defect", system = "Nervous System"},
| | {key = "STM", name = "Short-Time Memory"}, |
| {key = "TMT", name = "Trail Making Test", system = "Nervous System"},
| | {key = "Concentration", name = "Concentration"}, |
| | {key = "IMD", name = "Intellectuality - Mental Defect"}, |
| | {key = "TMT", name = "Trail Making Test"}, |
| | } |
| | }, |
| | | |
| -- Endocrine Metabolic System | | { |
| {key = "Glucose", name = "Glucose", system = "Endocrine Metabolic System"},
| | system = "Endocrine Metabolic System", |
| {key = "HBA1C", name = "HBA1C", system = "Endocrine Metabolic System"},
| | data = { |
| {key = "CPeptide", name = "C-peptide", system = "Endocrine Metabolic System"},
| | {key = "Glucose", name = "Glucose"}, |
| {key = "Insulin", name = "Insulin", system = "Endocrine Metabolic System"},
| | {key = "HBA1C", name = "HBA1C"}, |
| {key = "TG", name = "Triglyceride", system = "Endocrine Metabolic System"},
| | {key = "CPeptide", name = "C-peptide"}, |
| {key = "TC", name = "Total Cholesterol (TC)", system = "Endocrine Metabolic System"},
| | {key = "Insulin", name = "Insulin"}, |
| {key = "HDL", name = "High-Density Lipoprotein (HDL)", system = "Endocrine Metabolic System"},
| | {key = "TG", name = "Triglyceride"}, |
| {key = "LDL", name = "Low-Density Lipoprotein (LDL)", system = "Endocrine Metabolic System"},
| | {key = "TC", name = "Total Cholesterol (TC)"}, |
| {key = "ApoA1B", name = "Apolipoprotein A1 and B", system = "Endocrine Metabolic System"},
| | {key = "HDL", name = "High-Density Lipoprotein (HDL)"}, |
| {key = "TSH", name = "Thyroid-Stimulating Hormone (TSH)", system = "Endocrine Metabolic System"},
| | {key = "LDL", name = "Low-Density Lipoprotein (LDL)"}, |
| {key = "Testosterone", name = "Testosterone", system = "Endocrine Metabolic System"},
| | {key = "ApoA1B", name = "Apolipoprotein A1 and B"}, |
| {key = "VitaminD", name = "Vitamin D", system = "Endocrine Metabolic System"},
| | {key = "TSH", name = "Thyroid-Stimulating Hormone (TSH)"}, |
| {key = "Calcium", name = "Calcium", system = "Endocrine Metabolic System"},
| | {key = "Testosterone", name = "Testosterone"}, |
| {key = "Potassium", name = "Potassium", system = "Endocrine Metabolic System"},
| | {key = "VitaminD", name = "Vitamin D"}, |
| {key = "Sodium", name = "Sodium", system = "Endocrine Metabolic System"},
| | {key = "Calcium", name = "Calcium"}, |
| {key = "InorganicPhosphorus", name = "Inorganic Phosphorus", system = "Endocrine Metabolic System"},
| | {key = "Potassium", name = "Potassium"}, |
| {key = "Urea", name = "Urea", system = "Endocrine Metabolic System"},
| | {key = "Sodium", name = "Sodium"}, |
| {key = "Creatinine", name = "Creatinine", system = "Endocrine Metabolic System"},
| | {key = "InorganicPhosphorus", name = "Inorganic Phosphorus"}, |
| {key = "eGFR", name = "Estimated Glomerular Filtration Rate (eGFR)", system = "Endocrine Metabolic System"},
| | {key = "Urea", name = "Urea"}, |
| {key = "UricAcid", name = "Uric Acid", system = "Endocrine Metabolic System"},
| | {key = "Creatinine", name = "Creatinine"}, |
| {key = "CystatinC", name = "Cystatin C", system = "Endocrine Metabolic System"},
| | {key = "eGFR", name = "Estimated Glomerular Filtration Rate (eGFR)"}, |
| {key = "CreatinineClearance", name = "Creatinine Clearance", system = "Endocrine Metabolic System"},
| | {key = "UricAcid", name = "Uric Acid"}, |
| {key = "UrineSG", name = "Urine Specific Gravity", system = "Endocrine Metabolic System"},
| | {key = "CystatinC", name = "Cystatin C"}, |
| {key = "UrinepH", name = "Urine pH", system = "Endocrine Metabolic System"},
| | {key = "CreatinineClearance", name = "Creatinine Clearance"}, |
| | {key = "UrineSG", name = "Urine Specific Gravity"}, |
| | {key = "UrinepH", name = "Urine pH"}, |
| | } |
| | }, |
| | | |
| -- Digestive System | | { |
| {key = "ALT", name = "Alanine Aminotransferase (ALT)", system = "Digestive System"},
| | system = "Digestive System", |
| {key = "AST", name = "Aspartate Aminotransferase (AST)", system = "Digestive System"},
| | data = { |
| {key = "ALP", name = "Alkaline Phosphatase (ALP)", system = "Digestive System"},
| | {key = "ALT", name = "Alanine Aminotransferase (ALT)"}, |
| {key = "TotalProtein", name = "Total Protein", system = "Digestive System"},
| | {key = "AST", name = "Aspartate Aminotransferase (AST)"}, |
| {key = "Albumin", name = "Albumin", system = "Digestive System"},
| | {key = "ALP", name = "Alkaline Phosphatase (ALP)"}, |
| {key = "AGRatio", name = "Albumin/Globulin Ratio (A/G)", system = "Digestive System"},
| | {key = "TotalProtein", name = "Total Protein"}, |
| {key = "TotalBilirubin", name = "Total Bilirubin", system = "Digestive System"},
| | {key = "Albumin", name = "Albumin"}, |
| {key = "DirectBilirubin", name = "Direct Bilirubin", system = "Digestive System"},
| | {key = "AGRatio", name = "Albumin/Globulin Ratio (A/G)"}, |
| {key = "Amylase", name = "Amylase", system = "Digestive System"},
| | {key = "TotalBilirubin", name = "Total Bilirubin"}, |
| {key = "LDH", name = "Lactate Dehydrogenase", system = "Digestive System"},
| | {key = "DirectBilirubin", name = "Direct Bilirubin"}, |
| {key = "Alpha2Globulin", name = "Alpha 2 Globulin", system = "Digestive System"},
| | {key = "Amylase", name = "Amylase"}, |
| {key = "GGT", name = "Gamma Glutamyl Transpeptidase", system = "Digestive System"},
| | {key = "LDH", name = "Lactate Dehydrogenase"}, |
| | {key = "Alpha2Globulin", name = "Alpha 2 Globulin"}, |
| | {key = "GGT", name = "Gamma Glutamyl Transpeptidase"}, |
| | } |
| | }, |
| | |
| | { |
| | system = "Hematologic System", |
| | data = { |
| | {key = "RBC", name = "Red Blood Cell"}, |
| | {key = "RDW", name = "Red Blood Cell Volume Distribution Width"}, |
| | {key = "Hematocrit", name = "Hematocrit"}, |
| | {key = "MCV", name = "Mean Corpuscular Volume"}, |
| | {key = "MCH", name = "Mean Corpuscular Hemoglobin"}, |
| | {key = "MCHC", name = "Mean Corpuscular Hemoglobin Concentration"}, |
| | {key = "Hemoglobin", name = "Hemoglobin"}, |
| | {key = "WBC", name = "White Blood Cell"}, |
| | {key = "Granulocytes", name = "Granulocytes"}, |
| | {key = "Neutrophils", name = "Neutrophils"}, |
| | {key = "BasophilsEosinophils", name = "Basophils, Eosinophils"}, |
| | {key = "Lymphocytes", name = "Lymphocytes"}, |
| | {key = "Monocytes", name = "Monocytes"}, |
| | {key = "Platelet", name = "Platelet"}, |
| | {key = "MPV", name = "Mean Platelet Volume"}, |
| | {key = "PDW", name = "Platelet Distribution Width"}, |
| | {key = "ESR", name = "Erythrocyte Sedimentation Rate"}, |
| | {key = "DdimerFibrinogen", name = "D-dimer, Fibrinogen"}, |
| | {key = "Ferritin", name = "Ferritin"}, |
| | {key = "Transferrin", name = "Transferrin"}, |
| | } |
| | }, |
| | | |
| -- Hematologic System
| | { |
| {key = "RBC", name = "Red Blood Cell", system = "Hematologic System"},
| | system = "Sensory System", |
| {key = "RDW", name = "Red Blood Cell Volume Distribution Width", system = "Hematologic System"},
| | data = { |
| {key = "Hematocrit", name = "Hematocrit", system = "Hematologic System"},
| | {key = "VisualAcc", name = "Visual Accommodation"}, |
| {key = "MCV", name = "Mean Corpuscular Volume", system = "Hematologic System"},
| | {key = "VisualReactTime", name = "Visual Reaction Time"}, |
| {key = "MCH", name = "Mean Corpuscular Hemoglobin", system = "Hematologic System"},
| | {key = "VisualAcuity", name = "Visual Acuity"}, |
| {key = "MCHC", name = "Mean Corpuscular Hemoglobin Concentration", system = "Hematologic System"},
| | {key = "Hearing", name = "Hearing"}, |
| {key = "Hemoglobin", name = "Hemoglobin", system = "Hematologic System"},
| | {key = "Vibrotactile", name = "Vibrotactile"}, |
| {key = "WBC", name = "White Blood Cell", system = "Hematologic System"},
| | {key = "RetinalPhotos", name = "Retinal Photos"}, |
| {key = "Granulocytes", name = "Granulocytes", system = "Hematologic System"}, | | } |
| {key = "Neutrophils", name = "Neutrophils", system = "Hematologic System"},
| | }, |
| {key = "BasophilsEosinophils", name = "Basophils, Eosinophils", system = "Hematologic System"},
| |
| {key = "Lymphocytes", name = "Lymphocytes", system = "Hematologic System"},
| |
| {key = "Monocytes", name = "Monocytes", system = "Hematologic System"},
| |
| {key = "Platelet", name = "Platelet", system = "Hematologic System"},
| |
| {key = "MPV", name = "Mean Platelet Volume", system = "Hematologic System"},
| |
| {key = "PDW", name = "Platelet Distribution Width", system = "Hematologic System"},
| |
| {key = "ESR", name = "Erythrocyte Sedimentation Rate", system = "Hematologic System"},
| |
| {key = "DdimerFibrinogen", name = "D-dimer, Fibrinogen", system = "Hematologic System"},
| |
| {key = "Ferritin", name = "Ferritin", system = "Hematologic System"},
| |
| {key = "Transferrin", name = "Transferrin", system = "Hematologic System"}, | |
| | | |
| -- Sensory System | | { |
| {key = "VisualAcc", name = "Visual Accommodation", system = "Sensory System"},
| | system = "Inflammatory System", |
| {key = "VisualReactTime", name = "Visual Reaction Time", system = "Sensory System"},
| | data = { |
| {key = "VisualAcuity", name = "Visual Acuity", system = "Sensory System"},
| | {key = "CRP", name = "C-Reactive Protein (CRP)"}, |
| {key = "Hearing", name = "Hearing", system = "Sensory System"},
| | {key = "CMVOptDensity", name = "Cytomegalovirus Optical Density"}, |
| {key = "Vibrotactile", name = "Vibrotactile", system = "Sensory System"},
| | {key = "IL6", name = "Interleukin-6"}, |
| {key = "RetinalPhotos", name = "Retinal Photos", system = "Sensory System"}, | | {key = "Pselectin", name = "P-selectin"}, |
| | } |
| | }, |
| | | |
| -- Inflammatory Index | | { |
| {key = "CRP", name = "C-Reactive Protein (CRP)", system = "Inflammatory Index"},
| | system = "Motion Index", |
| {key = "CMVOptDensity", name = "Cytomegalovirus Optical Density", system = "Inflammatory Index"},
| | data = { |
| {key = "IL6", name = "Interleukin-6", system = "Inflammatory Index"},
| | {key = "GripStrength", name = "Grip Strength"}, |
| {key = "Pselectin", name = "P-selectin", system = "Inflammatory Index"},
| | {key = "VerticalJump", name = "Vertical Jump"}, |
| | {key = "TUGTest", name = "Timed Up and Go Test"}, |
| | {key = "ChairRiseTime", name = "Chair Rise Time"}, |
| | {key = "PhysicalActivityWeek", name = "1-Week Physical Activity"}, |
| | } |
| | }, |
| | | |
| -- Motion Index | | { |
| {key = "GripStrength", name = "Grip Strength", system = "Motion Index"},
| | system = "Body Morphology Index", |
| {key = "VerticalJump", name = "Vertical Jump", system = "Motion Index"},
| | data = { |
| {key = "TUGTest", name = "Timed Up and Go Test", system = "Motion Index"},
| | {key = "WaistHipRatio", name = "Waist-to-Hip Ratio"}, |
| {key = "ChairRiseTime", name = "Chair Rise Time", system = "Motion Index"},
| | {key = "WaistHeightRatio", name = "Waist-to-Height Ratio"}, |
| {key = "PhysicalActivityWeek", name = "1-Week Physical Activity", system = "Motion Index"},
| | {key = "BMI", name = "Body Mass Index (BMI)"}, |
| | {key = "Weight", name = "Weight"}, |
| | {key = "Height", name = "Height"}, |
| | {key = "BodyFat", name = "Body Fat"}, |
| | {key = "LeanBodyMass", name = "Lean Body Mass"}, |
| | {key = "SoftLeanMass", name = "Soft Lean Mass"}, |
| | } |
| | }, |
| | | |
| -- Body Morphology Index
| | { |
| {key = "WaistCirc", name = "Waist Circumference (WC)", system = "Body Morphology Index"}, | | system = "Genetic Index", |
| {key = "WaistHipRatio", name = "Waist-to-Hip Ratio", system = "Body Morphology Index"},
| | data = { |
| {key = "WaistHeightRatio", name = "Waist-to-Height Ratio", system = "Body Morphology Index"},
| | {key = "TelomereLength", name = "Terminal Telomere Restriction Fragment"}, |
| {key = "BMI", name = "Body Mass Index (BMI)", system = "Body Morphology Index"},
| | } |
| {key = "Weight", name = "Weight", system = "Body Morphology Index"},
| | }, |
| {key = "Height", name = "Height", system = "Body Morphology Index"},
| |
| {key = "BodyFat", name = "Body Fat", system = "Body Morphology Index"},
| |
| {key = "LeanBodyMass", name = "Lean Body Mass", system = "Body Morphology Index"},
| |
| {key = "SoftLeanMass", name = "Soft Lean Mass", system = "Body Morphology Index"}, | |
|
| |
| -- Genetic Index
| |
| {key = "TelomereLength", name = "Terminal Telomere Restriction Fragment", system = "Genetic Index"}
| |
| } | | } |
|
| |
|
Line 188: |
Line 231: |
|
| |
|
| -- Generate rows for each biomarker | | -- Generate rows for each biomarker |
| for _, bm in ipairs(biomarkers) do | | for _, system in ipairs(biomarkers) do |
| wikitable = wikitable .. '|-\n'
| | for _, bm in ipairs(system.data) do |
| wikitable = wikitable .. '| ' .. bm.system .. ' || ' .. bm.name
| | wikitable = wikitable .. '|-\n' |
| for _, study in ipairs(studies) do
| | wikitable = wikitable .. '| ' .. system.system .. ' || ' .. bm.name |
| -- Retrieve data value for the current cell, using the nested structure
| | for _, study in ipairs(studies) do |
| local cellValue = study.biomarkers[bm.key] or ""
| | -- Retrieve data value for the current cell, using the nested structure |
| wikitable = wikitable .. ' || ' .. cellValue
| | local cellValue = study.biomarkers[bm.key] or "" |
| end
| | wikitable = wikitable .. ' || ' .. cellValue |
| wikitable = wikitable .. '\n'
| | end |
| | wikitable = wikitable .. '\n' |
| | end |
| end | | end |
|
| |
|