source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Adapters/General/DocumentRepository/src/gov/hhs/fha/nhinc/repository/model/Document.java@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 12.6 KB
Line 
1package gov.hhs.fha.nhinc.repository.model;
2
3import java.util.Date;
4import java.util.Set;
5
6/**
7 * Data class for a document.
8 *
9 * @author Neil Webb
10 */
11public class Document
12{
13 private Long documentid;
14 private String documentUniqueId;
15 private String documentTitle;
16 private String authorPerson;
17 private String authorInstitution;
18 private String authorRole;
19 private String authorSpecialty;
20 private String availablityStatus;
21 private String classCode;
22 private String classCodeScheme;
23 private String classCodeDisplayName;
24 private String confidentialityCode;
25 private String confidentialityCodeScheme;
26 private String confidentialityCodeDisplayName;
27 private Date creationTime;
28 private String formatCode;
29 private String formatCodeScheme;
30 private String formatCodeDisplayName;
31 private String patientId;
32 private Date serviceStartTime;
33 private Date serviceStopTime;
34 private String status;
35 private String comments;
36 private String hash;
37 private String facilityCode;
38 private String facilityCodeScheme;
39 private String facilityCodeDisplayName;
40 private String intendedRecipientPerson;
41 private String intendedRecipientOrganization;
42 private String languageCode;
43 private String legalAuthenticator;
44 private String mimeType;
45 private String parentDocumentId;
46 private String parentDocumentRelationship;
47 private String practiceSetting;
48 private String practiceSettingScheme;
49 private String practiceSettingDisplayName;
50 private Integer size;
51 private String sourcePatientId;
52 private String pid3;
53 private String pid5;
54 private String pid8;
55 private String pid7;
56 private String pid11;
57 private String typeCode;
58 private String typeCodeScheme;
59 private String typeCodeDisplayName;
60 private String documentUri;
61 private byte[] rawData;
62 private boolean persistent;
63 private Set<EventCode> eventCodes;
64
65 public Document()
66 {
67 persistent = false;
68 }
69
70 public String getAuthorInstitution()
71 {
72 return authorInstitution;
73 }
74
75 public void setAuthorInstitution(String authorInstitution)
76 {
77 this.authorInstitution = authorInstitution;
78 }
79
80 public String getAuthorPerson()
81 {
82 return authorPerson;
83 }
84
85 public void setAuthorPerson(String authorPerson)
86 {
87 this.authorPerson = authorPerson;
88 }
89
90 public String getAuthorRole()
91 {
92 return authorRole;
93 }
94
95 public void setAuthorRole(String authorRole)
96 {
97 this.authorRole = authorRole;
98 }
99
100 public String getAuthorSpecialty()
101 {
102 return authorSpecialty;
103 }
104
105 public void setAuthorSpecialty(String authorSpecialty)
106 {
107 this.authorSpecialty = authorSpecialty;
108 }
109
110 public String getAvailablityStatus()
111 {
112 return availablityStatus;
113 }
114
115 public void setAvailablityStatus(String availablityStatus)
116 {
117 this.availablityStatus = availablityStatus;
118 }
119
120 public String getClassCode()
121 {
122 return classCode;
123 }
124
125 public void setClassCode(String classCode)
126 {
127 this.classCode = classCode;
128 }
129
130 public String getClassCodeDisplayName()
131 {
132 return classCodeDisplayName;
133 }
134
135 public void setClassCodeDisplayName(String classCodeDisplayName)
136 {
137 this.classCodeDisplayName = classCodeDisplayName;
138 }
139
140 public String getClassCodeScheme()
141 {
142 return classCodeScheme;
143 }
144
145 public void setClassCodeScheme(String classCodeScheme)
146 {
147 this.classCodeScheme = classCodeScheme;
148 }
149
150 public String getComments()
151 {
152 return comments;
153 }
154
155 public void setComments(String comments)
156 {
157 this.comments = comments;
158 }
159
160 public String getConfidentialityCode()
161 {
162 return confidentialityCode;
163 }
164
165 public void setConfidentialityCode(String confidentialityCode)
166 {
167 this.confidentialityCode = confidentialityCode;
168 }
169
170 public String getConfidentialityCodeDisplayName()
171 {
172 return confidentialityCodeDisplayName;
173 }
174
175 public void setConfidentialityCodeDisplayName(String confidentialityCodeDisplayName)
176 {
177 this.confidentialityCodeDisplayName = confidentialityCodeDisplayName;
178 }
179
180 public String getConfidentialityCodeScheme()
181 {
182 return confidentialityCodeScheme;
183 }
184
185 public void setConfidentialityCodeScheme(String confidentialityCodeScheme)
186 {
187 this.confidentialityCodeScheme = confidentialityCodeScheme;
188 }
189
190 public String getDocumentTitle()
191 {
192 return documentTitle;
193 }
194
195 public void setDocumentTitle(String documentTitle)
196 {
197 this.documentTitle = documentTitle;
198 }
199
200 public String getDocumentUniqueId()
201 {
202 return documentUniqueId;
203 }
204
205 public void setDocumentUniqueId(String documentUniqueId)
206 {
207 this.documentUniqueId = documentUniqueId;
208 }
209
210 public String getDocumentUri()
211 {
212 return documentUri;
213 }
214
215 public void setDocumentUri(String documentUri)
216 {
217 this.documentUri = documentUri;
218 }
219
220 public Long getDocumentid()
221 {
222 return documentid;
223 }
224
225 public void setDocumentid(Long documentid)
226 {
227 this.documentid = documentid;
228 }
229
230 public String getFacilityCode()
231 {
232 return facilityCode;
233 }
234
235 public void setFacilityCode(String facilityCode)
236 {
237 this.facilityCode = facilityCode;
238 }
239
240 public String getFacilityCodeDisplayName()
241 {
242 return facilityCodeDisplayName;
243 }
244
245 public void setFacilityCodeDisplayName(String facilityCodeDisplayName)
246 {
247 this.facilityCodeDisplayName = facilityCodeDisplayName;
248 }
249
250 public String getFacilityCodeScheme()
251 {
252 return facilityCodeScheme;
253 }
254
255 public void setFacilityCodeScheme(String facilityCodeScheme)
256 {
257 this.facilityCodeScheme = facilityCodeScheme;
258 }
259
260 public String getFormatCode()
261 {
262 return formatCode;
263 }
264
265 public void setFormatCode(String formatCode)
266 {
267 this.formatCode = formatCode;
268 }
269
270 public String getFormatCodeDisplayName()
271 {
272 return formatCodeDisplayName;
273 }
274
275 public void setFormatCodeDisplayName(String formatCodeDisplayName)
276 {
277 this.formatCodeDisplayName = formatCodeDisplayName;
278 }
279
280 public String getFormatCodeScheme()
281 {
282 return formatCodeScheme;
283 }
284
285 public void setFormatCodeScheme(String formatCodeScheme)
286 {
287 this.formatCodeScheme = formatCodeScheme;
288 }
289
290 public String getHash()
291 {
292 return hash;
293 }
294
295 public void setHash(String hash)
296 {
297 this.hash = hash;
298 }
299
300 public String getIntendedRecipientOrganization()
301 {
302 return intendedRecipientOrganization;
303 }
304
305 public void setIntendedRecipientOrganization(String intendedRecipientOrganization)
306 {
307 this.intendedRecipientOrganization = intendedRecipientOrganization;
308 }
309
310 public String getIntendedRecipientPerson()
311 {
312 return intendedRecipientPerson;
313 }
314
315 public void setIntendedRecipientPerson(String intendedRecipientPerson)
316 {
317 this.intendedRecipientPerson = intendedRecipientPerson;
318 }
319
320 public String getLanguageCode()
321 {
322 return languageCode;
323 }
324
325 public void setLanguageCode(String languageCode)
326 {
327 this.languageCode = languageCode;
328 }
329
330 public String getLegalAuthenticator()
331 {
332 return legalAuthenticator;
333 }
334
335 public void setLegalAuthenticator(String legalAuthenticator)
336 {
337 this.legalAuthenticator = legalAuthenticator;
338 }
339
340 public String getMimeType()
341 {
342 return mimeType;
343 }
344
345 public void setMimeType(String mimeType)
346 {
347 this.mimeType = mimeType;
348 }
349
350 public String getParentDocumentId()
351 {
352 return parentDocumentId;
353 }
354
355 public void setParentDocumentId(String parentDocumentId)
356 {
357 this.parentDocumentId = parentDocumentId;
358 }
359
360 public String getParentDocumentRelationship()
361 {
362 return parentDocumentRelationship;
363 }
364
365 public void setParentDocumentRelationship(String parentDocumentRelationship)
366 {
367 this.parentDocumentRelationship = parentDocumentRelationship;
368 }
369
370 public String getPatientId()
371 {
372 return patientId;
373 }
374
375 public void setPatientId(String patientId)
376 {
377 this.patientId = patientId;
378 }
379
380 public String getPid11()
381 {
382 return pid11;
383 }
384
385 public void setPid11(String pid11)
386 {
387 this.pid11 = pid11;
388 }
389
390 public String getPid3()
391 {
392 return pid3;
393 }
394
395 public void setPid3(String pid3)
396 {
397 this.pid3 = pid3;
398 }
399
400 public String getPid5()
401 {
402 return pid5;
403 }
404
405 public void setPid5(String pid5)
406 {
407 this.pid5 = pid5;
408 }
409
410 public String getPid7()
411 {
412 return pid7;
413 }
414
415 public void setPid7(String pid7)
416 {
417 this.pid7 = pid7;
418 }
419
420 public String getPid8()
421 {
422 return pid8;
423 }
424
425 public void setPid8(String pid8)
426 {
427 this.pid8 = pid8;
428 }
429
430 public String getPracticeSetting()
431 {
432 return practiceSetting;
433 }
434
435 public void setPracticeSetting(String practiceSetting)
436 {
437 this.practiceSetting = practiceSetting;
438 }
439
440 public String getPracticeSettingDisplayName()
441 {
442 return practiceSettingDisplayName;
443 }
444
445 public void setPracticeSettingDisplayName(String practiceSettingDisplayName)
446 {
447 this.practiceSettingDisplayName = practiceSettingDisplayName;
448 }
449
450 public String getPracticeSettingScheme()
451 {
452 return practiceSettingScheme;
453 }
454
455 public void setPracticeSettingScheme(String practiceSettingScheme)
456 {
457 this.practiceSettingScheme = practiceSettingScheme;
458 }
459
460 public Integer getSize()
461 {
462 return size;
463 }
464
465 public void setSize(Integer size)
466 {
467 this.size = size;
468 }
469
470 public String getSourcePatientId()
471 {
472 return sourcePatientId;
473 }
474
475 public void setSourcePatientId(String sourcePatientId)
476 {
477 this.sourcePatientId = sourcePatientId;
478 }
479
480 public Date getCreationTime()
481 {
482 return creationTime;
483 }
484
485 public void setCreationTime(Date creationTime)
486 {
487 this.creationTime = creationTime;
488 }
489
490 public Date getServiceStartTime()
491 {
492 return serviceStartTime;
493 }
494
495 public void setServiceStartTime(Date serviceStartTime)
496 {
497 this.serviceStartTime = serviceStartTime;
498 }
499
500 public Date getServiceStopTime()
501 {
502 return serviceStopTime;
503 }
504
505 public void setServiceStopTime(Date serviceStopTime)
506 {
507 this.serviceStopTime = serviceStopTime;
508 }
509
510 public String getStatus()
511 {
512 return status;
513 }
514
515 public void setStatus(String status)
516 {
517 this.status = status;
518 }
519
520 public String getTypeCode()
521 {
522 return typeCode;
523 }
524
525 public void setTypeCode(String typeCode)
526 {
527 this.typeCode = typeCode;
528 }
529
530 public String getTypeCodeDisplayName()
531 {
532 return typeCodeDisplayName;
533 }
534
535 public void setTypeCodeDisplayName(String typeCodeDisplayName)
536 {
537 this.typeCodeDisplayName = typeCodeDisplayName;
538 }
539
540 public String getTypeCodeScheme()
541 {
542 return typeCodeScheme;
543 }
544
545 public void setTypeCodeScheme(String typeCodeScheme)
546 {
547 this.typeCodeScheme = typeCodeScheme;
548 }
549
550 public byte[] getRawData()
551 {
552 return rawData;
553 }
554
555 public void setRawData(byte[] rawData)
556 {
557 this.rawData = rawData;
558 }
559
560 public boolean isPersistent()
561 {
562 return persistent;
563 }
564
565 public void setPersistent(boolean persistent)
566 {
567 this.persistent = persistent;
568 }
569
570 /**
571 * Getter for a code representing the persistent state of the document.
572 * This accessor is only to be used with the persistence layer. Use
573 * the isPersistent method to access this property.
574 *
575 * @return Persistence layer code for persistent flag.
576 */
577 public int getPersistentCode()
578 {
579 return (persistent ? 1 : 0);
580 }
581
582 /**
583 * Setter for the document's persistence code that is used by the
584 * persistence layer. Use the isPersistent method to look up this
585 * property.
586 *
587 * @param persistentCode Persistence layer code for the persistence flag.
588 */
589 public void setPersistentCode(int persistentCode)
590 {
591 persistent = (persistentCode == 1);
592
593 }
594
595 public Set<EventCode> getEventCodes()
596 {
597 return eventCodes;
598 }
599
600 public void setEventCodes(Set<EventCode> eventCodes)
601 {
602 this.eventCodes = eventCodes;
603 }
604}
Note: See TracBrowser for help on using the repository browser.