コード例 #1
0
 /**
  * isolate the process of composing the fmp ssn
  *
  * @param pat the patient as from the paws patient service
  * @return textual representation of the fmp ssn
  */
 private String fmpSsn() {
   String ssn =
       _pawsPatient.getSSN().substring(0, 3)
           + "‑"
           + _pawsPatient.getSSN().substring(3, 5)
           + "‑"
           + _pawsPatient.getSSN().substring(5);
   return (StringUtil.isEmpty(_pawsPatient.getFMP())) ? ssn : _pawsPatient.getFMP() + '/' + ssn;
 }
コード例 #2
0
 /**
  * mutator for the paws patient id. if the id represents a change to the underlying paws patient,
  * updates the paws patient
  *
  * @param pawsUnitNbr
  */
 public void setPawsPatientId(final String pawsUnitNbr) {
   if ((!StringUtil.isEmpty(pawsUnitNbr))
       && ((null == _pawsPatient) || (!pawsUnitNbr.equals(_pawsPatient.getUnitNumber())))) {
     _pawsPatient = ServPaws.patient(pawsUnitNbr);
   }
 }
コード例 #3
0
 /**
  * accessor for unit number
  *
  * @return unit number
  */
 public String getUnitNumber() {
   return _pawsPatient.getUnitNumber();
 }
コード例 #4
0
 /**
  * accessor for the work phone
  *
  * @return the work phone
  */
 public String getWorkPhone() {
   return workPhone(_pawsPatient.getTelecoms());
 }
コード例 #5
0
 /**
  * accessor for the last name
  *
  * @return the last name
  */
 public String getLastname() {
   return _pawsPatient.getName().getLastName();
 }
コード例 #6
0
 /**
  * accessor for the home phone
  *
  * @return the home phone
  */
 public String getHomePhone() {
   return homePhone(_pawsPatient.getTelecoms());
 }
コード例 #7
0
 /**
  * accessor for the date of birth as a string
  *
  * @return teh dob
  */
 public String getDob() {
   return new SimpleDateFormat("MMM dd, yyyy").format(_pawsPatient.getDateOfBirth().getTime());
 }
コード例 #8
0
 /**
  * accessor for for the client's name
  *
  * @return the full client name
  */
 public String getClientName() {
   return _pawsPatient.getName().getLastName() + " " + _pawsPatient.getName().getFirstName();
 }
コード例 #9
0
 /**
  * accessor for for the call back phone
  *
  * @return the callback phone
  */
 public String getCallbackPhone() {
   return (StringUtil.isEmpty(_callbackPhone))
       ? homePhone(_pawsPatient.getTelecoms())
       : _callbackPhone;
 }