private static void renderSource(StringBuilder b, StructureMapGroupRuleSourceComponent rs, boolean abbreviate) { b.append(rs.getContext()); if (rs.getContext().equals("@search")) { b.append('('); b.append(rs.getElement());
private List<Variables> processSource(String ruleId, TransformContext context, Variables vars, StructureMapGroupRuleSourceComponent src, String pathForErrors, String indent) throws FHIRException { List<Base> items; if (src.getContext().equals("@search")) { ExpressionNode expr = (ExpressionNode) src.getUserData(MAP_SEARCH_EXPRESSION); if (expr == null) { } else { items = new ArrayList<Base>(); Base b = vars.get(VariableMode.INPUT, src.getContext()); if (b == null) throw new FHIRException("Unknown input variable "+src.getContext()+" in "+pathForErrors+" rule "+ruleId+" (vars = "+vars.summary()+")");
private VariablesForProfiling analyseSource(String ruleId, TransformContext context, VariablesForProfiling vars, StructureMapGroupRuleSourceComponent src, XhtmlNode td) throws Exception { VariableForProfiling var = vars.get(VariableMode.INPUT, src.getContext()); if (var == null) throw new FHIRException("Rule \""+ruleId+"\": Unknown input variable "+src.getContext()); PropertyWithType prop = var.getProperty();
private List<Variables> processSource(String ruleId, TransformContext context, Variables vars, StructureMapGroupRuleSourceComponent src, String pathForErrors, String indent) throws FHIRException { List<Base> items; if (src.getContext().equals("@search")) { ExpressionNode expr = (ExpressionNode) src.getUserData(MAP_SEARCH_EXPRESSION); if (expr == null) { } else { items = new ArrayList<Base>(); Base b = vars.get(VariableMode.INPUT, src.getContext()); if (b == null) throw new FHIRException("Unknown input variable "+src.getContext()+" in "+pathForErrors+" rule "+ruleId+" (vars = "+vars.summary()+")");
private void parseSource(StructureMapGroupRuleComponent rule, FHIRLexer lexer) throws FHIRException { StructureMapGroupRuleSourceComponent source = rule.addSource(); source.setContext(lexer.take()); if (source.getContext().equals("search") && lexer.hasToken("(")) { source.setContext("@search"); lexer.take();
private static void renderSource(StringBuilder b, StructureMapGroupRuleSourceComponent rs, boolean abbreviate) { b.append(rs.getContext()); if (rs.getContext().equals("@search")) { b.append('('); b.append(rs.getElement());
private VariablesForProfiling analyseSource(String ruleId, TransformContext context, VariablesForProfiling vars, StructureMapGroupRuleSourceComponent src, XhtmlNode td) throws Exception { VariableForProfiling var = vars.get(VariableMode.INPUT, src.getContext()); if (var == null) throw new FHIRException("Rule \""+ruleId+"\": Unknown input variable "+src.getContext()); PropertyWithType prop = var.getProperty();
public static org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent convertStructureMapGroupRuleSourceComponent(org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent(); copyElement(src, tgt); tgt.setContextType(StructureMapContextType.TYPE); tgt.setContext(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; }
private void parseSource(StructureMapGroupRuleComponent rule, FHIRLexer lexer) throws FHIRException { StructureMapGroupRuleSourceComponent source = rule.addSource(); source.setContext(lexer.take()); if (source.getContext().equals("search") && lexer.hasToken("(")) { source.setContext("@search"); lexer.take();
public static org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent convertStructureMapGroupRuleSourceComponent(org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent(); copyElement(src, tgt); tgt.setContextType(StructureMapContextType.TYPE); tgt.setContext(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; }