x12_alt 0.1.0

Data types for X12 EDI
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
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
use std::fmt;
use serde::{de, Deserialize, ser, Serialize};
/**901

See docs at <https://www.stedi.com/edi/x12/element/901>*/
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum RejectReasonCode {
    ///01 - Price Authorization Invalid
    PriceAuthorizationInvalid,
    ///02 - Price Authorization Expired
    PriceAuthorizationExpired,
    ///03 - Product not on the price authorization
    ProductNotOnThePriceAuthorization,
    ///04 - Authorized Quantity Exceeded
    AuthorizedQuantityExceeded,
    ///05 - Zero Balance
    ZeroBalance,
    ///06 - Special Cost Incorrect
    SpecialCostIncorrect,
    ///07 - Catalog Cost Incorrect
    CatalogCostIncorrect,
    ///08 - Invalid Ship Location
    InvalidShipLocation,
    ///09 - No Credit Allowed
    NoCreditAllowed,
    ///10 - Administrative Cancellation
    AdministrativeCancellation,
    ///11 - Invalid Debit Number
    InvalidDebitNumber,
    ///12 - Duplicate Sequence Number
    DuplicateSequenceNumber,
    ///13 - Not Valid for Price Protection
    NotValidForPriceProtection,
    ///14 - Invalid part number
    InvalidPartNumber,
    ///15 - Required application data missing
    RequiredApplicationDataMissing,
    ///16 - Unit resale higher than authorized
    UnitResaleHigherThanAuthorized,
    ///17 - Negotiated price was not less than book price
    NegotiatedPriceWasNotLessThanBookPrice,
    ///18 - Ship date must not be after current date
    ShipDateMustNotBeAfterCurrentDate,
    ///19 - Ship date cannot be prior to price authorization issue date
    ShipDateCannotBePriorToPriceAuthorizationIssueDate,
    ///20 - Ship date should not be before price authorization date (for rebills)
    Code20,
    ///21 - Price authorization is a rebill type
    PriceAuthorizationIsARebillType,
    ///23 - Price authorization has been deleted
    PriceAuthorizationHasBeenDeleted,
    ///24 - Price authorization used on a sales order
    PriceAuthorizationUsedOnASalesOrder,
    ///25 - Disposition pending vendor review.
    DispositionPendingVendorReview,
    ///26 - Invalid Customer Number
    InvalidCustomerNumber,
    ///27 - Invalid Ship Date
    InvalidShipDate,
    ///28 - Duplicate Invoice Number
    DuplicateInvoiceNumber,
    ///29 - Claim Submitted Past Exercise Period
    ClaimSubmittedPastExercisePeriod,
    ///30 - Invalid Meet Competition Cost
    InvalidMeetCompetitionCost,
    ///31 - Invalid Book Cost
    InvalidBookCost,
    ///32 - Input Incomplete
    InputIncomplete,
    ///33 - Input Errors
    InputErrors,
    ///34 - No Coverage
    NoCoverage,
    ///35 - Out of Network
    OutOfNetwork,
    ///36 - Testing not Included
    TestingNotIncluded,
    ///37 - Request Forwarded To and Decision Response Forthcoming From an External Review Organization
    RequestForwardedToAndDecisionResponseForthcomingFromAnExternalReviewOrganization,
    ///38 - Claim Can Not Be Identified for Verification
    ClaimCanNotBeIdentifiedForVerification,
    ///39 - Actual Information Different than Reported
    ActualInformationDifferentThanReported,
    ///40 - Actual Information Different - Claim Has Been Re-adjudicated Since Initial Payment
    ActualInformationDifferentClaimHasBeenReAdjudicatedSinceInitialPayment,
    ///41 - Authorization/Access Restrictions
    AuthorizationAccessRestrictions,
    ///42 - Unable to Respond at Current Time
    UnableToRespondAtCurrentTime,
    ///43 - Invalid/Missing Provider Identification
    InvalidMissingProviderIdentification,
    ///44 - Invalid/Missing Provider Name
    InvalidMissingProviderName,
    ///45 - Invalid/Missing Provider Specialty
    InvalidMissingProviderSpecialty,
    ///46 - Invalid/Missing Provider Phone Number
    InvalidMissingProviderPhoneNumber,
    ///47 - Invalid/Missing Provider State
    InvalidMissingProviderState,
    ///48 - Invalid/Missing Referring Provider Identification Number
    InvalidMissingReferringProviderIdentificationNumber,
    ///49 - Provider is Not Primary Care Physician
    ProviderIsNotPrimaryCarePhysician,
    ///50 - Provider Ineligible for Inquiries
    ProviderIneligibleForInquiries,
    ///51 - Provider Not on File
    ProviderNotOnFile,
    ///52 - Service Dates Not Within Provider Plan Enrollment
    ServiceDatesNotWithinProviderPlanEnrollment,
    ///53 - Inquired Benefit Inconsistent with Provider Type
    InquiredBenefitInconsistentWithProviderType,
    ///54 - Inappropriate Product/Service ID Qualifier
    InappropriateProductServiceIdQualifier,
    ///55 - Inappropriate Product/Service ID
    InappropriateProductServiceId,
    ///56 - Inappropriate Date
    InappropriateDate,
    ///57 - Invalid/Missing Date(s) of Service
    Code57,
    ///58 - Invalid/Missing Date-of-Birth
    InvalidMissingDateOfBirth,
    ///59 - Invalid/Missing Date-of-Death
    InvalidMissingDateOfDeath,
    ///60 - Date of Birth Follows Date(s) of Service
    Code60,
    ///61 - Date of Death Precedes Date(s) of Service
    Code61,
    ///62 - Date of Service Not Within Allowable Inquiry Period
    DateOfServiceNotWithinAllowableInquiryPeriod,
    ///63 - Date of Service in Future
    DateOfServiceInFuture,
    ///64 - Invalid/Missing Patient ID
    InvalidMissingPatientId,
    ///65 - Invalid/Missing Patient Name
    InvalidMissingPatientName,
    ///66 - Invalid/Missing Patient Gender Code
    InvalidMissingPatientGenderCode,
    ///67 - Patient Not Found
    PatientNotFound,
    ///68 - Duplicate Patient ID Number
    DuplicatePatientIdNumber,
    ///69 - Inconsistent with Patient's Age
    InconsistentWithPatientsAge,
    ///70 - Inconsistent with Patient's Gender
    InconsistentWithPatientsGender,
    ///71 - Patient Birth Date Does Not Match That for the Patient on the Database
    PatientBirthDateDoesNotMatchThatForThePatientOnTheDatabase,
    ///72 - Invalid/Missing Subscriber/Insured ID
    InvalidMissingSubscriberInsuredId,
    ///73 - Invalid/Missing Subscriber/Insured Name
    InvalidMissingSubscriberInsuredName,
    ///74 - Invalid/Missing Subscriber/Insured Gender Code
    InvalidMissingSubscriberInsuredGenderCode,
    ///75 - Subscriber/Insured Not Found
    SubscriberInsuredNotFound,
    ///76 - Duplicate Subscriber/Insured ID Number
    DuplicateSubscriberInsuredIdNumber,
    ///77 - Subscriber Found, Patient Not Found
    Code77,
    ///78 - Subscriber/Insured Not in Group/Plan Identified
    SubscriberInsuredNotInGroupPlanIdentified,
    ///79 - Invalid Participant Identification
    InvalidParticipantIdentification,
    ///80 - No Response received - Transaction Terminated
    NoResponseReceivedTransactionTerminated,
    ///81 - Invalid or Missing Case Number
    InvalidOrMissingCaseNumber,
    ///82 - Not Medically Necessary
    NotMedicallyNecessary,
    ///83 - Level of Care Not Appropriate
    LevelOfCareNotAppropriate,
    ///84 - Certification Not Required for this Service
    CertificationNotRequiredForThisService,
    ///85 - Certification Responsibility of External Review Organization
    CertificationResponsibilityOfExternalReviewOrganization,
    ///86 - Primary Care Service
    PrimaryCareService,
    ///87 - Exceeds Plan Maximums
    ExceedsPlanMaximums,
    ///88 - Non-covered Service
    NonCoveredService,
    ///89 - No Prior Approval
    NoPriorApproval,
    ///90 - Requested Information Not Received
    RequestedInformationNotReceived,
    ///91 - Duplicate Request
    DuplicateRequest,
    ///92 - Service Inconsistent with Diagnosis
    ServiceInconsistentWithDiagnosis,
    ///93 - Invalid Provider Identification
    InvalidProviderIdentification,
    ///94 - Missing Provider Identification
    MissingProviderIdentification,
    ///95 - Patient Not Eligible
    PatientNotEligible,
    ///96 - Pre-existing Condition
    PreExistingCondition,
    ///97 - Invalid or Missing Provider Address
    InvalidOrMissingProviderAddress,
    ///98 - Experimental Service or Procedure
    ExperimentalServiceOrProcedure,
    ///AA - Authorization Number Not Found
    AuthorizationNumberNotFound,
    ///AB - Air Brakes - Inoperative, etc.
    CodeAB,
    ///AC - Missing Date(s) of Service
    CodeAC,
    ///AD - Accident Damage - Derail/Sideswiped
    AccidentDamageDerailSideswiped,
    ///AE - Requires Primary Care Physician Authorization
    RequiresPrimaryCarePhysicianAuthorization,
    ///AF - Invalid/Missing Diagnosis Code(s)
    CodeAF,
    ///AG - Invalid/Missing Procedure Code(s)
    CodeAG,
    ///AH - Invalid/Missing Onset of Current Condition or Illness Date
    InvalidMissingOnsetOfCurrentConditionOrIllnessDate,
    ///AI - Invalid/Missing Accident Date
    InvalidMissingAccidentDate,
    ///AJ - Invalid/Missing Last Menstrual Period Date
    InvalidMissingLastMenstrualPeriodDate,
    ///AK - Invalid/Missing Expected Date of Birth
    InvalidMissingExpectedDateOfBirth,
    ///AL - Invalid/Missing Surgery Date
    InvalidMissingSurgeryDate,
    ///AM - Invalid/Missing Admission Date
    InvalidMissingAdmissionDate,
    ///AN - Invalid/Missing Discharge Date
    InvalidMissingDischargeDate,
    ///AO - Additional Patient Condition Information Required
    AdditionalPatientConditionInformationRequired,
    ///AP - Invalid Date of Birth
    InvalidDateOfBirth,
    ///AQ - Missing Date of Birth
    MissingDateOfBirth,
    ///AR - Arrivals
    Arrivals,
    ///AS - Invalid Gender Code
    InvalidGenderCode,
    ///AT - Missing Gender Code
    MissingGenderCode,
    ///AU - Provider Identification Does Not Match That on the Database
    ProviderIdentificationDoesNotMatchThatOnTheDatabase,
    ///AV - Invalid Member Identification
    InvalidMemberIdentification,
    ///AW - Invalid Date(s) of Service
    CodeAW,
    ///AX - System is Unable to Respond Within the Allotted Time
    SystemIsUnableToRespondWithinTheAllottedTime,
    ///AY - Invalid Last Name
    InvalidLastName,
    ///AZ - Invalid First Name
    InvalidFirstName,
    ///B1 - Contract Price Error
    ContractPriceError,
    ///B2 - Contract Price Mark Up Error
    ContractPriceMarkUpError,
    ///B3 - Contract Price Freight Error
    ContractPriceFreightError,
    ///B4 - Contract Price Volume Discount Error
    ContractPriceVolumeDiscountError,
    ///B5 - Contract Price Starting Price Error
    ContractPriceStartingPriceError,
    ///B6 - Contract Price Invalid Date Range
    ContractPriceInvalidDateRange,
    ///B7 - Contract Price Freight Surcharge Error
    ContractPriceFreightSurchargeError,
    ///B8 - Drop Size Error
    DropSizeError,
    ///B9 - Drop Frequency Error
    DropFrequencyError,
    ///BA - Reject Due to Air Bags
    RejectDueToAirBags,
    ///BB - Missing Last Name
    MissingLastName,
    ///BC - Reject Due to No Chains
    RejectDueToNoChains,
    ///BD - Reject Due to Damps
    RejectDueToDamps,
    ///BE - Missing First Name
    MissingFirstName,
    ///BF - Missing Member Identification
    MissingMemberIdentification,
    ///BG - Reject Due to Bearings
    RejectDueToBearings,
    ///BH - Member Identification Does Not Match That on the Database
    MemberIdentificationDoesNotMatchThatOnTheDatabase,
    ///BI - Gender Code Does Not Match That on the Database
    GenderCodeDoesNotMatchThatOnTheDatabase,
    ///BJ - First Name Does Not Match That on the Database
    FirstNameDoesNotMatchThatOnTheDatabase,
    ///BK - Last Name Does Not Match That on the Database
    LastNameDoesNotMatchThatOnTheDatabase,
    ///BL - Reject Due to Load Divider Bad Order
    RejectDueToLoadDividerBadOrder,
    ///BM - Invalid Middle Name
    InvalidMiddleName,
    ///BN - Missing Middle Name
    MissingMiddleName,
    ///BO - Loaded Car, Unable to Load
    CodeBO,
    ///BP - Reject Due to Bridge Plate
    RejectDueToBridgePlate,
    ///BQ - Middle Name Does Not Match That on the Database
    MiddleNameDoesNotMatchThatOnTheDatabase,
    ///BR - Reject Due to Brake Rigging Beam, Lever
    CodeBR,
    ///BS - Reject Due to Bad Order Slides
    RejectDueToBadOrderSlides,
    ///BT - Invalid Suffix
    InvalidSuffix,
    ///BU - Missing Suffix
    MissingSuffix,
    ///BV - Reject Due to Bad Order Valves/Piping
    RejectDueToBadOrderValvesPiping,
    ///BW - Reject Due to Bad Order Walls
    RejectDueToBadOrderWalls,
    ///BX - Suffix Does Not Match That on the Database
    SuffixDoesNotMatchThatOnTheDatabase,
    ///C1 - Date Error
    DateError,
    ///C2 - Duplicate Program
    DuplicateProgram,
    ///C3 - Duplicate Contract
    DuplicateContract,
    ///C4 - Not As Negotiated
    NotAsNegotiated,
    ///C5 - Product Missing
    ProductMissing,
    ///C6 - Quantity Error
    QuantityError,
    ///C7 - Incorrect Allowance
    IncorrectAllowance,
    ///C8 - Incorrect Start Date
    IncorrectStartDate,
    ///C9 - Incorrect End Date
    IncorrectEndDate,
    ///CA - Reject Due to Crank Arm Application
    RejectDueToCrankArmApplication,
    ///CB - Reject Due to Center Bowls, Plates and Pins
    CodeCB,
    ///CI - Certification Information Does Not Match Patient
    CertificationInformationDoesNotMatchPatient,
    ///CL - Complete Loading
    CompleteLoading,
    ///CM - Released as Railroad Company Material
    ReleasedAsRailroadCompanyMaterial,
    ///CN - Car Not Ordered
    CarNotOrdered,
    ///CP - Put on Constructive Placement
    PutOnConstructivePlacement,
    ///CR - Wrong Consignee
    WrongConsignee,
    ///CS - Release Load Through Bill Connecting Road
    ReleaseLoadThroughBillConnectingRoad,
    ///CT - Release as a Cross-town Load
    ReleaseAsACrossTownLoad,
    ///CU - Equipment Not Used
    EquipmentNotUsed,
    ///CW - Wrong Car Type
    WrongCarType,
    ///DD - Reject Due to Doors
    RejectDueToDoors,
    ///DG - Reject Due to Draft Gear - Yoke
    RejectDueToDraftGearYoke,
    ///DM - Dismantle
    Dismantle,
    ///DP - Departed
    Departed,
    ///DR - Reject Due to Dirty
    RejectDueToDirty,
    ///DS - Defective Safety Devices
    DefectiveSafetyDevices,
    ///DU - Duplicate Service Type
    DuplicateServiceType,
    ///DV - Reject Due to Load Dividers, Side Filters, Special Equipment
    CodeDV,
    ///E1 - Requested Record Will Not Be Sent; Cannot Identify the Record
    CodeE1,
    ///E2 - Requested Record Will Not Be Sent; Need Student or Parent Permission
    CodeE2,
    ///E3 - Requested Record Will Not Be Sent
    RequestedRecordWillNotBeSent,
    ///E4 - Requested Record Will Not Be Sent; Never Enrolled
    CodeE4,
    ///E5 - Requested Record Will Not Be Sent; No Degree Awarded
    CodeE5,
    ///E6 - Requested Record Will Not Be Sent; No Grades Posted
    CodeE6,
    ///E7 - Requested Record Cannot Be Sent Electronically; Record Resides in Paper Format only which Will Be Sent by Mail
    CodeE7,
    ///E8 - Requires Medical Review
    RequiresMedicalReview,
    ///EA - Empty Equipment Available for Loading
    EmptyEquipmentAvailableForLoading,
    ///ER - Reject Due to Spotted in Error
    RejectDueToSpottedInError,
    ///ET - Empty Trailer Flat Release
    EmptyTrailerFlatRelease,
    ///FD - Freight Damage Claim
    FreightDamageClaim,
    ///FR - Reject Due to Bad Floor
    RejectDueToBadFloor,
    ///GI - Group Number is Invalid
    GroupNumberIsInvalid,
    ///GM - Group Number is Missing
    GroupNumberIsMissing,
    ///GS - Release From Demurrage and Start Storage until Waybilled
    ReleaseFromDemurrageAndStartStorageUntilWaybilled,
    ///HB - Reject Due to Handbrake
    RejectDueToHandbrake,
    ///HH - Reject Due to Hand Hold, Ladder, Step, Running Boards, Platforms, etc.
    CodeHH,
    ///HX - Reject Due to Hot Journal Box
    RejectDueToHotJournalBox,
    ///IA - Invalid Authorization Number Format
    InvalidAuthorizationNumberFormat,
    ///ID - Releases an Idler
    ReleasesAnIdler,
    ///II - Industrial Interchange
    IndustrialInterchange,
    ///IP - Inappropriate Provider Role
    InappropriateProviderRole,
    ///J1 - Ambulance Certification Segment Information Doesn't Correspond to Transport Address Segment Information
    AmbulanceCertificationSegmentDoesntCorrespondToTransportAddressSegment,
    ///J2 - Mileage Cannot Be Computed Based on Data Submitted
    MileageCannotBeComputedBasedOnDataSubmitted,
    ///J3 - Computed Mileage is Inconsistent with Transport Information or Service Units
    ComputedMileageIsInconsistentWithTransportInformationOrServiceUnits,
    ///KR - Reject Due to Couplers
    RejectDueToCouplers,
    ///LK - Reject Due to Leaking Contents
    RejectDueToLeakingContents,
    ///LS - Reject Due to Load Shifted
    RejectDueToLoadShifted,
    ///LW - Light Weigh and Restencil
    LightWeighAndRestencil,
    ///MA - Missing Authorization Number
    MissingAuthorizationNumber,
    ///MO - Move from Current Spot to Next
    MoveFromCurrentSpotToNext,
    ///MU - Missing Number of Units
    MissingNumberOfUnits,
    ///NC - No Certification Information Found
    NoCertificationInformationFound,
    ///OG - Reject Due to Outlet Gate/Valve Lo and Open Hopper
    RejectDueToOutletGateValveLoAndOpenHopper,
    ///OI - Released from Industry to be Inspected
    ReleasedFromIndustryToBeInspected,
    ///OR - Ordered for Replacement
    OrderedForReplacement,
    ///OV - Reject Due to Overloaded
    RejectDueToOverloaded,
    ///PM - Preventative Maintenance
    PreventativeMaintenance,
    ///RB - Released from Industry to Custody of Broker
    ReleasedFromIndustryToCustodyOfBroker,
    ///RD - To be Reloaded
    ToBeReloaded,
    ///RF - Reject Due to Refrigeration Unit
    RejectDueToRefrigerationUnit,
    ///RH - Reject Due to Roof Hatches
    RejectDueToRoofHatches,
    ///RK - Reject Due to Racks (Bi or Tri Levels)
    CodeRK,
    ///RL - Released
    Released,
    ///RM - Requesting Provider Contact Information Missing
    RequestingProviderContactInformationMissing,
    ///RN - Bad Order Reinitialing and Numbering
    BadOrderReinitialingAndNumbering,
    ///RP - Released Partially Unloaded
    ReleasedPartiallyUnloaded,
    ///RS - Released Loaded for Line Haul Shipment
    ReleasedLoadedForLineHaulShipment,
    ///RT - Run Through Equipment not Spotted
    RunThroughEquipmentNotSpotted,
    ///SC - Released from Demurrage after being Scrapped
    ReleasedFromDemurrageAfterBeingScrapped,
    ///ST - Released from Shop Track
    ReleasedFromShopTrack,
    ///SU - Reject Due to Superstructure - End, Roof and Sides
    CodeSU,
    ///SW - Local Waybill
    LocalWaybill,
    ///T1 - Cannot Identify Provider as TPO (Third Party Organization) Participant
    CodeT1,
    ///T2 - Cannot Identify Payer as TPO (Third Party Organization) Participant
    CodeT2,
    ///T3 - Cannot Identify Insured as TPO (Third Party Organization) Participant
    CodeT3,
    ///T4 - Payer Name or Identifier Missing
    PayerNameOrIdentifierMissing,
    ///T5 - Certification Information Missing
    CertificationInformationMissing,
    ///T6 - Claim does not contain enough information for re-pricing
    ClaimDoesNotContainEnoughInformationForRePricing,
    ///TC - Bad Order to Transfer Lading
    BadOrderToTransferLading,
    ///TD - Reject Due to Tie Down Devices
    RejectDueToTieDownDevices,
    ///TH - Reject Due to Trailer Hitch
    RejectDueToTrailerHitch,
    ///TL - Reject Due to Train Line, Air Hose, Anglecock
    CodeTL,
    ///TR - Reject Due to Truck, S-Frame, Bolster
    CodeTR,
    ///UC - Reject Due to Uncoupling Rod
    RejectDueToUncouplingRod,
    ///UF - Reject Due to Underframe - Including Sills
    RejectDueToUnderframeIncludingSills,
    ///UG - Bad Order for Upgrading of Car
    BadOrderForUpgradingOfCar,
    ///UN - Invalid Number of Units
    InvalidNumberOfUnits,
    ///WA - Reject Due to Wheel/Axle
    RejectDueToWheelAxle,
    ///WK - Bad Order Due to Wreck
    BadOrderDueToWreck,
    ///XR - Inquiry Response Type Not Supported
    InquiryResponseTypeNotSupported,
    ///XT - Responding System Cannot Process Inquiry Type in Real-time
    RespondingSystemCannotProcessInquiryTypeInRealTime,
    ///ZZ - Mutually Defined
    MutuallyDefined,
}
impl RejectReasonCode {
    pub fn code(&self) -> &str {
        {
            use RejectReasonCode::*;
            match self {
                PriceAuthorizationInvalid => "01",
                PriceAuthorizationExpired => "02",
                ProductNotOnThePriceAuthorization => "03",
                AuthorizedQuantityExceeded => "04",
                ZeroBalance => "05",
                SpecialCostIncorrect => "06",
                CatalogCostIncorrect => "07",
                InvalidShipLocation => "08",
                NoCreditAllowed => "09",
                AdministrativeCancellation => "10",
                InvalidDebitNumber => "11",
                DuplicateSequenceNumber => "12",
                NotValidForPriceProtection => "13",
                InvalidPartNumber => "14",
                RequiredApplicationDataMissing => "15",
                UnitResaleHigherThanAuthorized => "16",
                NegotiatedPriceWasNotLessThanBookPrice => "17",
                ShipDateMustNotBeAfterCurrentDate => "18",
                ShipDateCannotBePriorToPriceAuthorizationIssueDate => "19",
                Code20 => "20",
                PriceAuthorizationIsARebillType => "21",
                PriceAuthorizationHasBeenDeleted => "23",
                PriceAuthorizationUsedOnASalesOrder => "24",
                DispositionPendingVendorReview => "25",
                InvalidCustomerNumber => "26",
                InvalidShipDate => "27",
                DuplicateInvoiceNumber => "28",
                ClaimSubmittedPastExercisePeriod => "29",
                InvalidMeetCompetitionCost => "30",
                InvalidBookCost => "31",
                InputIncomplete => "32",
                InputErrors => "33",
                NoCoverage => "34",
                OutOfNetwork => "35",
                TestingNotIncluded => "36",
                RequestForwardedToAndDecisionResponseForthcomingFromAnExternalReviewOrganization => {
                    "37"
                }
                ClaimCanNotBeIdentifiedForVerification => "38",
                ActualInformationDifferentThanReported => "39",
                ActualInformationDifferentClaimHasBeenReAdjudicatedSinceInitialPayment => {
                    "40"
                }
                AuthorizationAccessRestrictions => "41",
                UnableToRespondAtCurrentTime => "42",
                InvalidMissingProviderIdentification => "43",
                InvalidMissingProviderName => "44",
                InvalidMissingProviderSpecialty => "45",
                InvalidMissingProviderPhoneNumber => "46",
                InvalidMissingProviderState => "47",
                InvalidMissingReferringProviderIdentificationNumber => "48",
                ProviderIsNotPrimaryCarePhysician => "49",
                ProviderIneligibleForInquiries => "50",
                ProviderNotOnFile => "51",
                ServiceDatesNotWithinProviderPlanEnrollment => "52",
                InquiredBenefitInconsistentWithProviderType => "53",
                InappropriateProductServiceIdQualifier => "54",
                InappropriateProductServiceId => "55",
                InappropriateDate => "56",
                Code57 => "57",
                InvalidMissingDateOfBirth => "58",
                InvalidMissingDateOfDeath => "59",
                Code60 => "60",
                Code61 => "61",
                DateOfServiceNotWithinAllowableInquiryPeriod => "62",
                DateOfServiceInFuture => "63",
                InvalidMissingPatientId => "64",
                InvalidMissingPatientName => "65",
                InvalidMissingPatientGenderCode => "66",
                PatientNotFound => "67",
                DuplicatePatientIdNumber => "68",
                InconsistentWithPatientsAge => "69",
                InconsistentWithPatientsGender => "70",
                PatientBirthDateDoesNotMatchThatForThePatientOnTheDatabase => "71",
                InvalidMissingSubscriberInsuredId => "72",
                InvalidMissingSubscriberInsuredName => "73",
                InvalidMissingSubscriberInsuredGenderCode => "74",
                SubscriberInsuredNotFound => "75",
                DuplicateSubscriberInsuredIdNumber => "76",
                Code77 => "77",
                SubscriberInsuredNotInGroupPlanIdentified => "78",
                InvalidParticipantIdentification => "79",
                NoResponseReceivedTransactionTerminated => "80",
                InvalidOrMissingCaseNumber => "81",
                NotMedicallyNecessary => "82",
                LevelOfCareNotAppropriate => "83",
                CertificationNotRequiredForThisService => "84",
                CertificationResponsibilityOfExternalReviewOrganization => "85",
                PrimaryCareService => "86",
                ExceedsPlanMaximums => "87",
                NonCoveredService => "88",
                NoPriorApproval => "89",
                RequestedInformationNotReceived => "90",
                DuplicateRequest => "91",
                ServiceInconsistentWithDiagnosis => "92",
                InvalidProviderIdentification => "93",
                MissingProviderIdentification => "94",
                PatientNotEligible => "95",
                PreExistingCondition => "96",
                InvalidOrMissingProviderAddress => "97",
                ExperimentalServiceOrProcedure => "98",
                AuthorizationNumberNotFound => "AA",
                CodeAB => "AB",
                CodeAC => "AC",
                AccidentDamageDerailSideswiped => "AD",
                RequiresPrimaryCarePhysicianAuthorization => "AE",
                CodeAF => "AF",
                CodeAG => "AG",
                InvalidMissingOnsetOfCurrentConditionOrIllnessDate => "AH",
                InvalidMissingAccidentDate => "AI",
                InvalidMissingLastMenstrualPeriodDate => "AJ",
                InvalidMissingExpectedDateOfBirth => "AK",
                InvalidMissingSurgeryDate => "AL",
                InvalidMissingAdmissionDate => "AM",
                InvalidMissingDischargeDate => "AN",
                AdditionalPatientConditionInformationRequired => "AO",
                InvalidDateOfBirth => "AP",
                MissingDateOfBirth => "AQ",
                Arrivals => "AR",
                InvalidGenderCode => "AS",
                MissingGenderCode => "AT",
                ProviderIdentificationDoesNotMatchThatOnTheDatabase => "AU",
                InvalidMemberIdentification => "AV",
                CodeAW => "AW",
                SystemIsUnableToRespondWithinTheAllottedTime => "AX",
                InvalidLastName => "AY",
                InvalidFirstName => "AZ",
                ContractPriceError => "B1",
                ContractPriceMarkUpError => "B2",
                ContractPriceFreightError => "B3",
                ContractPriceVolumeDiscountError => "B4",
                ContractPriceStartingPriceError => "B5",
                ContractPriceInvalidDateRange => "B6",
                ContractPriceFreightSurchargeError => "B7",
                DropSizeError => "B8",
                DropFrequencyError => "B9",
                RejectDueToAirBags => "BA",
                MissingLastName => "BB",
                RejectDueToNoChains => "BC",
                RejectDueToDamps => "BD",
                MissingFirstName => "BE",
                MissingMemberIdentification => "BF",
                RejectDueToBearings => "BG",
                MemberIdentificationDoesNotMatchThatOnTheDatabase => "BH",
                GenderCodeDoesNotMatchThatOnTheDatabase => "BI",
                FirstNameDoesNotMatchThatOnTheDatabase => "BJ",
                LastNameDoesNotMatchThatOnTheDatabase => "BK",
                RejectDueToLoadDividerBadOrder => "BL",
                InvalidMiddleName => "BM",
                MissingMiddleName => "BN",
                CodeBO => "BO",
                RejectDueToBridgePlate => "BP",
                MiddleNameDoesNotMatchThatOnTheDatabase => "BQ",
                CodeBR => "BR",
                RejectDueToBadOrderSlides => "BS",
                InvalidSuffix => "BT",
                MissingSuffix => "BU",
                RejectDueToBadOrderValvesPiping => "BV",
                RejectDueToBadOrderWalls => "BW",
                SuffixDoesNotMatchThatOnTheDatabase => "BX",
                DateError => "C1",
                DuplicateProgram => "C2",
                DuplicateContract => "C3",
                NotAsNegotiated => "C4",
                ProductMissing => "C5",
                QuantityError => "C6",
                IncorrectAllowance => "C7",
                IncorrectStartDate => "C8",
                IncorrectEndDate => "C9",
                RejectDueToCrankArmApplication => "CA",
                CodeCB => "CB",
                CertificationInformationDoesNotMatchPatient => "CI",
                CompleteLoading => "CL",
                ReleasedAsRailroadCompanyMaterial => "CM",
                CarNotOrdered => "CN",
                PutOnConstructivePlacement => "CP",
                WrongConsignee => "CR",
                ReleaseLoadThroughBillConnectingRoad => "CS",
                ReleaseAsACrossTownLoad => "CT",
                EquipmentNotUsed => "CU",
                WrongCarType => "CW",
                RejectDueToDoors => "DD",
                RejectDueToDraftGearYoke => "DG",
                Dismantle => "DM",
                Departed => "DP",
                RejectDueToDirty => "DR",
                DefectiveSafetyDevices => "DS",
                DuplicateServiceType => "DU",
                CodeDV => "DV",
                CodeE1 => "E1",
                CodeE2 => "E2",
                RequestedRecordWillNotBeSent => "E3",
                CodeE4 => "E4",
                CodeE5 => "E5",
                CodeE6 => "E6",
                CodeE7 => "E7",
                RequiresMedicalReview => "E8",
                EmptyEquipmentAvailableForLoading => "EA",
                RejectDueToSpottedInError => "ER",
                EmptyTrailerFlatRelease => "ET",
                FreightDamageClaim => "FD",
                RejectDueToBadFloor => "FR",
                GroupNumberIsInvalid => "GI",
                GroupNumberIsMissing => "GM",
                ReleaseFromDemurrageAndStartStorageUntilWaybilled => "GS",
                RejectDueToHandbrake => "HB",
                CodeHH => "HH",
                RejectDueToHotJournalBox => "HX",
                InvalidAuthorizationNumberFormat => "IA",
                ReleasesAnIdler => "ID",
                IndustrialInterchange => "II",
                InappropriateProviderRole => "IP",
                AmbulanceCertificationSegmentDoesntCorrespondToTransportAddressSegment => {
                    "J1"
                }
                MileageCannotBeComputedBasedOnDataSubmitted => "J2",
                ComputedMileageIsInconsistentWithTransportInformationOrServiceUnits => {
                    "J3"
                }
                RejectDueToCouplers => "KR",
                RejectDueToLeakingContents => "LK",
                RejectDueToLoadShifted => "LS",
                LightWeighAndRestencil => "LW",
                MissingAuthorizationNumber => "MA",
                MoveFromCurrentSpotToNext => "MO",
                MissingNumberOfUnits => "MU",
                NoCertificationInformationFound => "NC",
                RejectDueToOutletGateValveLoAndOpenHopper => "OG",
                ReleasedFromIndustryToBeInspected => "OI",
                OrderedForReplacement => "OR",
                RejectDueToOverloaded => "OV",
                PreventativeMaintenance => "PM",
                ReleasedFromIndustryToCustodyOfBroker => "RB",
                ToBeReloaded => "RD",
                RejectDueToRefrigerationUnit => "RF",
                RejectDueToRoofHatches => "RH",
                CodeRK => "RK",
                Released => "RL",
                RequestingProviderContactInformationMissing => "RM",
                BadOrderReinitialingAndNumbering => "RN",
                ReleasedPartiallyUnloaded => "RP",
                ReleasedLoadedForLineHaulShipment => "RS",
                RunThroughEquipmentNotSpotted => "RT",
                ReleasedFromDemurrageAfterBeingScrapped => "SC",
                ReleasedFromShopTrack => "ST",
                CodeSU => "SU",
                LocalWaybill => "SW",
                CodeT1 => "T1",
                CodeT2 => "T2",
                CodeT3 => "T3",
                PayerNameOrIdentifierMissing => "T4",
                CertificationInformationMissing => "T5",
                ClaimDoesNotContainEnoughInformationForRePricing => "T6",
                BadOrderToTransferLading => "TC",
                RejectDueToTieDownDevices => "TD",
                RejectDueToTrailerHitch => "TH",
                CodeTL => "TL",
                CodeTR => "TR",
                RejectDueToUncouplingRod => "UC",
                RejectDueToUnderframeIncludingSills => "UF",
                BadOrderForUpgradingOfCar => "UG",
                InvalidNumberOfUnits => "UN",
                RejectDueToWheelAxle => "WA",
                BadOrderDueToWreck => "WK",
                InquiryResponseTypeNotSupported => "XR",
                RespondingSystemCannotProcessInquiryTypeInRealTime => "XT",
                MutuallyDefined => "ZZ",
            }
        }
    }
    pub fn from_code(code: &[u8]) -> Option<RejectReasonCode> {
        use RejectReasonCode::*;
        match code {
            b"01" => Some(PriceAuthorizationInvalid),
            b"02" => Some(PriceAuthorizationExpired),
            b"03" => Some(ProductNotOnThePriceAuthorization),
            b"04" => Some(AuthorizedQuantityExceeded),
            b"05" => Some(ZeroBalance),
            b"06" => Some(SpecialCostIncorrect),
            b"07" => Some(CatalogCostIncorrect),
            b"08" => Some(InvalidShipLocation),
            b"09" => Some(NoCreditAllowed),
            b"10" => Some(AdministrativeCancellation),
            b"11" => Some(InvalidDebitNumber),
            b"12" => Some(DuplicateSequenceNumber),
            b"13" => Some(NotValidForPriceProtection),
            b"14" => Some(InvalidPartNumber),
            b"15" => Some(RequiredApplicationDataMissing),
            b"16" => Some(UnitResaleHigherThanAuthorized),
            b"17" => Some(NegotiatedPriceWasNotLessThanBookPrice),
            b"18" => Some(ShipDateMustNotBeAfterCurrentDate),
            b"19" => Some(ShipDateCannotBePriorToPriceAuthorizationIssueDate),
            b"20" => Some(Code20),
            b"21" => Some(PriceAuthorizationIsARebillType),
            b"23" => Some(PriceAuthorizationHasBeenDeleted),
            b"24" => Some(PriceAuthorizationUsedOnASalesOrder),
            b"25" => Some(DispositionPendingVendorReview),
            b"26" => Some(InvalidCustomerNumber),
            b"27" => Some(InvalidShipDate),
            b"28" => Some(DuplicateInvoiceNumber),
            b"29" => Some(ClaimSubmittedPastExercisePeriod),
            b"30" => Some(InvalidMeetCompetitionCost),
            b"31" => Some(InvalidBookCost),
            b"32" => Some(InputIncomplete),
            b"33" => Some(InputErrors),
            b"34" => Some(NoCoverage),
            b"35" => Some(OutOfNetwork),
            b"36" => Some(TestingNotIncluded),
            b"37" => {
                Some(
                    RequestForwardedToAndDecisionResponseForthcomingFromAnExternalReviewOrganization,
                )
            }
            b"38" => Some(ClaimCanNotBeIdentifiedForVerification),
            b"39" => Some(ActualInformationDifferentThanReported),
            b"40" => {
                Some(
                    ActualInformationDifferentClaimHasBeenReAdjudicatedSinceInitialPayment,
                )
            }
            b"41" => Some(AuthorizationAccessRestrictions),
            b"42" => Some(UnableToRespondAtCurrentTime),
            b"43" => Some(InvalidMissingProviderIdentification),
            b"44" => Some(InvalidMissingProviderName),
            b"45" => Some(InvalidMissingProviderSpecialty),
            b"46" => Some(InvalidMissingProviderPhoneNumber),
            b"47" => Some(InvalidMissingProviderState),
            b"48" => Some(InvalidMissingReferringProviderIdentificationNumber),
            b"49" => Some(ProviderIsNotPrimaryCarePhysician),
            b"50" => Some(ProviderIneligibleForInquiries),
            b"51" => Some(ProviderNotOnFile),
            b"52" => Some(ServiceDatesNotWithinProviderPlanEnrollment),
            b"53" => Some(InquiredBenefitInconsistentWithProviderType),
            b"54" => Some(InappropriateProductServiceIdQualifier),
            b"55" => Some(InappropriateProductServiceId),
            b"56" => Some(InappropriateDate),
            b"57" => Some(Code57),
            b"58" => Some(InvalidMissingDateOfBirth),
            b"59" => Some(InvalidMissingDateOfDeath),
            b"60" => Some(Code60),
            b"61" => Some(Code61),
            b"62" => Some(DateOfServiceNotWithinAllowableInquiryPeriod),
            b"63" => Some(DateOfServiceInFuture),
            b"64" => Some(InvalidMissingPatientId),
            b"65" => Some(InvalidMissingPatientName),
            b"66" => Some(InvalidMissingPatientGenderCode),
            b"67" => Some(PatientNotFound),
            b"68" => Some(DuplicatePatientIdNumber),
            b"69" => Some(InconsistentWithPatientsAge),
            b"70" => Some(InconsistentWithPatientsGender),
            b"71" => Some(PatientBirthDateDoesNotMatchThatForThePatientOnTheDatabase),
            b"72" => Some(InvalidMissingSubscriberInsuredId),
            b"73" => Some(InvalidMissingSubscriberInsuredName),
            b"74" => Some(InvalidMissingSubscriberInsuredGenderCode),
            b"75" => Some(SubscriberInsuredNotFound),
            b"76" => Some(DuplicateSubscriberInsuredIdNumber),
            b"77" => Some(Code77),
            b"78" => Some(SubscriberInsuredNotInGroupPlanIdentified),
            b"79" => Some(InvalidParticipantIdentification),
            b"80" => Some(NoResponseReceivedTransactionTerminated),
            b"81" => Some(InvalidOrMissingCaseNumber),
            b"82" => Some(NotMedicallyNecessary),
            b"83" => Some(LevelOfCareNotAppropriate),
            b"84" => Some(CertificationNotRequiredForThisService),
            b"85" => Some(CertificationResponsibilityOfExternalReviewOrganization),
            b"86" => Some(PrimaryCareService),
            b"87" => Some(ExceedsPlanMaximums),
            b"88" => Some(NonCoveredService),
            b"89" => Some(NoPriorApproval),
            b"90" => Some(RequestedInformationNotReceived),
            b"91" => Some(DuplicateRequest),
            b"92" => Some(ServiceInconsistentWithDiagnosis),
            b"93" => Some(InvalidProviderIdentification),
            b"94" => Some(MissingProviderIdentification),
            b"95" => Some(PatientNotEligible),
            b"96" => Some(PreExistingCondition),
            b"97" => Some(InvalidOrMissingProviderAddress),
            b"98" => Some(ExperimentalServiceOrProcedure),
            b"AA" => Some(AuthorizationNumberNotFound),
            b"AB" => Some(CodeAB),
            b"AC" => Some(CodeAC),
            b"AD" => Some(AccidentDamageDerailSideswiped),
            b"AE" => Some(RequiresPrimaryCarePhysicianAuthorization),
            b"AF" => Some(CodeAF),
            b"AG" => Some(CodeAG),
            b"AH" => Some(InvalidMissingOnsetOfCurrentConditionOrIllnessDate),
            b"AI" => Some(InvalidMissingAccidentDate),
            b"AJ" => Some(InvalidMissingLastMenstrualPeriodDate),
            b"AK" => Some(InvalidMissingExpectedDateOfBirth),
            b"AL" => Some(InvalidMissingSurgeryDate),
            b"AM" => Some(InvalidMissingAdmissionDate),
            b"AN" => Some(InvalidMissingDischargeDate),
            b"AO" => Some(AdditionalPatientConditionInformationRequired),
            b"AP" => Some(InvalidDateOfBirth),
            b"AQ" => Some(MissingDateOfBirth),
            b"AR" => Some(Arrivals),
            b"AS" => Some(InvalidGenderCode),
            b"AT" => Some(MissingGenderCode),
            b"AU" => Some(ProviderIdentificationDoesNotMatchThatOnTheDatabase),
            b"AV" => Some(InvalidMemberIdentification),
            b"AW" => Some(CodeAW),
            b"AX" => Some(SystemIsUnableToRespondWithinTheAllottedTime),
            b"AY" => Some(InvalidLastName),
            b"AZ" => Some(InvalidFirstName),
            b"B1" => Some(ContractPriceError),
            b"B2" => Some(ContractPriceMarkUpError),
            b"B3" => Some(ContractPriceFreightError),
            b"B4" => Some(ContractPriceVolumeDiscountError),
            b"B5" => Some(ContractPriceStartingPriceError),
            b"B6" => Some(ContractPriceInvalidDateRange),
            b"B7" => Some(ContractPriceFreightSurchargeError),
            b"B8" => Some(DropSizeError),
            b"B9" => Some(DropFrequencyError),
            b"BA" => Some(RejectDueToAirBags),
            b"BB" => Some(MissingLastName),
            b"BC" => Some(RejectDueToNoChains),
            b"BD" => Some(RejectDueToDamps),
            b"BE" => Some(MissingFirstName),
            b"BF" => Some(MissingMemberIdentification),
            b"BG" => Some(RejectDueToBearings),
            b"BH" => Some(MemberIdentificationDoesNotMatchThatOnTheDatabase),
            b"BI" => Some(GenderCodeDoesNotMatchThatOnTheDatabase),
            b"BJ" => Some(FirstNameDoesNotMatchThatOnTheDatabase),
            b"BK" => Some(LastNameDoesNotMatchThatOnTheDatabase),
            b"BL" => Some(RejectDueToLoadDividerBadOrder),
            b"BM" => Some(InvalidMiddleName),
            b"BN" => Some(MissingMiddleName),
            b"BO" => Some(CodeBO),
            b"BP" => Some(RejectDueToBridgePlate),
            b"BQ" => Some(MiddleNameDoesNotMatchThatOnTheDatabase),
            b"BR" => Some(CodeBR),
            b"BS" => Some(RejectDueToBadOrderSlides),
            b"BT" => Some(InvalidSuffix),
            b"BU" => Some(MissingSuffix),
            b"BV" => Some(RejectDueToBadOrderValvesPiping),
            b"BW" => Some(RejectDueToBadOrderWalls),
            b"BX" => Some(SuffixDoesNotMatchThatOnTheDatabase),
            b"C1" => Some(DateError),
            b"C2" => Some(DuplicateProgram),
            b"C3" => Some(DuplicateContract),
            b"C4" => Some(NotAsNegotiated),
            b"C5" => Some(ProductMissing),
            b"C6" => Some(QuantityError),
            b"C7" => Some(IncorrectAllowance),
            b"C8" => Some(IncorrectStartDate),
            b"C9" => Some(IncorrectEndDate),
            b"CA" => Some(RejectDueToCrankArmApplication),
            b"CB" => Some(CodeCB),
            b"CI" => Some(CertificationInformationDoesNotMatchPatient),
            b"CL" => Some(CompleteLoading),
            b"CM" => Some(ReleasedAsRailroadCompanyMaterial),
            b"CN" => Some(CarNotOrdered),
            b"CP" => Some(PutOnConstructivePlacement),
            b"CR" => Some(WrongConsignee),
            b"CS" => Some(ReleaseLoadThroughBillConnectingRoad),
            b"CT" => Some(ReleaseAsACrossTownLoad),
            b"CU" => Some(EquipmentNotUsed),
            b"CW" => Some(WrongCarType),
            b"DD" => Some(RejectDueToDoors),
            b"DG" => Some(RejectDueToDraftGearYoke),
            b"DM" => Some(Dismantle),
            b"DP" => Some(Departed),
            b"DR" => Some(RejectDueToDirty),
            b"DS" => Some(DefectiveSafetyDevices),
            b"DU" => Some(DuplicateServiceType),
            b"DV" => Some(CodeDV),
            b"E1" => Some(CodeE1),
            b"E2" => Some(CodeE2),
            b"E3" => Some(RequestedRecordWillNotBeSent),
            b"E4" => Some(CodeE4),
            b"E5" => Some(CodeE5),
            b"E6" => Some(CodeE6),
            b"E7" => Some(CodeE7),
            b"E8" => Some(RequiresMedicalReview),
            b"EA" => Some(EmptyEquipmentAvailableForLoading),
            b"ER" => Some(RejectDueToSpottedInError),
            b"ET" => Some(EmptyTrailerFlatRelease),
            b"FD" => Some(FreightDamageClaim),
            b"FR" => Some(RejectDueToBadFloor),
            b"GI" => Some(GroupNumberIsInvalid),
            b"GM" => Some(GroupNumberIsMissing),
            b"GS" => Some(ReleaseFromDemurrageAndStartStorageUntilWaybilled),
            b"HB" => Some(RejectDueToHandbrake),
            b"HH" => Some(CodeHH),
            b"HX" => Some(RejectDueToHotJournalBox),
            b"IA" => Some(InvalidAuthorizationNumberFormat),
            b"ID" => Some(ReleasesAnIdler),
            b"II" => Some(IndustrialInterchange),
            b"IP" => Some(InappropriateProviderRole),
            b"J1" => {
                Some(
                    AmbulanceCertificationSegmentDoesntCorrespondToTransportAddressSegment,
                )
            }
            b"J2" => Some(MileageCannotBeComputedBasedOnDataSubmitted),
            b"J3" => {
                Some(ComputedMileageIsInconsistentWithTransportInformationOrServiceUnits)
            }
            b"KR" => Some(RejectDueToCouplers),
            b"LK" => Some(RejectDueToLeakingContents),
            b"LS" => Some(RejectDueToLoadShifted),
            b"LW" => Some(LightWeighAndRestencil),
            b"MA" => Some(MissingAuthorizationNumber),
            b"MO" => Some(MoveFromCurrentSpotToNext),
            b"MU" => Some(MissingNumberOfUnits),
            b"NC" => Some(NoCertificationInformationFound),
            b"OG" => Some(RejectDueToOutletGateValveLoAndOpenHopper),
            b"OI" => Some(ReleasedFromIndustryToBeInspected),
            b"OR" => Some(OrderedForReplacement),
            b"OV" => Some(RejectDueToOverloaded),
            b"PM" => Some(PreventativeMaintenance),
            b"RB" => Some(ReleasedFromIndustryToCustodyOfBroker),
            b"RD" => Some(ToBeReloaded),
            b"RF" => Some(RejectDueToRefrigerationUnit),
            b"RH" => Some(RejectDueToRoofHatches),
            b"RK" => Some(CodeRK),
            b"RL" => Some(Released),
            b"RM" => Some(RequestingProviderContactInformationMissing),
            b"RN" => Some(BadOrderReinitialingAndNumbering),
            b"RP" => Some(ReleasedPartiallyUnloaded),
            b"RS" => Some(ReleasedLoadedForLineHaulShipment),
            b"RT" => Some(RunThroughEquipmentNotSpotted),
            b"SC" => Some(ReleasedFromDemurrageAfterBeingScrapped),
            b"ST" => Some(ReleasedFromShopTrack),
            b"SU" => Some(CodeSU),
            b"SW" => Some(LocalWaybill),
            b"T1" => Some(CodeT1),
            b"T2" => Some(CodeT2),
            b"T3" => Some(CodeT3),
            b"T4" => Some(PayerNameOrIdentifierMissing),
            b"T5" => Some(CertificationInformationMissing),
            b"T6" => Some(ClaimDoesNotContainEnoughInformationForRePricing),
            b"TC" => Some(BadOrderToTransferLading),
            b"TD" => Some(RejectDueToTieDownDevices),
            b"TH" => Some(RejectDueToTrailerHitch),
            b"TL" => Some(CodeTL),
            b"TR" => Some(CodeTR),
            b"UC" => Some(RejectDueToUncouplingRod),
            b"UF" => Some(RejectDueToUnderframeIncludingSills),
            b"UG" => Some(BadOrderForUpgradingOfCar),
            b"UN" => Some(InvalidNumberOfUnits),
            b"WA" => Some(RejectDueToWheelAxle),
            b"WK" => Some(BadOrderDueToWreck),
            b"XR" => Some(InquiryResponseTypeNotSupported),
            b"XT" => Some(RespondingSystemCannotProcessInquiryTypeInRealTime),
            b"ZZ" => Some(MutuallyDefined),
            _ => None,
        }
    }
    fn description(&self) -> &str {
        use RejectReasonCode::*;
        match self {
            PriceAuthorizationInvalid => "Price Authorization Invalid",
            PriceAuthorizationExpired => "Price Authorization Expired",
            ProductNotOnThePriceAuthorization => "Product not on the price authorization",
            AuthorizedQuantityExceeded => "Authorized Quantity Exceeded",
            ZeroBalance => "Zero Balance",
            SpecialCostIncorrect => "Special Cost Incorrect",
            CatalogCostIncorrect => "Catalog Cost Incorrect",
            InvalidShipLocation => "Invalid Ship Location",
            NoCreditAllowed => "No Credit Allowed",
            AdministrativeCancellation => "Administrative Cancellation",
            InvalidDebitNumber => "Invalid Debit Number",
            DuplicateSequenceNumber => "Duplicate Sequence Number",
            NotValidForPriceProtection => "Not Valid for Price Protection",
            InvalidPartNumber => "Invalid part number",
            RequiredApplicationDataMissing => "Required application data missing",
            UnitResaleHigherThanAuthorized => "Unit resale higher than authorized",
            NegotiatedPriceWasNotLessThanBookPrice => {
                "Negotiated price was not less than book price"
            }
            ShipDateMustNotBeAfterCurrentDate => {
                "Ship date must not be after current date"
            }
            ShipDateCannotBePriorToPriceAuthorizationIssueDate => {
                "Ship date cannot be prior to price authorization issue date"
            }
            Code20 => {
                "Ship date should not be before price authorization date (for rebills)"
            }
            PriceAuthorizationIsARebillType => "Price authorization is a rebill type",
            PriceAuthorizationHasBeenDeleted => "Price authorization has been deleted",
            PriceAuthorizationUsedOnASalesOrder => {
                "Price authorization used on a sales order"
            }
            DispositionPendingVendorReview => "Disposition pending vendor review.",
            InvalidCustomerNumber => "Invalid Customer Number",
            InvalidShipDate => "Invalid Ship Date",
            DuplicateInvoiceNumber => "Duplicate Invoice Number",
            ClaimSubmittedPastExercisePeriod => "Claim Submitted Past Exercise Period",
            InvalidMeetCompetitionCost => "Invalid Meet Competition Cost",
            InvalidBookCost => "Invalid Book Cost",
            InputIncomplete => "Input Incomplete",
            InputErrors => "Input Errors",
            NoCoverage => "No Coverage",
            OutOfNetwork => "Out of Network",
            TestingNotIncluded => "Testing not Included",
            RequestForwardedToAndDecisionResponseForthcomingFromAnExternalReviewOrganization => {
                "Request Forwarded To and Decision Response Forthcoming From an External Review Organization"
            }
            ClaimCanNotBeIdentifiedForVerification => {
                "Claim Can Not Be Identified for Verification"
            }
            ActualInformationDifferentThanReported => {
                "Actual Information Different than Reported"
            }
            ActualInformationDifferentClaimHasBeenReAdjudicatedSinceInitialPayment => {
                "Actual Information Different - Claim Has Been Re-adjudicated Since Initial Payment"
            }
            AuthorizationAccessRestrictions => "Authorization/Access Restrictions",
            UnableToRespondAtCurrentTime => "Unable to Respond at Current Time",
            InvalidMissingProviderIdentification => {
                "Invalid/Missing Provider Identification"
            }
            InvalidMissingProviderName => "Invalid/Missing Provider Name",
            InvalidMissingProviderSpecialty => "Invalid/Missing Provider Specialty",
            InvalidMissingProviderPhoneNumber => "Invalid/Missing Provider Phone Number",
            InvalidMissingProviderState => "Invalid/Missing Provider State",
            InvalidMissingReferringProviderIdentificationNumber => {
                "Invalid/Missing Referring Provider Identification Number"
            }
            ProviderIsNotPrimaryCarePhysician => "Provider is Not Primary Care Physician",
            ProviderIneligibleForInquiries => "Provider Ineligible for Inquiries",
            ProviderNotOnFile => "Provider Not on File",
            ServiceDatesNotWithinProviderPlanEnrollment => {
                "Service Dates Not Within Provider Plan Enrollment"
            }
            InquiredBenefitInconsistentWithProviderType => {
                "Inquired Benefit Inconsistent with Provider Type"
            }
            InappropriateProductServiceIdQualifier => {
                "Inappropriate Product/Service ID Qualifier"
            }
            InappropriateProductServiceId => "Inappropriate Product/Service ID",
            InappropriateDate => "Inappropriate Date",
            Code57 => "Invalid/Missing Date(s) of Service",
            InvalidMissingDateOfBirth => "Invalid/Missing Date-of-Birth",
            InvalidMissingDateOfDeath => "Invalid/Missing Date-of-Death",
            Code60 => "Date of Birth Follows Date(s) of Service",
            Code61 => "Date of Death Precedes Date(s) of Service",
            DateOfServiceNotWithinAllowableInquiryPeriod => {
                "Date of Service Not Within Allowable Inquiry Period"
            }
            DateOfServiceInFuture => "Date of Service in Future",
            InvalidMissingPatientId => "Invalid/Missing Patient ID",
            InvalidMissingPatientName => "Invalid/Missing Patient Name",
            InvalidMissingPatientGenderCode => "Invalid/Missing Patient Gender Code",
            PatientNotFound => "Patient Not Found",
            DuplicatePatientIdNumber => "Duplicate Patient ID Number",
            InconsistentWithPatientsAge => "Inconsistent with Patient's Age",
            InconsistentWithPatientsGender => "Inconsistent with Patient's Gender",
            PatientBirthDateDoesNotMatchThatForThePatientOnTheDatabase => {
                "Patient Birth Date Does Not Match That for the Patient on the Database"
            }
            InvalidMissingSubscriberInsuredId => "Invalid/Missing Subscriber/Insured ID",
            InvalidMissingSubscriberInsuredName => {
                "Invalid/Missing Subscriber/Insured Name"
            }
            InvalidMissingSubscriberInsuredGenderCode => {
                "Invalid/Missing Subscriber/Insured Gender Code"
            }
            SubscriberInsuredNotFound => "Subscriber/Insured Not Found",
            DuplicateSubscriberInsuredIdNumber => {
                "Duplicate Subscriber/Insured ID Number"
            }
            Code77 => "Subscriber Found, Patient Not Found",
            SubscriberInsuredNotInGroupPlanIdentified => {
                "Subscriber/Insured Not in Group/Plan Identified"
            }
            InvalidParticipantIdentification => "Invalid Participant Identification",
            NoResponseReceivedTransactionTerminated => {
                "No Response received - Transaction Terminated"
            }
            InvalidOrMissingCaseNumber => "Invalid or Missing Case Number",
            NotMedicallyNecessary => "Not Medically Necessary",
            LevelOfCareNotAppropriate => "Level of Care Not Appropriate",
            CertificationNotRequiredForThisService => {
                "Certification Not Required for this Service"
            }
            CertificationResponsibilityOfExternalReviewOrganization => {
                "Certification Responsibility of External Review Organization"
            }
            PrimaryCareService => "Primary Care Service",
            ExceedsPlanMaximums => "Exceeds Plan Maximums",
            NonCoveredService => "Non-covered Service",
            NoPriorApproval => "No Prior Approval",
            RequestedInformationNotReceived => "Requested Information Not Received",
            DuplicateRequest => "Duplicate Request",
            ServiceInconsistentWithDiagnosis => "Service Inconsistent with Diagnosis",
            InvalidProviderIdentification => "Invalid Provider Identification",
            MissingProviderIdentification => "Missing Provider Identification",
            PatientNotEligible => "Patient Not Eligible",
            PreExistingCondition => "Pre-existing Condition",
            InvalidOrMissingProviderAddress => "Invalid or Missing Provider Address",
            ExperimentalServiceOrProcedure => "Experimental Service or Procedure",
            AuthorizationNumberNotFound => "Authorization Number Not Found",
            CodeAB => "Air Brakes - Inoperative, etc.",
            CodeAC => "Missing Date(s) of Service",
            AccidentDamageDerailSideswiped => "Accident Damage - Derail/Sideswiped",
            RequiresPrimaryCarePhysicianAuthorization => {
                "Requires Primary Care Physician Authorization"
            }
            CodeAF => "Invalid/Missing Diagnosis Code(s)",
            CodeAG => "Invalid/Missing Procedure Code(s)",
            InvalidMissingOnsetOfCurrentConditionOrIllnessDate => {
                "Invalid/Missing Onset of Current Condition or Illness Date"
            }
            InvalidMissingAccidentDate => "Invalid/Missing Accident Date",
            InvalidMissingLastMenstrualPeriodDate => {
                "Invalid/Missing Last Menstrual Period Date"
            }
            InvalidMissingExpectedDateOfBirth => "Invalid/Missing Expected Date of Birth",
            InvalidMissingSurgeryDate => "Invalid/Missing Surgery Date",
            InvalidMissingAdmissionDate => "Invalid/Missing Admission Date",
            InvalidMissingDischargeDate => "Invalid/Missing Discharge Date",
            AdditionalPatientConditionInformationRequired => {
                "Additional Patient Condition Information Required"
            }
            InvalidDateOfBirth => "Invalid Date of Birth",
            MissingDateOfBirth => "Missing Date of Birth",
            Arrivals => "Arrivals",
            InvalidGenderCode => "Invalid Gender Code",
            MissingGenderCode => "Missing Gender Code",
            ProviderIdentificationDoesNotMatchThatOnTheDatabase => {
                "Provider Identification Does Not Match That on the Database"
            }
            InvalidMemberIdentification => "Invalid Member Identification",
            CodeAW => "Invalid Date(s) of Service",
            SystemIsUnableToRespondWithinTheAllottedTime => {
                "System is Unable to Respond Within the Allotted Time"
            }
            InvalidLastName => "Invalid Last Name",
            InvalidFirstName => "Invalid First Name",
            ContractPriceError => "Contract Price Error",
            ContractPriceMarkUpError => "Contract Price Mark Up Error",
            ContractPriceFreightError => "Contract Price Freight Error",
            ContractPriceVolumeDiscountError => "Contract Price Volume Discount Error",
            ContractPriceStartingPriceError => "Contract Price Starting Price Error",
            ContractPriceInvalidDateRange => "Contract Price Invalid Date Range",
            ContractPriceFreightSurchargeError => {
                "Contract Price Freight Surcharge Error"
            }
            DropSizeError => "Drop Size Error",
            DropFrequencyError => "Drop Frequency Error",
            RejectDueToAirBags => "Reject Due to Air Bags",
            MissingLastName => "Missing Last Name",
            RejectDueToNoChains => "Reject Due to No Chains",
            RejectDueToDamps => "Reject Due to Damps",
            MissingFirstName => "Missing First Name",
            MissingMemberIdentification => "Missing Member Identification",
            RejectDueToBearings => "Reject Due to Bearings",
            MemberIdentificationDoesNotMatchThatOnTheDatabase => {
                "Member Identification Does Not Match That on the Database"
            }
            GenderCodeDoesNotMatchThatOnTheDatabase => {
                "Gender Code Does Not Match That on the Database"
            }
            FirstNameDoesNotMatchThatOnTheDatabase => {
                "First Name Does Not Match That on the Database"
            }
            LastNameDoesNotMatchThatOnTheDatabase => {
                "Last Name Does Not Match That on the Database"
            }
            RejectDueToLoadDividerBadOrder => "Reject Due to Load Divider Bad Order",
            InvalidMiddleName => "Invalid Middle Name",
            MissingMiddleName => "Missing Middle Name",
            CodeBO => "Loaded Car, Unable to Load",
            RejectDueToBridgePlate => "Reject Due to Bridge Plate",
            MiddleNameDoesNotMatchThatOnTheDatabase => {
                "Middle Name Does Not Match That on the Database"
            }
            CodeBR => "Reject Due to Brake Rigging Beam, Lever",
            RejectDueToBadOrderSlides => "Reject Due to Bad Order Slides",
            InvalidSuffix => "Invalid Suffix",
            MissingSuffix => "Missing Suffix",
            RejectDueToBadOrderValvesPiping => "Reject Due to Bad Order Valves/Piping",
            RejectDueToBadOrderWalls => "Reject Due to Bad Order Walls",
            SuffixDoesNotMatchThatOnTheDatabase => {
                "Suffix Does Not Match That on the Database"
            }
            DateError => "Date Error",
            DuplicateProgram => "Duplicate Program",
            DuplicateContract => "Duplicate Contract",
            NotAsNegotiated => "Not As Negotiated",
            ProductMissing => "Product Missing",
            QuantityError => "Quantity Error",
            IncorrectAllowance => "Incorrect Allowance",
            IncorrectStartDate => "Incorrect Start Date",
            IncorrectEndDate => "Incorrect End Date",
            RejectDueToCrankArmApplication => "Reject Due to Crank Arm Application",
            CodeCB => "Reject Due to Center Bowls, Plates and Pins",
            CertificationInformationDoesNotMatchPatient => {
                "Certification Information Does Not Match Patient"
            }
            CompleteLoading => "Complete Loading",
            ReleasedAsRailroadCompanyMaterial => "Released as Railroad Company Material",
            CarNotOrdered => "Car Not Ordered",
            PutOnConstructivePlacement => "Put on Constructive Placement",
            WrongConsignee => "Wrong Consignee",
            ReleaseLoadThroughBillConnectingRoad => {
                "Release Load Through Bill Connecting Road"
            }
            ReleaseAsACrossTownLoad => "Release as a Cross-town Load",
            EquipmentNotUsed => "Equipment Not Used",
            WrongCarType => "Wrong Car Type",
            RejectDueToDoors => "Reject Due to Doors",
            RejectDueToDraftGearYoke => "Reject Due to Draft Gear - Yoke",
            Dismantle => "Dismantle",
            Departed => "Departed",
            RejectDueToDirty => "Reject Due to Dirty",
            DefectiveSafetyDevices => "Defective Safety Devices",
            DuplicateServiceType => "Duplicate Service Type",
            CodeDV => "Reject Due to Load Dividers, Side Filters, Special Equipment",
            CodeE1 => "Requested Record Will Not Be Sent; Cannot Identify the Record",
            CodeE2 => {
                "Requested Record Will Not Be Sent; Need Student or Parent Permission"
            }
            RequestedRecordWillNotBeSent => "Requested Record Will Not Be Sent",
            CodeE4 => "Requested Record Will Not Be Sent; Never Enrolled",
            CodeE5 => "Requested Record Will Not Be Sent; No Degree Awarded",
            CodeE6 => "Requested Record Will Not Be Sent; No Grades Posted",
            CodeE7 => {
                "Requested Record Cannot Be Sent Electronically; Record Resides in Paper Format only which Will Be Sent by Mail"
            }
            RequiresMedicalReview => "Requires Medical Review",
            EmptyEquipmentAvailableForLoading => "Empty Equipment Available for Loading",
            RejectDueToSpottedInError => "Reject Due to Spotted in Error",
            EmptyTrailerFlatRelease => "Empty Trailer Flat Release",
            FreightDamageClaim => "Freight Damage Claim",
            RejectDueToBadFloor => "Reject Due to Bad Floor",
            GroupNumberIsInvalid => "Group Number is Invalid",
            GroupNumberIsMissing => "Group Number is Missing",
            ReleaseFromDemurrageAndStartStorageUntilWaybilled => {
                "Release From Demurrage and Start Storage until Waybilled"
            }
            RejectDueToHandbrake => "Reject Due to Handbrake",
            CodeHH => {
                "Reject Due to Hand Hold, Ladder, Step, Running Boards, Platforms, etc."
            }
            RejectDueToHotJournalBox => "Reject Due to Hot Journal Box",
            InvalidAuthorizationNumberFormat => "Invalid Authorization Number Format",
            ReleasesAnIdler => "Releases an Idler",
            IndustrialInterchange => "Industrial Interchange",
            InappropriateProviderRole => "Inappropriate Provider Role",
            AmbulanceCertificationSegmentDoesntCorrespondToTransportAddressSegment => {
                "Ambulance Certification Segment Information Doesn't Correspond to Transport Address Segment Information"
            }
            MileageCannotBeComputedBasedOnDataSubmitted => {
                "Mileage Cannot Be Computed Based on Data Submitted"
            }
            ComputedMileageIsInconsistentWithTransportInformationOrServiceUnits => {
                "Computed Mileage is Inconsistent with Transport Information or Service Units"
            }
            RejectDueToCouplers => "Reject Due to Couplers",
            RejectDueToLeakingContents => "Reject Due to Leaking Contents",
            RejectDueToLoadShifted => "Reject Due to Load Shifted",
            LightWeighAndRestencil => "Light Weigh and Restencil",
            MissingAuthorizationNumber => "Missing Authorization Number",
            MoveFromCurrentSpotToNext => "Move from Current Spot to Next",
            MissingNumberOfUnits => "Missing Number of Units",
            NoCertificationInformationFound => "No Certification Information Found",
            RejectDueToOutletGateValveLoAndOpenHopper => {
                "Reject Due to Outlet Gate/Valve Lo and Open Hopper"
            }
            ReleasedFromIndustryToBeInspected => "Released from Industry to be Inspected",
            OrderedForReplacement => "Ordered for Replacement",
            RejectDueToOverloaded => "Reject Due to Overloaded",
            PreventativeMaintenance => "Preventative Maintenance",
            ReleasedFromIndustryToCustodyOfBroker => {
                "Released from Industry to Custody of Broker"
            }
            ToBeReloaded => "To be Reloaded",
            RejectDueToRefrigerationUnit => "Reject Due to Refrigeration Unit",
            RejectDueToRoofHatches => "Reject Due to Roof Hatches",
            CodeRK => "Reject Due to Racks (Bi or Tri Levels)",
            Released => "Released",
            RequestingProviderContactInformationMissing => {
                "Requesting Provider Contact Information Missing"
            }
            BadOrderReinitialingAndNumbering => "Bad Order Reinitialing and Numbering",
            ReleasedPartiallyUnloaded => "Released Partially Unloaded",
            ReleasedLoadedForLineHaulShipment => "Released Loaded for Line Haul Shipment",
            RunThroughEquipmentNotSpotted => "Run Through Equipment not Spotted",
            ReleasedFromDemurrageAfterBeingScrapped => {
                "Released from Demurrage after being Scrapped"
            }
            ReleasedFromShopTrack => "Released from Shop Track",
            CodeSU => "Reject Due to Superstructure - End, Roof and Sides",
            LocalWaybill => "Local Waybill",
            CodeT1 => {
                "Cannot Identify Provider as TPO (Third Party Organization) Participant"
            }
            CodeT2 => {
                "Cannot Identify Payer as TPO (Third Party Organization) Participant"
            }
            CodeT3 => {
                "Cannot Identify Insured as TPO (Third Party Organization) Participant"
            }
            PayerNameOrIdentifierMissing => "Payer Name or Identifier Missing",
            CertificationInformationMissing => "Certification Information Missing",
            ClaimDoesNotContainEnoughInformationForRePricing => {
                "Claim does not contain enough information for re-pricing"
            }
            BadOrderToTransferLading => "Bad Order to Transfer Lading",
            RejectDueToTieDownDevices => "Reject Due to Tie Down Devices",
            RejectDueToTrailerHitch => "Reject Due to Trailer Hitch",
            CodeTL => "Reject Due to Train Line, Air Hose, Anglecock",
            CodeTR => "Reject Due to Truck, S-Frame, Bolster",
            RejectDueToUncouplingRod => "Reject Due to Uncoupling Rod",
            RejectDueToUnderframeIncludingSills => {
                "Reject Due to Underframe - Including Sills"
            }
            BadOrderForUpgradingOfCar => "Bad Order for Upgrading of Car",
            InvalidNumberOfUnits => "Invalid Number of Units",
            RejectDueToWheelAxle => "Reject Due to Wheel/Axle",
            BadOrderDueToWreck => "Bad Order Due to Wreck",
            InquiryResponseTypeNotSupported => "Inquiry Response Type Not Supported",
            RespondingSystemCannotProcessInquiryTypeInRealTime => {
                "Responding System Cannot Process Inquiry Type in Real-time"
            }
            MutuallyDefined => "Mutually Defined",
        }
    }
    fn from_description(description: &str) -> Option<RejectReasonCode> {
        {
            use RejectReasonCode::*;
            match description {
                "Price Authorization Invalid" => Some(PriceAuthorizationInvalid),
                "Price Authorization Expired" => Some(PriceAuthorizationExpired),
                "Product not on the price authorization" => {
                    Some(ProductNotOnThePriceAuthorization)
                }
                "Authorized Quantity Exceeded" => Some(AuthorizedQuantityExceeded),
                "Zero Balance" => Some(ZeroBalance),
                "Special Cost Incorrect" => Some(SpecialCostIncorrect),
                "Catalog Cost Incorrect" => Some(CatalogCostIncorrect),
                "Invalid Ship Location" => Some(InvalidShipLocation),
                "No Credit Allowed" => Some(NoCreditAllowed),
                "Administrative Cancellation" => Some(AdministrativeCancellation),
                "Invalid Debit Number" => Some(InvalidDebitNumber),
                "Duplicate Sequence Number" => Some(DuplicateSequenceNumber),
                "Not Valid for Price Protection" => Some(NotValidForPriceProtection),
                "Invalid part number" => Some(InvalidPartNumber),
                "Required application data missing" => {
                    Some(RequiredApplicationDataMissing)
                }
                "Unit resale higher than authorized" => {
                    Some(UnitResaleHigherThanAuthorized)
                }
                "Negotiated price was not less than book price" => {
                    Some(NegotiatedPriceWasNotLessThanBookPrice)
                }
                "Ship date must not be after current date" => {
                    Some(ShipDateMustNotBeAfterCurrentDate)
                }
                "Ship date cannot be prior to price authorization issue date" => {
                    Some(ShipDateCannotBePriorToPriceAuthorizationIssueDate)
                }
                "Ship date should not be before price authorization date (for rebills)" => {
                    Some(Code20)
                }
                "Price authorization is a rebill type" => {
                    Some(PriceAuthorizationIsARebillType)
                }
                "Price authorization has been deleted" => {
                    Some(PriceAuthorizationHasBeenDeleted)
                }
                "Price authorization used on a sales order" => {
                    Some(PriceAuthorizationUsedOnASalesOrder)
                }
                "Disposition pending vendor review." => {
                    Some(DispositionPendingVendorReview)
                }
                "Invalid Customer Number" => Some(InvalidCustomerNumber),
                "Invalid Ship Date" => Some(InvalidShipDate),
                "Duplicate Invoice Number" => Some(DuplicateInvoiceNumber),
                "Claim Submitted Past Exercise Period" => {
                    Some(ClaimSubmittedPastExercisePeriod)
                }
                "Invalid Meet Competition Cost" => Some(InvalidMeetCompetitionCost),
                "Invalid Book Cost" => Some(InvalidBookCost),
                "Input Incomplete" => Some(InputIncomplete),
                "Input Errors" => Some(InputErrors),
                "No Coverage" => Some(NoCoverage),
                "Out of Network" => Some(OutOfNetwork),
                "Testing not Included" => Some(TestingNotIncluded),
                "Request Forwarded To and Decision Response Forthcoming From an External Review Organization" => {
                    Some(
                        RequestForwardedToAndDecisionResponseForthcomingFromAnExternalReviewOrganization,
                    )
                }
                "Claim Can Not Be Identified for Verification" => {
                    Some(ClaimCanNotBeIdentifiedForVerification)
                }
                "Actual Information Different than Reported" => {
                    Some(ActualInformationDifferentThanReported)
                }
                "Actual Information Different - Claim Has Been Re-adjudicated Since Initial Payment" => {
                    Some(
                        ActualInformationDifferentClaimHasBeenReAdjudicatedSinceInitialPayment,
                    )
                }
                "Authorization/Access Restrictions" => {
                    Some(AuthorizationAccessRestrictions)
                }
                "Unable to Respond at Current Time" => Some(UnableToRespondAtCurrentTime),
                "Invalid/Missing Provider Identification" => {
                    Some(InvalidMissingProviderIdentification)
                }
                "Invalid/Missing Provider Name" => Some(InvalidMissingProviderName),
                "Invalid/Missing Provider Specialty" => {
                    Some(InvalidMissingProviderSpecialty)
                }
                "Invalid/Missing Provider Phone Number" => {
                    Some(InvalidMissingProviderPhoneNumber)
                }
                "Invalid/Missing Provider State" => Some(InvalidMissingProviderState),
                "Invalid/Missing Referring Provider Identification Number" => {
                    Some(InvalidMissingReferringProviderIdentificationNumber)
                }
                "Provider is Not Primary Care Physician" => {
                    Some(ProviderIsNotPrimaryCarePhysician)
                }
                "Provider Ineligible for Inquiries" => {
                    Some(ProviderIneligibleForInquiries)
                }
                "Provider Not on File" => Some(ProviderNotOnFile),
                "Service Dates Not Within Provider Plan Enrollment" => {
                    Some(ServiceDatesNotWithinProviderPlanEnrollment)
                }
                "Inquired Benefit Inconsistent with Provider Type" => {
                    Some(InquiredBenefitInconsistentWithProviderType)
                }
                "Inappropriate Product/Service ID Qualifier" => {
                    Some(InappropriateProductServiceIdQualifier)
                }
                "Inappropriate Product/Service ID" => Some(InappropriateProductServiceId),
                "Inappropriate Date" => Some(InappropriateDate),
                "Invalid/Missing Date(s) of Service" => Some(Code57),
                "Invalid/Missing Date-of-Birth" => Some(InvalidMissingDateOfBirth),
                "Invalid/Missing Date-of-Death" => Some(InvalidMissingDateOfDeath),
                "Date of Birth Follows Date(s) of Service" => Some(Code60),
                "Date of Death Precedes Date(s) of Service" => Some(Code61),
                "Date of Service Not Within Allowable Inquiry Period" => {
                    Some(DateOfServiceNotWithinAllowableInquiryPeriod)
                }
                "Date of Service in Future" => Some(DateOfServiceInFuture),
                "Invalid/Missing Patient ID" => Some(InvalidMissingPatientId),
                "Invalid/Missing Patient Name" => Some(InvalidMissingPatientName),
                "Invalid/Missing Patient Gender Code" => {
                    Some(InvalidMissingPatientGenderCode)
                }
                "Patient Not Found" => Some(PatientNotFound),
                "Duplicate Patient ID Number" => Some(DuplicatePatientIdNumber),
                "Inconsistent with Patient's Age" => Some(InconsistentWithPatientsAge),
                "Inconsistent with Patient's Gender" => {
                    Some(InconsistentWithPatientsGender)
                }
                "Patient Birth Date Does Not Match That for the Patient on the Database" => {
                    Some(PatientBirthDateDoesNotMatchThatForThePatientOnTheDatabase)
                }
                "Invalid/Missing Subscriber/Insured ID" => {
                    Some(InvalidMissingSubscriberInsuredId)
                }
                "Invalid/Missing Subscriber/Insured Name" => {
                    Some(InvalidMissingSubscriberInsuredName)
                }
                "Invalid/Missing Subscriber/Insured Gender Code" => {
                    Some(InvalidMissingSubscriberInsuredGenderCode)
                }
                "Subscriber/Insured Not Found" => Some(SubscriberInsuredNotFound),
                "Duplicate Subscriber/Insured ID Number" => {
                    Some(DuplicateSubscriberInsuredIdNumber)
                }
                "Subscriber Found, Patient Not Found" => Some(Code77),
                "Subscriber/Insured Not in Group/Plan Identified" => {
                    Some(SubscriberInsuredNotInGroupPlanIdentified)
                }
                "Invalid Participant Identification" => {
                    Some(InvalidParticipantIdentification)
                }
                "No Response received - Transaction Terminated" => {
                    Some(NoResponseReceivedTransactionTerminated)
                }
                "Invalid or Missing Case Number" => Some(InvalidOrMissingCaseNumber),
                "Not Medically Necessary" => Some(NotMedicallyNecessary),
                "Level of Care Not Appropriate" => Some(LevelOfCareNotAppropriate),
                "Certification Not Required for this Service" => {
                    Some(CertificationNotRequiredForThisService)
                }
                "Certification Responsibility of External Review Organization" => {
                    Some(CertificationResponsibilityOfExternalReviewOrganization)
                }
                "Primary Care Service" => Some(PrimaryCareService),
                "Exceeds Plan Maximums" => Some(ExceedsPlanMaximums),
                "Non-covered Service" => Some(NonCoveredService),
                "No Prior Approval" => Some(NoPriorApproval),
                "Requested Information Not Received" => {
                    Some(RequestedInformationNotReceived)
                }
                "Duplicate Request" => Some(DuplicateRequest),
                "Service Inconsistent with Diagnosis" => {
                    Some(ServiceInconsistentWithDiagnosis)
                }
                "Invalid Provider Identification" => Some(InvalidProviderIdentification),
                "Missing Provider Identification" => Some(MissingProviderIdentification),
                "Patient Not Eligible" => Some(PatientNotEligible),
                "Pre-existing Condition" => Some(PreExistingCondition),
                "Invalid or Missing Provider Address" => {
                    Some(InvalidOrMissingProviderAddress)
                }
                "Experimental Service or Procedure" => {
                    Some(ExperimentalServiceOrProcedure)
                }
                "Authorization Number Not Found" => Some(AuthorizationNumberNotFound),
                "Air Brakes - Inoperative, etc." => Some(CodeAB),
                "Missing Date(s) of Service" => Some(CodeAC),
                "Accident Damage - Derail/Sideswiped" => {
                    Some(AccidentDamageDerailSideswiped)
                }
                "Requires Primary Care Physician Authorization" => {
                    Some(RequiresPrimaryCarePhysicianAuthorization)
                }
                "Invalid/Missing Diagnosis Code(s)" => Some(CodeAF),
                "Invalid/Missing Procedure Code(s)" => Some(CodeAG),
                "Invalid/Missing Onset of Current Condition or Illness Date" => {
                    Some(InvalidMissingOnsetOfCurrentConditionOrIllnessDate)
                }
                "Invalid/Missing Accident Date" => Some(InvalidMissingAccidentDate),
                "Invalid/Missing Last Menstrual Period Date" => {
                    Some(InvalidMissingLastMenstrualPeriodDate)
                }
                "Invalid/Missing Expected Date of Birth" => {
                    Some(InvalidMissingExpectedDateOfBirth)
                }
                "Invalid/Missing Surgery Date" => Some(InvalidMissingSurgeryDate),
                "Invalid/Missing Admission Date" => Some(InvalidMissingAdmissionDate),
                "Invalid/Missing Discharge Date" => Some(InvalidMissingDischargeDate),
                "Additional Patient Condition Information Required" => {
                    Some(AdditionalPatientConditionInformationRequired)
                }
                "Invalid Date of Birth" => Some(InvalidDateOfBirth),
                "Missing Date of Birth" => Some(MissingDateOfBirth),
                "Arrivals" => Some(Arrivals),
                "Invalid Gender Code" => Some(InvalidGenderCode),
                "Missing Gender Code" => Some(MissingGenderCode),
                "Provider Identification Does Not Match That on the Database" => {
                    Some(ProviderIdentificationDoesNotMatchThatOnTheDatabase)
                }
                "Invalid Member Identification" => Some(InvalidMemberIdentification),
                "Invalid Date(s) of Service" => Some(CodeAW),
                "System is Unable to Respond Within the Allotted Time" => {
                    Some(SystemIsUnableToRespondWithinTheAllottedTime)
                }
                "Invalid Last Name" => Some(InvalidLastName),
                "Invalid First Name" => Some(InvalidFirstName),
                "Contract Price Error" => Some(ContractPriceError),
                "Contract Price Mark Up Error" => Some(ContractPriceMarkUpError),
                "Contract Price Freight Error" => Some(ContractPriceFreightError),
                "Contract Price Volume Discount Error" => {
                    Some(ContractPriceVolumeDiscountError)
                }
                "Contract Price Starting Price Error" => {
                    Some(ContractPriceStartingPriceError)
                }
                "Contract Price Invalid Date Range" => {
                    Some(ContractPriceInvalidDateRange)
                }
                "Contract Price Freight Surcharge Error" => {
                    Some(ContractPriceFreightSurchargeError)
                }
                "Drop Size Error" => Some(DropSizeError),
                "Drop Frequency Error" => Some(DropFrequencyError),
                "Reject Due to Air Bags" => Some(RejectDueToAirBags),
                "Missing Last Name" => Some(MissingLastName),
                "Reject Due to No Chains" => Some(RejectDueToNoChains),
                "Reject Due to Damps" => Some(RejectDueToDamps),
                "Missing First Name" => Some(MissingFirstName),
                "Missing Member Identification" => Some(MissingMemberIdentification),
                "Reject Due to Bearings" => Some(RejectDueToBearings),
                "Member Identification Does Not Match That on the Database" => {
                    Some(MemberIdentificationDoesNotMatchThatOnTheDatabase)
                }
                "Gender Code Does Not Match That on the Database" => {
                    Some(GenderCodeDoesNotMatchThatOnTheDatabase)
                }
                "First Name Does Not Match That on the Database" => {
                    Some(FirstNameDoesNotMatchThatOnTheDatabase)
                }
                "Last Name Does Not Match That on the Database" => {
                    Some(LastNameDoesNotMatchThatOnTheDatabase)
                }
                "Reject Due to Load Divider Bad Order" => {
                    Some(RejectDueToLoadDividerBadOrder)
                }
                "Invalid Middle Name" => Some(InvalidMiddleName),
                "Missing Middle Name" => Some(MissingMiddleName),
                "Loaded Car, Unable to Load" => Some(CodeBO),
                "Reject Due to Bridge Plate" => Some(RejectDueToBridgePlate),
                "Middle Name Does Not Match That on the Database" => {
                    Some(MiddleNameDoesNotMatchThatOnTheDatabase)
                }
                "Reject Due to Brake Rigging Beam, Lever" => Some(CodeBR),
                "Reject Due to Bad Order Slides" => Some(RejectDueToBadOrderSlides),
                "Invalid Suffix" => Some(InvalidSuffix),
                "Missing Suffix" => Some(MissingSuffix),
                "Reject Due to Bad Order Valves/Piping" => {
                    Some(RejectDueToBadOrderValvesPiping)
                }
                "Reject Due to Bad Order Walls" => Some(RejectDueToBadOrderWalls),
                "Suffix Does Not Match That on the Database" => {
                    Some(SuffixDoesNotMatchThatOnTheDatabase)
                }
                "Date Error" => Some(DateError),
                "Duplicate Program" => Some(DuplicateProgram),
                "Duplicate Contract" => Some(DuplicateContract),
                "Not As Negotiated" => Some(NotAsNegotiated),
                "Product Missing" => Some(ProductMissing),
                "Quantity Error" => Some(QuantityError),
                "Incorrect Allowance" => Some(IncorrectAllowance),
                "Incorrect Start Date" => Some(IncorrectStartDate),
                "Incorrect End Date" => Some(IncorrectEndDate),
                "Reject Due to Crank Arm Application" => {
                    Some(RejectDueToCrankArmApplication)
                }
                "Reject Due to Center Bowls, Plates and Pins" => Some(CodeCB),
                "Certification Information Does Not Match Patient" => {
                    Some(CertificationInformationDoesNotMatchPatient)
                }
                "Complete Loading" => Some(CompleteLoading),
                "Released as Railroad Company Material" => {
                    Some(ReleasedAsRailroadCompanyMaterial)
                }
                "Car Not Ordered" => Some(CarNotOrdered),
                "Put on Constructive Placement" => Some(PutOnConstructivePlacement),
                "Wrong Consignee" => Some(WrongConsignee),
                "Release Load Through Bill Connecting Road" => {
                    Some(ReleaseLoadThroughBillConnectingRoad)
                }
                "Release as a Cross-town Load" => Some(ReleaseAsACrossTownLoad),
                "Equipment Not Used" => Some(EquipmentNotUsed),
                "Wrong Car Type" => Some(WrongCarType),
                "Reject Due to Doors" => Some(RejectDueToDoors),
                "Reject Due to Draft Gear - Yoke" => Some(RejectDueToDraftGearYoke),
                "Dismantle" => Some(Dismantle),
                "Departed" => Some(Departed),
                "Reject Due to Dirty" => Some(RejectDueToDirty),
                "Defective Safety Devices" => Some(DefectiveSafetyDevices),
                "Duplicate Service Type" => Some(DuplicateServiceType),
                "Reject Due to Load Dividers, Side Filters, Special Equipment" => {
                    Some(CodeDV)
                }
                "Requested Record Will Not Be Sent; Cannot Identify the Record" => {
                    Some(CodeE1)
                }
                "Requested Record Will Not Be Sent; Need Student or Parent Permission" => {
                    Some(CodeE2)
                }
                "Requested Record Will Not Be Sent" => Some(RequestedRecordWillNotBeSent),
                "Requested Record Will Not Be Sent; Never Enrolled" => Some(CodeE4),
                "Requested Record Will Not Be Sent; No Degree Awarded" => Some(CodeE5),
                "Requested Record Will Not Be Sent; No Grades Posted" => Some(CodeE6),
                "Requested Record Cannot Be Sent Electronically; Record Resides in Paper Format only which Will Be Sent by Mail" => {
                    Some(CodeE7)
                }
                "Requires Medical Review" => Some(RequiresMedicalReview),
                "Empty Equipment Available for Loading" => {
                    Some(EmptyEquipmentAvailableForLoading)
                }
                "Reject Due to Spotted in Error" => Some(RejectDueToSpottedInError),
                "Empty Trailer Flat Release" => Some(EmptyTrailerFlatRelease),
                "Freight Damage Claim" => Some(FreightDamageClaim),
                "Reject Due to Bad Floor" => Some(RejectDueToBadFloor),
                "Group Number is Invalid" => Some(GroupNumberIsInvalid),
                "Group Number is Missing" => Some(GroupNumberIsMissing),
                "Release From Demurrage and Start Storage until Waybilled" => {
                    Some(ReleaseFromDemurrageAndStartStorageUntilWaybilled)
                }
                "Reject Due to Handbrake" => Some(RejectDueToHandbrake),
                "Reject Due to Hand Hold, Ladder, Step, Running Boards, Platforms, etc." => {
                    Some(CodeHH)
                }
                "Reject Due to Hot Journal Box" => Some(RejectDueToHotJournalBox),
                "Invalid Authorization Number Format" => {
                    Some(InvalidAuthorizationNumberFormat)
                }
                "Releases an Idler" => Some(ReleasesAnIdler),
                "Industrial Interchange" => Some(IndustrialInterchange),
                "Inappropriate Provider Role" => Some(InappropriateProviderRole),
                "Ambulance Certification Segment Information Doesn't Correspond to Transport Address Segment Information" => {
                    Some(
                        AmbulanceCertificationSegmentDoesntCorrespondToTransportAddressSegment,
                    )
                }
                "Mileage Cannot Be Computed Based on Data Submitted" => {
                    Some(MileageCannotBeComputedBasedOnDataSubmitted)
                }
                "Computed Mileage is Inconsistent with Transport Information or Service Units" => {
                    Some(
                        ComputedMileageIsInconsistentWithTransportInformationOrServiceUnits,
                    )
                }
                "Reject Due to Couplers" => Some(RejectDueToCouplers),
                "Reject Due to Leaking Contents" => Some(RejectDueToLeakingContents),
                "Reject Due to Load Shifted" => Some(RejectDueToLoadShifted),
                "Light Weigh and Restencil" => Some(LightWeighAndRestencil),
                "Missing Authorization Number" => Some(MissingAuthorizationNumber),
                "Move from Current Spot to Next" => Some(MoveFromCurrentSpotToNext),
                "Missing Number of Units" => Some(MissingNumberOfUnits),
                "No Certification Information Found" => {
                    Some(NoCertificationInformationFound)
                }
                "Reject Due to Outlet Gate/Valve Lo and Open Hopper" => {
                    Some(RejectDueToOutletGateValveLoAndOpenHopper)
                }
                "Released from Industry to be Inspected" => {
                    Some(ReleasedFromIndustryToBeInspected)
                }
                "Ordered for Replacement" => Some(OrderedForReplacement),
                "Reject Due to Overloaded" => Some(RejectDueToOverloaded),
                "Preventative Maintenance" => Some(PreventativeMaintenance),
                "Released from Industry to Custody of Broker" => {
                    Some(ReleasedFromIndustryToCustodyOfBroker)
                }
                "To be Reloaded" => Some(ToBeReloaded),
                "Reject Due to Refrigeration Unit" => Some(RejectDueToRefrigerationUnit),
                "Reject Due to Roof Hatches" => Some(RejectDueToRoofHatches),
                "Reject Due to Racks (Bi or Tri Levels)" => Some(CodeRK),
                "Released" => Some(Released),
                "Requesting Provider Contact Information Missing" => {
                    Some(RequestingProviderContactInformationMissing)
                }
                "Bad Order Reinitialing and Numbering" => {
                    Some(BadOrderReinitialingAndNumbering)
                }
                "Released Partially Unloaded" => Some(ReleasedPartiallyUnloaded),
                "Released Loaded for Line Haul Shipment" => {
                    Some(ReleasedLoadedForLineHaulShipment)
                }
                "Run Through Equipment not Spotted" => {
                    Some(RunThroughEquipmentNotSpotted)
                }
                "Released from Demurrage after being Scrapped" => {
                    Some(ReleasedFromDemurrageAfterBeingScrapped)
                }
                "Released from Shop Track" => Some(ReleasedFromShopTrack),
                "Reject Due to Superstructure - End, Roof and Sides" => Some(CodeSU),
                "Local Waybill" => Some(LocalWaybill),
                "Cannot Identify Provider as TPO (Third Party Organization) Participant" => {
                    Some(CodeT1)
                }
                "Cannot Identify Payer as TPO (Third Party Organization) Participant" => {
                    Some(CodeT2)
                }
                "Cannot Identify Insured as TPO (Third Party Organization) Participant" => {
                    Some(CodeT3)
                }
                "Payer Name or Identifier Missing" => Some(PayerNameOrIdentifierMissing),
                "Certification Information Missing" => {
                    Some(CertificationInformationMissing)
                }
                "Claim does not contain enough information for re-pricing" => {
                    Some(ClaimDoesNotContainEnoughInformationForRePricing)
                }
                "Bad Order to Transfer Lading" => Some(BadOrderToTransferLading),
                "Reject Due to Tie Down Devices" => Some(RejectDueToTieDownDevices),
                "Reject Due to Trailer Hitch" => Some(RejectDueToTrailerHitch),
                "Reject Due to Train Line, Air Hose, Anglecock" => Some(CodeTL),
                "Reject Due to Truck, S-Frame, Bolster" => Some(CodeTR),
                "Reject Due to Uncoupling Rod" => Some(RejectDueToUncouplingRod),
                "Reject Due to Underframe - Including Sills" => {
                    Some(RejectDueToUnderframeIncludingSills)
                }
                "Bad Order for Upgrading of Car" => Some(BadOrderForUpgradingOfCar),
                "Invalid Number of Units" => Some(InvalidNumberOfUnits),
                "Reject Due to Wheel/Axle" => Some(RejectDueToWheelAxle),
                "Bad Order Due to Wreck" => Some(BadOrderDueToWreck),
                "Inquiry Response Type Not Supported" => {
                    Some(InquiryResponseTypeNotSupported)
                }
                "Responding System Cannot Process Inquiry Type in Real-time" => {
                    Some(RespondingSystemCannotProcessInquiryTypeInRealTime)
                }
                "Mutually Defined" => Some(MutuallyDefined),
                _ => None,
            }
        }
    }
}
impl Serialize for RejectReasonCode {
    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where
        S: ser::Serializer,
    {
        let value = if serializer.is_human_readable() {
            self.description()
        } else {
            self.code()
        };
        serializer.serialize_str(value)
    }
}
struct Visitor;
impl<'de> de::Visitor<'de> for Visitor {
    type Value = RejectReasonCode;
    fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
        formatter.write_str("Reject Reason Code")
    }
    fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>
    where
        E: de::Error,
    {
        RejectReasonCode::from_description(v)
            .ok_or_else(|| E::custom(format!("Invalid Reject Reason Code: {}", v)))
    }
    fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>
    where
        E: de::Error,
    {
        RejectReasonCode::from_code(v)
            .ok_or_else(|| E::custom(
                format!(
                    "Invalid Reject Reason Code: {}", std::str::from_utf8(v).unwrap()
                ),
            ))
    }
}
impl<'de> Deserialize<'de> for RejectReasonCode {
    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
    where
        D: de::Deserializer<'de>,
    {
        if deserializer.is_human_readable() {
            deserializer.deserialize_str(Visitor)
        } else {
            deserializer.deserialize_bytes(Visitor)
        }
    }
}