/** * 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; }
/** * 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); } }
/** * accessor for unit number * * @return unit number */ public String getUnitNumber() { return _pawsPatient.getUnitNumber(); }
/** * accessor for the work phone * * @return the work phone */ public String getWorkPhone() { return workPhone(_pawsPatient.getTelecoms()); }
/** * accessor for the last name * * @return the last name */ public String getLastname() { return _pawsPatient.getName().getLastName(); }
/** * accessor for the home phone * * @return the home phone */ public String getHomePhone() { return homePhone(_pawsPatient.getTelecoms()); }
/** * 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()); }
/** * accessor for for the client's name * * @return the full client name */ public String getClientName() { return _pawsPatient.getName().getLastName() + " " + _pawsPatient.getName().getFirstName(); }
/** * accessor for for the call back phone * * @return the callback phone */ public String getCallbackPhone() { return (StringUtil.isEmpty(_callbackPhone)) ? homePhone(_pawsPatient.getTelecoms()) : _callbackPhone; }