| 1 |
/* Patient Module Interface */ |
| 2 |
|
| 3 |
package DICOM.Module; |
| 4 |
|
| 5 |
public class PatientModule { |
| 6 |
|
| 7 |
private String mPatientName; |
| 8 |
private String mPatientID; |
| 9 |
private String mBirthDate; |
| 10 |
private String mSex; |
| 11 |
|
| 12 |
public PatientModule() { |
| 13 |
mPatientName = ""; |
| 14 |
mPatientID = ""; |
| 15 |
mBirthDate = ""; |
| 16 |
mSex = ""; |
| 17 |
} |
| 18 |
|
| 19 |
public PatientModule(String name, String id, String birthDate, String sex) { |
| 20 |
mPatientName = new String(name); |
| 21 |
mPatientID = new String(id); |
| 22 |
mBirthDate = new String(birthDate); |
| 23 |
mSex = new String(sex); |
| 24 |
} |
| 25 |
|
| 26 |
public String patientName() { |
| 27 |
return mPatientName; |
| 28 |
} |
| 29 |
public String patientID() { |
| 30 |
return mPatientID; |
| 31 |
} |
| 32 |
public String birthDate() { |
| 33 |
return mBirthDate; |
| 34 |
} |
| 35 |
public String sex() { |
| 36 |
return mSex; |
| 37 |
} |
| 38 |
public void patientName(String s) { |
| 39 |
mPatientName = new String(s); |
| 40 |
} |
| 41 |
public void patientID(String s) { |
| 42 |
mPatientID = new String(s); |
| 43 |
} |
| 44 |
public void birthDate(String s) { |
| 45 |
mBirthDate = new String(s); |
| 46 |
} |
| 47 |
public void sex(String s) { |
| 48 |
mSex = new String(s); |
| 49 |
} |
| 50 |
public void dumpState() { |
| 51 |
System.out.print(mPatientName + " : " + mPatientID + " : " + mBirthDate + |
| 52 |
" : " + mSex); |
| 53 |
System.out.println(); |
| 54 |
} |
| 55 |
} |