package org.sitenv.service.ccda.smartscorecard.model;

import java.util.ArrayList;
import java.util.List;

public class Category {
	
	
	public Category(boolean isFailingConformance, String categoryName)
	{
		this.isFailingConformance = isFailingConformance;
		this.categoryName = categoryName;
		this.categoryRubrics = new ArrayList<CCDAScoreCardRubrics>();
	}
	
	public Category()
	{
		
	}
	
	// scorecard properties
	private String categoryName;
	private String categoryGrade;
	private int categoryNumericalScore;
	private List<CCDAScoreCardRubrics> categoryRubrics;
	private int numberOfIssues;	
	
	// referenceccdavalidator properties
	private boolean isFailingConformance;
	
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public String getCategoryGrade() {
		return categoryGrade;
	}
	public void setCategoryGrade(String categoryGrade) {
		this.categoryGrade = categoryGrade;
	}
	public List<CCDAScoreCardRubrics> getCategoryRubrics() {
		return categoryRubrics;
	}
	public void setCategoryRubrics(List<CCDAScoreCardRubrics> categoryRubrics) {
		this.categoryRubrics = categoryRubrics;
	}
	public int getNumberOfIssues() {
		return numberOfIssues;
	}
	public void setNumberOfIssues(int numberOfIssues) {
		this.numberOfIssues = numberOfIssues;
	}
	public int getCategoryNumericalScore() {
		return categoryNumericalScore;
	}
	public void setCategoryNumericalScore(int categoryNumericalScore) {
		this.categoryNumericalScore = categoryNumericalScore;
	}
	public boolean isFailingConformance() {
		return isFailingConformance;
	}
	public void setFailingConformance(boolean isFailingConformance) {
		this.isFailingConformance = isFailingConformance;
	}	
	
}

@@ -123,17 +123,16 @@
 tegory %7B
-%0A
 %09%0A%09%0A%09pub
@@ -350,16 +350,175 @@
 ics%3E();%0A
+%09%09if(isFailingConformance) %7B%0A%09%09%09//does not affect overall score since failed conformance%0A%09%09%09this.categoryGrade = %22F%22;%0A%09%09%09this.categoryNumericalScore = -1;%0A%09%09%7D%0A
 %09%7D%0A%09%0A%09pu

Set numerical score for conformance fail for heat map sorting