-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathRMNCHBeneficiaryDetailsRmnch.java
More file actions
553 lines (454 loc) · 10.7 KB
/
RMNCHBeneficiaryDetailsRmnch.java
File metadata and controls
553 lines (454 loc) · 10.7 KB
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
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
/*
* AMRIT – Accessible Medical Records via Integrated Technology
* Integrated EHR (Electronic Health Records) Solution
*
* Copyright (C) "Piramal Swasthya Management and Research Institute"
*
* This file is part of AMRIT.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
package com.iemr.common.identity.data.rmnch;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import com.google.gson.annotations.Expose;
import lombok.Data;
/**
*
* @author DE40034072
*
*/
@Entity
@Table(name = "i_beneficiarydetails_rmnch")
@Data
public class RMNCHBeneficiaryDetailsRmnch {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Expose
@Column(name = "beneficiaryDetails_RmnchId", insertable = false, updatable = false)
private BigInteger beneficiaryDetails_RmnchId;
@Expose
@Column(name = "BeneficiaryRegID")
private BigInteger BenRegId;
@Expose
@Column(name = "aadhaNo")
private String aadhaNo;
@Expose
@Column(name = "aadha_no")
private String aadha_no;
@Expose
@Column(name = "aadha_noId")
private Integer aadha_noId;
@Expose
@Column(name = "age")
private Integer age;
@Expose
@Column(name = "ageAtMarriage")
private Integer ageAtMarriage;
@Expose
@Column(name = "age_unit")
private String age_unit;
@Expose
@Column(name = "age_unitId")
private Integer age_unitId;
@Expose
@Column(name = "childRegisteredAWCID")
private Long childRegisteredAWCID;
@Expose
@Column(name = "childRegisteredSchoolID")
private Integer childRegisteredSchoolID;
@Expose
@Column(name = "dateofdelivey")
private Timestamp dateofdelivey;
@Expose
@Column(name = "expectedDateofDelivery")
private Timestamp expectedDateOfDelivery;
@Expose
@Column(name = "facilitySectionID")
private Integer facilitySectionID;
@Expose
@Column(name = "guidelineId")
private String guidelineId;
@Expose
@Column(name = "houseoldId")
private Long houseoldId;
@Expose
@Column(name = "lastDeliveryConductedID")
private Integer lastDeliveryConductedID;
@Expose
@Column(name = "lastMenstrualPeriod")
private String lastMenstrualPeriod;
@Expose
@Column(name = "latitude")
private BigDecimal latitude;
@Expose
@Column(name = "lengthofMenstrualCycleId")
private Integer lengthofMenstrualCycleId;
@Expose
@Column(name = "literacyId")
private Integer literacyId;
@Expose
@Column(name = "longitude")
private BigDecimal longitude;
@Expose
@Column(name = "menstrualBFDId")
private Integer menstrualBFDId;
@Expose
@Column(name = "menstrualProblemId")
private Integer menstrualProblemId;
@Expose
@Column(name = "menstrualStatusId")
private Integer menstrualStatusId;
@Expose
@Column(name = "mobileOthers")
private String mobileOthers;
@Expose
@Column(name = "mobilenoofRelation")
private String mobilenoofRelation;
@Expose
@Column(name = "mobilenoofRelationId")
private Integer mobilenoofRelationId;
@Expose
@Column(name = "motherName")
private String motherName;
@Expose
@Column(name = "ncd_priority")
private Integer ncd_priority;
@Expose
@Column(name = "need_opcareId")
private Integer need_opcareId;
@Expose
@Column(name = "previousLiveBirth")
private String previousLiveBirth;
@Expose
@Column(name = "rchid")
private String rchid;
@Expose
@Column(name = "registrationDate")
private Timestamp registrationDate;
@Expose
@Column(name = "registrationType")
private String registrationType;
@Expose
@Column(name = "regularityofMenstrualCycleId")
private Integer regularityofMenstrualCycleId;
@Expose
@Column(name = "religionOthers")
private String religionOthers;
@Expose
@Column(name = "reproductiveStatus")
private String reproductiveStatus;
@Expose
@Column(name = "reproductiveStatusId")
private Integer reproductiveStatusId;
@Expose
@Column(name = "serverUpdatedStatus")
private Integer serverUpdatedStatus;
@Expose
@Column(name = "typeofSchoolID")
private Integer typeofSchoolID;
@Expose
@Column(name = "whoConductedDeliveryID")
private Integer whoConductedDeliveryID;
@Expose
@Column(name = "Deleted")
private Boolean deleted;
@Expose
@Column(name = "Processed")
private String Processed = "N";
@Expose
@Column(name = "CreatedBy")
private String createdBy;
@Expose
@Column(name = "CreatedDate")
private Timestamp createdDate;
@Expose
@Column(name = "Reserved")
private Boolean reserved;
@Expose
@Column(name = "ReservedFor")
private String reservedFor;
@Expose
@Column(name = "ReservedOn")
private String reservedOn;
@Expose
@Column(name = "ReservedById")
private Integer reservedById;
@Expose
@Column(name = "ModifiedBy")
private String updatedBy;
@Expose
@Column(name = "LastModDate")
private Timestamp updatedDate;
@Expose
@Column(name = "VanSerialNo")
private Long id;
@Expose
@Column(name = "VanID")
private Integer VanID;
@Expose
@Column(name = "VehicalNo")
private String vehicalNo;
@Expose
@Column(name = "ParkingPlaceID")
private Integer parkingPlaceID;
@Expose
@Column(name = "SyncedBy")
private String syncedBy;
@Expose
@Column(name = "SyncedDate")
private Timestamp syncedDate;
@Expose
@Column(name = "ProviderServiceMapID")
private Integer ProviderServiceMapID;
@Expose
@Column(name = "deviceId")
private Integer deviceId;
@Expose
@Column(name = "beneficiaryId")
private BigInteger benficieryid;
// new fields 30-06-2021
@Expose
@Column(name = "RelatedBeneficiaryIds")
private String relatedBeneficiaryIdsDB;
@Expose
@Column(name = "HRPStatus")
private Boolean hrpStatus;
@Expose
@Column(name = "ImmunizationStatus")
private Boolean immunizationStatus;
@Expose
@Column(name = "NishchayPregnancyStatus")
private String nishchayPregnancyStatus;
@Expose
@Column(name = "NishchayPregnancyStatusPosition")
private Integer nishchayPregnancyStatusPosition;
@Expose
@Column(name = "NishchayDeliveryStatus")
private String nishchayDeliveryStatus;
@Expose
@Column(name = "NishchayDeliveryStatusPosition")
private Integer nishchayDeliveryStatusPosition;
@Expose
@Column(name = "FamilyHeadRelation")
private String familyHeadRelation;
@Expose
@Column(name = "FamilyHeadRelationPosition")
private Integer familyHeadRelationPosition;
@Expose
@Column(name = "MenstrualStatus")
private String menstrualStatus;
@Expose
@Column(name = "ComplicationsOthers")
private String complicationsOthers;
@Expose
@Transient
private Long[] relatedBeneficiaryIds;
@Expose
@Transient
private String literacyStatus;
@Expose
@Transient
private String branchName;
// location
@Expose
@Transient
private Integer countryId;
@Expose
@Transient
private String countryName;
@Expose
@Transient
private Integer stateId;
@Expose
@Transient
private String stateName;
@Expose
@Transient
private Integer blockId;
@Expose
@Transient
private String blockName;
@Expose
@Transient
private Integer villageId;
@Expose
@Transient
private String villageName;
@Expose
@Transient
private Integer servicePointID;
@Expose
@Transient
private String servicePointName;
@Expose
@Transient
private Integer zoneID;
@Expose
@Transient
private String zoneName;
@Expose
@Transient
private String addressLine1;
@Expose
@Transient
private String addressLine2;
@Expose
@Transient
private String addressLine3;
// ----------------------------------------------
// Extra data from platform
@Expose
@Transient
private String bankAccount;
@Expose
@Transient
private String community;
@Expose
@Transient
private Integer communityId;
@Expose
@Transient
private String contact_number;
@Expose
@Transient
private Integer currSubDistrictId;
@Expose
@Transient
private Integer districtid;
@Expose
@Transient
private String districtname;
@Expose
@Transient
private Timestamp dob;
@Expose
@Transient
private String fatherName;
@Expose
@Transient
private String firstName;
@Expose
@Transient
private String gender;
@Expose
@Transient
private Integer genderId;
@Expose
@Transient
private String ifscCode;
@Expose
@Transient
private String lastName;
@Expose
@Transient
private String maritalstatus;
@Expose
@Transient
private Integer maritalstatusId;
@Expose
@Transient
private Timestamp marriageDate;
@Expose
@Transient
private String nameOfBank;
@Expose
@Transient
private String religion;
@Expose
@Transient
private BigInteger religionID;
@Expose
@Transient
private String spousename;
@Expose
@Transient
private String user_image;
// 08102020
@Expose
@Transient
private String ageFull;
// 07-07-2021
@Expose
@Column(name = "WhoConductedDelivery")
private String whoConductedDelivery;
@Expose
@Column(name = "LastDeliveryConducted")
private String lastDeliveryConducted;
@Expose
@Column(name = "FacilitySelection")
private String facilitySelection;
@Expose
@Column(name = "DeliveryDate")
private String deliveryDate;
@Expose
@Column(name = "ChildRegisteredSchool")
private String childRegisteredSchool;
@Expose
@Column(name = "TypeOfSchool")
private String typeOfSchool;
// 13-04-2022
@Expose
@Column(name = "dateMarriage")
private Timestamp dateMarriage;
@Expose
@Column(name = "nayiPahalDeliveryStatus")
private String nayiPahalDeliveryStatus;
@Expose
@Column(name = "nayiPahalDeliveryStatusPosition")
private Integer nayiPahalDeliveryStatusPosition;
@Expose
@Column(name = "noOfDaysForDelivery")
private Integer noOfDaysForDelivery;
@Expose
private Boolean isDeath;
@Expose
private String isDeathValue;
@Expose
private String dateOfDeath;
@Expose
private String timeOfDeath;
@Expose
private String reasonOfDeath;
@Expose
private Integer reasonOfDeathId;
@Expose
private String placeOfDeath;
@Expose
private Integer placeOfDeathId;
@Expose
private String otherPlaceOfDeath;
@Expose
private Boolean isSpouseAdded;
@Expose
private Boolean isChildrenAdded;
@Expose
private Boolean isMarried;
@Expose
private Boolean doYouHavechildren;
@Expose
private Integer noofAlivechildren;
@Expose
private Integer noOfchildren;
@Expose
private Boolean isDeactivate;
}