/** * @return {@link #quantity} (The amount of the ingredient in the substance - a concentration ratio.) */ public Ratio getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SubstanceIngredientComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new Ratio(); // cc return this.quantity; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("item")) { this.item = new Reference(); return this.item; } else if (name.equals("amount")) { this.amount = new Ratio(); return this.amount; } else return super.addChild(name); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("quantity")) { this.quantity = new Ratio(); return this.quantity; } else if (name.equals("substance")) { this.substance = new Reference(); return this.substance; } else return super.addChild(name); }
/** * @return {@link #maxDosePerPeriod} (The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time, e.g. 1000mg in 24 hours.) */ public Ratio getMaxDosePerPeriod() { if (this.maxDosePerPeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationDispenseDosageInstructionComponent.maxDosePerPeriod"); else if (Configuration.doAutoCreate()) this.maxDosePerPeriod = new Ratio(); // cc return this.maxDosePerPeriod; }
/** * @return {@link #maxDosePerPeriod} (The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. For example, 1000mg in 24 hours.) */ public Ratio getMaxDosePerPeriod() { if (this.maxDosePerPeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationOrderDosageInstructionComponent.maxDosePerPeriod"); else if (Configuration.doAutoCreate()) this.maxDosePerPeriod = new Ratio(); // cc return this.maxDosePerPeriod; }
*/ public Ratio getMaxDosePerPeriod() { if (this.maxDosePerPeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationStatementDosageComponent.maxDosePerPeriod"); else if (Configuration.doAutoCreate()) this.maxDosePerPeriod = new Ratio(); // cc return this.maxDosePerPeriod; } public boolean hasMaxDosePerPeriod() { return this.maxDosePerPeriod != null && !this.maxDosePerPeriod.isEmpty();
/** * @return {@link #amount} (Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet.) */ public Ratio getAmount() { if (this.amount == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationProductIngredientComponent.amount"); else if (Configuration.doAutoCreate()) this.amount = new Ratio(); // cc return this.amount; }
public Ratio copy() { Ratio dst = new Ratio(); copyValues(dst); dst.numerator = numerator == null ? null : numerator.copy(); dst.denominator = denominator == null ? null : denominator.copy(); return dst; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("schedule")) { this.schedule = new Timing(); return this.schedule; } else if (name.equals("quantity")) { this.quantity = new SimpleQuantity(); return this.quantity; } else if (name.equals("rateSimpleQuantity")) { this.rate = new SimpleQuantity(); return this.rate; } else if (name.equals("rateRatio")) { this.rate = new Ratio(); return this.rate; } else return super.addChild(name); }
this.rate = new Ratio(); return this.rate;
this.rate = new Ratio(); return this.rate; this.maxDosePerPeriod = new Ratio(); return this.maxDosePerPeriod;
this.value = new Ratio(); return this.value;
return new SampledData(); if ("Ratio".equals(name)) return new Ratio(); if ("ElementDefinition".equals(name)) return new ElementDefinition();
return new Period(); else if (name.equals("Ratio")) return new Ratio(); else if (name.equals("SampledData")) return new SampledData();
this.value = new Ratio(); return this.value;
this.value = new Ratio(); return this.value;
public org.hl7.fhir.instance.model.Ratio convertRatio(org.hl7.fhir.dstu3.model.Ratio src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Ratio tgt = new org.hl7.fhir.instance.model.Ratio(); copyElement(src, tgt); tgt.setNumerator(convertQuantity(src.getNumerator())); tgt.setDenominator(convertQuantity(src.getDenominator())); return tgt; }
public org.hl7.fhir.instance.model.Ratio convertRatio(org.hl7.fhir.r4.model.Ratio src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Ratio tgt = new org.hl7.fhir.instance.model.Ratio(); copyElement(src, tgt); tgt.setNumerator(convertQuantity(src.getNumerator())); tgt.setDenominator(convertQuantity(src.getDenominator())); return tgt; }