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
/*
* Stedi Enrollment
*
* The Stedi Enrollment Service manages provider enrollments with healthcare payers. It tracks enrollment status, provider details, and supports batch enrollment processing to ensure providers have the necessary credentials before processing healthcare transactions.
*
* The version of the OpenAPI document: 2024-09-01
* Contact: healthcare@stedi.com
* Generated by: https://openapi-generator.tech
*/
use crate::enrollment::models;
use serde::{Deserialize, Serialize};
/// ManualTaskField : Declares a single field collected by a `ManualTask`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ManualTaskField {
/// Additional context explaining what to provide in the response. For example, details about what supporting documentation (such as the provider's W-9 form) is required.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// The type of data to provide in the response. `TEXT` is for text values that you can provide directly in the response data. For example, a provider identifier. `DOCUMENT` indicates that the task requires uploading PDF documentation. Only PDF documents are supported. Visit [PDF upload document fields](https://www.stedi.com/docs/healthcare/transaction-enrollment-tasks-documents#pdf-upload-document-fields) for more details.
#[serde(rename = "fieldType")]
pub field_type: models::FieldType,
/// A unique identifier for this field within the task, such as `ENROLLMENT_FORM`.
#[serde(rename = "key")]
pub key: String,
/// Human-readable label for this field, such as `Provider NPI` or `Tax ID`.
#[serde(rename = "label")]
pub label: String,
}
impl ManualTaskField {
/// Declares a single field collected by a `ManualTask`.
pub fn new(field_type: models::FieldType, key: String, label: String) -> ManualTaskField {
ManualTaskField {
description: None,
field_type,
key,
label,
}
}
}