Subversion Repository Public Repository

Aurocare_27_07_2018

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
package com.bestray.healthcarecommonutil.vo;
// Generated Apr 16, 2013 10:57:49 AM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import java.util.Objects;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.Version;

// TODO: Auto-generated Javadoc
/**
 * TMedicationMaster generated by hbm2java.
 */
@NamedQueries({
	@NamedQuery(
	name = "findAllMedicationList",
	query = "from TMedicationMaster WHERE medicationName like ?  order by id desc"),
        @NamedQuery(
	name = "searchForMedicationName",
	query = "from TMedicationMaster tc where tc.medicationName = ? "
	),
        @NamedQuery(
	name = "findAllMedications",
	query = "from TMedicationMaster where medicationStatus = 'ACTIVE' order by id desc "
	)
})
@Entity
@Table(name="t_medication_master")
@org.hibernate.annotations.Entity(dynamicInsert=true)
public class TMedicationMaster  implements java.io.Serializable {

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 13 * hash + Objects.hashCode(this.id);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TMedicationMaster other = (TMedicationMaster) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }


    /** The id. */
    @Id
    //@GeneratedValue
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name="id")
     private Long id;
    
    /** The medication date.   
    @Temporal(javax.persistence.TemporalType.DATE)
    @Column(name="medication_date")
     private Date medicationDate;

    public Date getMedicationDate() {
        return medicationDate;
    }

    public void setMedicationDate(Date medicationDate) {
        this.medicationDate = medicationDate;
    }
  */
    /** The medication name. */
    @Column(name="medication_name")
     private String medicationName;
    
    /** The medication synonyms. */
    @Column(name="medication_synonyms")
     private String medicationSynonyms;
    
    /** The medication category. */
    @Column(name="medication_catagory")
     private String medicationCatagory;
    
    /** The medication status. */
    @Column(name="medication_status")
     private String medicationStatus;
    
    /** The medication group. */
    @Column(name="medication_group")
     private String medicationGroup;
    
    /** The medication dose. */
    @Column(name="medication_dose")
     private String medicationDose;
    
    /** The medication strength. */
    @Column(name="medication_strength")
     private String medicationStrength;
    
    /** The medication frequency. */
    @Column(name="medication_frequency")
     private String medicationFrequency;
    
    /** The medication administration. */
    @Column(name="medication_administration")
     private String medicationAdministration;
    
    /** The medication when to take. */
    @Column(name="medication_when_to_take")
     private String medicationWhenToTake;
    
    /** The medication duration. */
    @Column(name="medication_duration")
     private String medicationDuration;
    
    /** The created date. */
    @Column(name="created_date")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
     private Date createdDate;
    
    /** The updated date. */
    @Column(name="updated_date")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
     private Date updatedDate;
    
    /** The medicaion encounter. */
    @OneToMany(mappedBy="medication")
     private Set<TEncounterMedication> medicaionEncounter;
    
    /** The record version. */
    @Version
    @Column(name = "record_version")
    private Long recordVersion; 
    
    /**
     * Instantiates a new t medication master.
     */
    public TMedicationMaster() {
    }

    /*public TMedicationMaster(Long medicationId, String medicationName, String medicationSynonyms, String medicationCatagory, String medicationStatus, String medicationGroup, String medicationDose, String medicationStrength, String medicationFrequency, String medicationAdministration, String medicationWhenToTake, String medicationDuration, Date createdDate, Date updatedDate) {
       this.medicationId = medicationId;
       this.medicationName = medicationName;
       this.medicationSynonyms = medicationSynonyms;
       this.medicationCatagory = medicationCatagory;
       this.medicationStatus = medicationStatus;
       this.medicationGroup = medicationGroup;
       this.medicationDose = medicationDose;
       this.medicationStrength = medicationStrength;
       this.medicationFrequency = medicationFrequency;
       this.medicationAdministration = medicationAdministration;
       this.medicationWhenToTake = medicationWhenToTake;
       this.medicationDuration = medicationDuration;
       this.createdDate = createdDate;
       this.updatedDate = updatedDate;
    }*/
   
    /**
     * Gets the id.
     *
     * @return the id
     */
    public Long getId() {
        return this.id;
    }
    
    /**
     * Sets the id.
     *
     * @param id the new id
     */
    public void setId(Long id) {
        this.id = id;
    }
    
    
    /**
     * Gets the medication name.
     *
     * @return the medication name
     */
    public String getMedicationName() {
        return this.medicationName;
    }
    
    /**
     * Sets the medication name.
     *
     * @param medicationName the new medication name
     */
    public void setMedicationName(String medicationName) {
        this.medicationName = medicationName;
    }
    
    /**
     * Gets the medication synonyms.
     *
     * @return the medication synonyms
     */
    public String getMedicationSynonyms() {
        return this.medicationSynonyms;
    }
    
    /**
     * Sets the medication synonyms.
     *
     * @param medicationSynonyms the new medication synonyms
     */
    public void setMedicationSynonyms(String medicationSynonyms) {
        this.medicationSynonyms = medicationSynonyms;
    }
    
    /**
     * Gets the medication catagory.
     *
     * @return the medication catagory
     */
    public String getMedicationCatagory() {
        return this.medicationCatagory;
    }
    
    /**
     * Sets the medication catagory.
     *
     * @param medicationCatagory the new medication catagory
     */
    public void setMedicationCatagory(String medicationCatagory) {
        this.medicationCatagory = medicationCatagory;
    }
    
    /**
     * Gets the medication status.
     *
     * @return the medication status
     */
    public String getMedicationStatus() {
        return this.medicationStatus;
    }
    
    /**
     * Sets the medication status.
     *
     * @param medicationStatus the new medication status
     */
    public void setMedicationStatus(String medicationStatus) {
        this.medicationStatus = medicationStatus;
    }
    
    /**
     * Gets the medication group.
     *
     * @return the medication group
     */
    public String getMedicationGroup() {
        return this.medicationGroup;
    }
    
    /**
     * Sets the medication group.
     *
     * @param medicationGroup the new medication group
     */
    public void setMedicationGroup(String medicationGroup) {
        this.medicationGroup = medicationGroup;
    }
    
    /**
     * Gets the medication dose.
     *
     * @return the medication dose
     */
    public String getMedicationDose() {
        return this.medicationDose;
    }
    
    /**
     * Sets the medication dose.
     *
     * @param medicationDose the new medication dose
     */
    public void setMedicationDose(String medicationDose) {
        this.medicationDose = medicationDose;
    }
    
    /**
     * Gets the medication strength.
     *
     * @return the medication strength
     */
    public String getMedicationStrength() {
        return this.medicationStrength;
    }
    
    /**
     * Sets the medication strength.
     *
     * @param medicationStrength the new medication strength
     */
    public void setMedicationStrength(String medicationStrength) {
        this.medicationStrength = medicationStrength;
    }
    
    /**
     * Gets the medication frequency.
     *
     * @return the medication frequency
     */
    public String getMedicationFrequency() {
        return this.medicationFrequency;
    }
    
    /**
     * Sets the medication frequency.
     *
     * @param medicationFrequency the new medication frequency
     */
    public void setMedicationFrequency(String medicationFrequency) {
        this.medicationFrequency = medicationFrequency;
    }
    
    /**
     * Gets the medication administration.
     *
     * @return the medication administration
     */
    public String getMedicationAdministration() {
        return this.medicationAdministration;
    }
    
    /**
     * Sets the medication administration.
     *
     * @param medicationAdministration the new medication administration
     */
    public void setMedicationAdministration(String medicationAdministration) {
        this.medicationAdministration = medicationAdministration;
    }
    
    /**
     * Gets the medication when to take.
     *
     * @return the medication when to take
     */
    public String getMedicationWhenToTake() {
        return this.medicationWhenToTake;
    }
    
    /**
     * Sets the medication when to take.
     *
     * @param medicationWhenToTake the new medication when to take
     */
    public void setMedicationWhenToTake(String medicationWhenToTake) {
        this.medicationWhenToTake = medicationWhenToTake;
    }
    
    /**
     * Gets the medication duration.
     *
     * @return the medication duration
     */
    public String getMedicationDuration() {
        return this.medicationDuration;
    }
    
    /**
     * Sets the medication duration.
     *
     * @param medicationDuration the new medication duration
     */
    public void setMedicationDuration(String medicationDuration) {
        this.medicationDuration = medicationDuration;
    }
    
    /**
     * Gets the created date.
     *
     * @return the created date
     */
    public Date getCreatedDate() {
        return this.createdDate;
    }
    
    /**
     * Sets the created date.
     *
     * @param createdDate the new created date
     */
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }
    
    /**
     * Gets the updated date.
     *
     * @return the updated date
     */
    public Date getUpdatedDate() {
        return this.updatedDate;
    }
    
    /**
     * Sets the updated date.
     *
     * @param updatedDate the new updated date
     */
    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

    /**
     * Gets the record version.
     *
     * @return the record version
     */
    public Long getRecordVersion() {
        return recordVersion;
    }

    /**
     * Sets the record version.
     *
     * @param recordVersion the new record version
     */
    public void setRecordVersion(Long recordVersion) {
        this.recordVersion = recordVersion;
    }

    /**
     * Gets the medicaion encounter.
     *
     * @return the medicaion encounter
     */
    public Set<TEncounterMedication> getMedicaionEncounter() {
        return medicaionEncounter;
    }

    /**
     * Sets the medicaion encounter.
     *
     * @param medicaionEncounter the new medicaion encounter
     */
    public void setMedicaionEncounter(Set<TEncounterMedication> medicaionEncounter) {
        this.medicaionEncounter = medicaionEncounter;
    }
    
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    public String toString(){
        return medicationName;
    }
}


Commits for Aurocare_27_07_2018/AuroCareCommonUtil/src/main/java/com/bestray/healthcarecommonutil/vo/TMedicationMaster.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 27 Jul, 2018 07:21:55 +0000