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};

/// CompositeDiagnosisCodePointers : Diagnosis code pointers in order of importance to this service line. These pointers are an index to the ICD-10-CM codes you included in the `claimInformation.healthCareCodeInformation` object array. The pointer values can be from 1 to 12 (integer numbers). - You **must** set at least one pointer for the primary diagnosis. Then, you can add up to three additional pointers (up to four in total). - The number of pointers cannot exceed the number of diagnosis codes in the `claimInformation.healthCareCodeInformation` object array. For example, if you only supplied one diagnosis code, then the only valid pointer value is 1. - Don't put ICD-10-CM codes here - they belong in `claimInformation.healthCareCodeInformation`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CompositeDiagnosisCodePointers {
    /// A diagnosis code pointer for this service line.
    #[serde(rename = "diagnosisCodePointers")]
    pub diagnosis_code_pointers: Vec<String>,
}

impl CompositeDiagnosisCodePointers {
    /// Diagnosis code pointers in order of importance to this service line. These pointers are an index to the ICD-10-CM codes you included in the `claimInformation.healthCareCodeInformation` object array. The pointer values can be from 1 to 12 (integer numbers). - You **must** set at least one pointer for the primary diagnosis. Then, you can add up to three additional pointers (up to four in total). - The number of pointers cannot exceed the number of diagnosis codes in the `claimInformation.healthCareCodeInformation` object array. For example, if you only supplied one diagnosis code, then the only valid pointer value is 1. - Don't put ICD-10-CM codes here - they belong in `claimInformation.healthCareCodeInformation`.
    pub fn new(diagnosis_code_pointers: Vec<String>) -> CompositeDiagnosisCodePointers {
        CompositeDiagnosisCodePointers {
            diagnosis_code_pointers,
        }
    }
}