Skip to content

Instantly share code, notes, and snippets.

@OleksiiShvachenko
Created April 25, 2017 10:45
Show Gist options
  • Save OleksiiShvachenko/8833fafe10b53a3447c69bbdaa84c124 to your computer and use it in GitHub Desktop.
Save OleksiiShvachenko/8833fafe10b53a3447c69bbdaa84c124 to your computer and use it in GitHub Desktop.
static func Medication(_ typeID: Int) -> String {
switch typeID {
case 1...5: return "aerosol"
case 6: return "bar_chewable"
case 7...15: return "pellet"
case 16: return "cloth"
case 17: return "concentrate"
case 18...19: return "cream"
case 20: return "krystal"
case 21: return "disk"
case 22: return "douche"
case 23: return "dressing"
case 24: return "elixir"
case 25: return "emulsion"
case 26: return "enema"
case 27: return "extract"
case 28...33: return "film"
case 34: return "gas"
case 35...37: return "gel"
case 38: return "globule"
case 39...43: return "granule"
case 44: return "chewing gum"
case 45: return "implantant"
case 46...48: return "inhalant"
case 49...62: return "injection"
case 63: return "intrauterine_device"
case 64: return "irrigant"
case 65: return "jelly"
case 66: return "kit"
case 67: return "liniment"
case 68: return "lipstiсk"
case 69...70: return "liquid"
case 71...73: return "lotion"
case 74: return "lozenge"
case 75: return "mouthwash"
case 76: return "oil"
case 77...78: return "ointment"
case 79...80: return "paste"
case 81...84: return "pastille"
case 85: return "pellet"
case 86: return "pill"
case 87...88: return "plaster"
case 89...93: return "powder"
case 94: return "ring"
case 95: return "rinse"
case 96: return "salve"
case 97...98: return "shampoo"
case 99: return "soap"
case 100...104: return "solution"
case 105: return "sponge"
case 106...108: return "spray"
case 109: return "stick"
case 110: return "strip"
case 111: return "suppositoriya"
case 112...114: return "suspension"
case 115: return "swab"
case 116: return "sirup"
case 117...133: return "tablet"
case 134: return "tape"
case 135: return "tinkture"
case 136: return "wafer"
default: return ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment