this.collection = new SpecimenCollectionComponent(); return this.collection;
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("collector")) { this.collector = castToReference(value); // Reference } else if (name.equals("collected[x]")) { this.collected = castToType(value); // Type } else if (name.equals("duration")) { this.duration = castToDuration(value); // Duration } else if (name.equals("quantity")) { this.quantity = castToQuantity(value); // Quantity } else if (name.equals("method")) { this.method = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("bodySite")) { this.bodySite = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("fastingStatus[x]")) { this.fastingStatus = castToType(value); // Type } else return super.setProperty(name, value); return value; }
dst.request.add(i.copy()); }; dst.collection = collection == null ? null : collection.copy(); if (processing != null) { dst.processing = new ArrayList<SpecimenProcessingComponent>();
dst.request.add(i.copy()); }; dst.collection = collection == null ? null : collection.copy(); if (processing != null) { dst.processing = new ArrayList<SpecimenProcessingComponent>();
this.collection = new SpecimenCollectionComponent(); return this.collection;
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 1883491469: // collector this.collector = castToReference(value); // Reference return value; case 1883491145: // collected this.collected = castToType(value); // Type return value; case -1992012396: // duration this.duration = castToDuration(value); // Duration return value; case -1285004149: // quantity this.quantity = castToQuantity(value); // Quantity return value; case -1077554975: // method this.method = castToCodeableConcept(value); // CodeableConcept return value; case 1702620169: // bodySite this.bodySite = castToCodeableConcept(value); // CodeableConcept return value; case -701550184: // fastingStatus this.fastingStatus = castToType(value); // Type return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("collector")) { this.collector = castToReference(value); // Reference } else if (name.equals("collected[x]")) { this.collected = castToType(value); // Type } else if (name.equals("duration")) { this.duration = castToDuration(value); // Duration } else if (name.equals("quantity")) { this.quantity = castToQuantity(value); // Quantity } else if (name.equals("method")) { this.method = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("bodySite")) { this.bodySite = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("fastingStatus[x]")) { this.fastingStatus = castToType(value); // Type } else return super.setProperty(name, value); return value; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 1883491469: return getCollector(); case 1632037015: return getCollected(); case 1883491145: return getCollected(); case -1992012396: return getDuration(); case -1285004149: return getQuantity(); case -1077554975: return getMethod(); case 1702620169: return getBodySite(); case -570577944: return getFastingStatus(); case -701550184: return getFastingStatus(); default: return super.makeProperty(hash, name); } }
public SpecimenCollectionComponent copy() { SpecimenCollectionComponent dst = new SpecimenCollectionComponent(); copyValues(dst); dst.collector = collector == null ? null : collector.copy(); dst.collected = collected == null ? null : collected.copy(); dst.duration = duration == null ? null : duration.copy(); dst.quantity = quantity == null ? null : quantity.copy(); dst.method = method == null ? null : method.copy(); dst.bodySite = bodySite == null ? null : bodySite.copy(); dst.fastingStatus = fastingStatus == null ? null : fastingStatus.copy(); return dst; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof SpecimenCollectionComponent)) return false; SpecimenCollectionComponent o = (SpecimenCollectionComponent) other_; return compareDeep(collector, o.collector, true) && compareDeep(collected, o.collected, true) && compareDeep(duration, o.duration, true) && compareDeep(quantity, o.quantity, true) && compareDeep(method, o.method, true) && compareDeep(bodySite, o.bodySite, true) && compareDeep(fastingStatus, o.fastingStatus, true); }
/** * @return {@link #collection} (Details concerning the specimen collection.) */ public SpecimenCollectionComponent getCollection() { if (this.collection == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Specimen.collection"); else if (Configuration.doAutoCreate()) this.collection = new SpecimenCollectionComponent(); // cc return this.collection; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 1883491469: // collector this.collector = castToReference(value); // Reference return value; case 1883491145: // collected this.collected = castToType(value); // Type return value; case -1992012396: // duration this.duration = castToDuration(value); // Duration return value; case -1285004149: // quantity this.quantity = castToQuantity(value); // Quantity return value; case -1077554975: // method this.method = castToCodeableConcept(value); // CodeableConcept return value; case 1702620169: // bodySite this.bodySite = castToCodeableConcept(value); // CodeableConcept return value; case -701550184: // fastingStatus this.fastingStatus = castToType(value); // Type return value; default: return super.setProperty(hash, name, value); } }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 1883491469: return getCollector(); case 1632037015: return getCollected(); case 1883491145: return getCollected(); case -1992012396: return getDuration(); case -1285004149: return getQuantity(); case -1077554975: return getMethod(); case 1702620169: return getBodySite(); case -570577944: return getFastingStatus(); case -701550184: return getFastingStatus(); default: return super.makeProperty(hash, name); } }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof SpecimenCollectionComponent)) return false; SpecimenCollectionComponent o = (SpecimenCollectionComponent) other_; return compareDeep(collector, o.collector, true) && compareDeep(collected, o.collected, true) && compareDeep(duration, o.duration, true) && compareDeep(quantity, o.quantity, true) && compareDeep(method, o.method, true) && compareDeep(bodySite, o.bodySite, true) && compareDeep(fastingStatus, o.fastingStatus, true); }
/** * @return {@link #collection} (Details concerning the specimen collection.) */ public SpecimenCollectionComponent getCollection() { if (this.collection == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Specimen.collection"); else if (Configuration.doAutoCreate()) this.collection = new SpecimenCollectionComponent(); // cc return this.collection; }
public SpecimenCollectionComponent copy() { SpecimenCollectionComponent dst = new SpecimenCollectionComponent(); copyValues(dst); dst.collector = collector == null ? null : collector.copy(); dst.collected = collected == null ? null : collected.copy(); dst.duration = duration == null ? null : duration.copy(); dst.quantity = quantity == null ? null : quantity.copy(); dst.method = method == null ? null : method.copy(); dst.bodySite = bodySite == null ? null : bodySite.copy(); dst.fastingStatus = fastingStatus == null ? null : fastingStatus.copy(); return dst; }