@GET
@Produces({ MediaType.APPLICATION_JSON })
public JSONObject getPatientProfile() {
HealthRecord hr = null;
User usr = null;
Address adrs = null;
JSONObject jSONObject = new JSONObject();
PersistenceService persistenceSvc = PersistenceService.getInstance();
try {
persistenceSvc.beginTx();
hr = getEntity();
usr = hr.getUser();
adrs = usr.getAddresses().get(0);
jSONObject.put("firstName",usr.getFirstName());
jSONObject.put("middleName", usr.getMiddleName());
jSONObject.put("lastName", usr.getLastName());
jSONObject.put("gender", hr.getFullGender());
jSONObject.put("dateOfBirth", hr.getDateOfBirthString());
jSONObject.put("maritalStatus", hr.getMaritalStatus());
jSONObject.put("email", usr.getEmail());
jSONObject.put("faxNum", usr.getFaxnum());
jSONObject.put("telnumHome", usr.getTelnumHome());
jSONObject.put("telnumMobile", usr.getTelnumMobile());
jSONObject.put("telnumWork", usr.getTelnumWork());
jSONObject.put("address1", adrs.getAddress1());
jSONObject.put("address2", adrs.getAddress2());
jSONObject.put("address3", adrs.getAddress3());
jSONObject.put("city", adrs.getCity());
jSONObject.put("state", adrs.getState());