refs/refs/NACHC-fhir-to-omop/src/main/java/org/nachc/tools/omop/yaorma/dvo/SpecimenDvo.java

lines 32–48 342 lines · java
1//
2// Data Value Object (DVO) for SPECIMEN
3//
5package org.nachc.tools.omop.yaorma.dvo;
7import java.util.ArrayList;
8import java.util.HashMap;
9import java.util.Date;
10import java.math.BigDecimal;
12import org.yaorma.dvo.Dvo;
14public class SpecimenDvo implements Dvo {
16 //
17 // tableName
18 //
20 public static final String TABLE_NAME = "SPECIMEN";
22 //
23 // schemaName
24 //
26 public static final String SCHEMA_NAME = "synthea_micro.dbo";
28 //
29 // columnNames
30 //
32 public static final String[] COLUMN_NAMES = {
33 "specimen_id",
34 "person_id",
35 "specimen_concept_id",
36 "specimen_type_concept_id",
37 "specimen_date",
38 "specimen_datetime",
39 "quantity",
40 "unit_concept_id",
41 "anatomic_site_concept_id",
42 "disease_status_concept_id",
43 "specimen_source_id",
44 "specimen_source_value",
45 "unit_source_value",
46 "anatomic_site_source_value",
47 "disease_status_source_value"
48 };
50 //
51 // primaryKeyColumnNames
52 //
54 public static final String[] PRIMARY_KEY_COLUMN_NAMES = {
55 };
57 //
58 // javaNames
59 //
61 public static final String[] JAVA_NAMES = {
62 "specimenId",
63 "personId",
64 "specimenConceptId",
65 "specimenTypeConceptId",
66 "specimenDate",
67 "specimenDatetime",
68 "quantity",
69 "unitConceptId",
70 "anatomicSiteConceptId",
71 "diseaseStatusConceptId",
72 "specimenSourceId",
73 "specimenSourceValue",
74 "unitSourceValue",
75 "anatomicSiteSourceValue",
76 "diseaseStatusSourceValue"
77 };
79 //
80 // javaNamesProper
81 //
83 public static final String[] JAVA_NAMES_PROPER = {
84 "SpecimenId",
85 "PersonId",
86 "SpecimenConceptId",
87 "SpecimenTypeConceptId",
88 "SpecimenDate",
89 "SpecimenDatetime",
90 "Quantity",
91 "UnitConceptId",
92 "AnatomicSiteConceptId",
93 "DiseaseStatusConceptId",
94 "SpecimenSourceId",
95 "SpecimenSourceValue",
96 "UnitSourceValue",
97 "AnatomicSiteSourceValue",
98 "DiseaseStatusSourceValue"
99 };
102 //
103 // member variables
104 //
106 private HashMap<String, String> descriptions = new HashMap<String, String>();
108 private Integer specimenId;
110 private Integer personId;
112 private Integer specimenConceptId;
114 private Integer specimenTypeConceptId;
116 private Date specimenDate;
118 private Date specimenDatetime;
120 private BigDecimal quantity;
122 private Integer unitConceptId;
124 private Integer anatomicSiteConceptId;
126 private Integer diseaseStatusConceptId;
128 private String specimenSourceId;
130 private String specimenSourceValue;
132 private String unitSourceValue;
134 private String anatomicSiteSourceValue;
136 private String diseaseStatusSourceValue;
138 //
139 // trivial getters and setters
140 //
142 // specimenId
144 public void setSpecimenId(Integer val) {
145 this.specimenId = val;
146 }
148 public Integer getSpecimenId() {
149 return this.specimenId;
150 }
152 // personId
154 public void setPersonId(Integer val) {
155 this.personId = val;
156 }
158 public Integer getPersonId() {
159 return this.personId;
160 }
162 // specimenConceptId
164 public void setSpecimenConceptId(Integer val) {
165 this.specimenConceptId = val;
166 }
168 public Integer getSpecimenConceptId() {
169 return this.specimenConceptId;
170 }
172 // specimenTypeConceptId
174 public void setSpecimenTypeConceptId(Integer val) {
175 this.specimenTypeConceptId = val;
176 }
178 public Integer getSpecimenTypeConceptId() {
179 return this.specimenTypeConceptId;
180 }
182 // specimenDate
184 public void setSpecimenDate(Date val) {
185 this.specimenDate = val;
186 }
188 public Date getSpecimenDate() {
189 return this.specimenDate;
190 }
192 // specimenDatetime
194 public void setSpecimenDatetime(Date val) {
195 this.specimenDatetime = val;
196 }
198 public Date getSpecimenDatetime() {
199 return this.specimenDatetime;
200 }
202 // quantity
204 public void setQuantity(BigDecimal val) {
205 this.quantity = val;
206 }
208 public BigDecimal getQuantity() {
209 return this.quantity;
210 }
212 // unitConceptId
214 public void setUnitConceptId(Integer val) {
215 this.unitConceptId = val;
216 }
218 public Integer getUnitConceptId() {
219 return this.unitConceptId;
220 }
222 // anatomicSiteConceptId
224 public void setAnatomicSiteConceptId(Integer val) {
225 this.anatomicSiteConceptId = val;
226 }
228 public Integer getAnatomicSiteConceptId() {
229 return this.anatomicSiteConceptId;
230 }
232 // diseaseStatusConceptId
234 public void setDiseaseStatusConceptId(Integer val) {
235 this.diseaseStatusConceptId = val;
236 }
238 public Integer getDiseaseStatusConceptId() {
239 return this.diseaseStatusConceptId;
240 }
242 // specimenSourceId
244 public void setSpecimenSourceId(String val) {
245 this.specimenSourceId = val;
246 }
248 public String getSpecimenSourceId() {
249 return this.specimenSourceId;
250 }
252 // specimenSourceValue
254 public void setSpecimenSourceValue(String val) {
255 this.specimenSourceValue = val;
256 }
258 public String getSpecimenSourceValue() {
259 return this.specimenSourceValue;
260 }
262 // unitSourceValue
264 public void setUnitSourceValue(String val) {
265 this.unitSourceValue = val;
266 }
268 public String getUnitSourceValue() {
269 return this.unitSourceValue;
270 }
272 // anatomicSiteSourceValue
274 public void setAnatomicSiteSourceValue(String val) {
275 this.anatomicSiteSourceValue = val;
276 }
278 public String getAnatomicSiteSourceValue() {
279 return this.anatomicSiteSourceValue;
280 }
282 // diseaseStatusSourceValue
284 public void setDiseaseStatusSourceValue(String val) {
285 this.diseaseStatusSourceValue = val;
286 }
288 public String getDiseaseStatusSourceValue() {
289 return this.diseaseStatusSourceValue;
290 }
292 //
293 // implementation of Dvo
294 //
296 public String getTableName() {
297 return TABLE_NAME;
298 };
300 public String getSchemaName() {
301 return org.nachc.tools.fhirtoomop.util.params.AppParams.getFullySpecifiedCdmSchemaName();
302 };
304 public String[] getColumnNames() {
305 return COLUMN_NAMES;
306 };
308 public String[] getPrimaryKeyColumnNames() {
309 return PRIMARY_KEY_COLUMN_NAMES;
310 };
312 public String[] getJavaNames() {
313 return JAVA_NAMES;
314 };
316 public String[] getJavaNamesProper() {
317 return JAVA_NAMES_PROPER;
318 };
320 public void setDescriptions(HashMap<String, String> descriptions) {
321 this.descriptions = descriptions;
322 }
324 public HashMap<String, String> getDescriptions() {
325 return this.descriptions;
326 }
328 public void addDescription(String javaName, String value) {
329 this.descriptions.put(javaName, value);
330 }
332 public String getDescription(String javaName) {
333 return this.descriptions.get(javaName);
334 }
336 public String[] getPrimaryKeyValues() {
337 String[] rtn = new String[] {
338 };
339 return rtn;
340 }