001 package com.bea.medrec.value;
002
003 /**
004 * <p>This class represents a patient's vital signs.</p>
005 *
006 * @author Copyright (c) 2006 by BEA Systems. All Rights Reserved.
007 */
008 public final class VitalSigns extends BaseVO {
009
010 // Instance variables
011 private String temperature; // F
012 private String bloodPressure; // systolic/diastolic
013 private String pulse; // bmp
014 private Integer weight; // lbs
015 private Integer height; // inches
016
017 // Constructors
018 public VitalSigns() {
019 }
020
021 public VitalSigns(String temperature,
022 String bloodPressure,
023 String pulse,
024 Integer weight,
025 Integer height) {
026 this.temperature = temperature;
027 this.bloodPressure = bloodPressure;
028 this.pulse = pulse;
029 this.weight = weight;
030 this.height = height;
031 }
032
033 public VitalSigns(String temperature,
034 String bloodPressure,
035 String pulse,
036 String weight,
037 String height) {
038 this.temperature = temperature;
039 this.bloodPressure = bloodPressure;
040 this.pulse = pulse;
041 this.weight = str2Integer(weight);
042 this.height = str2Integer(height);
043 }
044
045 // Getters
046 public String getTemperature() {
047 return this.temperature;
048 }
049
050 public String getBloodPressure() {
051 return this.bloodPressure;
052 }
053
054 public String getPulse() {
055 return this.pulse;
056 }
057
058 public Integer getWeight() {
059 return this.weight;
060 }
061
062 public Integer getHeight() {
063 return this.height;
064 }
065
066 // Setters
067 public void setTemperature(String temperature) {
068 this.temperature = temperature;
069 }
070
071 public void setBloodPressure(String bloodPressure) {
072 this.bloodPressure = bloodPressure;
073 }
074
075 public void setPulse(String pulse) {
076 this.pulse = pulse;
077 }
078
079 public void setWeight(Integer weight) {
080 this.weight = weight;
081 }
082
083 public void setHeight(Integer height) {
084 this.height = height;
085 }
086
087 public String toString() {
088 StringBuffer str = new StringBuffer();
089 str.append("VITALSIGNS [Id: "+super.getId());
090 str.append(" | Temp: "+temperature);
091 str.append(" | BP: "+bloodPressure);
092 str.append(" | Pulse: "+pulse);
093 str.append(" | Weight: "+weight);
094 str.append(" | Height: "+height);
095 str.append("]");
096
097 return str.toString();
098 }
099
100 }
|