Man pages for phsmethods
Standard Methods for Use in Public Health Scotland

age_calculateCalculate age between two dates
age_from_chiExtract age from the CHI number
area_lookupCodes and names of Scottish geographical and administrative...
chi_checkCheck the validity of a CHI number
chi_padAdd a leading zero to nine-digit CHI numbers
create_age_groupsCreate age groups
dob_from_chiExtract Date of Birth (DoB) from the CHI number
extract_fin_yearExtract the formatted financial year from a date
file_sizeCalculate file size
format_postcodeFormat a postcode
match_areaTranslate geography codes into area names
percentPercentages
phsmethods-packagephsmethods: Standard Methods for Use in Public Health...
qtrAssign a date to a quarter
sex_from_chiExtract sex from the CHI number
phsmethods documentation built on July 31, 2026, 5:06 p.m.