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


/**
 * This class represents OBGYNMaternalRiskFactors - CID6088
 */
public class OBGYNMaternalRiskFactors_CID6088 
{
	
	/**
	 * 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;
	
	/**
	 * Retrieves the value for SNOMED-CT ID.
	 * @return String value for SNOMED-CT ID.
	 */
	public String getSNOMEDCTID() 
	{
		return strSNOMEDCTID;
	}
	/**
	 * Instantiates a new OBGYNMaternalRiskFactors_CID6088 Template 
	 */
	public OBGYNMaternalRiskFactors_CID6088()
	{

	}

	/**
	 * 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 enumOBGYNMaternalRiskFactors Object of EnumCM_OBGYNMaternalRiskFactors represents Code Meaning.
	 */
	private void setCodeValue(EnumCM_OBGYNMaternalRiskFactors enumOBGYNMaternalRiskFactors)
	{
		switch(enumOBGYNMaternalRiskFactors)
		{
		case HISTORY_OF__DIABETES_MELLITUS: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF__DIABETES_MELLITUS_G_023F.getValue(); break;
		case HISTORY_OF__HYPERTENSION: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF__HYPERTENSION_G_0269.getValue(); break;
		case HISTORY_OF__OBESITY: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF__OBESITY_G_0244.getValue(); break;
		case HISTORY_OF__REGULAR_MEDICATION: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF__REGULAR_MEDICATION_G_02D0.getValue(); break;
		case HISTORY_OF_SUBSTANCE_ABUSE: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF_SUBSTANCE_ABUSE_G_0338.getValue(); break;
		case HISTORY_OF__CARDIOVASCULAR_DISEASE: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF__CARDIOVASCULAR_DISEASE_G_0335.getValue(); break;
		case UTERINE_MALFORMATIONS: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.UTERINE_MALFORMATIONS_111565.getValue(); break;
		case HISTORY_OF__ECTOPIC_PREGNANCY: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF__ECTOPIC_PREGNANCY_G_0304.getValue(); break;
		case SPONTANEOUS_ABORTION: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.SPONTANEOUS_ABORTION_111566.getValue(); break;
		case GYNECOLOGIC_CONDITION: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.GYNECOLOGIC_CONDITION_111567.getValue(); break;
		case GYNECOLOGIC_SURGERY: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.GYNECOLOGIC_SURGERY_111568.getValue(); break;
		case HISTORY_OF__ECLAMPSIA: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF__ECLAMPSIA_G_031E.getValue(); break;
		case HISTORY_OF__SEVERE_PRE_ECLAMPSIA: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF__SEVERE_PRE_ECLAMPSIA_G_031F.getValue(); break;
		case PREVIOUS_LBW_OR_IUGR_BIRTH: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.PREVIOUS_LBW_OR_IUGR_BIRTH_111569.getValue(); break;
		case PREVIOUS_FETAL_MALFORMATION_SYNDROME: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.PREVIOUS_FETAL_MALFORMATION_SYNDROME_111570.getValue(); break;
		case HISTORY_OF__PREMATURE_DELIVERY: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF__PREMATURE_DELIVERY_G_0305.getValue(); break;
		case PREVIOUS_RH_NEGATIVE_OR_BLOOD_DYSCRASIA_AT_BIRTH: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.PREVIOUS_RH_NEGATIVE_OR_BLOOD_DYSCRASIA_AT_BIRTH_111571.getValue(); break;
		case HISTORY_OF_INFERTILITY: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF_INFERTILITY_G_0319.getValue(); break;
		case HISTORY_OF_MULTIPLE_FETUSES: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.HISTORY_OF_MULTIPLE_FETUSES_111572.getValue(); break;
		case MULTIPLE_PREGNANCY: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.MULTIPLE_PREGNANCY_D8_20100.getValue(); break;
		case CURRENT_PREGNANCY_KNOWN_OR_SUSPECTED_MALFORMATIONS_SYNDROMES: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.CURRENT_PREGNANCY_KNOWN_OR_SUSPECTED_MALFORMATIONS_SYNDROMES_111573.getValue(); break;
		case FAMILY_HISTORY_FETAL_MALFORMATION_SYNDROME: this.strCodeValue =EnumCV_OBGYNMaternalRiskFactors.FAMILY_HISTORY_FETAL_MALFORMATION_SYNDROME_111574.getValue(); break;
		}
	}
	/**
	 * Sets the SNOMED-CT ID.
	 * @param enumOBGYNMaternalRiskFactors Object of EnumCM_OBGYNMaternalRiskFactors represents Code Meaning.
	 */
	private void setSNOMEDCTID(EnumCM_OBGYNMaternalRiskFactors enumOBGYNMaternalRiskFactors)
	{
		switch(enumOBGYNMaternalRiskFactors)
		{
		case HISTORY_OF__DIABETES_MELLITUS : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF__DIABETES_MELLITUS.getSNOMEDCTID(); break;
		case HISTORY_OF__HYPERTENSION : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF__HYPERTENSION.getSNOMEDCTID(); break;
		case HISTORY_OF__OBESITY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF__OBESITY.getSNOMEDCTID(); break;
		case HISTORY_OF__REGULAR_MEDICATION : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF__REGULAR_MEDICATION.getSNOMEDCTID(); break;
		case HISTORY_OF_SUBSTANCE_ABUSE : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF_SUBSTANCE_ABUSE.getSNOMEDCTID(); break;
		case HISTORY_OF__CARDIOVASCULAR_DISEASE : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF__CARDIOVASCULAR_DISEASE.getSNOMEDCTID(); break;
		case HISTORY_OF__ECTOPIC_PREGNANCY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF__ECTOPIC_PREGNANCY.getSNOMEDCTID(); break;
		case HISTORY_OF__ECLAMPSIA : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF__ECLAMPSIA.getSNOMEDCTID(); break;
		case HISTORY_OF__SEVERE_PRE_ECLAMPSIA : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF__SEVERE_PRE_ECLAMPSIA.getSNOMEDCTID(); break;
		case HISTORY_OF__PREMATURE_DELIVERY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF__PREMATURE_DELIVERY.getSNOMEDCTID(); break;
		case HISTORY_OF_INFERTILITY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.HISTORY_OF_INFERTILITY.getSNOMEDCTID(); break;
		case MULTIPLE_PREGNANCY : this.strSNOMEDCTID =BreastGYNMammoSNOMEDMap.MULTIPLE_PREGNANCY.getSNOMEDCTID(); break;
		}
	}

