These are mostly GNU/Linux BASH Shell, AWK, Perl, Sed & MS-PowerShell calculator scripts for cognitive tests, psychiatric rating scales, cardiovascular calculators. Some calculators are platform independent (Perl, REXX, FreeBASIC, and other Batch files for FreeDOS. Some scripts are designed for GNU/Linux and other POSIX compatible OS, others are geared to MS-PowerShell, and some others eg platform independent eg Perl.
Medical calculators help provide numerical values which makes quantification, and tracking of progress easier. Medicine is not a pure scientific endeavour, hence, some medical calculators esp. measuring depression severity etc. attempt to put a numerical value to a subjective experience.
The aim of these calculators and algorithms is to provide a simple minimalist effecient command-line interface (CLI) scripts which could work in a teletype shell, or terminal. These tests do not require online connection (apart from downloading them). The memory requirements are minimal.
The current scripts aim to cover multiple platforms eg *nix (Unix, BSD, GNU/Linux), BSD operating systems eg [FreeBSD (NomadBSD, DragonFlyBSD), NetBSD, OpenBSD], *nix/BSD derivatives eg MacOS, platforms that have POSIX compliance layer eg Haiku, as well as other operating systems eg FreeDOS & MS-Windows (via PowerShell or Command Prompt), as well as other platform independent calculators and algorithms.
Users have access to the source code, so they are welcome to study, improve, and copy the design for other tests under GNU/GPL-3 license.
The general guiding concept is that these codes offer more than just a calculator. They print a report that could be copied from a terminal, or could be saved to a file. They calculate subscores, and they have data validation for each parameter with loops to guard against accidental typos or missed entries, the same goes for saving files.
Also, in case of subscores, there are if statements to make sure that the score entered is logical eg. in ACE-III if someone scores 4/5 in orientation in time. The test will ask about score for Mini-ACE which is out of 4. Logically, the result could be only 4 or 3. If the ACE-III orientation in time score is 1, the Mini-ACE would only be 1 or 0. The code makes sure that the results are coherent in that sense. The same principle guides registration & recall; one cannot recall, what one did not register. while loops ensure that values entered are within the accepted range only to minimise the GIGO effect.
Whenever possible, the codes are moving more towards the utilisation of subroutines esp. in Perl codes, to minimise code redundancy.
Scripts (esp. Perl scripts) do not all function in the same way or written in the same style. Following Perl's philosophy ('There is more than one way to do it') multiple coding styles where used.
Each code strives to abide by Unix philosophy 'Do one thing and do it well'
- Addenbrooke's Cognitive Examination (ACE-III):
ace-iii-bc.sh(most up-to-date in shell scripts),ace-bc.sh,ace-calc.sh,ace-echo.sh,ace-pwsh.ps1, &ace.pl(most up-to-date, with ACE to MMSE converter), - Addenbrooke's Cognitive Examination - Revised (ACE-R):
ace-r-bc.sh,ace-r-calc.sh,ace-r-echo.sh, &ace-r-pwsh.ps1,ace-nosave.pl,acer.pl - Mini-Addenbrooke's Cognitive Examination (M-ACE):
m-ace-bc.sh,mace.sh,m-ace-calc.sh,m-ace-echo.sh,m-ace-pwsh.ps1, &mace.pl - ACE-III to MMSE converter:
ace-mmse-converter.sh,ace2mmse.pl, - Abbreviated Mental Test Score (AMTS):
amts-bc.sh,amt.awk,amts.pl - Abbreviated Mental Test-4 (AMT4):
amt4.awk,amt4-bc.sh&amt4.bas,amt4.pl, - Assessment test for delirium & cognitive impairment (4AT):
4at.rexx,4at.bat,4at.awk&4at.pl - Assessment of Parkinsonism:
updrs.pl - Brief Cognitive Rating Scale:
bcrs.pl - Cambridge Behavioural Inventory (CBI):
cbi-bc.sh,cbi-calc.sh,cbi-echo.sh, &cbi.pl - Cambridge Behavioural Inventory - Revised (CBI-R):
cbi-r-bc.shcbi-r-calc.sh,cbi-r-echo.sh,cbi-r-pwsh.ps1, &cbir.pl - Clinical Dementia Rating Scale
cdr-pwsh.ps1,cdr.awk,cdr.pl - Clinical Dementia Rating, Clinical Dementia Rating + National Alzheimer's Disease Coordinating Centre (NACC) Frontotemporal Lobar Degeneration (CDR-FTLD):
cdr-ftld-pwsh.ps1,cdr-ftld.pl - Dementia Severity Rating Scale (DSRS):
dsrs.rexx - Free-Cog Examination (Free-Cog):
free-cog-bc.sh - Frontal Assessment Battery (FAB):
fab-bc.sh,fab.plBubois, B. ; Litvan, I.; The FAB: A frontal assessment battery at bedside. Neurology. 55(11):1621-1626, - Hachinski Ischaemic Score (HIS):
his.rexx,his.pl - Informant Questionnaire on Cognitive Decline in the Elderly (IQCODE):
iqcode.pl - Retrospective Form of the Informant Questionnaire on Cognitive Decline in the Elderly (Retrospective IQCODE):
iqcoder.pl - Informant Questionnaire on Cognitive Decline in the Elderly (IQCODE - Short):
iqcodes.pl - Mini-Cog Test:
mini-cog.bas,minicog.pl - Mini-Mental State Examination Calculator (MMSE):
mmse.pl - Montreal Cognitive Examination (MoCA):
moca-bc.sh,moca-calc.sh,moca-echo.sh&moca-pwsh.ps1 - Montreal Cognitive Examination - Blind (MoCA - Blind):
moca-blind-bc.sh,moca-blind-calc.sh,moca-blind-echo.sh, &moca-blind-pwsh.ps1 - Montreal Cognitive Examination (MocA) Memory Score Index (MIS):
moca-mis.awk,moca-mis.pl - MoCA to MMSE converter:
moca2mmse.html,moca-mmse-converter.sh - Montreal Cognitive Assessment 5-minute protocol (MoCA 5-min protocol)
moca-5-min.awkmoca-5-min.pl - The Rowlan Universal Dementia Assessment Scale (RUDAS): A Multicultural Cognitive Assessment Scale
rudas-bs.sh(Storey et al, 2004) International Psychogeriatrics, 16(1), 13-31 - The Short Portable Mental Status Questionnaire (SPMSQ)
spmsq.rexx - Test Your Memory (TYM):
tym-bc.sh
- Dementia algorithm from the WHO mhGAP version 2.0 website
mhgap-dementia.awk,mhgap.pl.
- Alcohol Use Disorders Identification Test (AUDIT) calculator:
audit.rexx,audit.awk,audit.pl - CAGE Questionnaire:
cage.bas,cage.bat,cage.pl - Clinical Institute Withdrawal Assessment for Alcohol–Revised (CIWA-Ar):
ciwa.pl
- Brief Psychiatric Rating Scale (BPRS):
bprs.awkbprs-bc.sh,bprs-calc.sh,bprs-echo.sh&bprs.pl
- Beck Anxiety Inventory (BAI) calculator:
bai.pl - Beck Depression Inventory (BDI) score calculator:
bdi.pl - Calgary Depression Scale for Schizophrenia (CDSS):
cdss.pl - Generalised Anxiety Disorder (GAD-7) Assessment:
gad7-bc.sh,gad7.pl - Geriatric Depression Scale (15-item) (GDS-15)
gds-15.bat - Geriatric Depression Scale (4-item) (GDS-4)
gds-4.bat - Hamilton Anxiety Rating Scale (HAM-A):
hama.pl - Hamilton Depression Rating Scale (HDRS):
hrsd-bs.sh,hdrs21.pl,hdrs17.pl,hdrs7.pl - Montgomery-Åsberg Depression Rating Scale (MADRS) Total Score Calculator:
madrs.pl - Patient Health Questionnaire (PHQ-4):
phq4.pl - Patient Health Questionnaire (PHQ-8):
phq8.pl - Patient Health Questionnaire (PHQ-9) Depression:
phq9.pl - Rating Anxiety in Dementia (RAID):
raid.pl - SADPERSONS scale calculator:
sadpersons.pl
- Work & Social Adjustment Scale:
wsas.pl - Bristol Activities of Daily Living Scale calculator:
badls.pl - Rockwood Clinical Frailty Scale:
cfs.awk
- Health of The Nation Ouctome Scale (HoNOS):
honos.pl,honos-bc.sh - Health of The Nation Ouctome Scale 65+ (HoNOS65+):
honos65.pl - Health of The Nation Ouctome Scale - Acquired Brain Injry (HoNOS-ABI):
honosabi.pl - Health of The Nation Ouctome Scale - Child & Adolescent Mental Health (HoNOSCA):
honosca.pl - Health of The Nation Ouctome Scale - Secure (HoNOS-Secure):
honos-secure.pl
- Electroconvulsive Therapy (ECT) Age-based and Dose calculator:
ect-age.awk,ect-dose.sh,ect-age.bat&ect-age.pl - ECT charge & titration calculator:
ect-charge.awk,ect-charge.pl - ECT dosing formulae and equations' calculator:
ect-formulae.awk.ect-formulae.pl - Ohm's law
ohms-law.rexx,ohms-law.bas,ohmslaw.awk,ohmslaw.pl - ECT Power Calculator in watts
power.rexx,power.awk,power.pl - ECT Energy Calculator in joules
energy.rexx,energy.pl - Repetitive Transcranial Magnetic Stimulation (rTMS) dose calculator:
rtms.awk.rtms.pl
- AcVPU score to Glasgow Coma Scale
acvpu2gcs.pl - AVPU score to GCS:
avpu2gcs.awkavpu.batandavpu.sh - AVPU to GCS converter:
avpu2gcs.awk,avpu2gcs.bat,avpu.plandavpu.sh - GCS to AcVPU score converter
gcs2acvpu.sh - GCS to AVPU score converter
gcs2avpu.sh - Glasgow Coma Scale Calcultator (GCS)
gcs-echo.shthis also converts from GCS to AVPU score
- Age calculator:
age.bat,age.awk,age.pl - Body Mass Index (BMI) metric calculator:
bmi.awk,bmi.bas,bmi.bat,bmi.rexx,bmi.py,bmi-pwsh.ps1, &bmi.pl - Body Mass Index (BMI) imperial calculator
bmi-lb-inch.bas,bmi-lb-inch.pl - Calories to joules converter
c2j.awk,c2j.pl - Cardiac Output calculator:
cardiac-output.awk,cardiac.bat&cardiac-output.pl - Celsius to Fahrenheit temperature scale converter:
fahrenheit.awk,fahrenheit.pl - Fahrenheit to Celsius temperature scale converter:
celsius.awk,celsius.pl - Hip-Waiste Ratio calculator:
hip-waist.awk,hip-waiste.rexx,hip-waist.pl - Kilogram(s) to pound(s) converter:
kg2lb.awk,kg2lb.pl - Kilogram(s) to stone(s) converter:
kg2st.awk,kg2st.pl - Mean Arterial Blood Pressure calculator (MAP):
map.awk,map.bas,map.py,map.rexx,map.pl - Maximum Heart Rate (MHR) calculator
mhr.rexx,mhr.bat,mhr.bas,mhr.sh,mhr.py,mhr.js,mhr.awk,mhr.pl - Pack years of cigarettes calculator:
packyr.awk,packyear.pl - Target Heart Rate (THR) calculator
thr.placcording to CDC - Pounds to kilograms converter:
lb2kg.awk,lb2kg.pl - QTc Interval calculator:
qtc.awk,qtc.pl(calculates Bazett, Fridericia, Hodges (different calculations), Framingham, Rautaharju, Dmitrienko.qtc.bas: is less extensive - Stone to kilogram converter:
st2kg.awk,st2kg.pl - Lesion size estimation helpers:
triangle.awk,rectangle.awk,circle.awk
neutralise.sed&neutralise.plattempt to change the language of a report or a letter to be more gender neutral, with respect to pronouns, jobs and relationships.
.awkfiles refer to AWK programming language, they run under Unix, GNu/Linux, BSD, MacOS, Haiku..basfiles are BASIC files that run under FreeBASIC which could be installed on GNU/Linux or MS-Windows or run online on a browser.batfiles are batch files that run under FreeDOS, and could be used on MS-Windows command promptcmd.exe.htmlfiles refer to platform independent that works on any browser that can run Javascript.plfiles refer to Perl files, they are platform independent, and come prebundled in GNU/Linux distros, possibly MacOS X & Haiku..ps1files refer to MS-PowerShell works under Mircosoft Windows, and works under GNU/Linux Bash Shell (if Ms-PowerShell is installed).rexxfiles refer to REXX files which are platform independent, they run under Unix, Amiga & Amiga-like OS (eg Amiga OS4, MorphOS & AROS), they can run under GNU/Linux if REXX is installed.shfiles refer to BASH Shell scripts which could be used GNU/Linux Bash Shell Script on GNU/Linux, BSD, MacOS-X, or Haiku.sedfiles are stream editor files that work in GNU/Linux, BSD, MacOS-X, or Haiku
- In all the files. You can type the entry (numerical number) and press
ENTER(Return) - If you do not have a compiler for the scripting language used, you can use an online compiler via a web browser as JDoodle or Tutorials Point and select the scripting language of your choice.
- If there is the same calculator in AWK &/or and other language, AWK & Perl scripts are the more comprehensive and up-to-date. The only exception is
audit.plwhereaudit.rexxoffers tighter data validation. - If there are different versions of a calculator in BASH Shell Script
filename-bc.shwould be the most up-to-date
Instructions for GNU/Linux Bash Shell Script on GNU/Linux, BSD (FreeBSD, OpenBSD, NetBSD), Unix, MacOS-X or Haiku
- In Bash shell TTY, or terminal either in GNU/Linux, BSD, MacOS-X, or Haiku start terminal
- Please, make sure to make the file executable by
chmod +xfilename.sh egchmod +x ace.sh - Please, type
./before the file name to start the desired shell script, orshcommand then space before the name of the shell script eg./ace-bc.shorsh ace-bc.sh. filename-bc.share usually the most up-to-date files.
ace-iii.sh,ace-bc.sh,ace-calc.sh, andace-echo.shrefer to Addenbrooke's Cognitive Examination (ACE-III), with Mini-ACE (M-ACE) subset calculation.ace-iii.shhas extensive data validation it is failsafe to use. It usesbcand converts to MMSE score in addition to M-ACE.ace-r-bc.sh,ace-r-calc.sh, andace-r-echo.shrefer to Addenbrooke's Cognitive Examination-R (ACE-R) (which also calculates Mini-Mental State Examination(MMSE))ace-mmse-converter.shconverts the results of ACE-III test to MMSE based on Matías-Guiu JA, Pytel V, Cortés-Martínez A, Valles-Salgado M, Rognoni T, Moreno-Ramos T, Matías-Guiu J. Conversion between Addenbrooke's Cognitive Examination III and Mini-Mental State Examination. Int Psychogeriatr. 2018 Aug;30(8):1227-1233. doi: 10.1017/S104161021700268X. Epub 2017 Dec 10. PMID: 29223183.cbi-bc.sh,cbi-calc.sh, andcbi-echo.shrefer to Cambridge Behavioural Inventory (CBI)cbi-r-bc.sh,cbi-r-calc.sh, andcbi-r-echo.shrefer to Cambridge Behavioural Inventory Revised (CBI-R)free-cog-bc.shrefers to Free-Cog Examination Free-Cog. Referencem-ace-bc.sh,m-ace-calc.sh, andm-ace-echo.shrefer to Mini-Addenbrooke's Cognitive Examination III (M-ACE III)moca-bc.sh,moca-calc.sh, andmoca-echo.shrefer to Montreal Cognitive Examination (MoCA),moca-bc.shalso converts to MMSE score in addition to the MoCA score.moca-mmse-converter.shconverts the results of MoCA to MMSE based on van Steenoven I, Aarsland D, Hurtig H, Chen-Plotkin A, Duda JE, Rick J, Chahine LM, Dahodwala N, Trojanowski JQ, Roalf DR, Moberg PJ, Weintraub D. Conversion between mini-mental state examination, Montreal cognitive assessment, and dementia rating scale-2 scores in Parkinson's disease. Mov Disord. 2014 Dec;29(14):1809-15. doi: 10.1002/mds.26062. Epub 2014 Nov 7. PMID: 25381961; PMCID: PMC4371590.amts-bc.shrefers to Abbreviated Mental Test Score (AMTS)amt4-bc.shrefers to Abbreviated Mental Test-4 (AMT4)avpu.shrefers top AVPU score calculator and convrter to GCS-bprs-bc.sh,bprs-calc.sh, andbprs-echo.shrefer to Brief Psychiatric Rating Scale (BPRS)ect-dose.shcalculates the electroconvulsive therapy (ECT) dose according to Age-Based & Half Age-Based Formulae.ect-charge-bc.shrefers to ECT charge calculator if one gives it the Pulse Width (PW) in millisecond (ms), Frequency in Herz (Hz), Duration in seconds (D), and current in Amperes (I). It can calculate the charge in millicoulombs (mC). eg PW: 1 ms, F 20 Hz, Duration 6, and current 0.8 A, Charge would be 192.0 mC.fab-bc.shrefers to Frontal Assessment Battery (FAB)gad7-bc.shrefers to GAD-7gcs-echo.shrefers to Glasgow Comas Scale Calculator (GCS)gcs2acvpu.shrefers to GCS score calculator to AcVPU score convertergcs2avpu.shrefers to GCS to AVPU score converterhonos-bc.shrefers to the Health of the Nation Outcome Scale (HoNOS)hrsd-bs.sh, refers to the 17-item Hamilton Depression Rating Scale (HRSD) or (HAM-D), Hamilton M. A rating scale for depression. J Neurol Neurosurg Psychiatry 1960; 23:56–62mhr.shrefers to Maximum Heart Rate (MHR) Calculatormoca-blind-bc.sh,moca-blind-calc.sh, andmoca-blind-echo.shrefer to Montreal Cognitive Examination - blind (MoCA - Blind)phq9-bc.shrefers to PHQ-9rudas-bs.shrefers to The Rowlan Universal Dementia Assessment Scale (RUDAS)tym-bc.shrefers to Test Your Memory (TYM) examination.- If any of the values are out of range, the programme will let you know and will prompt you to enter a value within range
The shell scripts with -bc in their names require basic calculator bc. Most GNU/Lnux distros would ship with bc including Haiku bash terminal. The shell scripts with -calc in their names require calc calculator. The shell scripts with -echo in their names calculate via echo command. -echo files are the most basic, possibly all of the aforementioned operating systems have and distros would ship with echo command, bc is the most popular calculator, and calc might not be available by default. So, user may want to check dependencies, or use the version that suits them. Each version operates more or less identical two others. It is recommended to use -bc.sh files first for calculators as they are the most updated and they could have converters to MMSE also.
- AWK works under Unix, GNU/Linux, BSD. MacOS-X, Haiku. Either on TTY or terminal type, type chmod +x
filename.awk& typeawk -f filename.awkand the programme will be executed cdr.awk&cdr-fltd.awkhave more strict data validation than their MS-PowerShell counterpartscdr-pwsh.ps1&cdr-fltd-pwsh.ps1- ECT charge & age-based calculators in AWK work better than BASH shell coutnerpart scripts. ECT Charge uses
IGNORECASEwhich is typical of GNU/AWK (gAWK), if used under a different non-GNU platform consider adding#and space before it to comment it out. The rest of the script should not be affected. qtc.awkis more accurate and provide more data thanqtc.bas
4at.awk: 4AT delirium testamt.awk: Abbreviated Mental Test Score (AMTS)amt4.awk: Abbreviated Mental Test-4 (AMT4)age.awk: age calculatoravpu2gcs.awkis an AVPU score calculator and converter to Glasgow Coma Scale (GCS)audit.awk: AUDIT tool for assessment of alcohol intakebmi.awkrefers to body mass index (metric) calculatorbprs.awkBrief Psychiatric Rating Scale (BPRS)c2j.awkcalories to joules calculatorcardiac-output.awkrefers to cardiac outputcdr.awkrefers to Clinical Dementia Rating Scalecdr-ftld.awkrefers to Clinical Dementia Rating Scale + Frontotemporal Lobar Dementia scalecelsius.awkFahrenheit to Celsius: Temperature scale convertercfs.awk: Rockwoxod Clinical Frailty Scalecircle.awkcalculates the area of a circleect-age.awkrefers to ECt Age-based dosing and half-age-based dosingect-charge.awkrefers to ECT charge & titration calculatorect-formulae.awkrefers to ECT Dosing formulae and equations' calculator.fahrenheit.awkCelsius to Fahrenheit temperature scale converterhip-waist.awkrefers to hip-waist ratio calculator.kg2lb.awkrefer to Kilograms to pounds converter.kg2st.awk: kilogram to stone converter.lb2kg.awkPounds to kilograms converter.map.awkrefers to mean arterial blood pressure calculatormhgap-dementia.awkis Dementia algorithm from the WHO mhGAP version 2.0 websitemhr.awk: Maximum Heart Rate Calculatormoca-5-min.awkrefers to Montreal Cognitive Assessment 5-minute protocolmoca-mis-awkcalculates the Memory Index Score (MIS) of the Montreal Cognitive Examination (MocA) or MoCA-Blindohmslaw.awkcalculates volts, current, resistance according to Ohm's lawpower.awkcalculates power in wattspackyr.awkpack years of cigarettes calculatorqtc.awkcalculates QTc interval via Bazett, Fridericia, Hodges (different calculations), Framingham, Rautaharju, & Dmitrienkorectangle.awkcalculates the area of a rectanglertms.awkrefers to rTMS dose calculator.st2kg.awkrefers to stone to kilogram converter.triangle.awkcalculates the area of a triangle
Type perl followed by the file name eg perl bmi.pl. Perl almost alway comes pre-bundled in GNU/Linux distros & MacOS, to download the latest update it could be done via the distro's update command or else from Perl website. For MS-Windows, Perl is freely downloadable from Strawberry Perl & Active Perl
4AT.pl: calculates The Assessment Test for Delirium (4AT).age.pl: age calculatoramt4.pl:calculates the Abbreviated Mental Test Score 4-itemamts.pl: calculates the Abbreviated Mental Test Scoreace.pl: calculates The Addenbrooke's Cognitive Examination - III (ACE-III) score, with ACE to MMSE converter & offers file save.ace-nosave.pl: alculates The Addenbrooke's Cognitive Examination - III (ACE-III) score, with ACE to MMSE.acer.pl: calculates The Addenbrooke's Cognitive Examination - Revised (ACE-R) score, M-ACE & offers file save.ace2mmse.pl: converts the The Addenbrooke's Cognitive Examination - III (ACE-III) score to MMSE score.acvpu2gcs.pl: AcVPU score to Glasgow Coma Scaleaudit.pl: calculates Alcohol Use Disorders Identification Test (AUDIT) scoreavpu2gcs.plconverts from AVPU score to GCS scoreupdrs.pl: calculates Assessment of Parkinsonism UPDRS 5-itembadls.pl: Bristol Activities of Daily Living Scale calculatorbai.pl: Beck Anxiety Inventory (BAI) calculatorbcrs.pl: Brief Cognitive Rating Scale (BCRS)bdi.pl: is Beck Depression Inventory (BDI) score calculatorbmi.plcalculates the BMIbmi-lb-inch.pl: calculates the imperial BMIbprs.plcalculates the Brief Psychiatric Rating Scalec2j.plconverts calories to joulescage.pl: calculates CAGE Questionnairecardiac-outut.plcalculates the cardiac outputcbi.pl: Cambridge Behavioural Inventorycbir.pl@ Cambridge Behavioural Inventory - Revised (CBI-R)cdr.plcalculates the clinical dementia rating scalecdr-ftld.plcalculates Clinical Dementia Rating, Clinical Dementia Rating + National Alzheimer's Disease Coordinating Centre (NACC) Frontotemporal Lobar Degeneration (CDR-FTLD)cdss.pl: Calgary Depression Scale for Schizophrenia (CDSS)celsius.pl: Fahrenheit to Celsius: Temperature scale converterciwa.pl: Clinical Institute Withdrawal Assessment for Alcohol–Revised (CIWA-Ar)ect-age.plis an ECT Age-based and Dose calculatorect-charge.plis an` ECT charge & titration calculatorect-formulae.pl: is ECT dosing formulae and equations' calculatorenergy.pl: energy calculator in joules for ECT using dynamic impedance, charge and current (E=I^2RQ)fab.pl: Frontal Assessment Battery (FAB)fahrenheit.pl: Celsius to Fahrenheit temperature scale convertergad7.pl: Generalised Anxiety Disroder (GAD-7) Assessmenthama.pl: Hamilton Anxiety Rating Scale (HAM-A)hdrs7.pl: Hamilton Depression Rating Scale (HDRS-7)hdrs17.pl: Hamilton Depression Rating Scale (HDRS-17)hdrs21.pl: Hamilton Depression Rating Scale (HDRS-21)his.pl: is Hachinski Ischaemic Score (HIS) calculatorhip-waist.plis a Hip-Waiste Ratio calculatorhonos.pl: Health of The Nation Ouctome Scale (HoNOS)honos65.pl: Health of The Nation Ouctome Scale 65+ (HoNOS65+)honosabi.pl: Health of The Nation Ouctome Scale - Acquired Brain Injry (HoNOS-ABI)honosca.pl: Health of The Nation Ouctome Scale - Child & Adolescent Mental Health (HoNOSCA)honos-secure.pl: Health of The Nation Ouctome Scale - Secure (HoNOS-Secure)iqcode.pl: Informant Questionnaire on Cognitive Decline in the Elderly (IQCODE).iqcoder.pl: Retrospective Form of the Informant Questionnaire on Cognitive Decline in the Elderly (Retrospective IQCODE)iqcodes.pl: Informant Questionnaire on Cognitive Decline in the Elderly (IQCODE-Short)kg2lb.plrefer to Kilograms to pounds converter.kg2st.pl: kilogram to stone converter.lb2kg.plPounds to kilograms converter.madrs.pl: Montgomery-Åsberg Depression Rating Scale (MADRS) Total Score Calculatormap.plrefers to mean arterial blood pressure calculatormace.plrefers to Mini-Addenbrooke's Cognitive Examination (M-ACE)mhgap-dementia.plis Dementia algorithm from the WHO mhGAP version 2.0 websitemhr.plrefers to Maximum Heart Rate Calculatorminicog.pl: Mini-Cog Test Calculatormmse.pl: Mini-Mental State Examination Calculator (MMSE)moca-5-min.plrefers to Montreal Cognitive Assessment 5-minute protocolmoca-mis.pl: refers to Montreal Cognitive Examination (MocA) Memory Score Index (MIS)neutralise.pl: is a rough helper to make reports more gender neutral. It is by no means complete. To work this file typeperl -pi -w neutralise.pl filename.txtohmslaw.pl: Calculates Ohm's law, select the parameter you want to calculate and enter the other two, it will calculate the thirdpackyear.pl: Pack years of cigarettes calculatorphq4.pl: Patient Health Questionnaire (PHQ-4)phq8.pl: Patient Health Questionnaire (PHQ-8)phq9.pl: Patient Health Questionnaire (PHQ-9) Depressionpower.pl: ECT power calculator in wattsqtc.plcalculates QTc interval via Bazett, Fridericia, Hodges (different calculations), Framingham, Rautaharju, & Dmitrienko with file save option.raid.pl: Rating Anxiety in Dementia (RAID)rtms.plrefers to rTMS dose calculator.sadpersons.pl: SADPERSONS scale calculatorst2kg.plrefers to stone to kilogram converter.thr.plrefers to Target Heart Ratewsas.pl: Work & Social Adjustment Scale
This is a stream editor (sed) converter to make letters and reports more gender neutral. To make this script work please, use the following commands:
-
chmod +xneutralise.sed` -
sed -i -f neutralise.sed file.txtThe script will go through each of the words that could be changed to convert them to a more neutral alternative or synonym. -
Limitations: object pronoun & possessive adjective are the same for singular feminine (her). If the text has her it should be cross revised manually. A bang will appear next to the word to alert the reviewer. For a singular third person male the possessive adjective and the possessive pronoun are the same. A bang will appear to alert the reviewer to check the text. This project is far from complete.
- Please, select PowerShell ISE
- Please, load the programme or copy ace-pwsh.ps1 and paste it in MS-PowerShell ISE
- Please, press
playbutton - Please, answer the questions based on your assessment results
- Only numbers are entered
- After finishing the programme calculates the total ACE-III, or ACE-R etc. score with its subsets whenever possible and displays them
- If any of the values are out of range, the programme will let you know and will prompt you to enter a value within range.
ace-pwsh.ps1refers to Addenbrooke's Cognitive Examination (ACE-III), with Mini-ACE (M-ACE) subset calculationace-r-pwsh.ps1refers to Addenbrooke's Cogntive Examination -R (ACE-R) with Mini-ACE (M-ACE) and Mini-Mental State Examination (MMSE) subsets calculationbmi-pwsh.ps1refers to metric Body Mass Indexcbi-r-pwsh.ps1refers to Cambridge Behavioural Inventory Revised (CBI-R)cdr-ftld-pwsh.ps1refers to Clinical Dementia Rating + National Alzheimer's Disease Coordinating Centre (NACC) Frontotemporal Lobar Degeneration (CDR-FTLD)cdr-pwsh.ps1refers to Clinical Dementia Ratingect-pwsh.ps1refers to an electroconvulsive therapy calculator. It calculates the electroconvulsive therapy (ECT) charge according to Age-Based & Half Age-Based Formulae. Also, if one gives it the Pulse Width (PW) in millisecond (ms), Frequency in Herz (Hz), Duration in seconds (D), and current in Amperes (I). It can calculate the charge in millicoulombs (mC). eg PW: 1 ms, F 20 Hz, Duration 6, and current 0.8 A, Charge would be 192.0 mC.- On MS-Windows from the start menu down left search for PowerShell
m-ace-pwsh.ps1refers to Mini-Addenbrooke's Cognitive Examination III (M-ACE III)moca-pwsh.ps1refers to Montreal Cognitive Examination (MoCA)moca-blind-pwsh.ps1refers to Montreal Cognitive Examination - blind (MoCA - Blind)
moca2mmse.htmlis an HTML/JavaScript based on the conversion by Lawton et al. Credits to Hosadeeb Adeeb Nashed
One would either install FreeBasic compiler +/- IDE or else use online FreeBASIC compiler
amt4.basrefers to Abbreviated Mental Test-4 (AMT4)bmi.basis Body Mass Index (BMI) calculator in kilograms and meter,bmi-lb-inch.bascalculates BMI in pounds and inchescage.basis CAGE questionnaire calculator written in BASIC (FreeBASIC).map.basis Mean Arterial Blood Pressure Calculator.mhr.basrefers to Maximum Heart Rate (MHR) Calculator.mini-cog.basrefers to Mini-Cog test.ohms-law.basrefers to ECT Ohm's lawqtc.basis QTc Interval calculator according to Bazett, Framingham, and, Hodges formulae. Bazett is the most commonly used.
These scripts are written in REXX. It could be used for z/OS, Unix, GNU/Linux (via Regina-REXX), Amiga OS (via ARexx) and other AmigaOS related OS (AROS, MorphOS etc.), or OS/2
4at.rexxrefers to 4AT test.audit.rexxrefers to Alcohol Use Disorders Identification Test (AUDIT).bmi.rexxis a BMI calculator.dsrs.rexxrefers to Dementia Severity Rating Scale (DSRS).energy.rexxrefers to ECT energy calculator in jouleship-waiste.rexxrefers to hip-waiste ratio calculator.his.rexxrefers to Hachinski Ischaemic Score (HIS).map.rexxrefers to mean arterial blood pressure calculatormhr.rexxrefers to Maximum Heart Rate (MHR) Calculator.ohms-law.rexxrefers to ECT Ohm's lawpower.rexxrefers to ECT Power Calculator in wattsspmsq.rexxrefers to The Short Portable Mental Status Questionnaire (SPMSQ)
FreeDOS is licensed under GNU/GPL-3
-4at.bat: 4AT test
age.bat: Age calculatoravpu.batrefers to AVPU scoreavpu2gcs.batrefer to AVPU to GCS converterbmi.batBMI calculatorcage.batrefers to CAGE Questionnaire for alcohol dependencecardiac.batrefers to cardiac output calculator.ect-age.batrefers to ECT dose calculation via Age-Based Method & Half Age-Based Method.gds-15.batrefers to Geriatric Depression Scale (15-item) (GDS-15)gds-4.batrefers to Geriatric Depression Scale (4-item) (GDS-4)mhr.batrefers to Maximum Heart Rate.
Python ACE-III Calculator is a twin project by Mostafa Hussein Omar that has both a LibreOffice spreadsheet (*.ods) that could be filled with an automatic calculator and a Python script that works as a calculator. Type Python and the path of the script and it will start.
- To clone (copy the assessments) if you have git. You can type
git clone https://github.com/E-Sid/scripts/ - To Download hover of the icon
code <>and download zip file (compressed file). Then unzip it either via GUI orunzipcommand on the CLI - You can also copy a single code and paste it as a text file then rename it with the appropriate extension, and make it executable.
- For cardiovascular calculators: Mean arterial blood pressure, QTc interval calculator, Cardiac output offer only one way of calculation and should be used for general guidance ONLY. Please note that this codes here are just examples, calculations should ONLY be performed by trained healthcare professionals. The formulae used here is just an estimate and the actual cardiovascular calculations can vary based on individual factors such as fitness level and health conditions.
- For psychiatric calculators, the interpretations of severity is not added as the score SHOULD NOT be interpreted as a marker of severity of illness in isolation from a clinical context. These are NOT substitutes to assessment by a health care professional.
- All these scripts are ONLY calculators not the tests themselves. Usage of these score calculators is both free (libre) & free (gratis) under GNU/GPL 3.0 however, the usage of any of the test material is subject to the authors copyright status.
- For diagnostic algorithms the source of information eg mhGAP should ALWAYS be checked. This is aimed at healthcare professionals, and should be used ONLY to facilitate the algorithmic part of the diagnostic procedure, but NOT as a substitute for clinical assessment, or the WHO mhGAP guidance.
- Some shorter Perl codes were translated from AWK code via
a2pcommand egmhgap-dementia.pl. The code is the result of this conversion approach, but it is functional, more recent codes egace.pl,acer.pl,mace.pl,mhr.plwere written directly in Perl. Currently, the ability to save the results is being added gradually toPerlcodes. The first one to utilise this iscelsius.pl. ace.pl&acer.pluse the deprecated goto for saving results. In case, the a new version appears, one can useace-nosave.plinstead.
- None
- These scripts are intended as aides to help with calculation of psychometric and cardiovascular assessments.
- These scripts are licensed under GNU/GPL-3 license and are free to use.
- These are not the tests, they only are calculators to score the tests, examinations and assessments.
- This product is licensed under GNU/GPL-3. Clinical Use is allowed by trained clinicians but it is not for commercial use. This applies only to calculators not the tests. If anyone wants to use the tests, one should check their license as well.