source.setType(lexer.takeDottedToken()); if (!lexer.hasToken("as", "first", "last", "not_first", "not_last", "only_one", "default")) { source.setMin(lexer.takeInt()); lexer.token(".."); source.setMax(lexer.take());
source.setType(lexer.takeDottedToken()); if (!lexer.hasToken("as", "first", "last", "not_first", "not_last", "only_one", "default")) { source.setMin(lexer.takeInt()); lexer.token(".."); source.setMax(lexer.take());
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 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; }