Code for SPSS/SAS/Stata/R to calculate a measure of severe maternal morbidity