public GroupCharacteristicComponent addCharacteristic() { //3 GroupCharacteristicComponent t = new GroupCharacteristicComponent(); if (this.characteristic == null) this.characteristic = new ArrayList<GroupCharacteristicComponent>(); this.characteristic.add(t); return t; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("value[x]")) { this.value = castToType(value); // Type } else if (name.equals("exclude")) { this.exclude = castToBoolean(value); // BooleanType } else if (name.equals("period")) { this.period = castToPeriod(value); // Period } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCodeableConcept(value); // CodeableConcept return value; case 111972721: // value this.value = castToType(value); // Type return value; case -1321148966: // exclude this.exclude = castToBoolean(value); // BooleanType return value; case -991726143: // period this.period = castToPeriod(value); // Period return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("value[x]")) { this.value = castToType(value); // Type } else if (name.equals("exclude")) { this.exclude = castToBoolean(value); // BooleanType } else if (name.equals("period")) { this.period = castToPeriod(value); // Period } else return super.setProperty(name, value); return value; }
public org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent convertGroupCharacteristicComponent(org.hl7.fhir.instance.model.Group.GroupCharacteristicComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent(); copyElement(src, tgt); tgt.setCode(convertCodeableConcept(src.getCode())); tgt.setValue(convertType(src.getValue())); tgt.setExclude(src.getExclude()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
public boolean hasCharacteristic() { if (this.characteristic == null) return false; for (GroupCharacteristicComponent item : this.characteristic) if (!item.isEmpty()) return true; return false; }
public GroupCharacteristicComponent addCharacteristic() { //3 GroupCharacteristicComponent t = new GroupCharacteristicComponent(); if (this.characteristic == null) this.characteristic = new ArrayList<GroupCharacteristicComponent>(); this.characteristic.add(t); return t; }
public GroupCharacteristicComponent copy() { GroupCharacteristicComponent dst = new GroupCharacteristicComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); dst.value = value == null ? null : value.copy(); dst.exclude = exclude == null ? null : exclude.copy(); dst.period = period == null ? null : period.copy(); return dst; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCode(); case -1410166417: return getValue(); case 111972721: return getValue(); case -1321148966: return getExcludeElement(); case -991726143: return getPeriod(); default: return super.makeProperty(hash, name); } }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof GroupCharacteristicComponent)) return false; GroupCharacteristicComponent o = (GroupCharacteristicComponent) other_; return compareDeep(code, o.code, true) && compareDeep(value, o.value, true) && compareDeep(exclude, o.exclude, true) && compareDeep(period, o.period, true); }
public org.hl7.fhir.instance.model.Group.GroupCharacteristicComponent convertGroupCharacteristicComponent(org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.instance.model.Group.GroupCharacteristicComponent(); copyElement(src, tgt); tgt.setCode(convertCodeableConcept(src.getCode())); tgt.setValue(convertType(src.getValue())); tgt.setExclude(src.getExclude()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCodeableConcept(value); // CodeableConcept return value; case 111972721: // value this.value = castToType(value); // Type return value; case -1321148966: // exclude this.exclude = castToBoolean(value); // BooleanType return value; case -991726143: // period this.period = castToPeriod(value); // Period return value; default: return super.setProperty(hash, name, value); } }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof GroupCharacteristicComponent)) return false; GroupCharacteristicComponent o = (GroupCharacteristicComponent) other_; return compareDeep(code, o.code, true) && compareDeep(value, o.value, true) && compareDeep(exclude, o.exclude, true) && compareDeep(period, o.period, true); }
public GroupCharacteristicComponent copy() { GroupCharacteristicComponent dst = new GroupCharacteristicComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); dst.value = value == null ? null : value.copy(); dst.exclude = exclude == null ? null : exclude.copy(); dst.period = period == null ? null : period.copy(); return dst; }
public org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent convertGroupCharacteristicComponent(org.hl7.fhir.instance.model.Group.GroupCharacteristicComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent(); copyElement(src, tgt); tgt.setCode(convertCodeableConcept(src.getCode())); tgt.setValue(convertType(src.getValue())); tgt.setExclude(src.getExclude()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCode(); case -1410166417: return getValue(); case 111972721: return getValue(); case -1321148966: return getExcludeElement(); case -991726143: return getPeriod(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.instance.model.Group.GroupCharacteristicComponent convertGroupCharacteristicComponent(org.hl7.fhir.r4.model.Group.GroupCharacteristicComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Group.GroupCharacteristicComponent tgt = new org.hl7.fhir.instance.model.Group.GroupCharacteristicComponent(); copyElement(src, tgt); tgt.setCode(convertCodeableConcept(src.getCode())); tgt.setValue(convertType(src.getValue())); tgt.setExclude(src.getExclude()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
public boolean hasCharacteristic() { if (this.characteristic == null) return false; for (GroupCharacteristicComponent item : this.characteristic) if (!item.isEmpty()) return true; return false; }