You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
965B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/demodata.R
  3. \name{add_encounters}
  4. \alias{add_encounters}
  5. \title{Add encounters to the CRC cell}
  6. \usage{
  7. add_encounters(encounters, project, host = "", admin = "", pass = "")
  8. }
  9. \arguments{
  10. \item{encounters}{A dataframe of patients}
  11. \item{project}{The project to add the patients to}
  12. \item{host}{The host to connect to}
  13. \item{admin}{The admin account for the PostgreSQL database}
  14. \item{pass}{The password for the admin account}
  15. }
  16. \value{
  17. An encounter mapping dataframe for the encounters
  18. }
  19. \description{
  20. Add encounters to the CRC cell, generate new encrypted IDs
  21. }
  22. \details{
  23. The encounters dataframe must contain the following columns:
  24. - encounter_ide: the original encounter ID
  25. - patient_ide: the original patient ID
  26. - start_date: the start date of the encounter, as Date object
  27. - end_date: the end date of the encounter, as Date object
  28. - inout_cd: I or O if inpatient or outpatient
  29. }