citHeader("To cite dataquieR in publications use")

if(!exists("meta") || is.null(meta))
  meta <- packageDescription("dataquieR")
if (is.null(meta$Date)) meta$Date <- Sys.Date()
year <- format(as.Date(meta$Date), "%Y")
note <- sprintf("R package version %s", meta$Version)

bibentry(bibtype = "Manual",
         title = "{dataquieR}: Data Quality in Epidemiological Research",
         author = c(
                       as.person("Elisa Kasbohm"),
                       as.person("Joany Marino"),
                       as.person("Adrian Richter"),
                       as.person("Carsten Oliver Schmidt"),
	                     as.person("Stephan Struckmann")),
         year = year,
         note = note,
         url = "https://dataquality.qihs.uni-greifswald.de/",

         textVersion =
           paste("Elisa Kasbohm, Joany Marino, Adrian Richter, Carsten Oliver Schmidt, Stephan Struckmann",
     	       sprintf("(%s).", year),
                 "dataquieR: Data Quality in Epidemiological Research.",
  	       paste(note, ".", sep = ""),
                 "URL https://dataquality.qihs.uni-greifswald.de/")
)

bibentry(bibtype = "Article",
      title =
        "{dataquieR}: assessment of data quality in epidemiological research",
       author = c(as.person("Adrian Richter"),
               as.person("Carsten Oliver Schmidt"),
               as.person('Markus Kr\\"{u}ger'),
               as.person("Stephan Struckmann")),
      journal = "Journal of Open Source",
      year = 2021,
      doi = "10.21105/joss.03093",
      textVersion = paste(
        'Richter A, Schmidt CO, Krüger M, Struckmann S (2021).',
        '"dataquieR: assessment of data quality in epidemiological research."',
        'Journal of Open Source. doi: 10.21105/joss.03093',
        '(URL: https://doi.org/10.21105/joss.03093).'
      )
)

bibentry(bibtype = "Article",
         title = paste("Facilitating harmonized data quality assessments. A",
                       "data quality framework for observational health",
                       "research data collections with software",
                       "implementations in R"),
         author = c(
           as.person("Carsten Oliver Schmidt"),
           as.person("Stephan Struckmann"),
           as.person("Cornelia Enzenbach"),
           as.person("Achim Reineke"),
           as.person('J\\"{u}rgen Stausberg'),
           as.person("Stefan Damerow"),
           as.person("Marianne Huebner"),
           as.person('B\\"{o}rge Schmidt'),
           as.person("Willi Sauerbrei"),
           as.person("Adrian Richter")),
         year = "2021",
         doi = "10.1186/s12874-021-01252-7",
         journal = "BMC Med Res Methodol",
         textVersion =
           paste("Schmidt CO, Struckmann S, Enzenbach C, Reineke A,",
           "Stausberg J, Damerow S, Huebner M, Schmidt B, Sauerbrei W,",
           "Richter A (2021). \"Facilitating harmonized data quality",
           "assessments. A data quality framework for observational health",
           "research data collections with software implementations in R.\"",
           "BMC Med Res Methodol. doi: 10.1186/s12874-021-01252-7 (URL:",
           "https://doi.org/10.1186/s12874-021-01252-7).")
)
