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
1.0KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/demodata.R
  3. \name{add_observations}
  4. \alias{add_observations}
  5. \title{Add observations to the CRC cell}
  6. \usage{
  7. add_observations(observations, project, host = "", admin = "", pass = "")
  8. }
  9. \arguments{
  10. \item{observations}{A dataframe of observation facts}
  11. \item{project}{The name of the project}
  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. \description{
  17. Add observations to the CRC cell
  18. }
  19. \details{
  20. The observations dataframe must contain the following columns:
  21. - encounter_ide: the original encounter ID
  22. - patient_ide: the original patient ID
  23. - start_date: the start date of the encounter, as Date object
  24. - concept_cd: the concept to insert
  25. - provider_id: the provider
  26. - modifier_cd: optionnal modifier for the concept
  27. Other observation fact columns can optionnaly be included,
  28. such as end_date, valtype_cd, tval_char, nval_num, valueflag_cd, units_cd, etc.
  29. }