Created
April 25, 2016 11:43
-
-
Save kreas/78819534fb5a4ee7f24f0a486f1a8fe0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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