Android Open Source - clinicalguide Patient Details






From Project

Back to project page clinicalguide.

License

The source code is released under:

Apache License

If you think the Android project clinicalguide listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.get.oxicam.clinicalguide.db;
//from   w  w  w. j  a v a2  s  .  c  om
import java.io.Serializable;
import java.util.ArrayList;

import org.get.oxicam.clinicalguide.xml.data.PatientAttribute;

/**
 * <p>Used to keep track of patient's contact details. Can be saved.</p>
 */
public class PatientDetails implements Serializable {
  private static final long serialVersionUID = 1L;
  
  /**<p>The Id for this patient to track in the database</p>  */
  private long patientID;
  
  /** <p>A list of the patients current attributes.</p> */
  private ArrayList<PatientAttribute> attributes;
//  private String name;
//  private String surname;
//  private String address;
//  private String mobileNumber;
//  private String homeNumber;
//  private String workNumber;
//
//  private double weight; 
//  private double height; 
//  private String gender; 
//  private String knownAliments;
//  private String birthDate;

  /**
   * <p>Constructor
   * Stores the list of PatientAttributes into the attributes
   * of created instance</p>
   * 
   * @param attributes
   *       Stores the attributes of this patient
   */
  public PatientDetails(ArrayList<PatientAttribute> attributes) {
    this.attributes = attributes;
  }
  
  /**
   * <p>Gets this instances patient attributes</p>
   * 
   * @return
   *     this instances attributes
   */
  public ArrayList<PatientAttribute> getAttributes() {
    return this.attributes;
  }

//  public PatientAttribute getPatientAttribute(String attributeName) {
//    return attributes.get(attributeName);
//  }
  
  /**
   * <p>Gets the patient ID</p>
   * 
   * @return
   *     this instances patiendID
   */
  public long getPatientID() {
    return patientID;
  }

  /**
   * <p>Sets the patientID</p>
   * 
   * @param patientID
   *       The patientID to set to this instances patientID
   */
  public void setPatientID(long patientID) {
    this.patientID = patientID;
  }

  
//  public void deletePatientEntry(db, "PATIENT_ID", Long.toString(id) ) ;
//  public String getName() {
//    return name;
//  }
//
//  public void setName(String name) {
//    this.name = name;
//  }
//
//  public String getSurname() {
//    return surname;
//  }
//
//  public void setSurname(String surname) {
//    this.surname = surname;
//  }
//
//  public String getAddress() {
//    return address;
//  }
//
//  public void setAddress(String address) {
//    this.address = address;
//  }
//
//  public String getMobileNumber() {
//    return mobileNumber;
//  }
//
//  public void setMobileNumber(String mobileNumber) {
//    this.mobileNumber = mobileNumber;
//  }
//
//  public String getHomeNumber() {
//    return homeNumber;
//  }
//
//  public void setHomeNumber(String homeNumber) {
//    this.homeNumber = homeNumber;
//  }
//
//  public String getWorkNumber() {
//    return workNumber;
//  }
//
//  public void setWorkNumber(String workNumber) {
//    this.workNumber = workNumber;
//  }
//
//
//  public double getWeight() {
//    return weight;
//  }
//
//  public void setWeight(double weight) {
//    this.weight = weight;
//  }
//
//  public double getHeight() {
//    return height;
//  }
//
//  public void setHeight(double height) {
//    this.height = height;
//  }
//
//  public String getGender() {
//    return gender;
//  }
//
//  public void setGender(String s) {
//    this.gender = s;
//  }
//
//  public String getKnownAliments() {
//    return knownAliments;
//  }
//
//  public void setKnownAliments(String knownAliments) {
//    this.knownAliments = knownAliments;
//  }
//
//  public String getBirthDate() {
//    return birthDate;
//  }
//
//  public void setBirthDate(String birthDate) {
//    this.birthDate = birthDate;
//  }
//
//  @Override
//  public String toString()
//  {
//    String recordString = patientID + ", " +
//        name + ", " +
//        surname + ", " +
//        address + ", " +
//        mobileNumber + ", " +
//        homeNumber + ", " +
//        workNumber + ", " +
//        weight + ", " +
//        height + ", " +
//        gender + ", " +
//        knownAliments;
//    return recordString;
//  }
}




Java Source Code List

