autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * 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};

/// SupportingDocumentation : Use to provide information in response to a coded questionnaire document.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SupportingDocumentation {
    #[serde(rename = "questionNumber")]
    pub question_number: String,
    /// A text response to the question.
    #[serde(rename = "questionResponse", skip_serializing_if = "Option::is_none")]
    pub question_response: Option<String>,
    /// Date value.
    #[serde(rename = "questionResponseAsDate", skip_serializing_if = "Option::is_none")]
    pub question_response_as_date: Option<String>,
    /// Percent formatted as a decimal.
    #[serde(rename = "questionResponseAsPercent", skip_serializing_if = "Option::is_none")]
    pub question_response_as_percent: Option<String>,
    #[serde(rename = "questionResponseCode", skip_serializing_if = "Option::is_none")]
    pub question_response_code: Option<models::QuestionResponseCode>,
}

impl SupportingDocumentation {
    /// Use to provide information in response to a coded questionnaire document.
    pub fn new(question_number: String) -> SupportingDocumentation {
        SupportingDocumentation {
            question_number,
            question_response: None,
            question_response_as_date: None,
            question_response_as_percent: None,
            question_response_code: None,
        }
    }
}