public StructureMapGroupRuleSourceComponent addSource() { //3 StructureMapGroupRuleSourceComponent t = new StructureMapGroupRuleSourceComponent(); if (this.source == null) this.source = new ArrayList<StructureMapGroupRuleSourceComponent>(); this.source.add(t); return t; }
public StructureMapGroupRuleSourceComponent addSource() { //3 StructureMapGroupRuleSourceComponent t = new StructureMapGroupRuleSourceComponent(); if (this.source == null) this.source = new ArrayList<StructureMapGroupRuleSourceComponent>(); this.source.add(t); return t; }
public static org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent convertStructureMapGroupRuleSourceComponent(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent(); copyElement(src, tgt); tgt.setMin(src.getRequired()? 1 : 0); if (src.getContextType().equals(StructureMap.StructureMapContextType.TYPE)) tgt.setType(src.getContext()); if (src.hasElement()) tgt.setElement(src.getElement()); if (src.hasListMode()) tgt.setListMode(convertStructureMapSourceListMode(src.getListMode())); if (src.hasVariable()) tgt.setVariable(src.getVariable()); if (src.hasCondition()) tgt.setCondition(src.getCondition()); if (src.hasCheck()) tgt.setCheck(src.getCheck()); return tgt; }
public StructureMapGroupRuleSourceComponent copy() { StructureMapGroupRuleSourceComponent dst = new StructureMapGroupRuleSourceComponent(); copyValues(dst); dst.context = context == null ? null : context.copy(); dst.min = min == null ? null : min.copy(); dst.max = max == null ? null : max.copy(); dst.type = type == null ? null : type.copy(); dst.defaultValue = defaultValue == null ? null : defaultValue.copy(); dst.element = element == null ? null : element.copy(); dst.listMode = listMode == null ? null : listMode.copy(); dst.variable = variable == null ? null : variable.copy(); dst.condition = condition == null ? null : condition.copy(); dst.check = check == null ? null : check.copy(); dst.logMessage = logMessage == null ? null : logMessage.copy(); return dst; }
public static org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent convertStructureMapGroupRuleSourceComponent(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent(); copyElement(src, tgt); tgt.setMin(src.getRequired()? 1 : 0); if (src.getContextType().equals(StructureMap.StructureMapContextType.TYPE)) tgt.setType(src.getContext()); if (src.hasElement()) tgt.setElement(src.getElement()); if (src.hasListMode()) tgt.setListMode(convertStructureMapSourceListMode(src.getListMode())); if (src.hasVariable()) tgt.setVariable(src.getVariable()); if (src.hasCondition()) tgt.setCondition(src.getCondition()); if (src.hasCheck()) tgt.setCheck(src.getCheck()); return tgt; }
public StructureMapGroupRuleSourceComponent copy() { StructureMapGroupRuleSourceComponent dst = new StructureMapGroupRuleSourceComponent(); copyValues(dst); dst.context = context == null ? null : context.copy(); dst.min = min == null ? null : min.copy(); dst.max = max == null ? null : max.copy(); dst.type = type == null ? null : type.copy(); dst.defaultValue = defaultValue == null ? null : defaultValue.copy(); dst.element = element == null ? null : element.copy(); dst.listMode = listMode == null ? null : listMode.copy(); dst.variable = variable == null ? null : variable.copy(); dst.condition = condition == null ? null : condition.copy(); dst.check = check == null ? null : check.copy(); dst.logMessage = logMessage == null ? null : logMessage.copy(); return dst; }