Thanks once again to Kit Baum, a new version of the cprdhesutil package is now downloadable from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have an old version of cprdhesutil.

The cprdhesutil command is described as below on my website. The new version adds an encoding() option (corresponding to the option of the same name for import delimited), and adds facilities to respond to new variables added to the standard HES text datasets.

Best wishes

Roger

------------------------------------------------------------------------------
package cprdhesutil from http://www.rogernewsonresources.org.uk/stata13
------------------------------------------------------------------------------

TITLE
cprdhesutil: Inputting CPRD HES-linkage datasets into Stata

DESCRIPTION/AUTHOR(S)
The cprdhesutil package is designed for use with the cprdutil
package, which creates Stata datasets from text data files produced
by the Clinical Practice Research Datalink (CPRD). cprdhesutil is a
suite of utility programs for inputting linkage text data files
produced by CPRD to contain data on the same patients form the
Hospital Episodes System (HES), and creating equivalent Stata
datasets in the memory. Each program in the suite imports into Stata
a dataset type produced by a CPRD HES linkage retrieval, with 1
observation for each of a set of things of a kind on which HES
collects data, such as patients, hospitalization events, or episodes
within hospitalizations. cprdhesutil uses the SSC packages keyby,
chardef, and lablist, which need to be installed for cprdhesutil to
work.

Author: Roger Newson
Distribution-Date: 18december2018
Stata-Version: 13

INSTALLATION FILES (click here to install)
cprdhes_patient.ado
cprdhes_hospital.ado
cprdhes_episodes.ado
cprdhes_diagnosis_epi.ado
cprdhes_diagnosis_hosp.ado
cprdhes_primary_diag_hosp.ado
cprdhes_procedures_epi.ado
cprdhes_hrg.ado
cprdhes_patient.sthlp
cprdhes_hospital.sthlp
cprdhes_episodes.sthlp
cprdhes_diagnosis_epi.sthlp
cprdhes_diagnosis_hosp.sthlp
cprdhes_primary_diag_hosp.sthlp
cprdhes_procedures_epi.sthlp
cprdhes_hrg.sthlp
cprdhesutil.sthlp
------------------------------------------------------------------------------
(click here to return to the previous screen)