/*
* 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 Cob {
/// If set to `true`, the COB response contains benefits overlap. A benefits overlap indicates that the patient has active coverage from two or more payers for the same service type code, including the subtypes of medical coverage.
#[serde(rename = "benefitOverlap", skip_serializing_if = "Option::is_none")]
pub benefit_overlap: Option<bool>,
/// The classification for the benefits that have been discovered in the COB response. Stedi returns one of the following values: - `CobInstanceExistsPrimacyDetermined`: COB Instance Exists and Primacy was determined - `CobInstanceExistsPrimacyUndetermined`: COB Instance Exists and Primacy was NOT determined - `CoverageOverlapNoBenefitOverlap`: Coverage Overlap detected with no Benefit Overlap - `CoverageOverlapExistsNotSubjectToCob`: Coverage Overlap exists and is not subject to COB - `MemberFoundNoCob`: Member found, no COB found
#[serde(rename = "classification", skip_serializing_if = "Option::is_none")]
pub classification: Option<String>,
/// If set to `true`, the COB response contains a coverage overlap, meaning that the patient has active coverage with two or more payers during the service date submitted in the COB request. - Coverage overlap can be for coverages from the same payer if the member ID is different between the two coverages. - A coverage overlap is necessary for a COB instance to exist. - A coverage overlap can exist without there being a COB instance if either of the two coverages is not subject to COB for any reason.
#[serde(rename = "coverageOverlap", skip_serializing_if = "Option::is_none")]
pub coverage_overlap: Option<bool>,
/// If set to `true`, the COB response contains at least one coordination of benefits instance.
#[serde(rename = "instanceExists", skip_serializing_if = "Option::is_none")]
pub instance_exists: Option<bool>,
/// If set to `true`, Stedi was able to determine the primary payer for the patient. If Stedi was unable to determine the primary payer, you must contact the payers directly to determine primacy.
#[serde(rename = "primacyDetermined", skip_serializing_if = "Option::is_none")]
pub primacy_determined: Option<bool>,
}
impl Cob {
pub fn new() -> Cob {
Cob {
benefit_overlap: None,
classification: None,
coverage_overlap: None,
instance_exists: None,
primacy_determined: None,
}
}
}