/*******************************************************************************
 *  Copyright 2017-2018 Centre for Development of Advanced Computing(C-DAC), Pune
 *  
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *   http://www.apache.org/licenses/LICENSE-2.0
 *  
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package cdac.medinfo.sdk.dcm30_04.templates.cid;


import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeVersion;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ConjunctiveTerms;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_ConjunctiveTerms;


/**
 * This class represents ConjunctiveTerms - CID3685
 */
public class ConjunctiveTerms_CID3685 
{
	
	/**
	 * The Code Value for template.
	 */
	private String strCodeValue = null;

	/**
	 * The Code Meaning for template.
	 */
	private String strCodeMeaning = null;

	/**
	 * The Coding Scheme Designator for template.
	 */
	private String strCodingSchemeDesignator;

	/**
	 * The Coding Scheme Version
	 */
	private String strCodingSchemeVersion = null;

	/**
	 * Instantiates a new ConjunctiveTerms_CID3685 Template.
	 */
	public ConjunctiveTerms_CID3685() 
	{

	}

	/**
	 * Retrieves the value for CodeMeaning
	 * @return strCodeMeaning String value for CodeMeaning
	 */
	public String getCodeMeaning() 
	{
		return strCodeMeaning;
	}

	/**
	 * Retrieves the value for CodeValue
	 * @return strCodeValue String value for CodeValue
	 */
	public String getCodeValue() 
	{
		return strCodeValue;
	}

	/**
	 * Retrieves the value for CodingSchemeDesignator
	 * @return strCodingSchemeDesignator String value for CodingSchemeDesignator
	 */
	public String getCodingSchemeDesignator()
	{
		return strCodingSchemeDesignator;
	}

	/**
	 * Retrieves the value for CodingSchemeVersion
	 * @return
	 */
	public String getCodingSchemeVersion() {
		return strCodingSchemeVersion;
	}

	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumConjunctiveTerms Object of EnumCM_ConjunctiveTerms represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ConjunctiveTerms enumConjunctiveTerms)
	{
		switch(enumConjunctiveTerms)
		{
		case ALTERNATING_WITH:
			this.strCodeValue = EnumCV_ConjunctiveTerms.ALTERNATING_WITH_D_2_5_4_ALT.getValue();
			break;
		case AND:
			this.strCodeValue = EnumCV_ConjunctiveTerms.AND_D_2_5_1_AND.getValue();
			break;
		case CHANGED_IN_COMPARISON_TO_PREVIOUS_ECG:
			this.strCodeValue = EnumCV_ConjunctiveTerms.CHANGED_IN_COMPARISON_TO_PREVIOUS_ECG_D_2_5_3_CHG.getValue();
			break;
		case DECREASED_IN_COMPARISON_TO_PREVIOUS_ECG:
			this.strCodeValue = EnumCV_ConjunctiveTerms.DECREASED_IN_COMPARISON_TO_PREVIOUS_ECG_D_2_5_3_DEC.getValue();
			break;
		case DISAPPEARED_IN_COMPARISON_TO_PREVIOUS_ECG:
			this.strCodeValue = EnumCV_ConjunctiveTerms.DISAPPEARED_IN_COMPARISON_TO_PREVIOUS_ECG_D_2_5_3_DIS.getValue();
			break;
		case EXCLUDE_RULE_OUT_OR_CONSIDER_ALSO:
			this.strCodeValue = EnumCV_ConjunctiveTerms.EXCLUDE_RULE_OUT_OR_CONSIDER_ALSO_D_2_5_4_EXC.getValue();
			break;
		case EXCLUSIVE_OR:
			this.strCodeValue = EnumCV_ConjunctiveTerms.EXCLUSIVE_OR_D_2_5_1_XOR.getValue();
			break;
		case IMPROVED_COMPARED_TO:
			this.strCodeValue = EnumCV_ConjunctiveTerms.IMPROVED_COMPARED_TO_D_2_5_3_IMP.getValue();
			break;
		case INCREASED_IN_COMPARISON_TO_PREVIOUS_ECG:
			this.strCodeValue = EnumCV_ConjunctiveTerms.INCREASED_IN_COMPARISON_TO_PREVIOUS_ECG_D_2_5_3_INC.getValue();
			break;
		case IS_ASSOCIATED_WITH:
			this.strCodeValue = EnumCV_ConjunctiveTerms.IS_ASSOCIATED_WITH_D_2_5_4_ASS.getValue();
			break;
		case IS_SECONDARY_TO:
			this.strCodeValue = EnumCV_ConjunctiveTerms.IS_SECONDARY_TO_D_2_5_4_SEC.getValue();
			break;
		case NOT:
			this.strCodeValue = EnumCV_ConjunctiveTerms.NOT_D_2_5_1_NOT.getValue();
			break;
		case OR:
			this.strCodeValue = EnumCV_ConjunctiveTerms.OR_D_2_5_1_OR.getValue();
			break;
		case REPLACED_STATEMENT_REPORTED_PREVIOUSLY:
			this.strCodeValue = EnumCV_ConjunctiveTerms.REPLACED_STATEMENT_REPORTED_PREVIOUSLY_D_2_5_3_REP.getValue();
			break;
		case RESULTS_IN_OR_CAUSES:
			this.strCodeValue = EnumCV_ConjunctiveTerms.RESULTS_IN_OR_CAUSES_D_2_5_4_RES.getValue();
			break;
		case SERIAL_CHANGES_OF:
			this.strCodeValue = EnumCV_ConjunctiveTerms.SERIAL_CHANGES_OF_D_2_5_3_SER.getValue();
			break;
		case UNCHANGED_IN_COMPARISON_TO_PREVIOUS_ECG:
			this.strCodeValue = EnumCV_ConjunctiveTerms.UNCHANGED_IN_COMPARISON_TO_PREVIOUS_ECG_D_2_5_3_UNC.getValue();
			break;
		case WITH:
			this.strCodeValue = EnumCV_ConjunctiveTerms.WITH_D_2_5_4_WTH.getValue();
			break;
		case WORSE_COMPARED_TO:
			this.strCodeValue = EnumCV_ConjunctiveTerms.WORSE_COMPARED_TO_D_2_5_3_WRS.getValue();
			break;
		}
	}

	/**
	 * Sets the value for ConjunctiveTerms
	 * @param enumConjunctiveTerms Enum for ConjunctiveTerms
	 */
	public void setConjunctiveTerms(EnumCM_ConjunctiveTerms enumConjunctiveTerms)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumConjunctiveTerms.getValue();
		this.strCodingSchemeVersion = EnumCodingSchemeVersion.CSV_1_3.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SCPECG.getValue();

		/**
		 * set code Value
		 */
		setCodeValue(enumConjunctiveTerms);
	}
}
