Class: DoseFormTagger

Inherits:
ListTagger show all
Defined in:
lib/list_taggers/dose_form_tagger.rb

Overview

Copyright 2015 The MITRE Corporation. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and zlimitations under the License.”

Instance Method Summary collapse

Methods inherited from ListTagger

#parse_main, #parse_text

Methods inherited from Tagger

#normalize, #parse_main, #parse_text

Constructor Details

#initializeDoseFormTagger

Returns a new instance of DoseFormTagger.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/list_taggers/dose_form_tagger.rb', line 18

def initialize
    @name = 'doseform'
    @list = [/(?:micro )?neb(?:ulizer)?s?/i,
            /(?:(?:powdered|metered)(?:\s+|\-)dose\s+)?inhalers?/i,
            /bar\b/i,
            /beads/i,
            /cake/i,
            /caplets?/i,
            /capsules?/i,
            /cement/i,
            /chewable bars?/i,
            /(?:(?:chewable|disintegrating)\s+)?tab(?:let)?s?/i,
            /chewing gum/i,
            /cream/i,
            /crystals/i,
            /disk(?:us)?\b/i,
            /douche/i,
            /drops?/i,
            /drug implant/i,
            /dry powder inhaler/i,
            /enema/i,
            /enteric coated capsule/i,
            /enteric coated tablet/i,
            /extended release capsules?/i,
            /extended release enteric coated capsules?/i,
            /extended release enteric coated tablets?/i,
            /extended release suspension/i,
            /extended release tablets?/i,
            /flakes/i,
            /foam/i,
            /gas for inhalation/i,
            /gel/i,
            /granules/i,
            /gtts?/i,
            /inhalant(?:\s+powder|solution)?/i,
            /injectable solution/i,
            /injectable suspension/i,
            /intraperitoneal solution/i,
            /irrigation solution/i,
            /jelly/i,
            /liniment/i,
            /liquid/i,
            /liquid cleanser/i,
            /lotion/i,
            /lozenges?/i,
            /(?:medicated\s+)?(?:bar|liquid)\s+soap/i,
            /medicated pad/i,
            /medicated shampoo/i,
            /medicated swab/i,
            /medicated tape/i,
            /mouthwash/i,
            /oil/i,
            /ointment/i,
            /paste/i,
            /patch/i,
            /pellets?/i,
            /pills?/i,
            /powder/i,
            /prefilled applicator/i,
            /prefilled syringe/i,
            /pudding/i,
            /rinse/i,
            /solid/i,
            /solution/i,
            /sprays?/i,
            /strip/i,
            /suppository/i,
            /suspension/i,
            /sustained release buccal tablets?/i,
            /syrup/i,
            /tincture/i,
            /toothpaste/i,
            /troche/i,
            /wafers?/i]
end