1 | package gov.hhs.fha.nhinc.adapter.reidentification.data;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * This represents one mapping between a pseudonym patient identifier and its
|
---|
5 | * corresponding real patient identifier.
|
---|
6 | */
|
---|
7 | public class PseudonymMap {
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * This represents the assigning authority that is associated with the
|
---|
11 | * pseudonym patient ID.
|
---|
12 | */
|
---|
13 | String pseudonymPatientIdAssigningAuthority;
|
---|
14 | /**
|
---|
15 | * This represents the pseudonym patient ID.
|
---|
16 | */
|
---|
17 | String pseudonymPatientId;
|
---|
18 | /**
|
---|
19 | * This represents the real assigning authority associated with the
|
---|
20 | * real patient ID.
|
---|
21 | */
|
---|
22 | String realPatientIdAssigningAuthority;
|
---|
23 | /**
|
---|
24 | * This represents the real patient ID.
|
---|
25 | */
|
---|
26 | String realPatientId;
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * This retrieves the assigning authority that is associated with the
|
---|
30 | * pseudonym patient ID.
|
---|
31 | */
|
---|
32 | public String getPseudonymPatientIdAssigningAuthority() {
|
---|
33 | return pseudonymPatientIdAssigningAuthority;
|
---|
34 | }
|
---|
35 |
|
---|
36 | /**
|
---|
37 | * This sets the assigning authority that is associated with the
|
---|
38 | * pseudonym patient ID.
|
---|
39 | */
|
---|
40 | public void setPseudonymPatientIdAssigningAuthority(String pseudonymPatientIdAssigningAuthority) {
|
---|
41 | this.pseudonymPatientIdAssigningAuthority = pseudonymPatientIdAssigningAuthority;
|
---|
42 | }
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * This retrieves the pseudonym patient ID.
|
---|
46 | */
|
---|
47 | public String getPseudonymPatientId() {
|
---|
48 | return pseudonymPatientId;
|
---|
49 | }
|
---|
50 |
|
---|
51 | /**
|
---|
52 | * This sets the pseudonym patient ID.
|
---|
53 | */
|
---|
54 | public void setPseudonymPatientId(String pseudonymPatientId) {
|
---|
55 | this.pseudonymPatientId = pseudonymPatientId;
|
---|
56 | }
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * This retrieves the real assigning authority associated with the real
|
---|
60 | * patient ID.
|
---|
61 | */
|
---|
62 | public String getRealPatientIdAssigningAuthority() {
|
---|
63 | return realPatientIdAssigningAuthority;
|
---|
64 | }
|
---|
65 |
|
---|
66 | /**
|
---|
67 | * This sets the real assigning authority associated with the real
|
---|
68 | * patient ID.
|
---|
69 | */
|
---|
70 | public void setRealPatientIdAssigningAuthority(String realPatientIdAssigningAuthority) {
|
---|
71 | this.realPatientIdAssigningAuthority = realPatientIdAssigningAuthority;
|
---|
72 | }
|
---|
73 |
|
---|
74 | /**
|
---|
75 | * This retrieves the real patient ID.
|
---|
76 | */
|
---|
77 | public String getRealPatientId() {
|
---|
78 | return realPatientId;
|
---|
79 | }
|
---|
80 |
|
---|
81 | /**
|
---|
82 | * This sets the real patient ID.
|
---|
83 | */
|
---|
84 | public void setRealPatientId(String realPatientId) {
|
---|
85 | this.realPatientId = realPatientId;
|
---|
86 | }
|
---|
87 |
|
---|
88 | /**
|
---|
89 | * Override to provide information on the settings of datamember values
|
---|
90 | */
|
---|
91 | public String toString(){
|
---|
92 | StringBuilder builder = new StringBuilder();
|
---|
93 | builder.append("pseudonymPatientIdAssigningAuthority = "
|
---|
94 | + pseudonymPatientIdAssigningAuthority);
|
---|
95 | builder.append(", pseudonymPatientId = "
|
---|
96 | + pseudonymPatientId);
|
---|
97 | builder.append(", realPatientIdAssigningAuthority = "
|
---|
98 | + realPatientIdAssigningAuthority);
|
---|
99 | builder.append(", realPatientId = "
|
---|
100 | + realPatientId);
|
---|
101 | return builder.toString();
|
---|
102 | }
|
---|
103 | }
|
---|