/*******************************************************************************
 *  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_PatientStatusAndEvents;
import cdac.medinfo.sdk.dcm30_04.templates.enums.cv.EnumCV_PatientStatusAndEvents;


/**
 * This class represents PatientStatusAndEvents - CID3402
 */
public class PatientStatusAndEvents_CID3402 
{
	
	/**
	 * 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 PatientStatusAndEvents_CID3402 Template 
	 */
	public PatientStatusAndEvents_CID3402()
	{

	}

	/**
	 * 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 enumPatientStatusAndEvents Object of EnumCM_PatientStatusAndEvents represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_PatientStatusAndEvents enumPatientStatusAndEvents)
	{
		switch(enumPatientStatusAndEvents)
		{
		case PATIENT_CALLED_TO_PROCEDURE_ROOM: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_CALLED_TO_PROCEDURE_ROOM_122001.getValue(); break;
		case PATIENT_ADMITTED_TO_PROCEDURE_ROOM: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_ADMITTED_TO_PROCEDURE_ROOM_122002.getValue(); break;
		case PATIENT_GIVEN_PRE_PROCEDURE_INSTRUCTION: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_GIVEN_PRE_PROCEDURE_INSTRUCTION_122003.getValue(); break;
		case PATIENT_INFORMED_CONSENT_GIVEN: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_INFORMED_CONSENT_GIVEN_122004.getValue(); break;
		case PATIENT_ADVANCE_DIRECTIVE_GIVEN: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_ADVANCE_DIRECTIVE_GIVEN_122005.getValue(); break;
		case NIL_PER_OS_NPO_STATUS_CONFIRMED: this.strCodeValue =EnumCV_PatientStatusAndEvents.NIL_PER_OS_NPO_STATUS_CONFIRMED_122006.getValue(); break;
		case PATIENT_ASSISTED_TO_TABLE: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_ASSISTED_TO_TABLE_122007.getValue(); break;
		case PATIENT_PREPPED_AND_DRAPED: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_PREPPED_AND_DRAPED_122008.getValue(); break;
		case PATIENT_CONNECTED_TO_CONTINUOUS_MONITORING: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_CONNECTED_TO_CONTINUOUS_MONITORING_122009.getValue(); break;
		case PATIENT_TRANSFERRED_TO_HOLDING_AREA: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_TRANSFERRED_TO_HOLDING_AREA_122010.getValue(); break;
		case PATIENT_TRANSFERRED_TO_SURGERY: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_TRANSFERRED_TO_SURGERY_122011.getValue(); break;
		case PATIENT_TRANSFERRED_TO_CCU: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_TRANSFERRED_TO_CCU_122012.getValue(); break;
		case PATIENT_DISORIENTED: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_DISORIENTED_122020.getValue(); break;
		case PATIENT_REPORTS_NAUSEA: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_REPORTS_NAUSEA_122021.getValue(); break;
		case PATIENT_REPORTS_DISCOMFORT: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_REPORTS_DISCOMFORT_122022.getValue(); break;
		case PATIENT_REPORTS_CHEST_PAIN: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_REPORTS_CHEST_PAIN_122023.getValue(); break;
		case PATIENT_REPORTS_NO_PAIN: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_REPORTS_NO_PAIN_122024.getValue(); break;
		case PATIENT_ALERT: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_ALERT_122025.getValue(); break;
		case PATIENT_RESTLESS: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_RESTLESS_122026.getValue(); break;
		case PATIENT_SEDATED: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_SEDATED_122027.getValue(); break;
		case PATIENT_ASLEEP: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_ASLEEP_122028.getValue(); break;
		case PATIENT_UNRESPONSIVE: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_UNRESPONSIVE_122029.getValue(); break;
		case PATIENT_HAS_RESPIRATORY_DIFFICULTY: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_HAS_RESPIRATORY_DIFFICULTY_122030.getValue(); break;
		case PATIENT_COUGHED: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_COUGHED_122031.getValue(); break;
		case PATIENT_DISCONNECTED_FROM_CONTINUOUS_MONITORING: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_DISCONNECTED_FROM_CONTINUOUS_MONITORING_122032.getValue(); break;
		case HEMOSTASIS_ACHIEVED: this.strCodeValue =EnumCV_PatientStatusAndEvents.HEMOSTASIS_ACHIEVED_122033.getValue(); break;
		case HEMOSTASIS_NOT_ACHIEVED__OOZING: this.strCodeValue =EnumCV_PatientStatusAndEvents.HEMOSTASIS_NOT_ACHIEVED__OOZING_122034.getValue(); break;
		case HEMOSTASIS_NOT_ACHIEVED__ACTIVELY_BLEEDING: this.strCodeValue =EnumCV_PatientStatusAndEvents.HEMOSTASIS_NOT_ACHIEVED__ACTIVELY_BLEEDING_122035.getValue(); break;
		case PATIENT_GIVEN_POST_PROCEDURE_INSTRUCTION: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_GIVEN_POST_PROCEDURE_INSTRUCTION_122036.getValue(); break;
		case PATIENT_PRONOUNCED_DEAD: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_PRONOUNCED_DEAD_122038.getValue(); break;
		case PATIENT_TRANSFERRED_TO_MORGUE: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_TRANSFERRED_TO_MORGUE_122039.getValue(); break;
		case PATIENT_DISCHARGED_FROM_DEPARTMENT: this.strCodeValue =EnumCV_PatientStatusAndEvents.PATIENT_DISCHARGED_FROM_DEPARTMENT_122037.getValue(); break;
		}
	}

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