Thanks as always to Kit Baum, new versions of the cprdonsutil and cprdhesutil packages are now available for download on SSC. In Stata, use the ssc command to do this, or adoupdate if you already have old versions of these packages.

The cprdonsutil and cprdhesutil packages are described as below on my website. The new cprdonsutil adds a few typo fixes and error traps. The new cprdhesutil adds a few more modules for inputting HES linkage dataset types that I had not previously input, plus a table of primary keys by which these dataset types will be sorted by default.

Best wishes

Roger

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

TITLE
cprdonsutil: Inputting CPRD ONS-linkage datasets into Stata

DESCRIPTION/AUTHOR(S)
The cprdonsutil 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). cprdonsutil is a
suite of utility programs for inputting linkage text data files
produced by CPRD to contain data on the same patients from the United
Kingdom (UK) Office of National Statistics (ONS), and creating
equivalent Stata datasets in the memory. Currently, there is one
program in the suite, which imports into Stata a dataset type
produced by a CPRD ONS linkage retrieval, with 1 observation for each
of a set of patients on which ONS collects death data. cprdonsutil
uses the SSC packages keyby, chardef, and lablist, which need to be
installed for cprdonsutil to work.

Author: Roger Newson
Distribution-Date: 25january2019
Stata-Version: 13

INSTALLATION FILES (click here to install)
cprdons_death_patient.ado
cprdons_death_patient.sthlp
cprdonsutil.sthlp
------------------------------------------------------------------------------
(click here to return to the previous screen)

------------------------------------------------------------------------------
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 from 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, hospitalisation events, or episodes
within hospitalisations. cprdhesutil uses the SSC packages keyby,
chardef, and lablist, which need to be installed for cprdhesutil to
work.

Author: Roger Newson
Distribution-Date: 29january2019
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_acp.ado
cprdhes_ccare.ado
cprdhes_maternity.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_acp.sthlp
cprdhes_ccare.sthlp
cprdhes_maternity.sthlp
cprdhes_hrg.sthlp
cprdhesutil.sthlp
------------------------------------------------------------------------------
(click here to return to the previous screen)