/*******************************************************************************
 *  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.BreastGYNMammoSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ViewForMammography;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_ViewForMammography;


/**
 * This class represents ViewForMammography - CID4014
 */
public class ViewForMammography_CID4014 
{
	
	/**
	 * 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 ViewForMammography_CID4014 Template 
	 */
	public ViewForMammography_CID4014()
	{

	}

	/**
	 * 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 SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}
	/**
	 * Retrieves the value for Coding Scheme Designator.
	 * @return String value for Coding Scheme Designator.
	 */
	public String getCodingSchemeDesignator() 
	{
		return strCodingSchemeDesignator;
	}

	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumViewForMammography Object of EnumCM_ViewForMammography represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ViewForMammography enumViewForMammography)
	{
		switch(enumViewForMammography) 
		{
		case MEDIO_LATERAL: this.strCodeValue =EnumCV_ViewForMammography.MEDIO_LATERAL_R_10224.getValue(); break;
		case MEDIO_LATERAL_OBLIQUE: this.strCodeValue =EnumCV_ViewForMammography.MEDIO_LATERAL_OBLIQUE_R_10226.getValue(); break;
		case LATERO_MEDIAL: this.strCodeValue =EnumCV_ViewForMammography.LATERO_MEDIAL_R_10228.getValue(); break;
		case LATERO_MEDIAL_OBLIQUE: this.strCodeValue =EnumCV_ViewForMammography.LATERO_MEDIAL_OBLIQUE_R_10230.getValue(); break;
		case CRANIO_CAUDAL: this.strCodeValue =EnumCV_ViewForMammography.CRANIO_CAUDAL_R_10242.getValue(); break;
		case CAUDO_CRANIAL_FROM_BELOW: this.strCodeValue =EnumCV_ViewForMammography.CAUDO_CRANIAL_FROM_BELOW_R_10244.getValue(); break;
		case SUPEROLATERAL_TO_INFEROMEDIAL_OBLIQUE: this.strCodeValue =EnumCV_ViewForMammography.SUPEROLATERAL_TO_INFEROMEDIAL_OBLIQUE_R_102D0.getValue(); break;
		case INFEROMEDIAL_TO_SUPEROLATERAL_OBLIQUE: this.strCodeValue =EnumCV_ViewForMammography.INFEROMEDIAL_TO_SUPEROLATERAL_OBLIQUE_R_40AAA.getValue(); break;
		case CRANIO_CAUDAL_EXAGGERATED_LATERALLY: this.strCodeValue =EnumCV_ViewForMammography.CRANIO_CAUDAL_EXAGGERATED_LATERALLY_R_1024A.getValue(); break;
		case CRANIO_CAUDAL_EXAGGERATED_MEDIALLY: this.strCodeValue =EnumCV_ViewForMammography.CRANIO_CAUDAL_EXAGGERATED_MEDIALLY_R_1024B.getValue(); break;
		case TISSUE_SPECIMEN_FROM_BREAST: this.strCodeValue =EnumCV_ViewForMammography.TISSUE_SPECIMEN_FROM_BREAST_G_8310.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumViewForMammography Object of EnumCM_ViewForMammography represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_ViewForMammography enumViewForMammography)
	{
		switch(enumViewForMammography)
		{
		case MEDIO_LATERAL : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.MEDIO_LATERAL.getSNOMEDCTID(); break;
		case MEDIO_LATERAL_OBLIQUE : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.MEDIO_LATERAL_OBLIQUE.getSNOMEDCTID(); break;
		case LATERO_MEDIAL : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.LATERO_MEDIAL.getSNOMEDCTID(); break;
		case LATERO_MEDIAL_OBLIQUE : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.LATERO_MEDIAL_OBLIQUE.getSNOMEDCTID(); break;
		case CRANIO_CAUDAL : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.CRANIO_CAUDAL.getSNOMEDCTID(); break;
		case CAUDO_CRANIAL_FROM_BELOW : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.CAUDO_CRANIAL_FROM_BELOW.getSNOMEDCTID(); break;
		case SUPEROLATERAL_TO_INFEROMEDIAL_OBLIQUE : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.SUPEROLATERAL_TO_INFEROMEDIAL_OBLIQUE.getSNOMEDCTID(); break;
		case INFEROMEDIAL_TO_SUPEROLATERAL_OBLIQUE : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.INFEROMEDIAL_TO_SUPEROLATERAL_OBLIQUE.getSNOMEDCTID(); break;
		case CRANIO_CAUDAL_EXAGGERATED_LATERALLY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.CRANIO_CAUDAL_EXAGGERATED_LATERALLY.getSNOMEDCTID(); break;
		case CRANIO_CAUDAL_EXAGGERATED_MEDIALLY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.CRANIO_CAUDAL_EXAGGERATED_MEDIALLY.getSNOMEDCTID(); break;
		case TISSUE_SPECIMEN_FROM_BREAST : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.TISSUE_SPECIMEN_FROM_BREAST.getSNOMEDCTID(); break;
		}
	}
	/**
	 * Sets the value for ViewForMammography
	 * @param enumViewForMammography Object of EnumCM_ViewForMammography.
	 */
	public void setViewForMammography(EnumCM_ViewForMammography enumViewForMammography)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumViewForMammography.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		/**
		 * set code Value
		 */
		setCodeValue(enumViewForMammography);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumViewForMammography);
	}
}
