source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Adapters/General/MpiLib/src/gov/hhs/fha/nhinc/mpilib/PersonName.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: 1.5 KB
Line 
1/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5package gov.hhs.fha.nhinc.mpilib;
6
7import org.apache.commons.logging.Log;
8import org.apache.commons.logging.LogFactory;
9
10/**
11 *
12 * @author rayj
13 */
14public class PersonName implements java.io.Serializable {
15 private static Log log = LogFactory.getLog(PersonName.class);
16 private String lastName = "";
17 private String firstName = "";
18 private String middleName = "";
19
20 public PersonName() {
21 log.debug("PersonName Initialized");
22 }
23 public PersonName(String lastname , String firstname) {
24 this.setLastName(lastname);
25 this.setFirstName(firstname);
26 }
27 public String getMiddleName()
28 {
29 if (middleName == null) {
30 middleName = "";
31 }
32 return middleName;
33 }
34 public String getMiddleInitial()
35 {
36 if (middleName == null) {
37 middleName = "";
38 }
39 return middleName.substring(0, 0);
40 }
41
42 public void setMiddleName(String middle)
43 {
44 middleName = middle;
45 }
46 public String getLastName() {
47 if (lastName == null) {
48 lastName = "";
49 }
50 return lastName;
51 }
52
53 public void setLastName(String LastName) {
54 this.lastName = LastName;
55 }
56
57 public String getFirstName() {
58 if (firstName == null) {
59 firstName = "";
60 }
61 return firstName;
62 }
63
64 public void setFirstName(String FirstName) {
65 this.firstName = FirstName;
66 }
67}
Note: See TracBrowser for help on using the repository browser.