use serde::{Deserialize, Serialize};

/// HealthCareDiagnosisCode : Information about the patient's healthcare diagnosis.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct HealthCareDiagnosisCode {
    /// The diagnosis code. The decimal points are omitted in diagnosis codes - the decimal point is assumed.
    #[serde(rename = "diagnosisCode", skip_serializing_if = "Option::is_none")]
    pub diagnosis_code: Option<String>,
    /// The type of diagnosis code provided. It can be `ABK` - International Classification of Diseases Clinical Modification (ICD-10-CM) Principal Diagnosis or `BK` - International Classification of Diseases Clinical Modification (ICD-9-CM) Principal Diagnosis.
    #[serde(rename = "diagnosisTypeCode", skip_serializing_if = "Option::is_none")]
    pub diagnosis_type_code: Option<String>,
}

impl HealthCareDiagnosisCode {
    /// Information about the patient's healthcare diagnosis.
    pub fn new() -> HealthCareDiagnosisCode {
        HealthCareDiagnosisCode {
            diagnosis_code: None,
            diagnosis_type_code: None,
        }
    }
}
