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};

/// CobEncounter : Information about the encounter. - You can submit COB checks with the `30` service type code for Health Benefit Plan Coverage. This is the broadest service type code that covers all medical services and subtypes included in the patient’s health plan. - The service dates you provide **must** be within the past 2 years. COB checks don't support requests with dates outside of this range. - Don't send service dates that are in the future. Future service dates typically result in errors from the payer. - If you don't specify a service date (either a single day or a range of dates), Stedi defaults to using the current date.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CobEncounter {
    /// The beginning date of service. If you include this value, you must also include the `endDateOfService`.
    #[serde(rename = "beginningDateOfService", skip_serializing_if = "Option::is_none")]
    pub beginning_date_of_service: Option<String>,
    /// The date of service of the encounter.
    #[serde(rename = "dateOfService", skip_serializing_if = "Option::is_none")]
    pub date_of_service: Option<String>,
    /// The end date of service. If you include this value, you must also include the `beginningDateOfService`.
    #[serde(rename = "endDateOfService", skip_serializing_if = "Option::is_none")]
    pub end_date_of_service: Option<String>,
    #[serde(rename = "serviceTypeCode", skip_serializing_if = "Option::is_none")]
    pub service_type_code: Option<models::CobServiceTypeCode>,
}

impl CobEncounter {
    /// Information about the encounter. - You can submit COB checks with the `30` service type code for Health Benefit Plan Coverage. This is the broadest service type code that covers all medical services and subtypes included in the patient’s health plan. - The service dates you provide **must** be within the past 2 years. COB checks don't support requests with dates outside of this range. - Don't send service dates that are in the future. Future service dates typically result in errors from the payer. - If you don't specify a service date (either a single day or a range of dates), Stedi defaults to using the current date.
    pub fn new() -> CobEncounter {
        CobEncounter {
            beginning_date_of_service: None,
            date_of_service: None,
            end_date_of_service: None,
            service_type_code: None,
        }
    }
}