	/**
	 * Sets the value for OBGYNMaternalRiskFactors
	 * @param enumOBGYNMaternalRiskFactors Object of EnumCM_OBGYNMaternalRiskFactors.
	 */
	public void setOBGYNMaternalRiskFactors(EnumCM_OBGYNMaternalRiskFactors enumOBGYNMaternalRiskFactors)
	{
		/**
		 * Retrieves the value for CodingSchemeDesignator, CodingSchemeVersion and Code Meaning and 
		 * sets the Code Value according to Code Meaning.
		 */
		this.strCodeMeaning = enumOBGYNMaternalRiskFactors.getValue();
		if(strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.UTERINE_MALFORMATIONS.getValue())
		   || strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.SPONTANEOUS_ABORTION.getValue())
		   || strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.GYNECOLOGIC_CONDITION.getValue())
		   || strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.GYNECOLOGIC_SURGERY.getValue())
		   || strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.PREVIOUS_LBW_OR_IUGR_BIRTH.getValue())
		   || strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.PREVIOUS_FETAL_MALFORMATION_SYNDROME.getValue())
		   || strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.PREVIOUS_RH_NEGATIVE_OR_BLOOD_DYSCRASIA_AT_BIRTH.getValue())
		   || strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.HISTORY_OF_MULTIPLE_FETUSES.getValue())
		   || strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.CURRENT_PREGNANCY_KNOWN_OR_SUSPECTED_MALFORMATIONS_SYNDROMES.getValue())
		   || strCodeMeaning.equalsIgnoreCase(EnumCM_OBGYNMaternalRiskFactors.FAMILY_HISTORY_FETAL_MALFORMATION_SYNDROME.getValue()))
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.DCM.getValue();
		else
			this.strCodingSchemeDesignator = EnumCodingSchemeDesignator.SRT.getValue();
		
		/**
		 * set code Value
		 */
		setCodeValue(enumOBGYNMaternalRiskFactors);
		/**
		 * set SNOMED-CT ID
		 */
		setSNOMEDCTID(enumOBGYNMaternalRiskFactors);
	}
}
