/*
* 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};
/// ClaimCodeInformation : Supply information specific to hospital claims, such as the priority of the admission.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ClaimCodeInformation {
/// Code indicating the source of the admission, such as the emergency room (ER), a doctor’s referral, or another facility. This code is **required** for all institutional claims except when the `claimInformation.placeOfServiceCode` is set to `14` (Non-Patient Laboratory). Stedi rejects claims that don't meet this requirement [Full code list](https://med.noridianmedicare.com/web/jea/topics/claim-submission/point-of-origin-codes).
#[serde(rename = "admissionSourceCode", skip_serializing_if = "Option::is_none")]
pub admission_source_code: Option<String>,
/// The code indicating the priority of the admission.
#[serde(rename = "admissionTypeCode")]
pub admission_type_code: String,
/// Code indicating patient status as of the end of the claim's billed period. It tells the payer whether the patient was discharged, transferred, or still admitted. This code must be compatible with the `claimInformation.claimFrequencyCode`. For example, claim frequency code `1` (Admit thru Discharge Claim) means the patient's stay is finished. In this case, the patient status code shouldn't be `30` (Still a Patient), which indicates the patient is still in the facility. [Full code list](https://med.noridianmedicare.com/web/jea/topics/claim-submission/patient-discharge-status-codes)
#[serde(rename = "patientStatusCode")]
pub patient_status_code: String,
}
impl ClaimCodeInformation {
/// Supply information specific to hospital claims, such as the priority of the admission.
pub fn new(admission_type_code: String, patient_status_code: String) -> ClaimCodeInformation {
ClaimCodeInformation {
admission_source_code: None,
admission_type_code,
patient_status_code,
}
}
}