target.addListMode(StructureMapTargetListMode.SHARE); lexer.next(); target.setListRuleId(lexer.take()); } else if (lexer.getCurrent().equals("first")) target.addListMode(StructureMapTargetListMode.FIRST);
target.addListMode(StructureMapTargetListMode.SHARE); lexer.next(); target.setListRuleId(lexer.take()); } else if (lexer.getCurrent().equals("first")) target.addListMode(StructureMapTargetListMode.FIRST);
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 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; }