Skip to content

Instantly share code, notes, and snippets.

@kreas
Created April 25, 2016 11:43
Show Gist options
  • Save kreas/78819534fb5a4ee7f24f0a486f1a8fe0 to your computer and use it in GitHub Desktop.
Save kreas/78819534fb5a4ee7f24f0a486f1a8fe0 to your computer and use it in GitHub Desktop.
# Add WalkIn to the headers
headers <- c("AccountNumber", "FirstName", "LastName", "PhoneNumber","MobileNumber", "Email", "DOB", "StreetAddress",
"City", "State", "Zip", "InsuranceCompany", "Insurance", "ProductCode", "ItemID",
"ItemName", "ServiceDate", "EligibilityDate", "SleepCoach", "DelayedActivationDate","Branch","Qty", "Allowable", "WalkIn")
# Add this block somewhere in for processor before rm(patients) Bright Tree
output$WalkIn <- sapply(patients$Sales.Order.Detail.Proc.Code, function(code){
walk.in.codes <- c('A7027', 'A7028', 'A7029', 'A7030', 'A7031', 'A7032', 'A7033', 'A7034')
if (code %in% walk.in.codes) T else F
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment