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
/*
* 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};
/// ManualTask : A task assigned to a responsible party that requires them to collect and submit a defined set of fields. The task is completed by supplying a `ManualTaskResponse` whose values satisfy the declared `fields`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ManualTask {
/// Fields required to complete the task. Each entry defines the key, human-readable label, optional description, and type for values in the response. Can be empty for instruction-only tasks.
#[serde(rename = "fields")]
pub fields: Vec<models::ManualTaskField>,
/// Instructions for completing the task.
#[serde(rename = "instructions")]
pub instructions: String,
/// Links to help complete the task. This can include payer portals, reference documentation, or document download links for Stedi-provided template PDFs.
#[serde(rename = "links", skip_serializing_if = "Option::is_none")]
pub links: Option<Vec<models::TaskLink>>,
}
impl ManualTask {
/// A task assigned to a responsible party that requires them to collect and submit a defined set of fields. The task is completed by supplying a `ManualTaskResponse` whose values satisfy the declared `fields`.
pub fn new(fields: Vec<models::ManualTaskField>, instructions: String) -> ManualTask {
ManualTask {
fields,
instructions,
links: None,
}
}
}