/*******************************************************************************
 *  Copyright 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.EnumDICOMSNOMEDMap;
import cdac.medinfo.sdk.dcm30_04.templates.enums.EnumCodingSchemeDesignator;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_ChestComponentCategories;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cm.EnumCM_QuantitativeDiagnosticImagingProcedures;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_QuantitativeDiagnosticImagingProcedures;


/**
 * This class represents QuantitativeDiagnosticImagingProcedures - CID100
 */
public class QuantitativeDiagnosticImagingProcedures_CID100 
{
	/**
	 * 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 QuantitativeDiagnosticImagingProcedures_CID2 Template 
	 */
	public QuantitativeDiagnosticImagingProcedures_CID100()
	{

	}

	/**
	 * 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 enumQuantitativeDiagnosticImagingProcedures Object of EnumCM_QuantitativeDiagnosticImagingProcedures represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_QuantitativeDiagnosticImagingProcedures enumQuantitativeDiagnosticImagingProcedures)
	{
		switch(enumQuantitativeDiagnosticImagingProcedures)
		{
		case MAGNETIC_RESONANCE_IMAGING_GUIDANCE: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.MAGNETIC_RESONANCE_IMAGING_GUIDANCE_P5_09051.getValue(); break;
		case MULTIPARAMETRIC_MRI: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.MULTIPARAMETRIC_MRI_126020.getValue(); break;
		case MULTIPARAMETRIC_MRI_OF_PROSTATE: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.MULTIPARAMETRIC_MRI_OF_PROSTATE_126021.getValue(); break;
		case MULTIPARAMETRIC_MRI_OF_WHOLE_BODY: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.MULTIPARAMETRIC_MRI_OF_WHOLE_BODY_126022.getValue(); break;
		case DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_KNEE: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_KNEE_P5_0907F.getValue(); break;
		case DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_PELVIS: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_PELVIS_P5_70694.getValue(); break;
		case PET_WHOLE_BODY: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.PET_WHOLE_BODY_44139_4.getValue(); break;
		case PET_CT_FDG_IMAGING_OF_WHOLE_BODY: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.PET_CT_FDG_IMAGING_OF_WHOLE_BODY_P5_080FF.getValue(); break;
		case PET_CT_MET_IMAGING_OF_WHOLE_BODY: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.PET_CT_MET_IMAGING_OF_WHOLE_BODY_P5_08118.getValue(); break;
		case CT_HEAD_PERFUSION_WITH_IV_CONTRAST: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.CT_HEAD_PERFUSION_WITH_IV_CONTRAST_RPID96.getValue(); break;
		case NM_HEAD_PERFUSION_BRAIN_SPECT: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.NM_HEAD_PERFUSION_BRAIN_SPECT_RPID5258.getValue(); break;
		case NM_HEAD_PERFUSION_BRAIN_PET_CT_AV_45: this.strCodeValue =EnumCV_QuantitativeDiagnosticImagingProcedures.NM_HEAD_PERFUSION_BRAIN_PET_CT_AV_45_RPID5427.getValue(); break;

		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumChestComponentCategories Object of EnumCM_ChestComponentCategories represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_QuantitativeDiagnosticImagingProcedures enumQuantitativeDiagnosticImagingProcedures)
	{
		switch(enumQuantitativeDiagnosticImagingProcedures)
		{
		case MAGNETIC_RESONANCE_IMAGING_GUIDANCE: this.strSNOMEDCTID = EnumDICOMSNOMEDMap.MAGNETIC_RESONANCE_IMAGING_GUIDANCE.getSNOMEDCTID();break;
		case DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_KNEE: this.strSNOMEDCTID = EnumDICOMSNOMEDMap.DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_KNEE.getSNOMEDCTID();break;
		case DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_PELVIS: this.strSNOMEDCTID = EnumDICOMSNOMEDMap.DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_PELVIS.getSNOMEDCTID();break;
		case PET_CT_FDG_IMAGING_OF_WHOLE_BODY: this.strSNOMEDCTID = EnumDICOMSNOMEDMap.PET_CT_FDG_IMAGING_OF_WHOLE_BODY.getSNOMEDCTID();break;
		case PET_CT_MET_IMAGING_OF_WHOLE_BODY: this.strSNOMEDCTID = EnumDICOMSNOMEDMap.PET_CT_MET_IMAGING_OF_WHOLE_BODY.getSNOMEDCTID();break;
		}
	}
	/**
	 * Sets the value for QuantitativeDiagnosticImagingProcedures
	 * @param enumQuantitativeDiagnosticImagingProcedures Enum for QuantitativeDiagnosticImagingProcedures
	 */
	public void setQuantitativeDiagnosticImagingProcedures(EnumCM_QuantitativeDiagnosticImagingProcedures enumQuantitativeDiagnosticImagingProcedures)
	{
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.MAGNETIC_RESONANCE_IMAGING_GUIDANCE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.PET_CT_FDG_IMAGING_OF_WHOLE_BODY.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.PET_CT_MET_IMAGING_OF_WHOLE_BODY.getValue())
			    || strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_KNEE.getValue())
				|| strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.DYNAMIC_MAGNETIC_RESONANCE_IMAGING_OF_PELVIS.getValue()))
				{
					this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
				}
				else if( strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.MULTIPARAMETRIC_MRI.getValue())
						||strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.MULTIPARAMETRIC_MRI_OF_PROSTATE.getValue())
						||strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.MULTIPARAMETRIC_MRI_OF_WHOLE_BODY.getValue()))
						{
							this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
						}
				else if( strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.CT_HEAD_PERFUSION_WITH_IV_CONTRAST.getValue())||
						strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.NM_HEAD_PERFUSION_BRAIN_PET_CT_AV_45.getValue())
						||strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.NM_HEAD_PERFUSION_BRAIN_SPECT.getValue()))
						{
						this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.RADLEX.getValue();
						}
				else if( strCodeMeaning.equalsIgnoreCase(EnumCM_QuantitativeDiagnosticImagingProcedures.PET_WHOLE_BODY.getValue()))
						{
						this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.RADLEX.getValue();
						}	
		
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumQuantitativeDiagnosticImagingProcedures);
	}

		
}
