public StructureMapGroupRuleTargetComponent addTarget() { //3 StructureMapGroupRuleTargetComponent t = new StructureMapGroupRuleTargetComponent(); if (this.target == null) this.target = new ArrayList<StructureMapGroupRuleTargetComponent>(); this.target.add(t); return t; }
public StructureMapGroupRuleTargetComponent copy() { StructureMapGroupRuleTargetComponent dst = new StructureMapGroupRuleTargetComponent(); copyValues(dst); dst.context = context == null ? null : context.copy(); dst.contextType = contextType == null ? null : contextType.copy(); dst.element = element == null ? null : element.copy(); dst.variable = variable == null ? null : variable.copy(); if (listMode != null) { dst.listMode = new ArrayList<Enumeration<StructureMapTargetListMode>>(); for (Enumeration<StructureMapTargetListMode> i : listMode) dst.listMode.add(i.copy()); }; dst.listRuleId = listRuleId == null ? null : listRuleId.copy(); dst.transform = transform == null ? null : transform.copy(); if (parameter != null) { dst.parameter = new ArrayList<StructureMapGroupRuleTargetParameterComponent>(); for (StructureMapGroupRuleTargetParameterComponent i : parameter) dst.parameter.add(i.copy()); }; return dst; }
public StructureMapGroupRuleTargetComponent addTarget() { //3 StructureMapGroupRuleTargetComponent t = new StructureMapGroupRuleTargetComponent(); if (this.target == null) this.target = new ArrayList<StructureMapGroupRuleTargetComponent>(); this.target.add(t); return t; }
public static org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent convertStructureMapGroupRuleTargetComponent(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent(); copyElement(src, tgt); if (src.hasContext()) tgt.setContext(src.getContext()); if (src.hasContextType()) tgt.setContextType(convertStructureMapContextType(src.getContextType())); if (src.hasElement()) tgt.setElement(src.getElement()); if (src.hasVariable()) tgt.setVariable(src.getVariable()); for (org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapListMode> t : src.getListMode()) tgt.addListMode(convertStructureMapTargetListMode(t.getValue())); if (src.hasListRuleId()) tgt.setListRuleId(src.getListRuleId()); if (src.hasTransform()) tgt.setTransform(convertStructureMapTransform(src.getTransform())); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) tgt.addParameter(convertStructureMapGroupRuleTargetParameterComponent(t)); return tgt; }
public StructureMapGroupRuleTargetComponent copy() { StructureMapGroupRuleTargetComponent dst = new StructureMapGroupRuleTargetComponent(); copyValues(dst); dst.context = context == null ? null : context.copy(); dst.contextType = contextType == null ? null : contextType.copy(); dst.element = element == null ? null : element.copy(); dst.variable = variable == null ? null : variable.copy(); if (listMode != null) { dst.listMode = new ArrayList<Enumeration<StructureMapTargetListMode>>(); for (Enumeration<StructureMapTargetListMode> i : listMode) dst.listMode.add(i.copy()); }; dst.listRuleId = listRuleId == null ? null : listRuleId.copy(); dst.transform = transform == null ? null : transform.copy(); if (parameter != null) { dst.parameter = new ArrayList<StructureMapGroupRuleTargetParameterComponent>(); for (StructureMapGroupRuleTargetParameterComponent i : parameter) dst.parameter.add(i.copy()); }; return dst; }
public static org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent convertStructureMapGroupRuleTargetComponent(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent(); copyElement(src, tgt); if (src.hasContext()) tgt.setContext(src.getContext()); if (src.hasContextType()) tgt.setContextType(convertStructureMapContextType(src.getContextType())); if (src.hasElement()) tgt.setElement(src.getElement()); if (src.hasVariable()) tgt.setVariable(src.getVariable()); for (org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapListMode> t : src.getListMode()) tgt.addListMode(convertStructureMapTargetListMode(t.getValue())); if (src.hasListRuleId()) tgt.setListRuleId(src.getListRuleId()); if (src.hasTransform()) tgt.setTransform(convertStructureMapTransform(src.getTransform())); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) tgt.addParameter(convertStructureMapGroupRuleTargetParameterComponent(t)); return tgt; }