/*******************************************************************************
 *  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.dicomsnomedmap.EnumRadiologySNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ProcedureIntent;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_ProcedureIntent;


/**
 * This class represents ProcedureIntent - CID3629
 */
public class ProcedureIntent_CID3629  
{
	
	/**
	 * The Code Value for template.
	 */
	private String strCodeValue = null;
	/**
	 * The SNOMED CT ID for template.
	 */
	private String strSNOMEDCTID = null;
	
	/**
	 * The Code Meaning for template.
	 */
	private String strCodeMeaning = null;
	
	/**
	 * The Coding Scheme Designator for template.
	 */
	private String strCodingSchemeDesignator;
	
	/**
	 * Instantiates a new CID3629_ProcedureIntent Template.
	 */
	public ProcedureIntent_CID3629() 
	{
		
	}
	
	/**
	 * Retrieves the value for CodeMeaning
	 * @return strCodeMeaning String value for CodeMeaning
	 */
	public String getCodeMeaning() {
		return strCodeMeaning;
	}

	/**
	 * Retrieves the value for SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}

	/**
	 * 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;
	}
	
	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumOrganizationalRoles Object of EnumOrganizationalRoles represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ProcedureIntent enumProcedureIntent)
	{
		switch(enumProcedureIntent) 
		{
		case DIAGNOSTIC_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.DIAGNOSTIC_INTENT_R_408C3.getValue(); break;
		case THERAPEUTIC_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.THERAPEUTIC_INTENT_R_41531.getValue(); break;
		case COMBINED_DIAGNOSTIC_AND_THERAPEUTIC_PROCEDURE: this.strCodeValue =EnumCV_ProcedureIntent.COMBINED_DIAGNOSTIC_AND_THERAPEUTIC_PROCEDURE_R_002E9.getValue(); break;
		case QUALITY_CONTROL_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.QUALITY_CONTROL_INTENT_113680.getValue(); break;
		case STAGING_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.STAGING_INTENT_R_408F2.getValue(); break;
		case GUIDANCE_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.GUIDANCE_INTENT_R_40641.getValue(); break;
		case FORENSIC_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.FORENSIC_INTENT_R_40644.getValue(); break;
		case SCREENING_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.SCREENING_INTENT_R_42453.getValue(); break;
		case PALLIATIVE_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.PALLIATIVE_INTENT_R_40644.getValue(); break;
		case ADJUNCT_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.ADJUNCT_INTENT_R_41564.getValue(); break;
		case ADJUVANT_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.ADJUVANT_INTENT_R_41561.getValue(); break;
		case CURATIVE_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.CURATIVE_INTENT_R_41560.getValue(); break;
		case NEO_ADJUVANT_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.NEO_ADJUVANT_INTENT_R_41562.getValue(); break;
		case SUPPORTIVE_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.SUPPORTIVE_INTENT_R_41563.getValue(); break;
		case PREVENTIVE_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.PREVENTIVE_INTENT_P0_02179.getValue(); break;
		case PROPHYLACTIC_INTENT: this.strCodeValue =EnumCV_ProcedureIntent.PROPHYLACTIC_INTENT_P0_02180.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumProcedureIntent Object of EnumCM_ProcedureIntent represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_ProcedureIntent enumProcedureIntent)
	{
		switch(enumProcedureIntent)
		{
		case DIAGNOSTIC_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.DIAGNOSTIC_INTENT.getSNOMEDCTID(); break;
		case THERAPEUTIC_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.THERAPEUTIC_INTENT.getSNOMEDCTID(); break;
		case COMBINED_DIAGNOSTIC_AND_THERAPEUTIC_PROCEDURE : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.COMBINED_DIAGNOSTIC_AND_THERAPEUTIC_PROCEDURE.getSNOMEDCTID(); break;
		case STAGING_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.STAGING_INTENT.getSNOMEDCTID(); break;
		case GUIDANCE_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.GUIDANCE_INTENT.getSNOMEDCTID(); break;
		case FORENSIC_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.FORENSIC_INTENT.getSNOMEDCTID(); break;
		case SCREENING_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.SCREENING_INTENT.getSNOMEDCTID(); break;
		case PALLIATIVE_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.PALLIATIVE_INTENT.getSNOMEDCTID(); break;
		case ADJUNCT_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.ADJUNCT_INTENT.getSNOMEDCTID(); break;
		case ADJUVANT_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.ADJUVANT_INTENT.getSNOMEDCTID(); break;
		case CURATIVE_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.CURATIVE_INTENT.getSNOMEDCTID(); break;
		case NEO_ADJUVANT_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.NEO_ADJUVANT_INTENT.getSNOMEDCTID(); break;
		case SUPPORTIVE_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.SUPPORTIVE_INTENT.getSNOMEDCTID(); break;
		case PREVENTIVE_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.PREVENTIVE_INTENT.getSNOMEDCTID(); break;
		case PROPHYLACTIC_INTENT : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.PROPHYLACTIC_INTENT.getSNOMEDCTID(); break;
		}
	}
	
	/**
	 * Sets the value for Procedure Intent
	 * @param enumProcedureIntent Enum for Procedure Intent
	 */
	public void setProcedureIntent(EnumCM_ProcedureIntent enumProcedureIntent)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		this.strCodeMeaning = enumProcedureIntent.getValue();
		
		//set code Value
		setCodeValue(enumProcedureIntent);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumProcedureIntent);
	}
}
