1 | /*
|
---|
2 | * To change this template, choose Tools | Templates
|
---|
3 | * and open the template in the editor.
|
---|
4 | */
|
---|
5 | package gov.hhs.fha.nhinc.mpilib;
|
---|
6 |
|
---|
7 | import org.apache.commons.logging.Log;
|
---|
8 | import org.apache.commons.logging.LogFactory;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | *
|
---|
12 | * @author rayj
|
---|
13 | */
|
---|
14 | public class Patient implements java.io.Serializable {
|
---|
15 | private static Log log = LogFactory.getLog(Patient.class);
|
---|
16 | static final long serialVersionUID = 449060013287108219L;
|
---|
17 | private String dateOfBirth = null;
|
---|
18 | private String gender = "";
|
---|
19 | //private QualifiedSubjectId RequesterSubjectId = null;
|
---|
20 | private String ssn = "";
|
---|
21 | private String lastName = "";
|
---|
22 | private String firstName = "";
|
---|
23 | private PersonName name = null;
|
---|
24 | private Identifiers patientIdentifiers = new Identifiers();
|
---|
25 | private Address add = null;
|
---|
26 | private boolean optedIn = true;
|
---|
27 |
|
---|
28 | public Patient() {
|
---|
29 | log.info("Patient initialized");
|
---|
30 | }
|
---|
31 |
|
---|
32 | public boolean isOptedIn() {
|
---|
33 | return optedIn;
|
---|
34 | }
|
---|
35 |
|
---|
36 | public void setOptedIn(boolean optedIn) {
|
---|
37 | this.optedIn = optedIn;
|
---|
38 | }
|
---|
39 |
|
---|
40 | public String getDateOfBirth() {
|
---|
41 | return dateOfBirth;
|
---|
42 | }
|
---|
43 |
|
---|
44 | public void setDateOfBirth(String newVal) {
|
---|
45 | this.dateOfBirth = newVal;
|
---|
46 | }
|
---|
47 |
|
---|
48 | public Identifiers getIdentifiers() {
|
---|
49 | return patientIdentifiers;
|
---|
50 | }
|
---|
51 |
|
---|
52 | public void setIdentifiers(Identifiers newVal) {
|
---|
53 | this.patientIdentifiers = newVal;
|
---|
54 | }
|
---|
55 |
|
---|
56 | public String getGender() {
|
---|
57 | return gender;
|
---|
58 | }
|
---|
59 |
|
---|
60 | public void setGender(String newVal) {
|
---|
61 | this.gender = newVal;
|
---|
62 | }
|
---|
63 |
|
---|
64 | public String getSSN() {
|
---|
65 | return ssn;
|
---|
66 | }
|
---|
67 |
|
---|
68 | public void setSSN(String val) {
|
---|
69 | this.ssn = val;
|
---|
70 | }
|
---|
71 |
|
---|
72 |
|
---|
73 | public Address getAddress()
|
---|
74 | {
|
---|
75 | if (add == null)
|
---|
76 | {
|
---|
77 | add = new Address();
|
---|
78 | }
|
---|
79 |
|
---|
80 | return add;
|
---|
81 | }
|
---|
82 | public void setAddress(Address value)
|
---|
83 | {
|
---|
84 | add = value;
|
---|
85 | }
|
---|
86 | public PersonName getName() {
|
---|
87 | if (name == null) {
|
---|
88 | name = new PersonName();
|
---|
89 | }
|
---|
90 | return name;
|
---|
91 | }
|
---|
92 |
|
---|
93 | public void setName(PersonName newVal) {
|
---|
94 | this.name = newVal;
|
---|
95 | }
|
---|
96 |
|
---|
97 | public String getFirstName() {
|
---|
98 | return firstName;
|
---|
99 | }
|
---|
100 |
|
---|
101 | public void setFirstName(String newVal) {
|
---|
102 | this.firstName = newVal;
|
---|
103 | }
|
---|
104 |
|
---|
105 | public String getLastName() {
|
---|
106 | return lastName;
|
---|
107 | }
|
---|
108 |
|
---|
109 | public void setLastName(String newVal) {
|
---|
110 | this.lastName = newVal;
|
---|
111 | }
|
---|
112 | }
|
---|