autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Stedi Healthcare
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2024-04-01
 * Contact: healthcare@stedi.com
 * Generated by: https://openapi-generator.tech
 */

use crate::healthcare::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OperatingPhysician {
    /// The physician's first name.
    #[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
    pub first_name: Option<String>,
    #[serde(rename = "identificationQualifierCode", skip_serializing_if = "Option::is_none")]
    pub identification_qualifier_code: Option<models::OperatingPhysicianIdentificationQualifierCode>,
    /// The physician's last name.
    #[serde(rename = "lastName")]
    pub last_name: String,
    /// The physician's middle name or initial.
    #[serde(rename = "middleName", skip_serializing_if = "Option::is_none")]
    pub middle_name: Option<String>,
    /// The individual [National Provider Identifier (NPI)](https://www.stedi.com/docs/healthcare/national-provider-identifier) assigned to the physician.
    #[serde(rename = "npi", skip_serializing_if = "Option::is_none")]
    pub npi: Option<String>,
    /// The physician's business name.
    #[serde(rename = "organizationName", skip_serializing_if = "Option::is_none")]
    pub organization_name: Option<String>,
    /// The identifier specified in `identificationQualifierCode`.  You can only include one secondary identifier for the provider.
    #[serde(rename = "secondaryIdentifier", skip_serializing_if = "Option::is_none")]
    pub secondary_identifier: Option<String>,
    /// The physician's name suffix, such as Jr. or III.
    #[serde(rename = "suffix", skip_serializing_if = "Option::is_none")]
    pub suffix: Option<String>,
}

impl OperatingPhysician {
    pub fn new(last_name: String) -> OperatingPhysician {
        OperatingPhysician {
            first_name: None,
            identification_qualifier_code: None,
            last_name,
            middle_name: None,
            npi: None,
            organization_name: None,
            secondary_identifier: None,
            suffix: None,
        }
    }
}