public SubstanceIngredientComponent addIngredient() { //3 SubstanceIngredientComponent t = new SubstanceIngredientComponent(); if (this.ingredient == null) this.ingredient = new ArrayList<SubstanceIngredientComponent>(); this.ingredient.add(t); return t; }
public SubstanceIngredientComponent addIngredient() { //3 SubstanceIngredientComponent t = new SubstanceIngredientComponent(); if (this.ingredient == null) this.ingredient = new ArrayList<SubstanceIngredientComponent>(); this.ingredient.add(t); return t; }
public org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent convertSubstanceIngredientComponent(org.hl7.fhir.instance.model.Substance.SubstanceIngredientComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent(); copyElement(src, tgt); tgt.setQuantity(convertRatio(src.getQuantity())); tgt.setSubstance(convertReference(src.getSubstance())); return tgt; }
public SubstanceIngredientComponent copy() { SubstanceIngredientComponent dst = new SubstanceIngredientComponent(); copyValues(dst); dst.quantity = quantity == null ? null : quantity.copy(); dst.substance = substance == null ? null : substance.copy(); return dst; }
public SubstanceIngredientComponent copy() { SubstanceIngredientComponent dst = new SubstanceIngredientComponent(); copyValues(dst); dst.quantity = quantity == null ? null : quantity.copy(); dst.substance = substance == null ? null : substance.copy(); return dst; }
public org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent convertSubstanceIngredientComponent(org.hl7.fhir.instance.model.Substance.SubstanceIngredientComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent tgt = new org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent(); copyElement(src, tgt); tgt.setQuantity(convertRatio(src.getQuantity())); tgt.setSubstance(convertReference(src.getSubstance())); return tgt; }