/**
  * Add a period cohort indicator to the report definition with dimension categories.
  *
  * @param CohortIndicator
  */
 public void addIndicator(
     String uniqueName,
     String displayName,
     CohortIndicator indicator,
     String dimensionCategories) {
   addIndicator(
       uniqueName, displayName, indicator, OpenmrsUtil.parseParameterList(dimensionCategories));
 }
Ejemplo n.º 2
0
  /**
   * Get the values of the parameters passed in and set them to the local variables on this class.
   *
   * @see liquibase.change.custom.CustomChange#setUp()
   */
  @Override
  public void setUp() throws SetupException {

    tableNamesArray = StringUtils.split(tableNames);
    idExceptionsMap = OpenmrsUtil.parseParameterList(idExceptions);

    genericIdSql = "select tablename_id from tablename where columnName is null";
    genericIdSql = genericIdSql.replace("columnName", columnName);

    genericUpdateSql = "update tablename set columnName = ? where tablename_id = ?";
    genericUpdateSql = genericUpdateSql.replace("columnName", columnName);
  }