@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("context")) { this.context = castToId(value); // IdType } else if (name.equals("contextType")) { value = new StructureMapContextTypeEnumFactory().fromType(castToCode(value)); this.contextType = (Enumeration) value; // Enumeration<StructureMapContextType> } else if (name.equals("element")) { this.element = castToString(value); // StringType } else if (name.equals("variable")) { this.variable = castToId(value); // IdType } else if (name.equals("listMode")) { value = new StructureMapTargetListModeEnumFactory().fromType(castToCode(value)); this.getListMode().add((Enumeration) value); } else if (name.equals("listRuleId")) { this.listRuleId = castToId(value); // IdType } else if (name.equals("transform")) { value = new StructureMapTransformEnumFactory().fromType(castToCode(value)); this.transform = (Enumeration) value; // Enumeration<StructureMapTransform> } else if (name.equals("parameter")) { this.getParameter().add((StructureMapGroupRuleTargetParameterComponent) value); } else return super.setProperty(name, value); return value; }
b.append(rt.getVariable()); for (Enumeration<StructureMapTargetListMode> lm : rt.getListMode()) { b.append(" "); b.append(lm.getValue().toCode());
case 1345445729: // listMode value = new StructureMapTargetListModeEnumFactory().fromType(castToCode(value)); this.getListMode().add((Enumeration) value); // Enumeration<StructureMapTargetListMode> return value; case 337117045: // listRuleId
b.append(rt.getVariable()); for (Enumeration<StructureMapTargetListMode> lm : rt.getListMode()) { b.append(" "); b.append(lm.getValue().toCode());
case 1345445729: // listMode value = new StructureMapTargetListModeEnumFactory().fromType(castToCode(value)); this.getListMode().add((Enumeration) value); // Enumeration<StructureMapTargetListMode> return value; case 337117045: // listRuleId
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("context")) { this.context = castToId(value); // IdType } else if (name.equals("contextType")) { value = new StructureMapContextTypeEnumFactory().fromType(castToCode(value)); this.contextType = (Enumeration) value; // Enumeration<StructureMapContextType> } else if (name.equals("element")) { this.element = castToString(value); // StringType } else if (name.equals("variable")) { this.variable = castToId(value); // IdType } else if (name.equals("listMode")) { value = new StructureMapTargetListModeEnumFactory().fromType(castToCode(value)); this.getListMode().add((Enumeration) value); } else if (name.equals("listRuleId")) { this.listRuleId = castToId(value); // IdType } else if (name.equals("transform")) { value = new StructureMapTransformEnumFactory().fromType(castToCode(value)); this.transform = (Enumeration) value; // Enumeration<StructureMapTransform> } else if (name.equals("parameter")) { this.getParameter().add((StructureMapGroupRuleTargetParameterComponent) value); } else return super.setProperty(name, value); return value; }
public static org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent convertStructureMapGroupRuleTargetComponent(org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu2016may.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 (Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapTargetListMode> 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.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) tgt.addParameter(convertStructureMapGroupRuleTargetParameterComponent(t)); return tgt; }
public static org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent convertStructureMapGroupRuleTargetComponent(org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu2016may.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 (Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapTargetListMode> 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.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent t : src.getParameter()) tgt.addParameter(convertStructureMapGroupRuleTargetParameterComponent(t)); return tgt; }