Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
harshana-ukhsa committed Aug 19, 2024
2 parents 3456e45 + d6960c9 commit f97ffdb
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
2 changes: 0 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

* Implemented new steps for record matching, including first/last name field swaps.

* Added new id_test sample data.

* Add fuzzy match functionality to patient_id

* Add new package dataset "lab_data" for testing functions
Expand Down
1 change: 1 addition & 0 deletions R/lab_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#' \item{lab_code}{Laboratory codes (Factor with unique levels).}
#' \item{local_authority_name}{Name of the local authority.}
#' \item{local_authority_code}{Code of the local authority.}
#' \item{postcode}{Postcode}
#' }
#'
#' @examples
Expand Down
3 changes: 2 additions & 1 deletion R/patient_id.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@
#'
#' @examples
#' uk_patient_id(
#' data = head(epidm::lab_data,1000),
#' data = head(epidm::lab_data),
#' id = list(
#' nhs_number = 'nhs_number',
#' hospital_number = 'local_patient_identifier',
#' date_of_birth = 'patient_birth_date',
#' sex_mfu = 'sex',
#' forename = 'forename',
#' surname = 'surname'
#' postcode = 'postcode'
#' ),
#' .sortOrder = 'specimen_date',
#' .forceCopy = TRUE
Expand Down
Binary file modified data/lab_data.rda
Binary file not shown.
1 change: 1 addition & 0 deletions man/lab_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions synth_pii_small.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
nhs_number,local_patient_identifier,patient_birth_date,sex,surname,forename,organism_species_name,specimen_date,specimen_type,lab_code,local_authority_name,local_authority_code,postcode
576322970,IG12067,05/10/1938,Female,WILLIAMS,JAMILETH,KLEBSIELLA PNEUMONIAE,24/05/2020,BLOOD,BI20985,Worthing,E07000229,BN14 9EP
325999719,XB29898,04/04/1957,Male,EL-SHAHEED,ZAAHIR,KLEBSIELLA PNEUMONIAE,08/07/2023,BLOOD,JH70033,Reading,E06000038,RG1 7QE
705649596,KR2535,24/06/1927,Male,LINTON,KASHIEF,STAPHYLOCOCCUS AUREUS,24/02/2023,BLOOD,CU5997,Plymouth,E06000026,PL7 1LU
115685428,HS45202,14/06/1962,Male,RODA,TYLER,STAPHYLOCOCCUS AUREUS,26/08/2023,BLOOD,ES3851,Cheshire West and Chester,E06000050,CW6 9TX
705649596,KR2535,24/06/1927,Male,LINTON,KASHIEF,STAPHYLOCOCCUS AUREUS,24/02/2023,BLOOD,CU5997,Plymouth,E06000026,PL7 1LU
115685428,HS45202,14/06/1962,Male,RODA,TYLER,STAPHYLOCOCCUS AUREUS,26/08/2023,BLOOD,ES3851,Cheshire West and Chester,E06000050,CW6 9TX
115685428,HS45202,14/06/1962,Male,RODA,TYLER,STAPHYLOCOCCUS AUREUS,27/08/2023,BLOOD,ES3851,Cheshire West and Chester,E06000050,CW6 9TX
705649596,KR2535,24/06/1927,Male,LINTON,KASHIEF,STAPHYLOCOCCUS AUREUS,25/02/2023,BLOOD,CU5997,Plymouth,E06000026,PL7 1LU
111,HS45202,14/06/1962,Male,RODA,TILER,STAPHYLOCOCCUS AUREUS,28/08/2023,BLOOD,ES3851,Cheshire West and Chester,E06000050,CW6 9TX
,,,,,,,,,,,,

0 comments on commit f97ffdb

Please sign in to comment.