1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
* Stedi Manager
*
* 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::manager::models;
use serde::{Deserialize, Serialize};
/// ResponseProvider : Information about the entity that submitted the original eligibility check request. This may be an individual practitioner, a medical group, a hospital, or another type of healthcare provider. This object will always include at least one identifier, such as the provider's [NPI](https://www.stedi.com/docs/healthcare/national-provider-identifier), tax ID, or EIN.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ResponseProvider {
#[serde(rename = "aaaErrors", skip_serializing_if = "Option::is_none")]
pub aaa_errors: Option<Vec<models::EligibilityCheckProviderError>>,
/// The provider's contact information.
#[serde(rename = "address", skip_serializing_if = "Option::is_none")]
pub address: Option<Box<models::Address>>,
/// Deprecated; The provider's identification number for the entity receiving the benefits information. This shape is deprecated: This property is no longer used.
#[serde(rename = "employersId", skip_serializing_if = "Option::is_none")]
pub employers_id: Option<String>,
#[serde(rename = "entityIdentifier", skip_serializing_if = "Option::is_none")]
pub entity_identifier: Option<models::ResponseProviderEntityIdentifier>,
#[serde(rename = "entityType", skip_serializing_if = "Option::is_none")]
pub entity_type: Option<models::EntityTypeQualifier>,
/// The Federal Taxpayer Identification Number (also known as an EIN).
#[serde(rename = "federalTaxpayersIdNumber", skip_serializing_if = "Option::is_none")]
pub federal_taxpayers_id_number: Option<String>,
/// The provider's middle name. This applies to providers that are an individual.
#[serde(rename = "middleName", skip_serializing_if = "Option::is_none")]
pub middle_name: Option<String>,
/// The provider's [National Provider Identifier (NPI)](https://www.stedi.com/docs/healthcare/national-provider-identifier).
#[serde(rename = "npi", skip_serializing_if = "Option::is_none")]
pub npi: Option<String>,
/// The payer identification.
#[serde(rename = "payorIdentification", skip_serializing_if = "Option::is_none")]
pub payor_identification: Option<String>,
/// The pharmacy processor number.
#[serde(rename = "pharmacyProcessorNumber", skip_serializing_if = "Option::is_none")]
pub pharmacy_processor_number: Option<String>,
/// A code that communicates the provider's role in the type of benefits information in the response. Visit [Eligibility code lists](https://www.stedi.com/docs/healthcare/eligibility-code-lists#provider-codes) for a complete list. Payers may sometimes return other non-compliant values.
#[serde(rename = "providerCode", skip_serializing_if = "Option::is_none")]
pub provider_code: Option<models::ResponseProviderCode>,
/// The provider's first name. This applies to providers that are an individual.
#[serde(rename = "providerFirstName", skip_serializing_if = "Option::is_none")]
pub provider_first_name: Option<String>,
/// The provider's last name. This applies to providers that are an individual.
#[serde(rename = "providerName", skip_serializing_if = "Option::is_none")]
pub provider_name: Option<String>,
/// The provider's organization name.
#[serde(rename = "providerOrgName", skip_serializing_if = "Option::is_none")]
pub provider_org_name: Option<String>,
/// The Health Care Provider Taxonomy Code.
#[serde(rename = "referenceIdentification", skip_serializing_if = "Option::is_none")]
pub reference_identification: Option<String>,
/// The service provider number. This is an identification number assigned by the payer.
#[serde(rename = "serviceProviderNumber", skip_serializing_if = "Option::is_none")]
pub service_provider_number: Option<String>,
/// The Centers for Medicare and Medicaid Services (CMS) Plan ID.
#[serde(rename = "servicesPlanID", skip_serializing_if = "Option::is_none")]
pub services_plan_id: Option<String>,
/// The Social Security Number (SSN).
#[serde(rename = "ssn", skip_serializing_if = "Option::is_none")]
pub ssn: Option<String>,
/// The provider's name suffix, such as Jr., Sr., or III.
#[serde(rename = "suffix", skip_serializing_if = "Option::is_none")]
pub suffix: Option<String>,
}
impl ResponseProvider {
/// Information about the entity that submitted the original eligibility check request. This may be an individual practitioner, a medical group, a hospital, or another type of healthcare provider. This object will always include at least one identifier, such as the provider's [NPI](https://www.stedi.com/docs/healthcare/national-provider-identifier), tax ID, or EIN.
pub fn new() -> ResponseProvider {
ResponseProvider {
aaa_errors: None,
address: None,
employers_id: None,
entity_identifier: None,
entity_type: None,
federal_taxpayers_id_number: None,
middle_name: None,
npi: None,
payor_identification: None,
pharmacy_processor_number: None,
provider_code: None,
provider_first_name: None,
provider_name: None,
provider_org_name: None,
reference_identification: None,
service_provider_number: None,
services_plan_id: None,
ssn: None,
suffix: None,
}
}
}