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
/*
* 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 StatusRequestProvider {
/// The Electronic Transmitter Identification Number (ETIN). This identifier is preferred if the payer specifically assigned one for the provider. If not, most payers will accept the provider's [NPI](https://www.stedi.com/docs/healthcare/national-provider-identifier) or TIN instead.
#[serde(rename = "etin", skip_serializing_if = "Option::is_none")]
pub etin: Option<String>,
/// The provider's first name. Use when the provider is an individual.
#[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
pub first_name: Option<String>,
/// The provider's last name. Use when the provider is an individual.
#[serde(rename = "lastName", skip_serializing_if = "Option::is_none")]
pub last_name: Option<String>,
/// The [National Provider Identification (NPI)](https://www.stedi.com/docs/healthcare/national-provider-identifier) number.
#[serde(rename = "npi", skip_serializing_if = "Option::is_none")]
pub npi: Option<String>,
/// The provider's organization name. Use when the provider is not an individual, such as a hospital or clinic.
#[serde(rename = "organizationName", skip_serializing_if = "Option::is_none")]
pub organization_name: Option<String>,
/// Identifies the type of provider related to the referenced healthcare claim. You can include both a billing provider and a service provider if both are relevant to the request.
#[serde(rename = "providerType")]
pub provider_type: models::ClaimStatusProviderType,
/// Deprecated; The service provider number. Use `npi` to identify the service provider instead.
#[serde(rename = "spn", skip_serializing_if = "Option::is_none")]
pub spn: Option<String>,
/// The Taxpayer Identification Number (TIN).
#[serde(rename = "taxId", skip_serializing_if = "Option::is_none")]
pub tax_id: Option<String>,
#[serde(rename = "tin", skip_serializing_if = "Option::is_none")]
pub tin: Option<String>,
}
impl StatusRequestProvider {
pub fn new(provider_type: models::ClaimStatusProviderType) -> StatusRequestProvider {
StatusRequestProvider {
etin: None,
first_name: None,
last_name: None,
npi: None,
organization_name: None,
provider_type,
spn: None,
tax_id: None,
tin: None,
}
}
}