title: [csapAIH: a function to classify ambulatory care sensitive conditions in the statistical software R].
abstract: Hospitalizations due to ambulatory care sensitive conditions (ACSC) are an indirect indicator of primary health care. A package in the R program was developed in order to automatize the classification of codes of the International Statistical Classification of Diseases and Related Health Problems - 10th Revision (ICD-10), according to the Brazilian list of ACSC, and provide functionalities for the management of the "reduced files" of the inpatient hospital authorization (AIH). The csapAIH package contains a homonym function, which reads the data according to its nature (file or data frame with AIH structure, or a factor with ICD-10 codes) and returns, according to defined options, a databank or vector containing the classification for the hospitalization. This article presents the package and the function csapAIH, its installation mode and use, and examples of its functionalities, which may add quickness, precision and validity to the research of ACSC in Brazil.
authors.affiliation: Universidade Federal de Santa Catarina, Departamento de Saúde Pública, Florianópolis-SC, Brasil.|Universitat Autònoma de Barcelona, Facultat de Medicina, Unitat de Bioestadística, Grups de Recerca d'Amèrica i Àfrica Llatines, Barcelona, Espanha.
authors.forename: Fúlvio Borges
authors.initials: FB
authors.lastname: Nedel
mesh_terms: D000553:Ambulatory Care / Q000706:statistics & numerical data*; D001938:Brazil; D006760:Hospitalization / Q000706:statistics & numerical data*; D006801:Humans; D038801:International Classification of Diseases; D011320:Primary Health Care / Q000706:statistics & numerical data*; D015203:Reproducibility of Results; D012984:Software