public NoteComponent addProcessNote() { //3 NoteComponent t = new NoteComponent(); if (this.processNote == null) this.processNote = new ArrayList<NoteComponent>(); this.processNote.add(t); return t; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("number")) { this.number = castToPositiveInt(value); // PositiveIntType } else if (name.equals("type")) { value = new NoteTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<NoteType> } else if (name.equals("text")) { this.text = castToString(value); // StringType } else if (name.equals("language")) { this.language = castToCodeableConcept(value); // CodeableConcept } else return super.setProperty(name, value); return value; }
dst.processNote = new ArrayList<NoteComponent>(); for (NoteComponent i : processNote) dst.processNote.add(i.copy()); }; if (communicationRequest != null) {
dst.processNote = new ArrayList<NoteComponent>(); for (NoteComponent i : processNote) dst.processNote.add(i.copy()); }; if (communicationRequest != null) {
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1034364087: // number this.number = castToPositiveInt(value); // PositiveIntType return value; case 3575610: // type value = new NoteTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<NoteType> return value; case 3556653: // text this.text = castToString(value); // StringType return value; case -1613589672: // language this.language = castToCodeableConcept(value); // CodeableConcept return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("number")) { this.number = castToPositiveInt(value); // PositiveIntType } else if (name.equals("type")) { value = new NoteTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<NoteType> } else if (name.equals("text")) { this.text = castToString(value); // StringType } else if (name.equals("language")) { this.language = castToCodeableConcept(value); // CodeableConcept } else return super.setProperty(name, value); return value; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof NoteComponent)) return false; NoteComponent o = (NoteComponent) other_; return compareDeep(number, o.number, true) && compareDeep(type, o.type, true) && compareDeep(text, o.text, true) && compareDeep(language, o.language, true); }
public NoteComponent addProcessNote() { //3 NoteComponent t = new NoteComponent(); if (this.processNote == null) this.processNote = new ArrayList<NoteComponent>(); this.processNote.add(t); return t; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof NoteComponent)) return false; NoteComponent o = (NoteComponent) other_; return compareValues(number, o.number, true) && compareValues(type, o.type, true) && compareValues(text, o.text, true) ; }
public NoteComponent copy() { NoteComponent dst = new NoteComponent(); copyValues(dst); dst.number = number == null ? null : number.copy(); dst.type = type == null ? null : type.copy(); dst.text = text == null ? null : text.copy(); dst.language = language == null ? null : language.copy(); return dst; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1034364087: return getNumberElement(); case 3575610: return getTypeElement(); case 3556653: return getTextElement(); case -1613589672: return getLanguage(); default: return super.makeProperty(hash, name); } }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1034364087: // number this.number = castToPositiveInt(value); // PositiveIntType return value; case 3575610: // type value = new NoteTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<NoteType> return value; case 3556653: // text this.text = castToString(value); // StringType return value; case -1613589672: // language this.language = castToCodeableConcept(value); // CodeableConcept return value; default: return super.setProperty(hash, name, value); } }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof NoteComponent)) return false; NoteComponent o = (NoteComponent) other_; return compareDeep(number, o.number, true) && compareDeep(type, o.type, true) && compareDeep(text, o.text, true) && compareDeep(language, o.language, true); }
public NoteComponent copy() { NoteComponent dst = new NoteComponent(); copyValues(dst); dst.number = number == null ? null : number.copy(); dst.type = type == null ? null : type.copy(); dst.text = text == null ? null : text.copy(); dst.language = language == null ? null : language.copy(); return dst; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1034364087: return getNumberElement(); case 3575610: return getTypeElement(); case 3556653: return getTextElement(); case -1613589672: return getLanguage(); default: return super.makeProperty(hash, name); } }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof NoteComponent)) return false; NoteComponent o = (NoteComponent) other_; return compareValues(number, o.number, true) && compareValues(type, o.type, true) && compareValues(text, o.text, true) ; }