com.nedap.archie.adl14.aom14.CDVQuantityItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aom Show documentation
Show all versions of aom Show documentation
An OpenEHR archetype object model implementation, plus parser
package com.nedap.archie.adl14.aom14;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nedap.archie.aom.primitives.CInteger;
import com.nedap.archie.aom.primitives.CReal;
import com.nedap.archie.aom.primitives.CString;
import com.nedap.archie.base.Interval;
public class CDVQuantityItem {
private String units;
private Interval magnitude;
private Interval precision;
public String getUnits() {
return units;
}
public void setUnits(String units) {
this.units = units;
}
public Interval getMagnitude() {
return magnitude;
}
public void setMagnitude(Interval magnitude) {
this.magnitude = magnitude;
}
public Interval getPrecision() {
return precision;
}
public void setPrecision(Interval precision) {
this.precision = precision;
}
@JsonIgnore
public CString getUnitsAdl2() {
if(units == null) {
return null;
}
CString result = new CString();
result.addConstraint(units);
return result;
}
@JsonIgnore
public CReal getMagnitudeAdl2() {
if(magnitude == null) {
return null;
}
CReal result = new CReal();
result.addConstraint(magnitude);
return result;
}
@JsonIgnore
public CInteger getPrecisionAdl2() {
if(precision == null) {
return null;
}
CInteger result = new CInteger();
result.addConstraint(precision);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy