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

bibentry(bibtype = "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       = c(person(given="Alexandra L." , family="Dima"),
                   person(given="Dan" ,family="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)

bibentry(bibtype = "Manual",
  title        = "AdhereR: Computation and visualisation of adherence to medications from Electronic Health care Data.",
  author       = c(person(given="Dan" ,family="Dediu"),
                   person(given="Alexandra L." , family="Dima"),
                   person(given="Samuel", family="Allemann")),
  year         = year,
  note         = vers,

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