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


/**
 * This class represents ReferencedImagePurposesOfReference - CID7201
 */
public class ReferencedImagePurposesOfReference_CID7201 
{
	
	/**
	 * 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;

	/**
	 * Instantiates a new ReferencedImagePurposesOfReference_CID7201 Template 
	 */
	public ReferencedImagePurposesOfReference_CID7201()
	{

	}

	/**
	 * 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;
	}

	/**
	 * Sets the Code Value according to Code Meaning.
	 * @param enumReferencedImagePurposesOfReference Object of EnumCM_ReferencedImagePurposesOfReference represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_ReferencedImagePurposesOfReference enumReferencedImagePurposesOfReference)
	{
		switch(enumReferencedImagePurposesOfReference)
		{
		case LOCALIZER: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.LOCALIZER_121311.getValue(); break;
		case BIOPSY_LOCALIZER: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.BIOPSY_LOCALIZER_121312.getValue(); break;
		case OTHER_PARTIAL_VIEWS: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.OTHER_PARTIAL_VIEWS_121313.getValue(); break;
		case OTHER_IMAGE_OF_BIPLANE_PAIR: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.OTHER_IMAGE_OF_BIPLANE_PAIR_121314.getValue(); break;
		case OTHER_IMAGE_OF_STEREOSCOPIC_PAIR: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.OTHER_IMAGE_OF_STEREOSCOPIC_PAIR_121315.getValue(); break;
		case IMAGES_RELATED_TO_STANDALONE_OBJECT: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.IMAGES_RELATED_TO_STANDALONE_OBJECT_121316.getValue(); break;
		case SPECTROSCOPY: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.SPECTROSCOPY_121317.getValue(); break;
		case ANATOMIC_IMAGE: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.ANATOMIC_IMAGE_121338.getValue(); break;
		case FUNCTIONAL_IMAGE: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.FUNCTIONAL_IMAGE_121339.getValue(); break;
		case SPECTRAL_FILTERED_IMAGE: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.SPECTRAL_FILTERED_IMAGE_121340.getValue(); break;
		case DEVICE_LOCALIZER: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.DEVICE_LOCALIZER_121341.getValue(); break;
		case ACQUISITION_FRAMES_CORRESPONDING_TO_VOLUME: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.ACQUISITION_FRAMES_CORRESPONDING_TO_VOLUME_121346.getValue(); break;
		case VOLUMECORRESPONDINGTOSPATIALLY_RELATEDACQUISITIONFRAMES: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.VOLUMECORRESPONDINGTOSPATIALLY_RELATEDACQUISITIONFRAMES_121347.getValue(); break;
		case TEMPORAL_PREDECESSOR: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.TEMPORAL_PREDECESSOR_121348.getValue(); break;
		case TEMPORAL_SUCCESSOR: this.strCodeValue =EnumCV_ReferencedImagePurposesOfReference.TEMPORAL_SUCCESSOR_121349.getValue(); break;
		}
	}

	/**
	 * Sets the value for ReferencedImagePurposesOfReference
	 * @param enumReferencedImagePurposesOfReference Object of EnumCM_ReferencedImagePurposesOfReference.
	 */
	public void setReferencedImagePurposesOfReference(EnumCM_ReferencedImagePurposesOfReference enumReferencedImagePurposesOfReference)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumReferencedImagePurposesOfReference.getValue();
		this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumReferencedImagePurposesOfReference);
	}
}
