/*******************************************************************************
 *  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_RouteOfAdministration;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_RouteOfAdministration;
import cdac.medinfo.sdk.dcm30_04.templates.dicomsnomedmap.EnumDICOMSNOMEDMap;

/**
 * This class represents RouteOfAdministration CID11
 */
public class RouteOfAdministration_CID11 {

	/**
	 * 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 RouteOfAdministration_CID11 Template 
	 */
	public RouteOfAdministration_CID11()
	{

	}

	/**
	 * 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 enumRouteOfAdministration Object of EnumCM_RouteOfAdministration represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_RouteOfAdministration enumRouteOfAdministration)
	{
		switch(enumRouteOfAdministration) 
		{
		case INTRAVENOUS_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRAVENOUS_ROUTE_G_D101.getValue(); break;
		case INTRA_ARTERIAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRA_ARTERIAL_ROUTE_G_D102.getValue(); break;
		case INTRAMUSCULAR_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRAMUSCULAR_ROUTE_G_D103.getValue(); break;
		case SUBCUTANEOUS_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.SUBCUTANEOUS_ROUTE_G_D104.getValue(); break;
		case INTRACUTANEOUS_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRACUTANEOUS_ROUTE_G_D105.getValue(); break;
		case INTRAPERITONEAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRAPERITONEAL_ROUTE_G_D106.getValue(); break;
		case INTRAMEDULLARY_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRAMEDULLARY_ROUTE_G_D107.getValue(); break;
		case INTRATHECAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRATHECAL_ROUTE_G_D108.getValue(); break;
		case INTRA_ARTICULAR_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRA_ARTICULAR_ROUTE_G_D109.getValue(); break;
		case INTRAEPITHELIAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRAEPITHELIAL_ROUTE_G_D111.getValue(); break;
		case TOPICAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.TOPICAL_ROUTE_G_D112.getValue(); break;
		case ORAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.ORAL_ROUTE_G_D140.getValue(); break;
		case TRANSLUMINAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.TRANSLUMINAL_ROUTE_G_D142.getValue(); break;
		case INTRALUMINAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRALUMINAL_ROUTE_G_D144.getValue(); break;
		case EXTRALUMINAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.EXTRALUMINAL_ROUTE_G_D146.getValue(); break;
		case BY_INHALATION: this.strCodeValue =EnumCV_RouteOfAdministration.BY_INHALATION_G_D150.getValue(); break;
		case PER_RECTUM: this.strCodeValue =EnumCV_RouteOfAdministration.PER_RECTUM_G_D160.getValue(); break;
		case VAGINAL_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.VAGINAL_ROUTE_G_D164.getValue(); break;
		case INTRACORONARY_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRACORONARY_ROUTE_G_D17C.getValue(); break;
		case INTRACARDIAC_ROUTE: this.strCodeValue =EnumCV_RouteOfAdministration.INTRACARDIAC_ROUTE_G_D173.getValue(); break;
		case INTRAVENTRICULAR_ROUTE_CARDIAC: this.strCodeValue =EnumCV_RouteOfAdministration.INTRAVENTRICULAR_ROUTE_CARDIAC_R_F2C86.getValue(); break;
		}
	}

	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumRouteOfAdministration Object of EnumCM_RouteOfAdministration represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_RouteOfAdministration enumRouteOfAdministration)
	{
		switch(enumRouteOfAdministration)
		{
		case INTRAVENOUS_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRAVENOUS_ROUTE.getSNOMEDCTID(); break;
		case INTRA_ARTERIAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRA_ARTERIAL_ROUTE.getSNOMEDCTID(); break;
		case INTRAMUSCULAR_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRAMUSCULAR_ROUTE.getSNOMEDCTID(); break;
		case SUBCUTANEOUS_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.SUBCUTANEOUS_ROUTE.getSNOMEDCTID(); break;
		case INTRACUTANEOUS_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRACUTANEOUS_ROUTE.getSNOMEDCTID(); break;
		case INTRAPERITONEAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRAPERITONEAL_ROUTE.getSNOMEDCTID(); break;
		case INTRAMEDULLARY_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRAMEDULLARY_ROUTE.getSNOMEDCTID(); break;
		case INTRATHECAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRATHECAL_ROUTE.getSNOMEDCTID(); break;
		case INTRA_ARTICULAR_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRA_ARTICULAR_ROUTE.getSNOMEDCTID(); break;
		case INTRAEPITHELIAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRAEPITHELIAL_ROUTE.getSNOMEDCTID(); break;
		case TOPICAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.TOPICAL_ROUTE.getSNOMEDCTID(); break;
		case ORAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.ORAL_ROUTE.getSNOMEDCTID(); break;
		case TRANSLUMINAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.TRANSLUMINAL_ROUTE.getSNOMEDCTID(); break;
		case INTRALUMINAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRALUMINAL_ROUTE.getSNOMEDCTID(); break;
		case EXTRALUMINAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.EXTRALUMINAL_ROUTE.getSNOMEDCTID(); break;
		case BY_INHALATION : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.BY_INHALATION.getSNOMEDCTID(); break;
		case PER_RECTUM : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.PER_RECTUM.getSNOMEDCTID(); break;
		case VAGINAL_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.VAGINAL_ROUTE.getSNOMEDCTID(); break;
		case INTRACORONARY_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRACORONARY_ROUTE.getSNOMEDCTID(); break;
		case INTRACARDIAC_ROUTE : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRACARDIAC_ROUTE.getSNOMEDCTID(); break;
		case INTRAVENTRICULAR_ROUTE_CARDIAC : this.strSNOMEDCTID =EnumDICOMSNOMEDMap.INTRAVENTRICULAR_ROUTE_CARDIAC.getSNOMEDCTID(); break;
		}
	}

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

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