/** * @return {@link #entity} (An entity used in this activity.) */ // syntactic sugar public ProvenanceEntityComponent addEntity() { //3 ProvenanceEntityComponent t = new ProvenanceEntityComponent(); if (this.entity == null) this.entity = new ArrayList<ProvenanceEntityComponent>(); this.entity.add(t); return t; }
@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("role")) this.role = new ProvenanceEntityRoleEnumFactory().fromType(value); // Enumeration<ProvenanceEntityRole> else if (name.equals("type")) this.type = castToCoding(value); // Coding else if (name.equals("reference")) this.reference = castToUri(value); // UriType else if (name.equals("display")) this.display = castToString(value); // StringType else if (name.equals("agent")) this.agent = (ProvenanceAgentComponent) value; // ProvenanceAgentComponent else super.setProperty(name, value); }
dst.entity = new ArrayList<ProvenanceEntityComponent>(); for (ProvenanceEntityComponent i : entity) dst.entity.add(i.copy()); }; if (signature != null) {
dst.entity = new ArrayList<ProvenanceEntityComponent>(); for (ProvenanceEntityComponent i : entity) dst.entity.add(i.copy()); }; if (signature != null) {
@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("role")) this.role = new ProvenanceEntityRoleEnumFactory().fromType(value); // Enumeration<ProvenanceEntityRole> else if (name.equals("type")) this.type = castToCoding(value); // Coding else if (name.equals("reference")) this.reference = castToUri(value); // UriType else if (name.equals("display")) this.display = castToString(value); // StringType else if (name.equals("agent")) this.agent = (ProvenanceAgentComponent) value; // ProvenanceAgentComponent else super.setProperty(name, value); }
public boolean hasEntity() { if (this.entity == null) return false; for (ProvenanceEntityComponent item : this.entity) if (!item.isEmpty()) return true; return false; }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof ProvenanceEntityComponent)) return false; ProvenanceEntityComponent o = (ProvenanceEntityComponent) other; return compareDeep(role, o.role, true) && compareDeep(type, o.type, true) && compareDeep(reference, o.reference, true) && compareDeep(display, o.display, true) && compareDeep(agent, o.agent, true); }
public org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent convertProvenanceEntityComponent(org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent(); copyElement(src, tgt); tgt.setRole(convertProvenanceEntityRole(src.getRole())); if (src.hasReference()) tgt.setWhat(new org.hl7.fhir.dstu3.model.Reference().setReference(src.getReference())); tgt.addAgent(convertProvenanceAgentComponent(src.getAgent())); return tgt; }
public org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent convertProvenanceEntityComponent(org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent(); copyElement(src, tgt); tgt.setRole(convertProvenanceEntityRole(src.getRole())); if (src.hasWhatReference() && src.getWhatReference().hasReference()) tgt.setReference(src.getWhatReference().getReference()); for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.setAgent(convertProvenanceAgentComponent(t)); return tgt; }
/** * @return {@link #entity} (An entity used in this activity.) */ // syntactic sugar public ProvenanceEntityComponent addEntity() { //3 ProvenanceEntityComponent t = new ProvenanceEntityComponent(); if (this.entity == null) this.entity = new ArrayList<ProvenanceEntityComponent>(); this.entity.add(t); return t; }
public ProvenanceEntityComponent copy() { ProvenanceEntityComponent dst = new ProvenanceEntityComponent(); copyValues(dst); dst.role = role == null ? null : role.copy(); dst.type = type == null ? null : type.copy(); dst.reference = reference == null ? null : reference.copy(); dst.display = display == null ? null : display.copy(); dst.agent = agent == null ? null : agent.copy(); return dst; }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof ProvenanceEntityComponent)) return false; ProvenanceEntityComponent o = (ProvenanceEntityComponent) other; return compareValues(role, o.role, true) && compareValues(reference, o.reference, true) && compareValues(display, o.display, true) ; }
public boolean hasEntity() { if (this.entity == null) return false; for (ProvenanceEntityComponent item : this.entity) if (!item.isEmpty()) return true; return false; }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof ProvenanceEntityComponent)) return false; ProvenanceEntityComponent o = (ProvenanceEntityComponent) other; return compareDeep(role, o.role, true) && compareDeep(type, o.type, true) && compareDeep(reference, o.reference, true) && compareDeep(display, o.display, true) && compareDeep(agent, o.agent, true); }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof ProvenanceEntityComponent)) return false; ProvenanceEntityComponent o = (ProvenanceEntityComponent) other; return compareValues(role, o.role, true) && compareValues(reference, o.reference, true) && compareValues(display, o.display, true) ; }
public org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent convertProvenanceEntityComponent(org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent(); copyElement(src, tgt); tgt.setRole(convertProvenanceEntityRole(src.getRole())); if (src.hasWhatReference() && src.getWhatReference().hasReference()) tgt.setReference(src.getWhatReference().getReference()); for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.setAgent(convertProvenanceAgentComponent(t)); return tgt; }
public ProvenanceEntityComponent copy() { ProvenanceEntityComponent dst = new ProvenanceEntityComponent(); copyValues(dst); dst.role = role == null ? null : role.copy(); dst.type = type == null ? null : type.copy(); dst.reference = reference == null ? null : reference.copy(); dst.display = display == null ? null : display.copy(); dst.agent = agent == null ? null : agent.copy(); return dst; }
public org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent convertProvenanceEntityComponent(org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent(); copyElement(src, tgt); tgt.setRole(convertProvenanceEntityRole(src.getRole())); if (src.hasReference()) tgt.setWhat(new org.hl7.fhir.dstu3.model.Reference().setReference(src.getReference())); tgt.addAgent(convertProvenanceAgentComponent(src.getAgent())); return tgt; }