forked from PSMRI/HWC-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatientExt.java
More file actions
346 lines (280 loc) · 11.6 KB
/
PatientExt.java
File metadata and controls
346 lines (280 loc) · 11.6 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
package com.iemr.hwc.fhir.model.patient;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Extension;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.util.ElementUtil;
import org.hl7.fhir.r4.model.Coding;
import org.hl7.fhir.r4.model.Patient;
import org.hl7.fhir.r4.model.StringType;
@ResourceDef(name = "Patient")
public class PatientExt extends Patient {
@Description(shortDefinition = "Contains father's name")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.fatherName", isModifier = false, definedLocally = true)
@Child(name = "fatherName")
private StringType fatherName;
@Description(shortDefinition = "Contains spouse's name, If beneficiary is married")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.spouseName", isModifier = false, definedLocally = true)
@Child(name = "spouseName")
private StringType spouseName;
@Description(shortDefinition = "Contains age when married, If beneficiary is married")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.ageAtMarriage", isModifier = false, definedLocally = true)
@Child(name = "ageAtMarriage")
private StringType ageAtMarriage;
@Description(shortDefinition = "Mentions Abha generation mode")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.abhaGenerationMode", isModifier = false, definedLocally = true)
@Child(name = "abhaGenerationMode")
private Coding abhaGenerationMode;
@Description(shortDefinition = "Contains providerServiceMapId ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.providerServiceMapId", isModifier = false, definedLocally = true)
@Child(name = "providerServiceMapId")
private StringType providerServiceMapId;
@Description(shortDefinition = "Contains vanID ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.vanID", isModifier = false, definedLocally = true)
@Child(name = "vanID")
private StringType vanID;
@Description(shortDefinition = "Contains parkingPlaceID ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.parkingPlaceID", isModifier = false, definedLocally = true)
@Child(name = "parkingPlaceID")
private StringType parkingPlaceID;
@Description(shortDefinition = "Contains createdBy ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.createdBy", isModifier = false, definedLocally = true)
@Child(name = "createdBy")
private StringType createdBy;
@Description(shortDefinition = "Contains State details ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.state", isModifier = false, definedLocally = true)
@Child(name = "state")
private Coding state;
@Description(shortDefinition = "Contains District details ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.district", isModifier = false, definedLocally = true)
@Child(name = "district")
private Coding district;
@Description(shortDefinition = "Contains block details ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.block", isModifier = false, definedLocally = true)
@Child(name = "block")
private Coding block;
@Description(shortDefinition = "Contains districtBranch details ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.districtBranch", isModifier = false, definedLocally = true)
@Child(name = "districtBranch")
private Coding districtBranch;
@Description(shortDefinition = "Contains religion details ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.religion", isModifier = false, definedLocally = true)
@Child(name = "religion")
private Coding religion;
@Description(shortDefinition = "Contains community details ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.community", isModifier = false, definedLocally = true)
@Child(name = "community")
private Coding community;
@Description(shortDefinition = "Contains govtIdentityType details ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.govtIdentityType", isModifier = false, definedLocally = true)
@Child(name = "govtIdentityType")
private Coding govtIdentityType;
@Description(shortDefinition = "Contains govtIdentityNo ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.govtIdentityNo", isModifier = false, definedLocally = true)
@Child(name = "govtIdentityNo")
private StringType govtIdentityNo;
@Description(shortDefinition = "Contains govtHealthProgramType details ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.govtHealthProgramType", isModifier = false, definedLocally = true)
@Child(name = "govtHealthProgramType")
private Coding govtHealthProgramType;
@Description(shortDefinition = "Contains govtHealthProgramId ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.govtHealthProgramId", isModifier = false, definedLocally = true)
@Child(name = "govtHealthProgramId")
private StringType govtHealthProgramId;
@Description(shortDefinition = "Contains benFlowID ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.benFlowID", isModifier = false, definedLocally = true)
@Child(name = "benFlowID")
private StringType benFlowID;
@Description(shortDefinition = "Contains beneficiaryRegID ")
@Extension(url = "http://hl7.org/fhir/StructureDefinition/Patient#Patient.beneficiaryRegID", isModifier = false, definedLocally = true)
@Child(name = "beneficiaryRegID")
private StringType beneficiaryRegID;
public StringType getFatherName() {
if (fatherName == null) {
fatherName = new StringType();
}
return fatherName;
}
public void setFatherName(StringType father_Name) {
fatherName = father_Name;
}
public StringType getSpouseName() {
if (spouseName == null) {
spouseName = new StringType();
}
return spouseName;
}
public void setSpouseName(StringType spouse_Name) {
spouseName = spouse_Name;
}
public StringType getAgeAtMarriage() {
if (ageAtMarriage == null) {
ageAtMarriage = new StringType();
}
return ageAtMarriage;
}
public void setAgeAtMarriage(StringType age_At_Marriage) {
ageAtMarriage = age_At_Marriage;
}
public Coding getAbhaGenerationMode() {
if (abhaGenerationMode == null) {
abhaGenerationMode = new Coding();
}
return abhaGenerationMode;
}
public void setAbhaGenerationMode(Coding abha_Generation_Mode) {
abhaGenerationMode = abha_Generation_Mode;
}
public StringType getProviderServiceMapId() {
if (providerServiceMapId == null) {
providerServiceMapId = new StringType();
}
return providerServiceMapId;
}
public void setProviderServiceMapId(StringType provider_Service_MapId) {
providerServiceMapId = provider_Service_MapId;
}
public StringType getParkingPlaceID() {
if (parkingPlaceID == null) {
parkingPlaceID = new StringType();
}
return parkingPlaceID;
}
public void setParkingPlaceID(StringType parking_Place_ID) {
parkingPlaceID = parking_Place_ID;
}
public StringType getVanID() {
if (vanID == null) {
vanID = new StringType();
}
return vanID;
}
public void setVanID(StringType van_ID) {
vanID = van_ID;
}
public StringType getCreatedBy() {
if (createdBy == null) {
createdBy = new StringType();
}
return createdBy;
}
public void setCreatedBy(StringType created_By) {
createdBy = created_By;
}
public Coding getState() {
if (state == null) {
state = new Coding();
}
return state;
}
public void setState(Coding stateDetails) {
state = stateDetails;
}
public Coding getDistrict() {
if (district == null) {
district = new Coding();
}
return district;
}
public void setDistrict(Coding districtDetails) {
district = districtDetails;
}
public Coding getBlock() {
if (block == null) {
block = new Coding();
}
return block;
}
public void setBlock(Coding blockDetails) {
block = blockDetails;
}
public Coding getDistrictBranch() {
if (districtBranch == null) {
districtBranch = new Coding();
}
return districtBranch;
}
public void setDistrictBranch(Coding district_Branch) {
districtBranch = district_Branch;
}
public Coding getReligion() {
if (religion == null) {
religion = new Coding();
}
return religion;
}
public void setReligion(Coding religionDetails) {
religion = religionDetails;
}
public Coding getCommunity() {
if (community == null) {
community = new Coding();
}
return community;
}
public void setCommunity(Coding communityDetails) {
community = communityDetails;
}
public Coding getGovtIdentityType() {
if (govtIdentityType == null) {
govtIdentityType = new Coding();
}
return govtIdentityType;
}
public void setGovtIdentityType(Coding govtIdentity_Type) {
govtIdentityType = govtIdentity_Type;
}
public StringType getGovtIdentityNo() {
if (govtIdentityNo == null) {
govtIdentityNo = new StringType();
}
return govtIdentityNo;
}
public void setGovtIdentityNo(StringType govt_Identity_No) {
govtIdentityNo = govt_Identity_No;
}
public Coding getGovtHealthProgramType() {
if (govtHealthProgramType == null) {
govtHealthProgramType = new Coding();
}
return govtHealthProgramType;
}
public void setGovtHealthProgramType(Coding govtHealthProgram_Type) {
govtHealthProgramType = govtHealthProgram_Type;
}
public StringType getGovtHealthProgramId() {
if (govtHealthProgramId == null) {
govtHealthProgramId = new StringType();
}
return govtHealthProgramId;
}
public void setGovtHealthProgramId(StringType govtHealthProgram_Id) {
govtHealthProgramId = govtHealthProgram_Id;
}
public StringType getBenFlowID() {
if (benFlowID == null) {
benFlowID = new StringType();
}
return benFlowID;
}
public void setBenFlowID(StringType benFlow_ID) {
benFlowID = benFlow_ID;
}
public StringType getBeneficiaryRegID() {
if (beneficiaryRegID == null) {
beneficiaryRegID = new StringType();
}
return beneficiaryRegID;
}
public void setBeneficiaryRegID(StringType beneficiary_RegID) {
beneficiaryRegID = beneficiary_RegID;
}
@Override
public boolean isEmpty() {
return super.isEmpty() && ElementUtil.isEmpty(fatherName , spouseName , ageAtMarriage , abhaGenerationMode ,
providerServiceMapId , vanID , parkingPlaceID , createdBy ,
state , district , block , districtBranch , religion , community ,
govtIdentityType , govtIdentityNo , govtHealthProgramType ,
govtHealthProgramId, benFlowID ,beneficiaryRegID);
}
}