Schema/Drug.pm untested

filter: Statementstmt 0.0% 0 / 51 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 57 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2  
3 package SemanticWeb::Schema::Drug;
4  
5 # ABSTRACT: A chemical or biologic substance
6  
7 use v5.14;
8 use Moo;
9  
10 extends qw/ SemanticWeb::Schema::Product SemanticWeb::Schema::Substance /;
11  
12  
13 use MooX::JSON_LD 'Drug';
14 use Ref::Util qw/ is_plain_hashref /;
15 # RECOMMEND PREREQ: Ref::Util::XS
16  
17 use namespace::autoclean;
18  
19 our $VERSION = 'v23.0.0';
20  
21  
22 has active_ingredient => (
23 is => 'rw',
24 predicate => '_has_active_ingredient',
25 json_ld => 'activeIngredient',
26 );
27  
28  
29  
30 has administration_route => (
31 is => 'rw',
32 predicate => '_has_administration_route',
33 json_ld => 'administrationRoute',
34 );
35  
36  
37  
38 has alcohol_warning => (
39 is => 'rw',
40 predicate => '_has_alcohol_warning',
41 json_ld => 'alcoholWarning',
42 );
43  
44  
45  
46 has available_strength => (
47 is => 'rw',
48 predicate => '_has_available_strength',
49 json_ld => 'availableStrength',
50 );
51  
52  
53  
54 has breastfeeding_warning => (
55 is => 'rw',
56 predicate => '_has_breastfeeding_warning',
57 json_ld => 'breastfeedingWarning',
58 );
59  
60  
61  
62 has clincal_pharmacology => (
63 is => 'rw',
64 predicate => '_has_clincal_pharmacology',
65 json_ld => 'clincalPharmacology',
66 );
67  
68  
69  
70 has clinical_pharmacology => (
71 is => 'rw',
72 predicate => '_has_clinical_pharmacology',
73 json_ld => 'clinicalPharmacology',
74 );
75  
76  
77  
78 has dosage_form => (
79 is => 'rw',
80 predicate => '_has_dosage_form',
81 json_ld => 'dosageForm',
82 );
83  
84  
85  
86 has dose_schedule => (
87 is => 'rw',
88 predicate => '_has_dose_schedule',
89 json_ld => 'doseSchedule',
90 );
91  
92  
93  
94 has drug_class => (
95 is => 'rw',
96 predicate => '_has_drug_class',
97 json_ld => 'drugClass',
98 );
99  
100  
101  
102 has drug_unit => (
103 is => 'rw',
104 predicate => '_has_drug_unit',
105 json_ld => 'drugUnit',
106 );
107  
108  
109  
110 has food_warning => (
111 is => 'rw',
112 predicate => '_has_food_warning',
113 json_ld => 'foodWarning',
114 );
115  
116  
117  
118 has included_in_health_insurance_plan => (
119 is => 'rw',
120 predicate => '_has_included_in_health_insurance_plan',
121 json_ld => 'includedInHealthInsurancePlan',
122 );
123  
124  
125  
126 has interacting_drug => (
127 is => 'rw',
128 predicate => '_has_interacting_drug',
129 json_ld => 'interactingDrug',
130 );
131  
132  
133  
134 has is_available_generically => (
135 is => 'rw',
136 predicate => '_has_is_available_generically',
137 json_ld => 'isAvailableGenerically',
138 );
139  
140  
141  
142 has is_proprietary => (
143 is => 'rw',
144 predicate => '_has_is_proprietary',
145 json_ld => 'isProprietary',
146 );
147  
148  
149  
150 has label_details => (
151 is => 'rw',
152 predicate => '_has_label_details',
153 json_ld => 'labelDetails',
154 );
155  
156  
157  
158 has legal_status => (
159 is => 'rw',
160 predicate => '_has_legal_status',
161 json_ld => 'legalStatus',
162 );
163  
164  
165  
166 has maximum_intake => (
167 is => 'rw',
168 predicate => '_has_maximum_intake',
169 json_ld => 'maximumIntake',
170 );
171  
172  
173  
174 has mechanism_of_action => (
175 is => 'rw',
176 predicate => '_has_mechanism_of_action',
177 json_ld => 'mechanismOfAction',
178 );
179  
180  
181  
182 has non_proprietary_name => (
183 is => 'rw',
184 predicate => '_has_non_proprietary_name',
185 json_ld => 'nonProprietaryName',
186 );
187  
188  
189  
190 has overdosage => (
191 is => 'rw',
192 predicate => '_has_overdosage',
193 json_ld => 'overdosage',
194 );
195  
196  
197  
198 has pregnancy_category => (
199 is => 'rw',
200 predicate => '_has_pregnancy_category',
201 json_ld => 'pregnancyCategory',
202 );
203  
204  
205  
206 has pregnancy_warning => (
207 is => 'rw',
208 predicate => '_has_pregnancy_warning',
209 json_ld => 'pregnancyWarning',
210 );
211  
212  
213  
214 has prescribing_info => (
215 is => 'rw',
216 predicate => '_has_prescribing_info',
217 json_ld => 'prescribingInfo',
218 );
219  
220  
221  
222 has prescription_status => (
223 is => 'rw',
224 predicate => '_has_prescription_status',
225 json_ld => 'prescriptionStatus',
226 );
227  
228  
229  
230 has proprietary_name => (
231 is => 'rw',
232 predicate => '_has_proprietary_name',
233 json_ld => 'proprietaryName',
234 );
235  
236  
237  
238 has related_drug => (
239 is => 'rw',
240 predicate => '_has_related_drug',
241 json_ld => 'relatedDrug',
242 );
243  
244  
245  
246 has rxcui => (
247 is => 'rw',
248 predicate => '_has_rxcui',
249 json_ld => 'rxcui',
250 );
251  
252  
253  
254 has warning => (
255 is => 'rw',
256 predicate => '_has_warning',
257 json_ld => 'warning',
258 );
259  
260  
261  
262  
263  
264 1;
265  
266 __END__