@Override public String getLabelText(String language) { if (getValue() != null) { return getResolvedName(getValue(), language); } else { return super.getLabelText(language); } } }
public String getLabelText(String lang) { if (getValue() != null) { return getValue().getLabelText(lang); } else { return super.getLabelText(lang); } }
@Override public String getLabelText(String lang) { if (getValue() != null) { return getResolvedName(getValue(), lang); } else { return super.getLabelText(lang); } }
@Override public String getLabelText(String lang) { if (getValue() != null && getAttribute() != null) { String name = getName(getValue().getValue().getValue(), lang); return "\"<b>" + name + "</b><font size=2><sub>" + getAttribute().toUpperCase() + "</sub></font>\""; } else { return super.getLabelText(lang); } }
public AssignmentExpression toAssignmentExpression() throws IllegalStateException { if (archetypeElementAttributeRuleLineElement.getValue() == null || archetypeElementAttributeRuleLineElement.getValue().getValue() == null) { throw new IllegalStateException("No variable set"); } Variable var = new Variable( archetypeElementAttributeRuleLineElement.getValue().getValue().getValue(), null, null, archetypeElementAttributeRuleLineElement.getAttribute()); return new AssignmentExpression( var, expressionRuleLineElement.getValue()); }
public ElementComparisonWithDVConditionRuleLine() { super(OpenEHRLanguageManager.getMessage("CompareElementWithDataValue"), OpenEHRLanguageManager.getMessage("CompareElementWithDataValueDesc")); archetypeElementRuleLineElement = new ArchetypeElementRuleLineElement(this); comparisonOperatorRuleLineElement = new ElementComparisonOperatorRuleLineElement(this); archetypeDataValueRuleLineElement = new ArchetypeDataValueRuleLineElement(this); getRuleLineElements().add(new StaticTextRuleLineElement(this, "ElementRLE")); getRuleLineElements().add(archetypeElementRuleLineElement); getRuleLineElements().add(comparisonOperatorRuleLineElement); getRuleLineElements().add(archetypeDataValueRuleLineElement); }
@Override public String getLabelTextHTML(String lang) { if (getValue() != null) { return getResolvedName(getValue(), lang); } else { return super.getLabelTextHTML(lang); } } }
@Override public String getLabelText(String language) { if (getValue() != null) { return getResolvedName(getValue(), language); } else { return super.getLabelText(language); } }
private ArchetypeInstantiationRuleLine getArchetypeInstantiationRuleLine() { if (getValue() != null && getValue().getParentRuleLine() instanceof ArchetypeInstantiationRuleLine) { return ((ArchetypeInstantiationRuleLine) getValue().getParentRuleLine()); } else { return null; } }
private ArchetypeElementInstantiationRuleLine getArchetypeElementInstantiationRuleLine() { if (getValue() != null && getValue().getParentRuleLine() instanceof ArchetypeElementInstantiationRuleLine) { return ((ArchetypeElementInstantiationRuleLine) getValue().getParentRuleLine()); } else { return null; } }
@Override public String getLabelTextHTML(String lang) { if (getValue() != null) { return "<font color='#00803a'>" + ExpressionUtil.convertToHTMLText(this, getValue(), lang) + "</font>"; } else { return super.getLabelTextHTML(lang); } }
@Override public String getLabelText(String lang) { if (getValue() != null) { return ExpressionUtil.toString(this, getValue(), lang); } else { return super.getLabelText(lang); } } }
@Override public String getLabelTextHTML(String lang) { return "<font color='#4f81bd'><b>" + getLabelText(lang) + "</b></font>"; } }
public void setCDSEntryGTCodeRuleLineElementValue(GTCodeRuleLineElement value) { if (cdsEntryRuleLineElement != null) { cdsEntryRuleLineElement.setValue(value); } }
@Override public ArchetypeReference getArchetypeReference() { return archetypeElementRuleLineElement.getArchetypeReference(); }
public PredicateComparisonOperatorRuleLineElement(RuleLine ruleLine) { super(ruleLine); addOperator(OperatorKind.EQUALITY); addOperator(OperatorKind.IS_A); addOperator(OperatorKind.GREATER_THAN_OR_EQUAL); addOperator(OperatorKind.LESS_THAN_OR_EQUAL); } }
@Override public String getLabelTextHTML(String lang) { return "<font color='#c29700'>" + getLabelText(lang) + "</font>"; } }
@Override public String getLabelTextHTML(String lang) { return "<font color='#4f81bd'><b>" + getLabelText(lang) + "</b></font>"; } }
@Override public String getLabelTextHTML(String lang) { return "<font color='#4f81bd'><b>" + getLabelText(lang) + "</b></font>"; } }
@Override public String getLabelTextHTML(String lang) { return "<font color='#4f81bd'><b>" + getLabelText(lang) + "</b></font>"; } }