Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
package gov.va.med.pbm.ampl.asset.mock.measurements;
import gov.va.med.pbm.ampl.constant.MockDataConstants;
import gov.va.med.pbm.ampl.model.ValueQuantity;
import gov.va.med.pbm.ampl.utility.NumberUtility;
import gov.va.med.pbm.ampl.utility.UnitConversion;
public class Length extends Measure {
private int iLen;
private double mLen;
public Length() {
iLen = NumberUtility.randomBetween(MockDataConstants.THIRTY, MockDataConstants.FIFTY_NINE);
mLen = UnitConversion.convertInchesToCentimeters(iLen);
super.setMetric(new ValueQuantity(String.format("%1$,.2f", mLen), "cm"));
super.setImperial(new ValueQuantity(Integer.toString(iLen), "in"));
}
}