citHeader("To cite AdhereR in publications use:")

citEntry(entry = "Article",
  title        = "Computation of adherence to medication and visualization of medication histories in R with AdhereR: Towards transparent and reproducible use of electronic healthcare data",
  author       = personList(as.person("Alexandra L. Dima"),
                   as.person("Dan Dediu")),
  journal      = "PLoS ONE",
  year         = "2017",
  volume       = "12",
  number       = "4",
  pages        = "e0174426",
  doi          = "10.1371/journal.pone.0174426",

  textVersion  =
  paste("Dima AL, Dediu D (2017).",
        "Computation of adherence to medication and visualization of medication histories in R with AdhereR: Towards transparent and reproducible use of electronic healthcare data.",
        "PLoS ONE, 12(4): e0174426.",
        "doi:10.1371/journal.pone.0174426")
)

year <- format(Sys.Date(), "%Y")
vers <- paste("R package version", meta$Version)

citEntry(entry = "Manual",
  title        = "AdhereR: Computation and visualisation of adherence to medications from Electronic Health care Data.",
  author       = personList(as.person("Dan Dediu"),
                   as.person("Samuel Allemann"),
                   as.person("Alexandra L. Dima")),
  year         = year,
  note         = vers,

  textVersion  =
  paste0("Dediu D, Allemann S, Dima AL (",year,"). ",
         "AdhereR: Computation and visualisation of adherence to medications from Electronic Health care Data. ",
         vers,
         ".")
)
