autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
/*
 * 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};

/// Entity : Entity descriptions corresponding to Entity Identifier codes.
/// Entity descriptions corresponding to Entity Identifier codes.
#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Entity {
    #[serde(rename = "Health Maintenance Organization (HMO)")]
    HealthMaintenanceOrganizationLeftParenthesisHmoRightParenthesis,
    #[serde(rename = "Oncology Center")]
    OncologyCenter,
    #[serde(rename = "Kidney Dialysis Unit")]
    KidneyDialysisUnit,
    #[serde(rename = "Preferred Provider Organization (PPO)")]
    PreferredProviderOrganizationLeftParenthesisPpoRightParenthesis,
    #[serde(rename = "Acute Care Hospital")]
    AcuteCareHospital,
    #[serde(rename = "Provider")]
    Provider,
    #[serde(rename = "Military Facility")]
    MilitaryFacility,
    #[serde(rename = "University, College or School")]
    UniversityCommaCollegeOrSchool,
    #[serde(rename = "Outpatient Surgicenter")]
    OutpatientSurgicenter,
    #[serde(rename = "Physician, Clinic or Group Practice")]
    PhysicianCommaClinicOrGroupPractice,
    #[serde(rename = "Long Term Care Facility")]
    LongTermCareFacility,
    #[serde(rename = "Extended Care Facility")]
    ExtendedCareFacility,
    #[serde(rename = "Psychiatric Health Facility")]
    PsychiatricHealthFacility,
    #[serde(rename = "Laboratory")]
    Laboratory,
    #[serde(rename = "Retail Pharmacy")]
    RetailPharmacy,
    #[serde(rename = "Home Health Care")]
    HomeHealthCare,
    #[serde(rename = "Federal, State, County or City Facility")]
    FederalCommaStateCommaCountyOrCityFacility,
    #[serde(rename = "Third-Party Administrator")]
    ThirdPartyAdministrator,
    #[serde(rename = "Miscellaneous Health Care Facility")]
    MiscellaneousHealthCareFacility,
    #[serde(rename = "Non-Health Care Miscellaneous Facility")]
    NonHealthCareMiscellaneousFacility,
    #[serde(rename = "Church Operated Facility")]
    ChurchOperatedFacility,
    #[serde(rename = "Partnership")]
    Partnership,
    #[serde(rename = "Public Health Service Facility")]
    PublicHealthServiceFacility,
    #[serde(rename = "Veterans Administration Facility")]
    VeteransAdministrationFacility,
    #[serde(rename = "Public Health Service Indian Service Facility")]
    PublicHealthServiceIndianServiceFacility,
    #[serde(rename = "Hospital Unit of an Institution (prison hospital, college infirmary, etc.)")]
    HospitalUnitOfAnInstitutionLeftParenthesisPrisonHospitalCommaCollegeInfirmaryCommaEtcRightParenthesis,
    #[serde(rename = "Dependent")]
    Dependent,
    #[serde(rename = "Hospital Unit Within an Institution for the Mentally Retarded")]
    HospitalUnitWithinAnInstitutionForTheMentallyRetarded,
    #[serde(rename = "Tuberculosis and Other Respiratory Diseases Facility")]
    TuberculosisAndOtherRespiratoryDiseasesFacility,
    #[serde(rename = "Obstetrics and Gynecology Facility")]
    ObstetricsAndGynecologyFacility,
    #[serde(rename = "Eye, Ear, Nose and Throat Facility")]
    EyeCommaEarCommaNoseAndThroatFacility,
    #[serde(rename = "Rehabilitation Facility")]
    RehabilitationFacility,
    #[serde(rename = "Orthopedic Facility")]
    OrthopedicFacility,
    #[serde(rename = "Chronic Disease Facility")]
    ChronicDiseaseFacility,
    #[serde(rename = "Other Specialty Facility")]
    OtherSpecialtyFacility,
    #[serde(rename = "Children's General Facility")]
    ChildrenQuoteSGeneralFacility,
    #[serde(rename = "Children's Hospital Unit of an Institution")]
    ChildrenQuoteSHospitalUnitOfAnInstitution,
    #[serde(rename = "Children's Psychiatric Facility")]
    ChildrenQuoteSPsychiatricFacility,
    #[serde(rename = "Children's Tuberculosis and Other Respiratory Diseases Facility")]
    ChildrenQuoteSTuberculosisAndOtherRespiratoryDiseasesFacility,
    #[serde(rename = "Children's Eye, Ear, Nose and Throat Facility")]
    ChildrenQuoteSEyeCommaEarCommaNoseAndThroatFacility,
    #[serde(rename = "Children's Rehabilitation Facility")]
    ChildrenQuoteSRehabilitationFacility,
    #[serde(rename = "Children's Orthopedic Facility")]
    ChildrenQuoteSOrthopedicFacility,
    #[serde(rename = "Children's Chronic Disease Facility")]
    ChildrenQuoteSChronicDiseaseFacility,
    #[serde(rename = "Children's Other Specialty Facility")]
    ChildrenQuoteSOtherSpecialtyFacility,
    #[serde(rename = "Institution for Mental Retardation")]
    InstitutionForMentalRetardation,
    #[serde(rename = "Alcoholism and Other Chemical Dependency Facility")]
    AlcoholismAndOtherChemicalDependencyFacility,
    #[serde(rename = "General Inpatient Care for AIDS/ARC Facility")]
    GeneralInpatientCareForAidsSlashArcFacility,
    #[serde(rename = "AIDS/ARC Unit")]
    AidsSlashArcUnit,
    #[serde(rename = "Specialized Outpatient Program for AIDS/ARC")]
    SpecializedOutpatientProgramForAidsSlashArc,
    #[serde(rename = "Alcohol/Drug Abuse or Dependency Inpatient Unit")]
    AlcoholSlashDrugAbuseOrDependencyInpatientUnit,
    #[serde(rename = "Alcohol/Drug Abuse or Dependency Outpatient Services")]
    AlcoholSlashDrugAbuseOrDependencyOutpatientServices,
    #[serde(rename = "Arthritis Treatment Center")]
    ArthritisTreatmentCenter,
    #[serde(rename = "Birthing Room/LDRP Room")]
    BirthingRoomSlashLdrpRoom,
    #[serde(rename = "Burn Care Unit")]
    BurnCareUnit,
    #[serde(rename = "Cardiac Catherization Laboratory")]
    CardiacCatherizationLaboratory,
    #[serde(rename = "Open-Heart Surgery Facility")]
    OpenHeartSurgeryFacility,
    #[serde(rename = "Cardiac Intensive Care Unit")]
    CardiacIntensiveCareUnit,
    #[serde(rename = "Angioplasty Facility")]
    AngioplastyFacility,
    #[serde(rename = "Chronic Obstructive Pulmonary Disease Service Facility")]
    ChronicObstructivePulmonaryDiseaseServiceFacility,
    #[serde(rename = "Emergency Department")]
    EmergencyDepartment,
    #[serde(rename = "Trauma Center (Certified)")]
    TraumaCenterLeftParenthesisCertifiedRightParenthesis,
    #[serde(rename = "Extracorporeal Shock-Wave Lithotripter (ESWL) Unit")]
    ExtracorporealShockWaveLithotripterLeftParenthesisEswlRightParenthesisUnit,
    #[serde(rename = "Genetic Counseling/Screening Services")]
    GeneticCounselingSlashScreeningServices,
    #[serde(rename = "Adult Day Care Program Facility")]
    AdultDayCareProgramFacility,
    #[serde(rename = "Alzheimer's Diagnostic/Assessment Services")]
    AlzheimerQuoteSDiagnosticSlashAssessmentServices,
    #[serde(rename = "Comprehensive Geriatric Assessment Facility")]
    ComprehensiveGeriatricAssessmentFacility,
    #[serde(rename = "Emergency Response (Geriatric) Unit")]
    EmergencyResponseLeftParenthesisGeriatricRightParenthesisUnit,
    #[serde(rename = "Geriatric Acute Care Unit")]
    GeriatricAcuteCareUnit,
    #[serde(rename = "Geriatric Clinics")]
    GeriatricClinics,
    #[serde(rename = "Respite Care Facility")]
    RespiteCareFacility,
    #[serde(rename = "Patient Education Unit")]
    PatientEducationUnit,
    #[serde(rename = "Community Health Promotion Facility")]
    CommunityHealthPromotionFacility,
    #[serde(rename = "Worksite Health Promotion Facility")]
    WorksiteHealthPromotionFacility,
    #[serde(rename = "Hemodialysis Facility")]
    HemodialysisFacility,
    #[serde(rename = "Home Health Services")]
    HomeHealthServices,
    #[serde(rename = "Hospice")]
    Hospice,
    #[serde(rename = "Medical Surgical or Other Intensive Care Unit")]
    MedicalSurgicalOrOtherIntensiveCareUnit,
    #[serde(rename = "Histopathology Laboratory")]
    HistopathologyLaboratory,
    #[serde(rename = "Blood Bank")]
    BloodBank,
    #[serde(rename = "Neonatal Intensive Care Unit")]
    NeonatalIntensiveCareUnit,
    #[serde(rename = "Obstetrics Unit")]
    ObstetricsUnit,
    #[serde(rename = "Occupational Health Services")]
    OccupationalHealthServices,
    #[serde(rename = "Organized Outpatient Services")]
    OrganizedOutpatientServices,
    #[serde(rename = "Pediatric Acute Inpatient Unit")]
    PediatricAcuteInpatientUnit,
    #[serde(rename = "Psychiatric Child/Adolescent Services")]
    PsychiatricChildSlashAdolescentServices,
    #[serde(rename = "Psychiatric Consultation-Liaison Services")]
    PsychiatricConsultationLiaisonServices,
    #[serde(rename = "Psychiatric Education Services")]
    PsychiatricEducationServices,
    #[serde(rename = "Psychiatric Emergency Services")]
    PsychiatricEmergencyServices,
    #[serde(rename = "Psychiatric Geriatric Services")]
    PsychiatricGeriatricServices,
    #[serde(rename = "Psychiatric Inpatient Unit")]
    PsychiatricInpatientUnit,
    #[serde(rename = "Psychiatric Outpatient Services")]
    PsychiatricOutpatientServices,
    #[serde(rename = "Psychiatric Partial Hospitalization Program")]
    PsychiatricPartialHospitalizationProgram,
    #[serde(rename = "Megavoltage Radiation Therapy Unit")]
    MegavoltageRadiationTherapyUnit,
    #[serde(rename = "Radioactive Implants Unit")]
    RadioactiveImplantsUnit,
    #[serde(rename = "Therapeutic Radioisotope Facility")]
    TherapeuticRadioisotopeFacility,
    #[serde(rename = "X-Ray Radiation Therapy Unit")]
    XRayRadiationTherapyUnit,
    #[serde(rename = "CT Scanner Unit")]
    CtScannerUnit,
    #[serde(rename = "Diagnostic Radioisotope Facility")]
    DiagnosticRadioisotopeFacility,
    #[serde(rename = "Magnetic Resonance Imaging (MRI) Facility")]
    MagneticResonanceImagingLeftParenthesisMriRightParenthesisFacility,
    #[serde(rename = "Ultrasound Unit")]
    UltrasoundUnit,
    #[serde(rename = "Rehabilitation Inpatient Unit")]
    RehabilitationInpatientUnit,
    #[serde(rename = "Rehabilitation Outpatient Services")]
    RehabilitationOutpatientServices,
    #[serde(rename = "Reproductive Health Services")]
    ReproductiveHealthServices,
    #[serde(rename = "Skilled Nursing or Other Long-Term Care Unit")]
    SkilledNursingOrOtherLongTermCareUnit,
    #[serde(rename = "Single Photon Emission Computerized Tomography (SPECT) Unit")]
    SinglePhotonEmissionComputerizedTomographyLeftParenthesisSpectRightParenthesisUnit,
    #[serde(rename = "Organized Social Work Service Facility")]
    OrganizedSocialWorkServiceFacility,
    #[serde(rename = "Outpatient Social Work Services")]
    OutpatientSocialWorkServices,
    #[serde(rename = "Emergency Department Social Work Services")]
    EmergencyDepartmentSocialWorkServices,
    #[serde(rename = "Sports Medicine Clinic/Services")]
    SportsMedicineClinicSlashServices,
    #[serde(rename = "Hospital Auxiliary Unit")]
    HospitalAuxiliaryUnit,
    #[serde(rename = "Patient Representative Services")]
    PatientRepresentativeServices,
    #[serde(rename = "Volunteer Services Department")]
    VolunteerServicesDepartment,
    #[serde(rename = "Outpatient Surgery Services")]
    OutpatientSurgeryServices,
    #[serde(rename = "Organ/Tissue Transplant Unit")]
    OrganSlashTissueTransplantUnit,
    #[serde(rename = "Orthopedic Surgery Facility")]
    OrthopedicSurgeryFacility,
    #[serde(rename = "Occupational Therapy Services")]
    OccupationalTherapyServices,
    #[serde(rename = "Physical Therapy Services")]
    PhysicalTherapyServices,
    #[serde(rename = "Recreational Therapy Services")]
    RecreationalTherapyServices,
    #[serde(rename = "Respiratory Therapy Services")]
    RespiratoryTherapyServices,
    #[serde(rename = "Speech Therapy Services")]
    SpeechTherapyServices,
    #[serde(rename = "Women's Health Center/Services")]
    WomenQuoteSHealthCenterSlashServices,
    #[serde(rename = "Cardiac Rehabilitation Program Facility")]
    CardiacRehabilitationProgramFacility,
    #[serde(rename = "Non-Invasive Cardiac Assessment Services")]
    NonInvasiveCardiacAssessmentServices,
    #[serde(rename = "Emergency Medical Technician")]
    EmergencyMedicalTechnician,
    #[serde(rename = "Disciplinary Contact")]
    DisciplinaryContact,
    #[serde(rename = "Case Manager")]
    CaseManager,
    #[serde(rename = "Place of Occurrence")]
    PlaceOfOccurrence,
    #[serde(rename = "Contracted Service Provider")]
    ContractedServiceProvider,
    #[serde(rename = "Consultant's Office")]
    ConsultantQuoteSOffice,
    #[serde(rename = "Subcontractor")]
    Subcontractor,
    #[serde(rename = "Service Supplier")]
    ServiceSupplier,
    #[serde(rename = "Employer")]
    Employer,
    #[serde(rename = "Receiver")]
    Receiver,
    #[serde(rename = "Claimant Authorized Representative")]
    ClaimantAuthorizedRepresentative,
    #[serde(rename = "Data Processing Service Bureau")]
    DataProcessingServiceBureau,
    #[serde(rename = "Performed At")]
    PerformedAt,
    #[serde(rename = "Attending Physician")]
    AttendingPhysician,
    #[serde(rename = "Operating Physician")]
    OperatingPhysician,
    #[serde(rename = "Other Physician")]
    OtherPhysician,
    #[serde(rename = "Corrected Insured")]
    CorrectedInsured,
    #[serde(rename = "Service Location")]
    ServiceLocation,
    #[serde(rename = "Hospital")]
    Hospital,
    #[serde(rename = "Rendering Provider")]
    RenderingProvider,
    #[serde(rename = "Subscriber's Employer")]
    SubscriberQuoteSEmployer,
    #[serde(rename = "Billing Provider")]
    BillingProvider,
    #[serde(rename = "Pay-to Provider")]
    PayToProvider,
    #[serde(rename = "Research Institute")]
    ResearchInstitute,
    #[serde(rename = "Pharmacist")]
    Pharmacist,
    #[serde(rename = "Admitting Surgeon")]
    AdmittingSurgeon,
    #[serde(rename = "Commercial Insurer")]
    CommercialInsurer,
    #[serde(rename = "Assistant Surgeon")]
    AssistantSurgeon,
    #[serde(rename = "Consulting Physician")]
    ConsultingPhysician,
    #[serde(rename = "Ordering Physician")]
    OrderingPhysician,
    #[serde(rename = "Referring Provider")]
    ReferringProvider,
    #[serde(rename = "Dependent Name")]
    DependentName,
    #[serde(rename = "Supervising Physician")]
    SupervisingPhysician,
    #[serde(rename = "Person or Other Entity Legally Responsible for a Child")]
    PersonOrOtherEntityLegallyResponsibleForAChild,
    #[serde(rename = "Person or Other Entity With Whom a Child Resides")]
    PersonOrOtherEntityWithWhomAChildResides,
    #[serde(rename = "Previous Employer")]
    PreviousEmployer,
    #[serde(rename = "Participating Laboratory")]
    ParticipatingLaboratory,
    #[serde(rename = "Facility")]
    Facility,
    #[serde(rename = "Physical Address")]
    PhysicalAddress,
    #[serde(rename = "Mail Address")]
    MailAddress,
    #[serde(rename = "Dependent Insured")]
    DependentInsured,
    #[serde(rename = "Clinic")]
    Clinic,
    #[serde(rename = "Other Insured")]
    OtherInsured,
    #[serde(rename = "Guardian")]
    Guardian,
    #[serde(rename = "Paramedic")]
    Paramedic,
    #[serde(rename = "Paramedical Company")]
    ParamedicalCompany,
    #[serde(rename = "Previous Insured")]
    PreviousInsured,
    #[serde(rename = "Spouse Insured")]
    SpouseInsured,
    #[serde(rename = "Treatment Facility")]
    TreatmentFacility,
    #[serde(rename = "Healthcare Professional Shortage Area (HPSA) Facility")]
    HealthcareProfessionalShortageAreaLeftParenthesisHpsaRightParenthesisFacility,
    #[serde(rename = "Home Health Agency")]
    HomeHealthAgency,
    #[serde(rename = "Independent Physicians Association (IPA)")]
    IndependentPhysiciansAssociationLeftParenthesisIpaRightParenthesis,
    #[serde(rename = "Injection Point")]
    InjectionPoint,
    #[serde(rename = "Insured or Subscriber")]
    InsuredOrSubscriber,
    #[serde(rename = "Insurer")]
    Insurer,
    #[serde(rename = "Independent Lab")]
    IndependentLab,
    #[serde(rename = "Legal Representative")]
    LegalRepresentative,
    #[serde(rename = "Medical Insurance Carrier")]
    MedicalInsuranceCarrier,
    #[serde(rename = "Mammography Screening Center")]
    MammographyScreeningCenter,
    #[serde(rename = "Ordered By")]
    OrderedBy,
    #[serde(rename = "Doctor of Optometry")]
    DoctorOfOptometry,
    #[serde(rename = "Oxygen Therapy Facility")]
    OxygenTherapyFacility,
    #[serde(rename = "Patient Facility")]
    PatientFacility,
    #[serde(rename = "Primary Insured or Subscriber")]
    PrimaryInsuredOrSubscriber,
    #[serde(rename = "Primary Care Provider")]
    PrimaryCareProvider,
    #[serde(rename = "Prior Insurance Carrier")]
    PriorInsuranceCarrier,
    #[serde(rename = "Third Party Reviewing Preferred Provider Organization (PPO)")]
    ThirdPartyReviewingPreferredProviderOrganizationLeftParenthesisPpoRightParenthesis,
    #[serde(rename = "Third Party Repricing Preferred Provider Organization (PPO)")]
    ThirdPartyRepricingPreferredProviderOrganizationLeftParenthesisPpoRightParenthesis,
    #[serde(rename = "Primary Payer")]
    PrimaryPayer,
    #[serde(rename = "Party to Receive Test Report")]
    PartyToReceiveTestReport,
    #[serde(rename = "Party performing certification")]
    PartyPerformingCertification,
    #[serde(rename = "Pickup Address")]
    PickupAddress,
    #[serde(rename = "Pharmacy")]
    Pharmacy,
    #[serde(rename = "Purchase Service Provider")]
    PurchaseServiceProvider,
    #[serde(rename = "Patient")]
    Patient,
    #[serde(rename = "Responsible Party")]
    ResponsibleParty,
    #[serde(rename = "Policyholder")]
    Policyholder,
    #[serde(rename = "Physician")]
    Physician,
    #[serde(rename = "Managed Care")]
    ManagedCare,
    #[serde(rename = "Chiropractor")]
    Chiropractor,
    #[serde(rename = "Dentist")]
    Dentist,
    #[serde(rename = "Doctor of Osteopathy")]
    DoctorOfOsteopathy,
    #[serde(rename = "Podiatrist")]
    Podiatrist,
    #[serde(rename = "Group Practice")]
    GroupPractice,
    #[serde(rename = "Medical Doctor")]
    MedicalDoctor,
    #[serde(rename = "Receiving Location")]
    ReceivingLocation,
    #[serde(rename = "Rural Health Clinic")]
    RuralHealthClinic,
    #[serde(rename = "Skilled Nursing Facility")]
    SkilledNursingFacility,
    #[serde(rename = "Secondary Payer")]
    SecondaryPayer,
    #[serde(rename = "Service Provider")]
    ServiceProvider,
    #[serde(rename = "Supplier/Manufacturer")]
    SupplierSlashManufacturer,
    #[serde(rename = "Transfer Point")]
    TransferPoint,
    #[serde(rename = "Testing Laboratory")]
    TestingLaboratory,
    #[serde(rename = "Third Party Reviewing Organization (TPO)")]
    ThirdPartyReviewingOrganizationLeftParenthesisTpoRightParenthesis,
    #[serde(rename = "Transfer To")]
    TransferTo,
    #[serde(rename = "Tertiary Payer")]
    TertiaryPayer,
    #[serde(rename = "Third Party Repricing Organization (TPO)")]
    ThirdPartyRepricingOrganizationLeftParenthesisTpoRightParenthesis,
    #[serde(rename = "Nursing Home")]
    NursingHome,
    #[serde(rename = "Utilization Management Organization")]
    UtilizationManagementOrganization,
    #[serde(rename = "Spouse")]
    Spouse,
    #[serde(rename = "Durable Medical Equipment Supplier")]
    DurableMedicalEquipmentSupplier,
    #[serde(rename = "Mutually Defined")]
    MutuallyDefined,
    /// Any value not defined in the spec (payers may return non-compliant values).
    #[serde(untagged)]
    UnknownValue(String),

}

impl std::fmt::Display for Entity {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::HealthMaintenanceOrganizationLeftParenthesisHmoRightParenthesis => write!(f, "Health Maintenance Organization (HMO)"),
            Self::OncologyCenter => write!(f, "Oncology Center"),
            Self::KidneyDialysisUnit => write!(f, "Kidney Dialysis Unit"),
            Self::PreferredProviderOrganizationLeftParenthesisPpoRightParenthesis => write!(f, "Preferred Provider Organization (PPO)"),
            Self::AcuteCareHospital => write!(f, "Acute Care Hospital"),
            Self::Provider => write!(f, "Provider"),
            Self::MilitaryFacility => write!(f, "Military Facility"),
            Self::UniversityCommaCollegeOrSchool => write!(f, "University, College or School"),
            Self::OutpatientSurgicenter => write!(f, "Outpatient Surgicenter"),
            Self::PhysicianCommaClinicOrGroupPractice => write!(f, "Physician, Clinic or Group Practice"),
            Self::LongTermCareFacility => write!(f, "Long Term Care Facility"),
            Self::ExtendedCareFacility => write!(f, "Extended Care Facility"),
            Self::PsychiatricHealthFacility => write!(f, "Psychiatric Health Facility"),
            Self::Laboratory => write!(f, "Laboratory"),
            Self::RetailPharmacy => write!(f, "Retail Pharmacy"),
            Self::HomeHealthCare => write!(f, "Home Health Care"),
            Self::FederalCommaStateCommaCountyOrCityFacility => write!(f, "Federal, State, County or City Facility"),
            Self::ThirdPartyAdministrator => write!(f, "Third-Party Administrator"),
            Self::MiscellaneousHealthCareFacility => write!(f, "Miscellaneous Health Care Facility"),
            Self::NonHealthCareMiscellaneousFacility => write!(f, "Non-Health Care Miscellaneous Facility"),
            Self::ChurchOperatedFacility => write!(f, "Church Operated Facility"),
            Self::Partnership => write!(f, "Partnership"),
            Self::PublicHealthServiceFacility => write!(f, "Public Health Service Facility"),
            Self::VeteransAdministrationFacility => write!(f, "Veterans Administration Facility"),
            Self::PublicHealthServiceIndianServiceFacility => write!(f, "Public Health Service Indian Service Facility"),
            Self::HospitalUnitOfAnInstitutionLeftParenthesisPrisonHospitalCommaCollegeInfirmaryCommaEtcRightParenthesis => write!(f, "Hospital Unit of an Institution (prison hospital, college infirmary, etc.)"),
            Self::Dependent => write!(f, "Dependent"),
            Self::HospitalUnitWithinAnInstitutionForTheMentallyRetarded => write!(f, "Hospital Unit Within an Institution for the Mentally Retarded"),
            Self::TuberculosisAndOtherRespiratoryDiseasesFacility => write!(f, "Tuberculosis and Other Respiratory Diseases Facility"),
            Self::ObstetricsAndGynecologyFacility => write!(f, "Obstetrics and Gynecology Facility"),
            Self::EyeCommaEarCommaNoseAndThroatFacility => write!(f, "Eye, Ear, Nose and Throat Facility"),
            Self::RehabilitationFacility => write!(f, "Rehabilitation Facility"),
            Self::OrthopedicFacility => write!(f, "Orthopedic Facility"),
            Self::ChronicDiseaseFacility => write!(f, "Chronic Disease Facility"),
            Self::OtherSpecialtyFacility => write!(f, "Other Specialty Facility"),
            Self::ChildrenQuoteSGeneralFacility => write!(f, "Children's General Facility"),
            Self::ChildrenQuoteSHospitalUnitOfAnInstitution => write!(f, "Children's Hospital Unit of an Institution"),
            Self::ChildrenQuoteSPsychiatricFacility => write!(f, "Children's Psychiatric Facility"),
            Self::ChildrenQuoteSTuberculosisAndOtherRespiratoryDiseasesFacility => write!(f, "Children's Tuberculosis and Other Respiratory Diseases Facility"),
            Self::ChildrenQuoteSEyeCommaEarCommaNoseAndThroatFacility => write!(f, "Children's Eye, Ear, Nose and Throat Facility"),
            Self::ChildrenQuoteSRehabilitationFacility => write!(f, "Children's Rehabilitation Facility"),
            Self::ChildrenQuoteSOrthopedicFacility => write!(f, "Children's Orthopedic Facility"),
            Self::ChildrenQuoteSChronicDiseaseFacility => write!(f, "Children's Chronic Disease Facility"),
            Self::ChildrenQuoteSOtherSpecialtyFacility => write!(f, "Children's Other Specialty Facility"),
            Self::InstitutionForMentalRetardation => write!(f, "Institution for Mental Retardation"),
            Self::AlcoholismAndOtherChemicalDependencyFacility => write!(f, "Alcoholism and Other Chemical Dependency Facility"),
            Self::GeneralInpatientCareForAidsSlashArcFacility => write!(f, "General Inpatient Care for AIDS/ARC Facility"),
            Self::AidsSlashArcUnit => write!(f, "AIDS/ARC Unit"),
            Self::SpecializedOutpatientProgramForAidsSlashArc => write!(f, "Specialized Outpatient Program for AIDS/ARC"),
            Self::AlcoholSlashDrugAbuseOrDependencyInpatientUnit => write!(f, "Alcohol/Drug Abuse or Dependency Inpatient Unit"),
            Self::AlcoholSlashDrugAbuseOrDependencyOutpatientServices => write!(f, "Alcohol/Drug Abuse or Dependency Outpatient Services"),
            Self::ArthritisTreatmentCenter => write!(f, "Arthritis Treatment Center"),
            Self::BirthingRoomSlashLdrpRoom => write!(f, "Birthing Room/LDRP Room"),
            Self::BurnCareUnit => write!(f, "Burn Care Unit"),
            Self::CardiacCatherizationLaboratory => write!(f, "Cardiac Catherization Laboratory"),
            Self::OpenHeartSurgeryFacility => write!(f, "Open-Heart Surgery Facility"),
            Self::CardiacIntensiveCareUnit => write!(f, "Cardiac Intensive Care Unit"),
            Self::AngioplastyFacility => write!(f, "Angioplasty Facility"),
            Self::ChronicObstructivePulmonaryDiseaseServiceFacility => write!(f, "Chronic Obstructive Pulmonary Disease Service Facility"),
            Self::EmergencyDepartment => write!(f, "Emergency Department"),
            Self::TraumaCenterLeftParenthesisCertifiedRightParenthesis => write!(f, "Trauma Center (Certified)"),
            Self::ExtracorporealShockWaveLithotripterLeftParenthesisEswlRightParenthesisUnit => write!(f, "Extracorporeal Shock-Wave Lithotripter (ESWL) Unit"),
            Self::GeneticCounselingSlashScreeningServices => write!(f, "Genetic Counseling/Screening Services"),
            Self::AdultDayCareProgramFacility => write!(f, "Adult Day Care Program Facility"),
            Self::AlzheimerQuoteSDiagnosticSlashAssessmentServices => write!(f, "Alzheimer's Diagnostic/Assessment Services"),
            Self::ComprehensiveGeriatricAssessmentFacility => write!(f, "Comprehensive Geriatric Assessment Facility"),
            Self::EmergencyResponseLeftParenthesisGeriatricRightParenthesisUnit => write!(f, "Emergency Response (Geriatric) Unit"),
            Self::GeriatricAcuteCareUnit => write!(f, "Geriatric Acute Care Unit"),
            Self::GeriatricClinics => write!(f, "Geriatric Clinics"),
            Self::RespiteCareFacility => write!(f, "Respite Care Facility"),
            Self::PatientEducationUnit => write!(f, "Patient Education Unit"),
            Self::CommunityHealthPromotionFacility => write!(f, "Community Health Promotion Facility"),
            Self::WorksiteHealthPromotionFacility => write!(f, "Worksite Health Promotion Facility"),
            Self::HemodialysisFacility => write!(f, "Hemodialysis Facility"),
            Self::HomeHealthServices => write!(f, "Home Health Services"),
            Self::Hospice => write!(f, "Hospice"),
            Self::MedicalSurgicalOrOtherIntensiveCareUnit => write!(f, "Medical Surgical or Other Intensive Care Unit"),
            Self::HistopathologyLaboratory => write!(f, "Histopathology Laboratory"),
            Self::BloodBank => write!(f, "Blood Bank"),
            Self::NeonatalIntensiveCareUnit => write!(f, "Neonatal Intensive Care Unit"),
            Self::ObstetricsUnit => write!(f, "Obstetrics Unit"),
            Self::OccupationalHealthServices => write!(f, "Occupational Health Services"),
            Self::OrganizedOutpatientServices => write!(f, "Organized Outpatient Services"),
            Self::PediatricAcuteInpatientUnit => write!(f, "Pediatric Acute Inpatient Unit"),
            Self::PsychiatricChildSlashAdolescentServices => write!(f, "Psychiatric Child/Adolescent Services"),
            Self::PsychiatricConsultationLiaisonServices => write!(f, "Psychiatric Consultation-Liaison Services"),
            Self::PsychiatricEducationServices => write!(f, "Psychiatric Education Services"),
            Self::PsychiatricEmergencyServices => write!(f, "Psychiatric Emergency Services"),
            Self::PsychiatricGeriatricServices => write!(f, "Psychiatric Geriatric Services"),
            Self::PsychiatricInpatientUnit => write!(f, "Psychiatric Inpatient Unit"),
            Self::PsychiatricOutpatientServices => write!(f, "Psychiatric Outpatient Services"),
            Self::PsychiatricPartialHospitalizationProgram => write!(f, "Psychiatric Partial Hospitalization Program"),
            Self::MegavoltageRadiationTherapyUnit => write!(f, "Megavoltage Radiation Therapy Unit"),
            Self::RadioactiveImplantsUnit => write!(f, "Radioactive Implants Unit"),
            Self::TherapeuticRadioisotopeFacility => write!(f, "Therapeutic Radioisotope Facility"),
            Self::XRayRadiationTherapyUnit => write!(f, "X-Ray Radiation Therapy Unit"),
            Self::CtScannerUnit => write!(f, "CT Scanner Unit"),
            Self::DiagnosticRadioisotopeFacility => write!(f, "Diagnostic Radioisotope Facility"),
            Self::MagneticResonanceImagingLeftParenthesisMriRightParenthesisFacility => write!(f, "Magnetic Resonance Imaging (MRI) Facility"),
            Self::UltrasoundUnit => write!(f, "Ultrasound Unit"),
            Self::RehabilitationInpatientUnit => write!(f, "Rehabilitation Inpatient Unit"),
            Self::RehabilitationOutpatientServices => write!(f, "Rehabilitation Outpatient Services"),
            Self::ReproductiveHealthServices => write!(f, "Reproductive Health Services"),
            Self::SkilledNursingOrOtherLongTermCareUnit => write!(f, "Skilled Nursing or Other Long-Term Care Unit"),
            Self::SinglePhotonEmissionComputerizedTomographyLeftParenthesisSpectRightParenthesisUnit => write!(f, "Single Photon Emission Computerized Tomography (SPECT) Unit"),
            Self::OrganizedSocialWorkServiceFacility => write!(f, "Organized Social Work Service Facility"),
            Self::OutpatientSocialWorkServices => write!(f, "Outpatient Social Work Services"),
            Self::EmergencyDepartmentSocialWorkServices => write!(f, "Emergency Department Social Work Services"),
            Self::SportsMedicineClinicSlashServices => write!(f, "Sports Medicine Clinic/Services"),
            Self::HospitalAuxiliaryUnit => write!(f, "Hospital Auxiliary Unit"),
            Self::PatientRepresentativeServices => write!(f, "Patient Representative Services"),
            Self::VolunteerServicesDepartment => write!(f, "Volunteer Services Department"),
            Self::OutpatientSurgeryServices => write!(f, "Outpatient Surgery Services"),
            Self::OrganSlashTissueTransplantUnit => write!(f, "Organ/Tissue Transplant Unit"),
            Self::OrthopedicSurgeryFacility => write!(f, "Orthopedic Surgery Facility"),
            Self::OccupationalTherapyServices => write!(f, "Occupational Therapy Services"),
            Self::PhysicalTherapyServices => write!(f, "Physical Therapy Services"),
            Self::RecreationalTherapyServices => write!(f, "Recreational Therapy Services"),
            Self::RespiratoryTherapyServices => write!(f, "Respiratory Therapy Services"),
            Self::SpeechTherapyServices => write!(f, "Speech Therapy Services"),
            Self::WomenQuoteSHealthCenterSlashServices => write!(f, "Women's Health Center/Services"),
            Self::CardiacRehabilitationProgramFacility => write!(f, "Cardiac Rehabilitation Program Facility"),
            Self::NonInvasiveCardiacAssessmentServices => write!(f, "Non-Invasive Cardiac Assessment Services"),
            Self::EmergencyMedicalTechnician => write!(f, "Emergency Medical Technician"),
            Self::DisciplinaryContact => write!(f, "Disciplinary Contact"),
            Self::CaseManager => write!(f, "Case Manager"),
            Self::PlaceOfOccurrence => write!(f, "Place of Occurrence"),
            Self::ContractedServiceProvider => write!(f, "Contracted Service Provider"),
            Self::ConsultantQuoteSOffice => write!(f, "Consultant's Office"),
            Self::Subcontractor => write!(f, "Subcontractor"),
            Self::ServiceSupplier => write!(f, "Service Supplier"),
            Self::Employer => write!(f, "Employer"),
            Self::Receiver => write!(f, "Receiver"),
            Self::ClaimantAuthorizedRepresentative => write!(f, "Claimant Authorized Representative"),
            Self::DataProcessingServiceBureau => write!(f, "Data Processing Service Bureau"),
            Self::PerformedAt => write!(f, "Performed At"),
            Self::AttendingPhysician => write!(f, "Attending Physician"),
            Self::OperatingPhysician => write!(f, "Operating Physician"),
            Self::OtherPhysician => write!(f, "Other Physician"),
            Self::CorrectedInsured => write!(f, "Corrected Insured"),
            Self::ServiceLocation => write!(f, "Service Location"),
            Self::Hospital => write!(f, "Hospital"),
            Self::RenderingProvider => write!(f, "Rendering Provider"),
            Self::SubscriberQuoteSEmployer => write!(f, "Subscriber's Employer"),
            Self::BillingProvider => write!(f, "Billing Provider"),
            Self::PayToProvider => write!(f, "Pay-to Provider"),
            Self::ResearchInstitute => write!(f, "Research Institute"),
            Self::Pharmacist => write!(f, "Pharmacist"),
            Self::AdmittingSurgeon => write!(f, "Admitting Surgeon"),
            Self::CommercialInsurer => write!(f, "Commercial Insurer"),
            Self::AssistantSurgeon => write!(f, "Assistant Surgeon"),
            Self::ConsultingPhysician => write!(f, "Consulting Physician"),
            Self::OrderingPhysician => write!(f, "Ordering Physician"),
            Self::ReferringProvider => write!(f, "Referring Provider"),
            Self::DependentName => write!(f, "Dependent Name"),
            Self::SupervisingPhysician => write!(f, "Supervising Physician"),
            Self::PersonOrOtherEntityLegallyResponsibleForAChild => write!(f, "Person or Other Entity Legally Responsible for a Child"),
            Self::PersonOrOtherEntityWithWhomAChildResides => write!(f, "Person or Other Entity With Whom a Child Resides"),
            Self::PreviousEmployer => write!(f, "Previous Employer"),
            Self::ParticipatingLaboratory => write!(f, "Participating Laboratory"),
            Self::Facility => write!(f, "Facility"),
            Self::PhysicalAddress => write!(f, "Physical Address"),
            Self::MailAddress => write!(f, "Mail Address"),
            Self::DependentInsured => write!(f, "Dependent Insured"),
            Self::Clinic => write!(f, "Clinic"),
            Self::OtherInsured => write!(f, "Other Insured"),
            Self::Guardian => write!(f, "Guardian"),
            Self::Paramedic => write!(f, "Paramedic"),
            Self::ParamedicalCompany => write!(f, "Paramedical Company"),
            Self::PreviousInsured => write!(f, "Previous Insured"),
            Self::SpouseInsured => write!(f, "Spouse Insured"),
            Self::TreatmentFacility => write!(f, "Treatment Facility"),
            Self::HealthcareProfessionalShortageAreaLeftParenthesisHpsaRightParenthesisFacility => write!(f, "Healthcare Professional Shortage Area (HPSA) Facility"),
            Self::HomeHealthAgency => write!(f, "Home Health Agency"),
            Self::IndependentPhysiciansAssociationLeftParenthesisIpaRightParenthesis => write!(f, "Independent Physicians Association (IPA)"),
            Self::InjectionPoint => write!(f, "Injection Point"),
            Self::InsuredOrSubscriber => write!(f, "Insured or Subscriber"),
            Self::Insurer => write!(f, "Insurer"),
            Self::IndependentLab => write!(f, "Independent Lab"),
            Self::LegalRepresentative => write!(f, "Legal Representative"),
            Self::MedicalInsuranceCarrier => write!(f, "Medical Insurance Carrier"),
            Self::MammographyScreeningCenter => write!(f, "Mammography Screening Center"),
            Self::OrderedBy => write!(f, "Ordered By"),
            Self::DoctorOfOptometry => write!(f, "Doctor of Optometry"),
            Self::OxygenTherapyFacility => write!(f, "Oxygen Therapy Facility"),
            Self::PatientFacility => write!(f, "Patient Facility"),
            Self::PrimaryInsuredOrSubscriber => write!(f, "Primary Insured or Subscriber"),
            Self::PrimaryCareProvider => write!(f, "Primary Care Provider"),
            Self::PriorInsuranceCarrier => write!(f, "Prior Insurance Carrier"),
            Self::ThirdPartyReviewingPreferredProviderOrganizationLeftParenthesisPpoRightParenthesis => write!(f, "Third Party Reviewing Preferred Provider Organization (PPO)"),
            Self::ThirdPartyRepricingPreferredProviderOrganizationLeftParenthesisPpoRightParenthesis => write!(f, "Third Party Repricing Preferred Provider Organization (PPO)"),
            Self::PrimaryPayer => write!(f, "Primary Payer"),
            Self::PartyToReceiveTestReport => write!(f, "Party to Receive Test Report"),
            Self::PartyPerformingCertification => write!(f, "Party performing certification"),
            Self::PickupAddress => write!(f, "Pickup Address"),
            Self::Pharmacy => write!(f, "Pharmacy"),
            Self::PurchaseServiceProvider => write!(f, "Purchase Service Provider"),
            Self::Patient => write!(f, "Patient"),
            Self::ResponsibleParty => write!(f, "Responsible Party"),
            Self::Policyholder => write!(f, "Policyholder"),
            Self::Physician => write!(f, "Physician"),
            Self::ManagedCare => write!(f, "Managed Care"),
            Self::Chiropractor => write!(f, "Chiropractor"),
            Self::Dentist => write!(f, "Dentist"),
            Self::DoctorOfOsteopathy => write!(f, "Doctor of Osteopathy"),
            Self::Podiatrist => write!(f, "Podiatrist"),
            Self::GroupPractice => write!(f, "Group Practice"),
            Self::MedicalDoctor => write!(f, "Medical Doctor"),
            Self::ReceivingLocation => write!(f, "Receiving Location"),
            Self::RuralHealthClinic => write!(f, "Rural Health Clinic"),
            Self::SkilledNursingFacility => write!(f, "Skilled Nursing Facility"),
            Self::SecondaryPayer => write!(f, "Secondary Payer"),
            Self::ServiceProvider => write!(f, "Service Provider"),
            Self::SupplierSlashManufacturer => write!(f, "Supplier/Manufacturer"),
            Self::TransferPoint => write!(f, "Transfer Point"),
            Self::TestingLaboratory => write!(f, "Testing Laboratory"),
            Self::ThirdPartyReviewingOrganizationLeftParenthesisTpoRightParenthesis => write!(f, "Third Party Reviewing Organization (TPO)"),
            Self::TransferTo => write!(f, "Transfer To"),
            Self::TertiaryPayer => write!(f, "Tertiary Payer"),
            Self::ThirdPartyRepricingOrganizationLeftParenthesisTpoRightParenthesis => write!(f, "Third Party Repricing Organization (TPO)"),
            Self::NursingHome => write!(f, "Nursing Home"),
            Self::UtilizationManagementOrganization => write!(f, "Utilization Management Organization"),
            Self::Spouse => write!(f, "Spouse"),
            Self::DurableMedicalEquipmentSupplier => write!(f, "Durable Medical Equipment Supplier"),
            Self::MutuallyDefined => write!(f, "Mutually Defined"),
            Self::UnknownValue(s) => write!(f, "{s}"),
        }
    }
}

impl Default for Entity {
    fn default() -> Entity {
        Self::HealthMaintenanceOrganizationLeftParenthesisHmoRightParenthesis
    }
}