.PatientDetailsDataSource.java
org.get.oxicam.clinicalguide.ClinicalGuideActivity.java
org.get.oxicam.clinicalguide.FileUtils.java
org.get.oxicam.clinicalguide.LoginActivity.java
org.get.oxicam.clinicalguide.db.DatabaseHelper.java
org.get.oxicam.clinicalguide.db.Database.java
org.get.oxicam.clinicalguide.db.FollowupDataSource.java
org.get.oxicam.clinicalguide.db.FollowupDetails.java
org.get.oxicam.clinicalguide.db.FollowupSQLHelper.java
org.get.oxicam.clinicalguide.db.HistoryDetailsDataSource.java
org.get.oxicam.clinicalguide.db.HistoryDetailsSQLHelper.java
org.get.oxicam.clinicalguide.db.HistoryDetails.java
org.get.oxicam.clinicalguide.db.PatientDetailsSQLHelper.java
org.get.oxicam.clinicalguide.db.PatientDetails.java
org.get.oxicam.clinicalguide.db.RegistrationValidator.java
org.get.oxicam.clinicalguide.db.Validator.java
org.get.oxicam.clinicalguide.encryption.Encryption.java
org.get.oxicam.clinicalguide.ui.AnswersReviewFragment.java
org.get.oxicam.clinicalguide.ui.AssessmentDetailFragment.java
org.get.oxicam.clinicalguide.ui.ClassificationFragment.java
org.get.oxicam.clinicalguide.ui.ClassificationListItem.java
org.get.oxicam.clinicalguide.ui.DatePickerFragment.java
org.get.oxicam.clinicalguide.ui.ExportFragment.java
org.get.oxicam.clinicalguide.ui.ExportscreenListItem.java
org.get.oxicam.clinicalguide.ui.FollowUpFragment.java
org.get.oxicam.clinicalguide.ui.FormScreenFragment.java
org.get.oxicam.clinicalguide.ui.HomescreenFragment.java
org.get.oxicam.clinicalguide.ui.HomescreenListItem.java
org.get.oxicam.clinicalguide.ui.ListItemOnClickListener.java
org.get.oxicam.clinicalguide.ui.MainSymptomFragment.java
org.get.oxicam.clinicalguide.ui.MainSymptomListItem.java
org.get.oxicam.clinicalguide.ui.NumberTickerValueChangeListener.java
org.get.oxicam.clinicalguide.ui.NumberTicker.java
org.get.oxicam.clinicalguide.ui.PatientDetailsFragment.java
org.get.oxicam.clinicalguide.ui.PatientHistoryFragment.java
org.get.oxicam.clinicalguide.ui.PatientsFragment.java
org.get.oxicam.clinicalguide.ui.QuestionListItem.java
org.get.oxicam.clinicalguide.ui.QuestionnaireFragment.java
org.get.oxicam.clinicalguide.ui.StatScreenFragment.java
org.get.oxicam.clinicalguide.ui.SummaryScreenFragment.java
org.get.oxicam.clinicalguide.ui.TextViewCustomFont.java
org.get.oxicam.clinicalguide.ui.TreatmentConfirmationDialog.java
org.get.oxicam.clinicalguide.ui.TreatmentFragment.java
org.get.oxicam.clinicalguide.ui.TreatmentListItem.java
org.get.oxicam.clinicalguide.ui.ViewDetailScreenFragment.java
org.get.oxicam.clinicalguide.xml.CGFormParser.java
org.get.oxicam.clinicalguide.xml.CGParser.java
org.get.oxicam.clinicalguide.xml.CGStatsParser.java
org.get.oxicam.clinicalguide.xml.DateHelper.java
org.get.oxicam.clinicalguide.xml.FormGenerator.java
org.get.oxicam.clinicalguide.xml.ParserHelper.java
org.get.oxicam.clinicalguide.xml.StatsGenerator.java
org.get.oxicam.clinicalguide.xml.XMLHandler.java
org.get.oxicam.clinicalguide.xml.data.AbstractAnswer.java
org.get.oxicam.clinicalguide.xml.data.Annotation.java
org.get.oxicam.clinicalguide.xml.data.AnswerValidator.java
org.get.oxicam.clinicalguide.xml.data.Answer.java
org.get.oxicam.clinicalguide.xml.data.Assessment.java
org.get.oxicam.clinicalguide.xml.data.CombinedAnswer.java
org.get.oxicam.clinicalguide.xml.data.FollowUp.java
org.get.oxicam.clinicalguide.xml.data.FormQuery.java
org.get.oxicam.clinicalguide.xml.data.Info.java
org.get.oxicam.clinicalguide.xml.data.Option.java
org.get.oxicam.clinicalguide.xml.data.PatientAttribute.java
org.get.oxicam.clinicalguide.xml.data.Question.java
org.get.oxicam.clinicalguide.xml.data.Questionnaire.java
org.get.oxicam.clinicalguide.xml.data.SimpleAnswer.java
org.get.oxicam.clinicalguide.xml.data.Symptom.java
org.get.oxicam.clinicalguide.xml.data.TreatmentAction.java
org.get.oxicam.clinicalguide.xml.data.Treatment.java
org.get.oxicam.clinicalguide.xml.data.User.java
org.get.oxicam.clinicalguide.xml.forms.FormCell.java
org.get.oxicam.clinicalguide.xml.forms.FormColumn.java
org.get.oxicam.clinicalguide.xml.forms.FormDuration.java
org.get.oxicam.clinicalguide.xml.forms.Form.java
org.get.oxicam.clinicalguide.xml.query.QueryHelper.java
org.get.oxicam.clinicalguide.xml.query.QueryResultCell.java
org.get.oxicam.clinicalguide.xml.query.QueryResultRow.java
org.get.oxicam.clinicalguide.xml.query.QueryResultTable.java
org.get.oxicam.clinicalguide.xml.stats.AbstractStatsQuestion.java
org.get.oxicam.clinicalguide.xml.stats.StatsAnswerHolder.java
org.get.oxicam.clinicalguide.xml.stats.StatsColumnCompare.java
org.get.oxicam.clinicalguide.xml.stats.StatsComparatorOperator.java
org.get.oxicam.clinicalguide.xml.stats.StatsCompareConstraint.java
org.get.oxicam.clinicalguide.xml.stats.StatsConstraint.java
org.get.oxicam.clinicalguide.xml.stats.StatsQuestionAverage.java
org.get.oxicam.clinicalguide.xml.stats.StatsQuestionCount.java
org.get.oxicam.clinicalguide.xml.stats.StatsQuestionExtrema.java
org.get.oxicam.clinicalguide.xml.stats.StatsQuestionFactory.java
org.get.oxicam.clinicalguide.xml.stats.StatsQuestionList.java
org.get.oxicam.clinicalguide.xml.stats.StatsQuestionPercentage.java
org.get.oxicam.clinicalguide.xml.stats.StatsQuestionRatio.java
org.get.oxicam.clinicalguide.xml.stats.StatsSubject.java
org.get.oxicam.clinicalguide.xml.stats.StatsTimespan.java
org.get.oxicam.clinicalguide.xml.stats.Stats.java