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 PriorAuthorization {
    /// This must match the value in `claimInformation.otherSubscriberInformation.otherPayerName.otherPayerIdentifier`.
    #[serde(rename = "otherPayerPrimaryIdentifier", skip_serializing_if = "Option::is_none")]
    pub other_payer_primary_identifier: Option<String>,
    /// A prior authorization (preauthorization) number that applies to this service line.  **Important**: Only use this property for service-level prior authorization numbers that differ from the claim-level authorization (`claimInformation.claimSupplementalInformation.priorAuthorizationNumber`).
    #[serde(rename = "priorAuthorizationOrReferralNumber")]
    pub prior_authorization_or_referral_number: String,
}

impl PriorAuthorization {
    pub fn new(prior_authorization_or_referral_number: String) -> PriorAuthorization {
        PriorAuthorization {
            other_payer_primary_identifier: None,
            prior_authorization_or_referral_number,
        }
    }
}