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

/**
 * This class represents ImagingProcedures CID3428
 */
public class ImagingProcedures_CID3428 {

	/**
	 * 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 SNOMED CT ID for template.
	 */
	private String strSNOMEDCTID = null;
	/**
	 * Instantiates a new ImagingProcedures_CID3428 Template 
	 */
	public ImagingProcedures_CID3428()
	{

	}

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

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

	/**
	 * Retrieves the value for Coding Scheme Designator.
	 * @return String value for Coding Scheme Designator.
	 */
	public String getCodingSchemeDesignator() 
	{
		return strCodingSchemeDesignator;
	}
	
	/**
	 * Retrieves the value for SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}
	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumImagingProcedures Object of EnumCM_ImagingProcedures represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ImagingProcedures enumImagingProcedures)
	{
		switch(enumImagingProcedures)
		{
		case ANGIOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.ANGIOGRAPHY_P5_009A0.getValue(); break;
		case AORTOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.AORTOGRAPHY_P5_32130.getValue(); break;
		case CORONARY_ARTERIOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.CORONARY_ARTERIOGRAPHY_P5_30100.getValue(); break;
		case CARDIAC_VENTRICULOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.CARDIAC_VENTRICULOGRAPHY_P5_3003A.getValue(); break;
		case LEFT_VENTRICULOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.LEFT_VENTRICULOGRAPHY_P5_30041.getValue(); break;
		case RIGHT_VENTRICULOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.RIGHT_VENTRICULOGRAPHY_P5_3003F.getValue(); break;
		case BYPASS_GRAFT_ANGIOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.BYPASS_GRAFT_ANGIOGRAPHY_P5_30107.getValue(); break;
		case ARTERIAL_CONDUIT_ANGIOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.ARTERIAL_CONDUIT_ANGIOGRAPHY_122058.getValue(); break;
		case TRANSESOPHAGEALECHOCARDIOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.TRANSESOPHAGEALECHOCARDIOGRAPHY_P5_B3002.getValue(); break;
		case TRANSTHORACIC_ECHOCARDIOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.TRANSTHORACIC_ECHOCARDIOGRAPHY_P5_B3003.getValue(); break;
		case EPICARDIAL_ECHOCARDIOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.EPICARDIAL_ECHOCARDIOGRAPHY_P5_B3004.getValue(); break;
		case INTRAVASCULAR_ULTRASOUND: this.strCodeValue =EnumCV_ImagingProcedures.INTRAVASCULAR_ULTRASOUND_P5_B001D.getValue(); break;
		case INTRACARDIAC_ECHOCARDIOGRAPHY: this.strCodeValue =EnumCV_ImagingProcedures.INTRACARDIAC_ECHOCARDIOGRAPHY_P5_B3006.getValue(); break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumImagingProcedures Object of EnumCM_ImagingProcedures represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_ImagingProcedures enumImagingProcedures)
	{
		switch(enumImagingProcedures)
		{
		case ANGIOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.ANGIOGRAPHY.getSNOMEDCTID(); break;
		case AORTOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.AORTOGRAPHY.getSNOMEDCTID(); break;
		case CORONARY_ARTERIOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.CORONARY_ARTERIOGRAPHY.getSNOMEDCTID(); break;
		case CARDIAC_VENTRICULOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.CARDIAC_VENTRICULOGRAPHY.getSNOMEDCTID(); break;
		case LEFT_VENTRICULOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.LEFT_VENTRICULOGRAPHY.getSNOMEDCTID(); break;
		case RIGHT_VENTRICULOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.RIGHT_VENTRICULOGRAPHY.getSNOMEDCTID(); break;
		case BYPASS_GRAFT_ANGIOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.BYPASS_GRAFT_ANGIOGRAPHY.getSNOMEDCTID(); break;
		case ARTERIAL_CONDUIT_ANGIOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.ARTERIAL_CONDUIT_ANGIOGRAPHY.getSNOMEDCTID(); break;
		case TRANSESOPHAGEALECHOCARDIOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.TRANSESOPHAGEALECHOCARDIOGRAPHY.getSNOMEDCTID(); break;
		case TRANSTHORACIC_ECHOCARDIOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.TRANSTHORACIC_ECHOCARDIOGRAPHY.getSNOMEDCTID(); break;
		case EPICARDIAL_ECHOCARDIOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.EPICARDIAL_ECHOCARDIOGRAPHY.getSNOMEDCTID(); break;
		case INTRAVASCULAR_ULTRASOUND : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.INTRAVASCULAR_ULTRASOUND.getSNOMEDCTID(); break;
		case INTRACARDIAC_ECHOCARDIOGRAPHY : this.strSNOMEDCTID =EnumRadiologySNOMEDMap.INTRACARDIAC_ECHOCARDIOGRAPHY.getSNOMEDCTID(); break;
		}
	}

	/**
	 * Sets the value for ImagingProcedures
	 * @param enumImagingProcedures Object of EnumCM_ImagingProcedures.
	 */
	public void setImagingProcedures(EnumCM_ImagingProcedures enumImagingProcedures)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumImagingProcedures.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumImagingProcedures);

		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumImagingProcedures);
	}
}
