this.dosage = new MedicationAdministrationDosageComponent(); return this.dosage;
@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("text")) this.text = castToString(value); // StringType else if (name.equals("site[x]")) this.site = (Type) value; // Type else if (name.equals("route")) this.route = castToCodeableConcept(value); // CodeableConcept else if (name.equals("method")) this.method = castToCodeableConcept(value); // CodeableConcept else if (name.equals("quantity")) this.quantity = castToSimpleQuantity(value); // SimpleQuantity else if (name.equals("rate[x]")) this.rate = (Type) value; // Type else super.setProperty(name, value); }
}; dst.note = note == null ? null : note.copy(); dst.dosage = dosage == null ? null : dosage.copy(); return dst;
this.dosage = new MedicationAdministrationDosageComponent(); return this.dosage;
}; dst.note = note == null ? null : note.copy(); dst.dosage = dosage == null ? null : dosage.copy(); return dst;
@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("text")) this.text = castToString(value); // StringType else if (name.equals("site[x]")) this.site = (Type) value; // Type else if (name.equals("route")) this.route = castToCodeableConcept(value); // CodeableConcept else if (name.equals("method")) this.method = castToCodeableConcept(value); // CodeableConcept else if (name.equals("quantity")) this.quantity = castToSimpleQuantity(value); // SimpleQuantity else if (name.equals("rate[x]")) this.rate = (Type) value; // Type else super.setProperty(name, value); }
public boolean hasDosage() { return this.dosage != null && !this.dosage.isEmpty(); }
/** * @return {@link #dosage} (Describes the medication dosage information details e.g. dose, rate, site, route, etc.) */ public MedicationAdministrationDosageComponent getDosage() { if (this.dosage == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationAdministration.dosage"); else if (Configuration.doAutoCreate()) this.dosage = new MedicationAdministrationDosageComponent(); // cc return this.dosage; }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof MedicationAdministrationDosageComponent)) return false; MedicationAdministrationDosageComponent o = (MedicationAdministrationDosageComponent) other; return compareValues(text, o.text, true); }
public MedicationAdministrationDosageComponent copy() { MedicationAdministrationDosageComponent dst = new MedicationAdministrationDosageComponent(); copyValues(dst); dst.text = text == null ? null : text.copy(); dst.site = site == null ? null : site.copy(); dst.route = route == null ? null : route.copy(); dst.method = method == null ? null : method.copy(); dst.quantity = quantity == null ? null : quantity.copy(); dst.rate = rate == null ? null : rate.copy(); return dst; }
public boolean isEmpty() { return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty()) && (patient == null || patient.isEmpty()) && (practitioner == null || practitioner.isEmpty()) && (encounter == null || encounter.isEmpty()) && (prescription == null || prescription.isEmpty()) && (wasNotGiven == null || wasNotGiven.isEmpty()) && (reasonNotGiven == null || reasonNotGiven.isEmpty()) && (reasonGiven == null || reasonGiven.isEmpty()) && (effectiveTime == null || effectiveTime.isEmpty()) && (medication == null || medication.isEmpty()) && (device == null || device.isEmpty()) && (note == null || note.isEmpty()) && (dosage == null || dosage.isEmpty()); }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof MedicationAdministrationDosageComponent)) return false; MedicationAdministrationDosageComponent o = (MedicationAdministrationDosageComponent) other; return compareDeep(text, o.text, true) && compareDeep(site, o.site, true) && compareDeep(route, o.route, true) && compareDeep(method, o.method, true) && compareDeep(quantity, o.quantity, true) && compareDeep(rate, o.rate, true) ; }
public boolean hasDosage() { return this.dosage != null && !this.dosage.isEmpty(); }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof MedicationAdministrationDosageComponent)) return false; MedicationAdministrationDosageComponent o = (MedicationAdministrationDosageComponent) other; return compareValues(text, o.text, true); }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof MedicationAdministrationDosageComponent)) return false; MedicationAdministrationDosageComponent o = (MedicationAdministrationDosageComponent) other; return compareDeep(text, o.text, true) && compareDeep(site, o.site, true) && compareDeep(route, o.route, true) && compareDeep(method, o.method, true) && compareDeep(quantity, o.quantity, true) && compareDeep(rate, o.rate, true) ; }
/** * @return {@link #dosage} (Describes the medication dosage information details e.g. dose, rate, site, route, etc.) */ public MedicationAdministrationDosageComponent getDosage() { if (this.dosage == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationAdministration.dosage"); else if (Configuration.doAutoCreate()) this.dosage = new MedicationAdministrationDosageComponent(); // cc return this.dosage; }
public MedicationAdministrationDosageComponent copy() { MedicationAdministrationDosageComponent dst = new MedicationAdministrationDosageComponent(); copyValues(dst); dst.text = text == null ? null : text.copy(); dst.site = site == null ? null : site.copy(); dst.route = route == null ? null : route.copy(); dst.method = method == null ? null : method.copy(); dst.quantity = quantity == null ? null : quantity.copy(); dst.rate = rate == null ? null : rate.copy(); return dst; }
public boolean isEmpty() { return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty()) && (patient == null || patient.isEmpty()) && (practitioner == null || practitioner.isEmpty()) && (encounter == null || encounter.isEmpty()) && (prescription == null || prescription.isEmpty()) && (wasNotGiven == null || wasNotGiven.isEmpty()) && (reasonNotGiven == null || reasonNotGiven.isEmpty()) && (reasonGiven == null || reasonGiven.isEmpty()) && (effectiveTime == null || effectiveTime.isEmpty()) && (medication == null || medication.isEmpty()) && (device == null || device.isEmpty()) && (note == null || note.isEmpty()) && (dosage == null || dosage.isEmpty()); }