R/translate9.R

Defines functions translate9

Documented in translate9

#' @title Translate9
#' @description Translate ICD-9 code to ICD-10 code and name of DSM-5 disorder
#' @param icd The ICD-9 Code
#' @param q the thing to look for
#' @return Disorder,ICD10
#' @examples
#'     translate9(icd,"278")
#' @export


#input icd 9 code to get icd 10 and name
translate9<-function(icd,q){

  z<-icd[icd$ICD9==q,]
  return(z)

}
atstein/DSM5 documentation built on May 18, 2019, 8:08 p.m.