@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1008619738: return getOrigin(); case -991726143: return getPeriodElement(); case -1282148017: return getFactorElement(); case 1209133370: return getLowerLimitElement(); case -1681713095: return getUpperLimitElement(); case 414334925: return getDimensionsElement(); case 3076010: return getDataElement(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.r4.model.SampledData convertSampledData(org.hl7.fhir.instance.model.SampledData src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.SampledData tgt = new org.hl7.fhir.r4.model.SampledData(); copyElement(src, tgt); tgt.setOrigin(convertSimpleQuantity(src.getOrigin())); tgt.setPeriod(src.getPeriod()); tgt.setFactor(src.getFactor()); tgt.setLowerLimit(src.getLowerLimit()); tgt.setUpperLimit(src.getUpperLimit()); tgt.setDimensions(src.getDimensions()); tgt.setData(src.getData()); return tgt; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1008619738: // origin this.origin = castToQuantity(value); // Quantity return value; case -991726143: // period this.period = castToDecimal(value); // DecimalType return value; case -1282148017: // factor this.factor = castToDecimal(value); // DecimalType return value; case 1209133370: // lowerLimit this.lowerLimit = castToDecimal(value); // DecimalType return value; case -1681713095: // upperLimit this.upperLimit = castToDecimal(value); // DecimalType return value; case 414334925: // dimensions this.dimensions = castToPositiveInt(value); // PositiveIntType return value; case 3076010: // data this.data = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }
public static org.hl7.fhir.dstu2016may.model.SampledData convertSampledData(org.hl7.fhir.r4.model.SampledData src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.SampledData tgt = new org.hl7.fhir.dstu2016may.model.SampledData(); copyElement(src, tgt); tgt.setOrigin(convertSimpleQuantity(src.getOrigin())); tgt.setPeriod(src.getPeriod()); if (src.hasFactor()) tgt.setFactor(src.getFactor()); if (src.hasLowerLimit()) tgt.setLowerLimit(src.getLowerLimit()); if (src.hasUpperLimit()) tgt.setUpperLimit(src.getUpperLimit()); tgt.setDimensions(src.getDimensions()); tgt.setData(src.getData()); return tgt; }
public org.hl7.fhir.instance.model.SampledData convertSampledData(org.hl7.fhir.r4.model.SampledData src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.SampledData tgt = new org.hl7.fhir.instance.model.SampledData(); copyElement(src, tgt); tgt.setOrigin(convertSimpleQuantity(src.getOrigin())); tgt.setPeriod(src.getPeriod()); tgt.setFactor(src.getFactor()); tgt.setLowerLimit(src.getLowerLimit()); tgt.setUpperLimit(src.getUpperLimit()); tgt.setDimensions(src.getDimensions()); tgt.setData(src.getData()); return tgt; }
/** * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) */ public SampledData getValueSampledData() throws FHIRException { if (this.value == null) this.value = new SampledData(); if (!(this.value instanceof SampledData)) throw new FHIRException("Type mismatch: the type SampledData was expected, but "+this.value.getClass().getName()+" was encountered"); return (SampledData) this.value; }
public SampledData copy() { SampledData dst = new SampledData(); copyValues(dst); dst.origin = origin == null ? null : origin.copy(); dst.period = period == null ? null : period.copy(); dst.factor = factor == null ? null : factor.copy(); dst.lowerLimit = lowerLimit == null ? null : lowerLimit.copy(); dst.upperLimit = upperLimit == null ? null : upperLimit.copy(); dst.dimensions = dimensions == null ? null : dimensions.copy(); dst.data = data == null ? null : data.copy(); return dst; }
public static org.hl7.fhir.dstu2016may.model.SampledData convertSampledData(org.hl7.fhir.r4.model.SampledData src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.SampledData tgt = new org.hl7.fhir.dstu2016may.model.SampledData(); copyElement(src, tgt); tgt.setOrigin(convertSimpleQuantity(src.getOrigin())); tgt.setPeriod(src.getPeriod()); if (src.hasFactor()) tgt.setFactor(src.getFactor()); if (src.hasLowerLimit()) tgt.setLowerLimit(src.getLowerLimit()); if (src.hasUpperLimit()) tgt.setUpperLimit(src.getUpperLimit()); tgt.setDimensions(src.getDimensions()); tgt.setData(src.getData()); return tgt; }
public org.hl7.fhir.instance.model.SampledData convertSampledData(org.hl7.fhir.r4.model.SampledData src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.SampledData tgt = new org.hl7.fhir.instance.model.SampledData(); copyElement(src, tgt); tgt.setOrigin(convertSimpleQuantity(src.getOrigin())); tgt.setPeriod(src.getPeriod()); tgt.setFactor(src.getFactor()); tgt.setLowerLimit(src.getLowerLimit()); tgt.setUpperLimit(src.getUpperLimit()); tgt.setDimensions(src.getDimensions()); tgt.setData(src.getData()); return tgt; }
/** * @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.) */ public SampledData getValueSampledData() throws FHIRException { if (this.value == null) this.value = new SampledData(); if (!(this.value instanceof SampledData)) throw new FHIRException("Type mismatch: the type SampledData was expected, but "+this.value.getClass().getName()+" was encountered"); return (SampledData) this.value; }
public SampledData copy() { SampledData dst = new SampledData(); copyValues(dst); dst.origin = origin == null ? null : origin.copy(); dst.period = period == null ? null : period.copy(); dst.factor = factor == null ? null : factor.copy(); dst.lowerLimit = lowerLimit == null ? null : lowerLimit.copy(); dst.upperLimit = upperLimit == null ? null : upperLimit.copy(); dst.dimensions = dimensions == null ? null : dimensions.copy(); dst.data = data == null ? null : data.copy(); return dst; }
private void checkSampledData(List<ValidationMessage> errors, String path, Element focus, SampledData fixed) { checkFixedValue(errors, path + ".origin", focus.getNamedChild("origin"), fixed.getOrigin(), "origin", focus); checkFixedValue(errors, path + ".period", focus.getNamedChild("period"), fixed.getPeriodElement(), "period", focus); checkFixedValue(errors, path + ".factor", focus.getNamedChild("factor"), fixed.getFactorElement(), "factor", focus); checkFixedValue(errors, path + ".lowerLimit", focus.getNamedChild("lowerLimit"), fixed.getLowerLimitElement(), "lowerLimit", focus); checkFixedValue(errors, path + ".upperLimit", focus.getNamedChild("upperLimit"), fixed.getUpperLimitElement(), "upperLimit", focus); checkFixedValue(errors, path + ".dimensions", focus.getNamedChild("dimensions"), fixed.getDimensionsElement(), "dimensions", focus); checkFixedValue(errors, path + ".data", focus.getNamedChild("data"), fixed.getDataElement(), "data", focus); }
public static org.hl7.fhir.r4.model.SampledData convertSampledData(org.hl7.fhir.dstu2016may.model.SampledData src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.SampledData tgt = new org.hl7.fhir.r4.model.SampledData(); copyElement(src, tgt); tgt.setOrigin(convertSimpleQuantity(src.getOrigin())); tgt.setPeriod(src.getPeriod()); if (src.hasFactor()) tgt.setFactor(src.getFactor()); if (src.hasLowerLimit()) tgt.setLowerLimit(src.getLowerLimit()); if (src.hasUpperLimit()) tgt.setUpperLimit(src.getUpperLimit()); tgt.setDimensions(src.getDimensions()); tgt.setData(src.getData()); return tgt; }
this.value = new SampledData(); return this.value;
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("origin")) { this.origin = castToQuantity(value); // Quantity } else if (name.equals("period")) { this.period = castToDecimal(value); // DecimalType } else if (name.equals("factor")) { this.factor = castToDecimal(value); // DecimalType } else if (name.equals("lowerLimit")) { this.lowerLimit = castToDecimal(value); // DecimalType } else if (name.equals("upperLimit")) { this.upperLimit = castToDecimal(value); // DecimalType } else if (name.equals("dimensions")) { this.dimensions = castToPositiveInt(value); // PositiveIntType } else if (name.equals("data")) { this.data = castToString(value); // StringType } else return super.setProperty(name, value); return value; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1008619738: return getOrigin(); case -991726143: return getPeriodElement(); case -1282148017: return getFactorElement(); case 1209133370: return getLowerLimitElement(); case -1681713095: return getUpperLimitElement(); case 414334925: return getDimensionsElement(); case 3076010: return getDataElement(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.r4.model.SampledData convertSampledData(org.hl7.fhir.instance.model.SampledData src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.SampledData tgt = new org.hl7.fhir.r4.model.SampledData(); copyElement(src, tgt); tgt.setOrigin(convertSimpleQuantity(src.getOrigin())); tgt.setPeriod(src.getPeriod()); tgt.setFactor(src.getFactor()); tgt.setLowerLimit(src.getLowerLimit()); tgt.setUpperLimit(src.getUpperLimit()); tgt.setDimensions(src.getDimensions()); tgt.setData(src.getData()); return tgt; }
return new Ratio(); else if (name.equals("SampledData")) return new SampledData(); else if (name.equals("Signature")) return new Signature();
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1008619738: // origin this.origin = castToQuantity(value); // Quantity return value; case -991726143: // period this.period = castToDecimal(value); // DecimalType return value; case -1282148017: // factor this.factor = castToDecimal(value); // DecimalType return value; case 1209133370: // lowerLimit this.lowerLimit = castToDecimal(value); // DecimalType return value; case -1681713095: // upperLimit this.upperLimit = castToDecimal(value); // DecimalType return value; case 414334925: // dimensions this.dimensions = castToPositiveInt(value); // PositiveIntType return value; case 3076010: // data this.data = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }
private void checkSampledData(List<ValidationMessage> errors, String path, Element focus, SampledData fixed) { checkFixedValue(errors, path + ".origin", focus.getNamedChild("origin"), fixed.getOrigin(), "origin", focus); checkFixedValue(errors, path + ".period", focus.getNamedChild("period"), fixed.getPeriodElement(), "period", focus); checkFixedValue(errors, path + ".factor", focus.getNamedChild("factor"), fixed.getFactorElement(), "factor", focus); checkFixedValue(errors, path + ".lowerLimit", focus.getNamedChild("lowerLimit"), fixed.getLowerLimitElement(), "lowerLimit", focus); checkFixedValue(errors, path + ".upperLimit", focus.getNamedChild("upperLimit"), fixed.getUpperLimitElement(), "upperLimit", focus); checkFixedValue(errors, path + ".dimensions", focus.getNamedChild("dimensions"), fixed.getDimensionsElement(), "dimensions", focus); checkFixedValue(errors, path + ".data", focus.getNamedChild("data"), fixed.getDataElement(), "data", focus); }