1#![allow(non_camel_case_types)]
2
3#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
4#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]
5pub enum Item {
6 ProductVersionNumber,
8 Assembly,
10 HibcHealthIndustryBarCode,
12 ColdRollNumber,
14 HotRollNumber,
16 SlabNumber,
18 SoftwareRevisionNumber,
20 UpcUniversalProductCodeConsumerPackageCode155,
22 UpcUniversalProductCodeConsumerPackageCode155_Dup,
24 SampleNumber,
26 PackNumber,
28 UpcUniversalProductCodeShippingContainerCode12,
30 UpcUniversalProductCodeEanEuropeanArticleNumber,
32 UpcUniversalProductCodeSuffix,
34 StateLabelCode,
36 HeatNumber,
38 CouponNumber,
40 ResourceNumber,
42 WorkTaskNumber,
44 PriceLookUpNumber,
46 NsnNorthAtlanticTreatyOrganizationStockNumber,
48 RefinedProductCode,
50 Exhibit,
52 EndItem,
54 FederalSupplyClassification,
56 EngineeringDataList,
58 MilestoneEventNumber,
60 LotNumber,
62 NationalDrugCode442Format,
64 NationalDrugCode532Format,
66 NationalDrugCode541Format,
68 NationalDrugCode542Format,
70 NationalDrugCode,
72 PartNumber,
74 LocalStockNumberLsn,
76 NextHigherAssemblyNumber,
78 DataCategory,
80 ControlNumber,
82 SpecialMaterialIdentificationCode,
84 LocallyAssignedControlNumber,
86 BuyersColour,
88 BuyersPartNumber,
90 VariableMeasureProductCode,
92 FinancialPhase,
94 ContractBreakdown,
96 TechnicalPhase,
98 DyeLotNumber,
100 DailyStatementActivities,
102 PeriodicalStatementActivitiesWithinABilaterally,
104 CalendarWeekStatementActivities,
106 CalendarMonthStatementActivities,
108 OriginalEquipmentNumber,
110 IndustryCommodityCode,
112 CommodityGrouping,
114 ColourNumber,
116 ContractNumber,
118 CustomsArticleNumber,
120 DrawingRevisionNumber,
122 Drawing,
124 EngineeringChangeLevel,
126 MaterialCode,
128 EmdnEuropeanMedicalDeviceNomenclature,
130 InternationalArticleNumberingAssociationEan,
132 FishSpecies,
134 BuyersInternalProductGroupCode,
136 GlobalModelNumber,
138 NationalProductGroupCode,
140 GeneralSpecificationNumber,
142 HarmonisedSystem,
144 IsbnInternationalStandardBookNumber,
146 BuyersItemNumber,
148 IssnInternationalStandardSerialNumber,
150 BuyersStyleNumber,
152 BuyersSizeCode,
154 MachineNumber,
156 ManufacturersProducersArticleNumber,
158 ModelNumber,
160 ProductServiceIdentificationNumber,
162 BatchNumber,
164 CustomerOrderNumber,
166 PartNumberDescription,
168 PurchasersOrderLineNumber,
170 PurchaseOrderNumber,
172 PhytosanitaryPassportIdentifier,
174 PromotionalVariantNumber,
176 BuyersQualifierForSize,
178 ReturnableContainerNumber,
180 ReleaseNumber,
182 RunNumber,
184 RecordKeepingModelYear,
186 SuppliersArticleNumber,
188 StandardGroupProductsMixedAssortment,
190 SkuStockKeepingUnit,
192 SerialNumber,
194 RskNumber,
196 IflsInstitutFrancaisDuLibreService5DigitProduct,
198 IflsInstitutFrancaisDuLibreService9DigitProduct,
200 Gs1GlobalTradeItemNumber,
202 EdisEnergyDataIdentificationSystem,
204 SlaughterNumber,
206 OfficialAnimalNumber,
208 HarmonizedTariffSchedule,
210 SuppliersSupplierArticleNumber,
212 _46LevelDotCode,
214 AirlineTariff6d,
216 Title49CodeFederalRegulations,
218 InternationalCivilAviationAdministrationCode,
220 HazardousMaterialsIdDot,
222 Endorsement,
224 AirForceRegulation714,
226 Breed,
228 ChemicalAbstractServiceCasRegistryNumber,
230 EngineModelDesignation,
232 InstitutionalMeatPurchaseSpecificationsImpsNumber,
234 PriceLookUpCodePlu,
236 InternationalMaritimeOrganizationImoCode,
238 BureauExplosives600ARail,
240 UnitedNationsDangerousGoodsList,
242 InternationalCodeBotanicalNomenclatureIcbn,
244 InternationalCodeZoologicalNomenclatureIczn,
246 InternationalCodeNomenclatureForCultivatedPlants,
248 DistributorSArticleIdentifier,
250 NorwegianClassificationSystemEnva,
252 SupplierAssignedClassification,
254 MexicanClassificationSystemAmece,
256 GermanClassificationSystemCcg,
258 FinnishClassificationSystemEanfin,
260 CanadianClassificationSystemIcc,
262 FrenchClassificationSystemIfls5,
264 StyleNumber,
266 DutchClassificationSystemCbl,
268 JapaneseClassificationSystemJicfs,
270 EuropeanUnionDairySubsidyEligibilityClassification,
272 Gs1SpainClassificationSystem,
274 Gs1PolandClassificationSystem,
276 FederalAgencyOnTechnicalRegulatingAndMetrology,
278 EfficientConsumerResponseEcrAustriaClassification,
280 Gs1ItalyClassificationSystem,
282 CpvCommonProcurementVocabulary,
284 IfdaInternationalFoodserviceDistributorsAssociation,
286 AhfsAmericanHospitalFormularyServicePharmacologic,
288 AtcAnatomicalTherapeuticChemicalClassificationSystem,
290 CladimedClassificationDesDispositifsMédicaux,
292 CmdrCanadianMedicalDeviceRegulationsClassification,
294 CndmClassificazioneNazionaleDeiDispositiviMedici,
296 UkDmDDictionaryMedicinesDevicesStandardCoding,
298 EclSs,
300 EdmaEuropeanDiagnosticManufacturersAssociation,
302 EgarEuropeanGenericArticleRegister,
304 GmdnGlobalMedicalDevicesNomenclature,
306 GpiGenericProductIdentifier,
308 HcpcsHealthcareCommonProcedureCodingSystem,
310 IcpsInternationalClassificationForPatientSafety,
312 MeddraMedicalDictionaryForRegulatoryActivities,
314 MedicalColumbus,
316 NapcsNorthAmericanProductClassificationSystem,
318 NhsNationalHealthServicesEclass,
320 UsFdaFoodAndDrugAdministrationProductCode,
322 SnomedCtSystematizedNomenclatureMedicineClinical,
324 UmdnsUniversalMedicalDeviceNomenclatureSystem,
326 Gs1GlobalReturnableAssetIdentifierNonSerialised,
328 Imei,
330 WasteTypeEmsa,
332 ShipsStoreClassificationType,
334 EmergencyFireCode,
336 EmergencySpillageCode,
338 ImdgPackingGroup,
340 MarpolCodeIbc,
342 ImdgSubsidiaryRiskClass,
344 TransportGroupNumber,
346 TaxonomicSerialNumber,
348 ImdgMainHazardClass,
350 EuCombinedNomenclature,
352 TherapeuticClassificationNumber,
354 EuropeanWasteCatalogue,
356 PriceGroupingCode,
358 Unspsc,
360 EuRohsDirective,
362 UltimateCustomersArticleNumber,
364 UpcUniversalProductCode,
366 VendorItemNumber,
368 VendorsSellersPartNumber,
370 VendorsSupplementalItemNumber,
372 VendorSpecificationNumber,
374 MutuallyDefined,
376}
377
378impl crate::Code for Item {
379 fn code(self) -> &'static str {
380 match self {
381 Item::ProductVersionNumber => "AA",
382 Item::Assembly => "AB",
383 Item::HibcHealthIndustryBarCode => "AC",
384 Item::ColdRollNumber => "AD",
385 Item::HotRollNumber => "AE",
386 Item::SlabNumber => "AF",
387 Item::SoftwareRevisionNumber => "AG",
388 Item::UpcUniversalProductCodeConsumerPackageCode155 => "AH",
389 Item::UpcUniversalProductCodeConsumerPackageCode155_Dup => "AI",
390 Item::SampleNumber => "AJ",
391 Item::PackNumber => "AK",
392 Item::UpcUniversalProductCodeShippingContainerCode12 => "AL",
393 Item::UpcUniversalProductCodeEanEuropeanArticleNumber => "AM",
394 Item::UpcUniversalProductCodeSuffix => "AN",
395 Item::StateLabelCode => "AO",
396 Item::HeatNumber => "AP",
397 Item::CouponNumber => "AQ",
398 Item::ResourceNumber => "AR",
399 Item::WorkTaskNumber => "AS",
400 Item::PriceLookUpNumber => "AT",
401 Item::NsnNorthAtlanticTreatyOrganizationStockNumber => "AU",
402 Item::RefinedProductCode => "AV",
403 Item::Exhibit => "AW",
404 Item::EndItem => "AX",
405 Item::FederalSupplyClassification => "AY",
406 Item::EngineeringDataList => "AZ",
407 Item::MilestoneEventNumber => "BA",
408 Item::LotNumber => "BB",
409 Item::NationalDrugCode442Format => "BC",
410 Item::NationalDrugCode532Format => "BD",
411 Item::NationalDrugCode541Format => "BE",
412 Item::NationalDrugCode542Format => "BF",
413 Item::NationalDrugCode => "BG",
414 Item::PartNumber => "BH",
415 Item::LocalStockNumberLsn => "BI",
416 Item::NextHigherAssemblyNumber => "BJ",
417 Item::DataCategory => "BK",
418 Item::ControlNumber => "BL",
419 Item::SpecialMaterialIdentificationCode => "BM",
420 Item::LocallyAssignedControlNumber => "BN",
421 Item::BuyersColour => "BO",
422 Item::BuyersPartNumber => "BP",
423 Item::VariableMeasureProductCode => "BQ",
424 Item::FinancialPhase => "BR",
425 Item::ContractBreakdown => "BS",
426 Item::TechnicalPhase => "BT",
427 Item::DyeLotNumber => "BU",
428 Item::DailyStatementActivities => "BV",
429 Item::PeriodicalStatementActivitiesWithinABilaterally => "BW",
430 Item::CalendarWeekStatementActivities => "BX",
431 Item::CalendarMonthStatementActivities => "BY",
432 Item::OriginalEquipmentNumber => "BZ",
433 Item::IndustryCommodityCode => "CC",
434 Item::CommodityGrouping => "CG",
435 Item::ColourNumber => "CL",
436 Item::ContractNumber => "CR",
437 Item::CustomsArticleNumber => "CV",
438 Item::DrawingRevisionNumber => "DR",
439 Item::Drawing => "DW",
440 Item::EngineeringChangeLevel => "EC",
441 Item::MaterialCode => "EF",
442 Item::EmdnEuropeanMedicalDeviceNomenclature => "EMD",
443 Item::InternationalArticleNumberingAssociationEan => "EN",
444 Item::FishSpecies => "FS",
445 Item::BuyersInternalProductGroupCode => "GB",
446 Item::GlobalModelNumber => "GMN",
447 Item::NationalProductGroupCode => "GN",
448 Item::GeneralSpecificationNumber => "GS",
449 Item::HarmonisedSystem => "HS",
450 Item::IsbnInternationalStandardBookNumber => "IB",
451 Item::BuyersItemNumber => "IN",
452 Item::IssnInternationalStandardSerialNumber => "IS",
453 Item::BuyersStyleNumber => "IT",
454 Item::BuyersSizeCode => "IZ",
455 Item::MachineNumber => "MA",
456 Item::ManufacturersProducersArticleNumber => "MF",
457 Item::ModelNumber => "MN",
458 Item::ProductServiceIdentificationNumber => "MP",
459 Item::BatchNumber => "NB",
460 Item::CustomerOrderNumber => "ON",
461 Item::PartNumberDescription => "PD",
462 Item::PurchasersOrderLineNumber => "PL",
463 Item::PurchaseOrderNumber => "PO",
464 Item::PhytosanitaryPassportIdentifier => "PPI",
465 Item::PromotionalVariantNumber => "PV",
466 Item::BuyersQualifierForSize => "QS",
467 Item::ReturnableContainerNumber => "RC",
468 Item::ReleaseNumber => "RN",
469 Item::RunNumber => "RU",
470 Item::RecordKeepingModelYear => "RY",
471 Item::SuppliersArticleNumber => "SA",
472 Item::StandardGroupProductsMixedAssortment => "SG",
473 Item::SkuStockKeepingUnit => "SK",
474 Item::SerialNumber => "SN",
475 Item::RskNumber => "SRS",
476 Item::IflsInstitutFrancaisDuLibreService5DigitProduct => "SRT",
477 Item::IflsInstitutFrancaisDuLibreService9DigitProduct => "SRU",
478 Item::Gs1GlobalTradeItemNumber => "SRV",
479 Item::EdisEnergyDataIdentificationSystem => "SRW",
480 Item::SlaughterNumber => "SRX",
481 Item::OfficialAnimalNumber => "SRY",
482 Item::HarmonizedTariffSchedule => "SRZ",
483 Item::SuppliersSupplierArticleNumber => "SS",
484 Item::_46LevelDotCode => "SSA",
485 Item::AirlineTariff6d => "SSB",
486 Item::Title49CodeFederalRegulations => "SSC",
487 Item::InternationalCivilAviationAdministrationCode => "SSD",
488 Item::HazardousMaterialsIdDot => "SSE",
489 Item::Endorsement => "SSF",
490 Item::AirForceRegulation714 => "SSG",
491 Item::Breed => "SSH",
492 Item::ChemicalAbstractServiceCasRegistryNumber => "SSI",
493 Item::EngineModelDesignation => "SSJ",
494 Item::InstitutionalMeatPurchaseSpecificationsImpsNumber => "SSK",
495 Item::PriceLookUpCodePlu => "SSL",
496 Item::InternationalMaritimeOrganizationImoCode => "SSM",
497 Item::BureauExplosives600ARail => "SSN",
498 Item::UnitedNationsDangerousGoodsList => "SSO",
499 Item::InternationalCodeBotanicalNomenclatureIcbn => "SSP",
500 Item::InternationalCodeZoologicalNomenclatureIczn => "SSQ",
501 Item::InternationalCodeNomenclatureForCultivatedPlants => "SSR",
502 Item::DistributorSArticleIdentifier => "SSS",
503 Item::NorwegianClassificationSystemEnva => "SST",
504 Item::SupplierAssignedClassification => "SSU",
505 Item::MexicanClassificationSystemAmece => "SSV",
506 Item::GermanClassificationSystemCcg => "SSW",
507 Item::FinnishClassificationSystemEanfin => "SSX",
508 Item::CanadianClassificationSystemIcc => "SSY",
509 Item::FrenchClassificationSystemIfls5 => "SSZ",
510 Item::StyleNumber => "ST",
511 Item::DutchClassificationSystemCbl => "STA",
512 Item::JapaneseClassificationSystemJicfs => "STB",
513 Item::EuropeanUnionDairySubsidyEligibilityClassification => "STC",
514 Item::Gs1SpainClassificationSystem => "STD",
515 Item::Gs1PolandClassificationSystem => "STE",
516 Item::FederalAgencyOnTechnicalRegulatingAndMetrology => "STF",
517 Item::EfficientConsumerResponseEcrAustriaClassification => "STG",
518 Item::Gs1ItalyClassificationSystem => "STH",
519 Item::CpvCommonProcurementVocabulary => "STI",
520 Item::IfdaInternationalFoodserviceDistributorsAssociation => "STJ",
521 Item::AhfsAmericanHospitalFormularyServicePharmacologic => "STK",
522 Item::AtcAnatomicalTherapeuticChemicalClassificationSystem => "STL",
523 Item::CladimedClassificationDesDispositifsMédicaux => "STM",
524 Item::CmdrCanadianMedicalDeviceRegulationsClassification => "STN",
525 Item::CndmClassificazioneNazionaleDeiDispositiviMedici => "STO",
526 Item::UkDmDDictionaryMedicinesDevicesStandardCoding => "STP",
527 Item::EclSs => "STQ",
528 Item::EdmaEuropeanDiagnosticManufacturersAssociation => "STR",
529 Item::EgarEuropeanGenericArticleRegister => "STS",
530 Item::GmdnGlobalMedicalDevicesNomenclature => "STT",
531 Item::GpiGenericProductIdentifier => "STU",
532 Item::HcpcsHealthcareCommonProcedureCodingSystem => "STV",
533 Item::IcpsInternationalClassificationForPatientSafety => "STW",
534 Item::MeddraMedicalDictionaryForRegulatoryActivities => "STX",
535 Item::MedicalColumbus => "STY",
536 Item::NapcsNorthAmericanProductClassificationSystem => "STZ",
537 Item::NhsNationalHealthServicesEclass => "SUA",
538 Item::UsFdaFoodAndDrugAdministrationProductCode => "SUB",
539 Item::SnomedCtSystematizedNomenclatureMedicineClinical => "SUC",
540 Item::UmdnsUniversalMedicalDeviceNomenclatureSystem => "SUD",
541 Item::Gs1GlobalReturnableAssetIdentifierNonSerialised => "SUE",
542 Item::Imei => "SUF",
543 Item::WasteTypeEmsa => "SUG",
544 Item::ShipsStoreClassificationType => "SUH",
545 Item::EmergencyFireCode => "SUI",
546 Item::EmergencySpillageCode => "SUJ",
547 Item::ImdgPackingGroup => "SUK",
548 Item::MarpolCodeIbc => "SUL",
549 Item::ImdgSubsidiaryRiskClass => "SUM",
550 Item::TransportGroupNumber => "TG",
551 Item::TaxonomicSerialNumber => "TSN",
552 Item::ImdgMainHazardClass => "TSO",
553 Item::EuCombinedNomenclature => "TSP",
554 Item::TherapeuticClassificationNumber => "TSQ",
555 Item::EuropeanWasteCatalogue => "TSR",
556 Item::PriceGroupingCode => "TSS",
557 Item::Unspsc => "TST",
558 Item::EuRohsDirective => "TSU",
559 Item::UltimateCustomersArticleNumber => "UA",
560 Item::UpcUniversalProductCode => "UP",
561 Item::VendorItemNumber => "VN",
562 Item::VendorsSellersPartNumber => "VP",
563 Item::VendorsSupplementalItemNumber => "VS",
564 Item::VendorSpecificationNumber => "VX",
565 Item::MutuallyDefined => "ZZZ",
566 }
567 }
568}
569
570impl crate::Description for Item {
571 fn description(self) -> &'static str {
572 match self {
573 Item::ProductVersionNumber => "Product version number",
574 Item::Assembly => "Assembly",
575 Item::HibcHealthIndustryBarCode => "HIBC (Health Industry Bar Code)",
576 Item::ColdRollNumber => "Cold roll number",
577 Item::HotRollNumber => "Hot roll number",
578 Item::SlabNumber => "Slab number",
579 Item::SoftwareRevisionNumber => "Software revision number",
580 Item::UpcUniversalProductCodeConsumerPackageCode155 => {
581 "UPC (Universal Product Code) Consumer package code (1-5-5)"
582 }
583 Item::UpcUniversalProductCodeConsumerPackageCode155_Dup => {
584 "UPC (Universal Product Code) Consumer package code (1-5-5-"
585 }
586 Item::SampleNumber => "Sample number",
587 Item::PackNumber => "Pack number",
588 Item::UpcUniversalProductCodeShippingContainerCode12 => {
589 "UPC (Universal Product Code) Shipping container code (1-2-"
590 }
591 Item::UpcUniversalProductCodeEanEuropeanArticleNumber => {
592 "UPC (Universal Product Code)/EAN (European article number)"
593 }
594 Item::UpcUniversalProductCodeSuffix => "UPC (Universal Product Code) suffix",
595 Item::StateLabelCode => "State label code",
596 Item::HeatNumber => "Heat number",
597 Item::CouponNumber => "Coupon number",
598 Item::ResourceNumber => "Resource number",
599 Item::WorkTaskNumber => "Work task number",
600 Item::PriceLookUpNumber => "Price look up number",
601 Item::NsnNorthAtlanticTreatyOrganizationStockNumber => {
602 "NSN (North Atlantic Treaty Organization Stock Number)"
603 }
604 Item::RefinedProductCode => "Refined product code",
605 Item::Exhibit => "Exhibit",
606 Item::EndItem => "End item",
607 Item::FederalSupplyClassification => "Federal supply classification",
608 Item::EngineeringDataList => "Engineering data list",
609 Item::MilestoneEventNumber => "Milestone event number",
610 Item::LotNumber => "Lot number",
611 Item::NationalDrugCode442Format => "National drug code 4-4-2 format",
612 Item::NationalDrugCode532Format => "National drug code 5-3-2 format",
613 Item::NationalDrugCode541Format => "National drug code 5-4-1 format",
614 Item::NationalDrugCode542Format => "National drug code 5-4-2 format",
615 Item::NationalDrugCode => "National drug code",
616 Item::PartNumber => "Part number",
617 Item::LocalStockNumberLsn => "Local Stock Number (LSN)",
618 Item::NextHigherAssemblyNumber => "Next higher assembly number",
619 Item::DataCategory => "Data category",
620 Item::ControlNumber => "Control number",
621 Item::SpecialMaterialIdentificationCode => "Special material identification code",
622 Item::LocallyAssignedControlNumber => "Locally assigned control number",
623 Item::BuyersColour => "Buyer's colour",
624 Item::BuyersPartNumber => "Buyer's part number",
625 Item::VariableMeasureProductCode => "Variable measure product code",
626 Item::FinancialPhase => "Financial phase",
627 Item::ContractBreakdown => "Contract breakdown",
628 Item::TechnicalPhase => "Technical phase",
629 Item::DyeLotNumber => "Dye lot number",
630 Item::DailyStatementActivities => "Daily statement of activities",
631 Item::PeriodicalStatementActivitiesWithinABilaterally => {
632 "Periodical statement of activities within a bilaterally"
633 }
634 Item::CalendarWeekStatementActivities => "Calendar week statement of activities",
635 Item::CalendarMonthStatementActivities => "Calendar month statement of activities",
636 Item::OriginalEquipmentNumber => "Original equipment number",
637 Item::IndustryCommodityCode => "Industry commodity code",
638 Item::CommodityGrouping => "Commodity grouping",
639 Item::ColourNumber => "Colour number",
640 Item::ContractNumber => "Contract number",
641 Item::CustomsArticleNumber => "Customs article number",
642 Item::DrawingRevisionNumber => "Drawing revision number",
643 Item::Drawing => "Drawing",
644 Item::EngineeringChangeLevel => "Engineering change level",
645 Item::MaterialCode => "Material code",
646 Item::EmdnEuropeanMedicalDeviceNomenclature => {
647 "EMDN (European Medical Device Nomenclature)"
648 }
649 Item::InternationalArticleNumberingAssociationEan => {
650 "International Article Numbering Association (EAN)"
651 }
652 Item::FishSpecies => "Fish species",
653 Item::BuyersInternalProductGroupCode => "Buyer's internal product group code",
654 Item::GlobalModelNumber => "Global model number",
655 Item::NationalProductGroupCode => "National product group code",
656 Item::GeneralSpecificationNumber => "General specification number",
657 Item::HarmonisedSystem => "Harmonised system",
658 Item::IsbnInternationalStandardBookNumber => {
659 "ISBN (International Standard Book Number)"
660 }
661 Item::BuyersItemNumber => "Buyer's item number",
662 Item::IssnInternationalStandardSerialNumber => {
663 "ISSN (International Standard Serial Number)"
664 }
665 Item::BuyersStyleNumber => "Buyer's style number",
666 Item::BuyersSizeCode => "Buyer's size code",
667 Item::MachineNumber => "Machine number",
668 Item::ManufacturersProducersArticleNumber => {
669 "Manufacturer's (producer's) article number"
670 }
671 Item::ModelNumber => "Model number",
672 Item::ProductServiceIdentificationNumber => "Product/service identification number",
673 Item::BatchNumber => "Batch number",
674 Item::CustomerOrderNumber => "Customer order number",
675 Item::PartNumberDescription => "Part number description",
676 Item::PurchasersOrderLineNumber => "Purchaser's order line number",
677 Item::PurchaseOrderNumber => "Purchase order number",
678 Item::PhytosanitaryPassportIdentifier => "Phytosanitary Passport identifier",
679 Item::PromotionalVariantNumber => "Promotional variant number",
680 Item::BuyersQualifierForSize => "Buyer's qualifier for size",
681 Item::ReturnableContainerNumber => "Returnable container number",
682 Item::ReleaseNumber => "Release number",
683 Item::RunNumber => "Run number",
684 Item::RecordKeepingModelYear => "Record keeping of model year",
685 Item::SuppliersArticleNumber => "Supplier's article number",
686 Item::StandardGroupProductsMixedAssortment => {
687 "Standard group of products (mixed assortment)"
688 }
689 Item::SkuStockKeepingUnit => "SKU (Stock keeping unit)",
690 Item::SerialNumber => "Serial number",
691 Item::RskNumber => "RSK number",
692 Item::IflsInstitutFrancaisDuLibreService5DigitProduct => {
693 "IFLS (Institut Francais du Libre Service) 5 digit product"
694 }
695 Item::IflsInstitutFrancaisDuLibreService9DigitProduct => {
696 "IFLS (Institut Francais du Libre Service) 9 digit product"
697 }
698 Item::Gs1GlobalTradeItemNumber => "GS1 Global Trade Item Number",
699 Item::EdisEnergyDataIdentificationSystem => "EDIS (Energy Data Identification System)",
700 Item::SlaughterNumber => "Slaughter number",
701 Item::OfficialAnimalNumber => "Official animal number",
702 Item::HarmonizedTariffSchedule => "Harmonized tariff schedule",
703 Item::SuppliersSupplierArticleNumber => "Supplier's supplier article number",
704 Item::_46LevelDotCode => "46 Level DOT Code",
705 Item::AirlineTariff6d => "Airline Tariff 6D",
706 Item::Title49CodeFederalRegulations => "Title 49 Code of Federal Regulations",
707 Item::InternationalCivilAviationAdministrationCode => {
708 "International Civil Aviation Administration code"
709 }
710 Item::HazardousMaterialsIdDot => "Hazardous Materials ID DOT",
711 Item::Endorsement => "Endorsement",
712 Item::AirForceRegulation714 => "Air Force Regulation 71-4",
713 Item::Breed => "Breed",
714 Item::ChemicalAbstractServiceCasRegistryNumber => {
715 "Chemical Abstract Service (CAS) registry number"
716 }
717 Item::EngineModelDesignation => "Engine model designation",
718 Item::InstitutionalMeatPurchaseSpecificationsImpsNumber => {
719 "Institutional Meat Purchase Specifications (IMPS) Number"
720 }
721 Item::PriceLookUpCodePlu => "Price Look-Up code (PLU)",
722 Item::InternationalMaritimeOrganizationImoCode => {
723 "International Maritime Organization (IMO) Code"
724 }
725 Item::BureauExplosives600ARail => "Bureau of Explosives 600-A (rail)",
726 Item::UnitedNationsDangerousGoodsList => "United Nations Dangerous Goods List",
727 Item::InternationalCodeBotanicalNomenclatureIcbn => {
728 "International Code of Botanical Nomenclature (ICBN)"
729 }
730 Item::InternationalCodeZoologicalNomenclatureIczn => {
731 "International Code of Zoological Nomenclature (ICZN)"
732 }
733 Item::InternationalCodeNomenclatureForCultivatedPlants => {
734 "International Code of Nomenclature for Cultivated Plants"
735 }
736 Item::DistributorSArticleIdentifier => "Distributor’s article identifier",
737 Item::NorwegianClassificationSystemEnva => "Norwegian Classification system ENVA",
738 Item::SupplierAssignedClassification => "Supplier assigned classification",
739 Item::MexicanClassificationSystemAmece => "Mexican classification system AMECE",
740 Item::GermanClassificationSystemCcg => "German classification system CCG",
741 Item::FinnishClassificationSystemEanfin => "Finnish classification system EANFIN",
742 Item::CanadianClassificationSystemIcc => "Canadian classification system ICC",
743 Item::FrenchClassificationSystemIfls5 => "French classification system IFLS5",
744 Item::StyleNumber => "Style number",
745 Item::DutchClassificationSystemCbl => "Dutch classification system CBL",
746 Item::JapaneseClassificationSystemJicfs => "Japanese classification system JICFS",
747 Item::EuropeanUnionDairySubsidyEligibilityClassification => {
748 "European Union dairy subsidy eligibility classification"
749 }
750 Item::Gs1SpainClassificationSystem => "GS1 Spain classification system",
751 Item::Gs1PolandClassificationSystem => "GS1 Poland classification system",
752 Item::FederalAgencyOnTechnicalRegulatingAndMetrology => {
753 "Federal Agency on Technical Regulating and Metrology of the"
754 }
755 Item::EfficientConsumerResponseEcrAustriaClassification => {
756 "Efficient Consumer Response (ECR) Austria classification"
757 }
758 Item::Gs1ItalyClassificationSystem => "GS1 Italy classification system",
759 Item::CpvCommonProcurementVocabulary => "CPV (Common Procurement Vocabulary)",
760 Item::IfdaInternationalFoodserviceDistributorsAssociation => {
761 "IFDA (International Foodservice Distributors Association)"
762 }
763 Item::AhfsAmericanHospitalFormularyServicePharmacologic => {
764 "AHFS (American Hospital Formulary Service) pharmacologic -"
765 }
766 Item::AtcAnatomicalTherapeuticChemicalClassificationSystem => {
767 "ATC (Anatomical Therapeutic Chemical) classification system"
768 }
769 Item::CladimedClassificationDesDispositifsMédicaux => {
770 "CLADIMED (Classification des Dispositifs Médicaux)"
771 }
772 Item::CmdrCanadianMedicalDeviceRegulationsClassification => {
773 "CMDR (Canadian Medical Device Regulations) classification"
774 }
775 Item::CndmClassificazioneNazionaleDeiDispositiviMedici => {
776 "CNDM (Classificazione Nazionale dei Dispositivi Medici)"
777 }
778 Item::UkDmDDictionaryMedicinesDevicesStandardCoding => {
779 "UK DM&D (Dictionary of Medicines & Devices) standard coding"
780 }
781 Item::EclSs => "eCl@ss",
782 Item::EdmaEuropeanDiagnosticManufacturersAssociation => {
783 "EDMA (European Diagnostic Manufacturers Association)"
784 }
785 Item::EgarEuropeanGenericArticleRegister => "EGAR (European Generic Article Register)",
786 Item::GmdnGlobalMedicalDevicesNomenclature => {
787 "GMDN (Global Medical Devices Nomenclature)"
788 }
789 Item::GpiGenericProductIdentifier => "GPI (Generic Product Identifier)",
790 Item::HcpcsHealthcareCommonProcedureCodingSystem => {
791 "HCPCS (Healthcare Common Procedure Coding System)"
792 }
793 Item::IcpsInternationalClassificationForPatientSafety => {
794 "ICPS (International Classification for Patient Safety)"
795 }
796 Item::MeddraMedicalDictionaryForRegulatoryActivities => {
797 "MedDRA (Medical Dictionary for Regulatory Activities)"
798 }
799 Item::MedicalColumbus => "Medical Columbus",
800 Item::NapcsNorthAmericanProductClassificationSystem => {
801 "NAPCS (North American Product Classification System)"
802 }
803 Item::NhsNationalHealthServicesEclass => "NHS (National Health Services) eClass",
804 Item::UsFdaFoodAndDrugAdministrationProductCode => {
805 "US FDA (Food and Drug Administration) Product Code"
806 }
807 Item::SnomedCtSystematizedNomenclatureMedicineClinical => {
808 "SNOMED CT (Systematized Nomenclature of Medicine-Clinical"
809 }
810 Item::UmdnsUniversalMedicalDeviceNomenclatureSystem => {
811 "UMDNS (Universal Medical Device Nomenclature System)"
812 }
813 Item::Gs1GlobalReturnableAssetIdentifierNonSerialised => {
814 "GS1 Global Returnable Asset Identifier, non-serialised"
815 }
816 Item::Imei => "IMEI",
817 Item::WasteTypeEmsa => "Waste Type (EMSA)",
818 Item::ShipsStoreClassificationType => "Ship's store classification type",
819 Item::EmergencyFireCode => "Emergency fire code",
820 Item::EmergencySpillageCode => "Emergency spillage code",
821 Item::ImdgPackingGroup => "IMDG packing group",
822 Item::MarpolCodeIbc => "MARPOL Code IBC",
823 Item::ImdgSubsidiaryRiskClass => "IMDG subsidiary risk class",
824 Item::TransportGroupNumber => "Transport group number",
825 Item::TaxonomicSerialNumber => "Taxonomic Serial Number",
826 Item::ImdgMainHazardClass => "IMDG main hazard class",
827 Item::EuCombinedNomenclature => "EU Combined Nomenclature",
828 Item::TherapeuticClassificationNumber => "Therapeutic classification number",
829 Item::EuropeanWasteCatalogue => "European Waste Catalogue",
830 Item::PriceGroupingCode => "Price grouping code",
831 Item::Unspsc => "UNSPSC",
832 Item::EuRohsDirective => "EU RoHS Directive",
833 Item::UltimateCustomersArticleNumber => "Ultimate customer's article number",
834 Item::UpcUniversalProductCode => "UPC (Universal product code)",
835 Item::VendorItemNumber => "Vendor item number",
836 Item::VendorsSellersPartNumber => "Vendor's (seller's) part number",
837 Item::VendorsSupplementalItemNumber => "Vendor's supplemental item number",
838 Item::VendorSpecificationNumber => "Vendor specification number",
839 Item::MutuallyDefined => "Mutually defined",
840 }
841 }
842}
843
844impl crate::FromCode for Item {
845 fn from_code(code: &str) -> Option<Self>
846 where
847 Self: Sized,
848 {
849 match code {
850 "AA" => Some(Item::ProductVersionNumber),
851 "AB" => Some(Item::Assembly),
852 "AC" => Some(Item::HibcHealthIndustryBarCode),
853 "AD" => Some(Item::ColdRollNumber),
854 "AE" => Some(Item::HotRollNumber),
855 "AF" => Some(Item::SlabNumber),
856 "AG" => Some(Item::SoftwareRevisionNumber),
857 "AH" => Some(Item::UpcUniversalProductCodeConsumerPackageCode155),
858 "AI" => Some(Item::UpcUniversalProductCodeConsumerPackageCode155_Dup),
859 "AJ" => Some(Item::SampleNumber),
860 "AK" => Some(Item::PackNumber),
861 "AL" => Some(Item::UpcUniversalProductCodeShippingContainerCode12),
862 "AM" => Some(Item::UpcUniversalProductCodeEanEuropeanArticleNumber),
863 "AN" => Some(Item::UpcUniversalProductCodeSuffix),
864 "AO" => Some(Item::StateLabelCode),
865 "AP" => Some(Item::HeatNumber),
866 "AQ" => Some(Item::CouponNumber),
867 "AR" => Some(Item::ResourceNumber),
868 "AS" => Some(Item::WorkTaskNumber),
869 "AT" => Some(Item::PriceLookUpNumber),
870 "AU" => Some(Item::NsnNorthAtlanticTreatyOrganizationStockNumber),
871 "AV" => Some(Item::RefinedProductCode),
872 "AW" => Some(Item::Exhibit),
873 "AX" => Some(Item::EndItem),
874 "AY" => Some(Item::FederalSupplyClassification),
875 "AZ" => Some(Item::EngineeringDataList),
876 "BA" => Some(Item::MilestoneEventNumber),
877 "BB" => Some(Item::LotNumber),
878 "BC" => Some(Item::NationalDrugCode442Format),
879 "BD" => Some(Item::NationalDrugCode532Format),
880 "BE" => Some(Item::NationalDrugCode541Format),
881 "BF" => Some(Item::NationalDrugCode542Format),
882 "BG" => Some(Item::NationalDrugCode),
883 "BH" => Some(Item::PartNumber),
884 "BI" => Some(Item::LocalStockNumberLsn),
885 "BJ" => Some(Item::NextHigherAssemblyNumber),
886 "BK" => Some(Item::DataCategory),
887 "BL" => Some(Item::ControlNumber),
888 "BM" => Some(Item::SpecialMaterialIdentificationCode),
889 "BN" => Some(Item::LocallyAssignedControlNumber),
890 "BO" => Some(Item::BuyersColour),
891 "BP" => Some(Item::BuyersPartNumber),
892 "BQ" => Some(Item::VariableMeasureProductCode),
893 "BR" => Some(Item::FinancialPhase),
894 "BS" => Some(Item::ContractBreakdown),
895 "BT" => Some(Item::TechnicalPhase),
896 "BU" => Some(Item::DyeLotNumber),
897 "BV" => Some(Item::DailyStatementActivities),
898 "BW" => Some(Item::PeriodicalStatementActivitiesWithinABilaterally),
899 "BX" => Some(Item::CalendarWeekStatementActivities),
900 "BY" => Some(Item::CalendarMonthStatementActivities),
901 "BZ" => Some(Item::OriginalEquipmentNumber),
902 "CC" => Some(Item::IndustryCommodityCode),
903 "CG" => Some(Item::CommodityGrouping),
904 "CL" => Some(Item::ColourNumber),
905 "CR" => Some(Item::ContractNumber),
906 "CV" => Some(Item::CustomsArticleNumber),
907 "DR" => Some(Item::DrawingRevisionNumber),
908 "DW" => Some(Item::Drawing),
909 "EC" => Some(Item::EngineeringChangeLevel),
910 "EF" => Some(Item::MaterialCode),
911 "EMD" => Some(Item::EmdnEuropeanMedicalDeviceNomenclature),
912 "EN" => Some(Item::InternationalArticleNumberingAssociationEan),
913 "FS" => Some(Item::FishSpecies),
914 "GB" => Some(Item::BuyersInternalProductGroupCode),
915 "GMN" => Some(Item::GlobalModelNumber),
916 "GN" => Some(Item::NationalProductGroupCode),
917 "GS" => Some(Item::GeneralSpecificationNumber),
918 "HS" => Some(Item::HarmonisedSystem),
919 "IB" => Some(Item::IsbnInternationalStandardBookNumber),
920 "IN" => Some(Item::BuyersItemNumber),
921 "IS" => Some(Item::IssnInternationalStandardSerialNumber),
922 "IT" => Some(Item::BuyersStyleNumber),
923 "IZ" => Some(Item::BuyersSizeCode),
924 "MA" => Some(Item::MachineNumber),
925 "MF" => Some(Item::ManufacturersProducersArticleNumber),
926 "MN" => Some(Item::ModelNumber),
927 "MP" => Some(Item::ProductServiceIdentificationNumber),
928 "NB" => Some(Item::BatchNumber),
929 "ON" => Some(Item::CustomerOrderNumber),
930 "PD" => Some(Item::PartNumberDescription),
931 "PL" => Some(Item::PurchasersOrderLineNumber),
932 "PO" => Some(Item::PurchaseOrderNumber),
933 "PPI" => Some(Item::PhytosanitaryPassportIdentifier),
934 "PV" => Some(Item::PromotionalVariantNumber),
935 "QS" => Some(Item::BuyersQualifierForSize),
936 "RC" => Some(Item::ReturnableContainerNumber),
937 "RN" => Some(Item::ReleaseNumber),
938 "RU" => Some(Item::RunNumber),
939 "RY" => Some(Item::RecordKeepingModelYear),
940 "SA" => Some(Item::SuppliersArticleNumber),
941 "SG" => Some(Item::StandardGroupProductsMixedAssortment),
942 "SK" => Some(Item::SkuStockKeepingUnit),
943 "SN" => Some(Item::SerialNumber),
944 "SRS" => Some(Item::RskNumber),
945 "SRT" => Some(Item::IflsInstitutFrancaisDuLibreService5DigitProduct),
946 "SRU" => Some(Item::IflsInstitutFrancaisDuLibreService9DigitProduct),
947 "SRV" => Some(Item::Gs1GlobalTradeItemNumber),
948 "SRW" => Some(Item::EdisEnergyDataIdentificationSystem),
949 "SRX" => Some(Item::SlaughterNumber),
950 "SRY" => Some(Item::OfficialAnimalNumber),
951 "SRZ" => Some(Item::HarmonizedTariffSchedule),
952 "SS" => Some(Item::SuppliersSupplierArticleNumber),
953 "SSA" => Some(Item::_46LevelDotCode),
954 "SSB" => Some(Item::AirlineTariff6d),
955 "SSC" => Some(Item::Title49CodeFederalRegulations),
956 "SSD" => Some(Item::InternationalCivilAviationAdministrationCode),
957 "SSE" => Some(Item::HazardousMaterialsIdDot),
958 "SSF" => Some(Item::Endorsement),
959 "SSG" => Some(Item::AirForceRegulation714),
960 "SSH" => Some(Item::Breed),
961 "SSI" => Some(Item::ChemicalAbstractServiceCasRegistryNumber),
962 "SSJ" => Some(Item::EngineModelDesignation),
963 "SSK" => Some(Item::InstitutionalMeatPurchaseSpecificationsImpsNumber),
964 "SSL" => Some(Item::PriceLookUpCodePlu),
965 "SSM" => Some(Item::InternationalMaritimeOrganizationImoCode),
966 "SSN" => Some(Item::BureauExplosives600ARail),
967 "SSO" => Some(Item::UnitedNationsDangerousGoodsList),
968 "SSP" => Some(Item::InternationalCodeBotanicalNomenclatureIcbn),
969 "SSQ" => Some(Item::InternationalCodeZoologicalNomenclatureIczn),
970 "SSR" => Some(Item::InternationalCodeNomenclatureForCultivatedPlants),
971 "SSS" => Some(Item::DistributorSArticleIdentifier),
972 "SST" => Some(Item::NorwegianClassificationSystemEnva),
973 "SSU" => Some(Item::SupplierAssignedClassification),
974 "SSV" => Some(Item::MexicanClassificationSystemAmece),
975 "SSW" => Some(Item::GermanClassificationSystemCcg),
976 "SSX" => Some(Item::FinnishClassificationSystemEanfin),
977 "SSY" => Some(Item::CanadianClassificationSystemIcc),
978 "SSZ" => Some(Item::FrenchClassificationSystemIfls5),
979 "ST" => Some(Item::StyleNumber),
980 "STA" => Some(Item::DutchClassificationSystemCbl),
981 "STB" => Some(Item::JapaneseClassificationSystemJicfs),
982 "STC" => Some(Item::EuropeanUnionDairySubsidyEligibilityClassification),
983 "STD" => Some(Item::Gs1SpainClassificationSystem),
984 "STE" => Some(Item::Gs1PolandClassificationSystem),
985 "STF" => Some(Item::FederalAgencyOnTechnicalRegulatingAndMetrology),
986 "STG" => Some(Item::EfficientConsumerResponseEcrAustriaClassification),
987 "STH" => Some(Item::Gs1ItalyClassificationSystem),
988 "STI" => Some(Item::CpvCommonProcurementVocabulary),
989 "STJ" => Some(Item::IfdaInternationalFoodserviceDistributorsAssociation),
990 "STK" => Some(Item::AhfsAmericanHospitalFormularyServicePharmacologic),
991 "STL" => Some(Item::AtcAnatomicalTherapeuticChemicalClassificationSystem),
992 "STM" => Some(Item::CladimedClassificationDesDispositifsMédicaux),
993 "STN" => Some(Item::CmdrCanadianMedicalDeviceRegulationsClassification),
994 "STO" => Some(Item::CndmClassificazioneNazionaleDeiDispositiviMedici),
995 "STP" => Some(Item::UkDmDDictionaryMedicinesDevicesStandardCoding),
996 "STQ" => Some(Item::EclSs),
997 "STR" => Some(Item::EdmaEuropeanDiagnosticManufacturersAssociation),
998 "STS" => Some(Item::EgarEuropeanGenericArticleRegister),
999 "STT" => Some(Item::GmdnGlobalMedicalDevicesNomenclature),
1000 "STU" => Some(Item::GpiGenericProductIdentifier),
1001 "STV" => Some(Item::HcpcsHealthcareCommonProcedureCodingSystem),
1002 "STW" => Some(Item::IcpsInternationalClassificationForPatientSafety),
1003 "STX" => Some(Item::MeddraMedicalDictionaryForRegulatoryActivities),
1004 "STY" => Some(Item::MedicalColumbus),
1005 "STZ" => Some(Item::NapcsNorthAmericanProductClassificationSystem),
1006 "SUA" => Some(Item::NhsNationalHealthServicesEclass),
1007 "SUB" => Some(Item::UsFdaFoodAndDrugAdministrationProductCode),
1008 "SUC" => Some(Item::SnomedCtSystematizedNomenclatureMedicineClinical),
1009 "SUD" => Some(Item::UmdnsUniversalMedicalDeviceNomenclatureSystem),
1010 "SUE" => Some(Item::Gs1GlobalReturnableAssetIdentifierNonSerialised),
1011 "SUF" => Some(Item::Imei),
1012 "SUG" => Some(Item::WasteTypeEmsa),
1013 "SUH" => Some(Item::ShipsStoreClassificationType),
1014 "SUI" => Some(Item::EmergencyFireCode),
1015 "SUJ" => Some(Item::EmergencySpillageCode),
1016 "SUK" => Some(Item::ImdgPackingGroup),
1017 "SUL" => Some(Item::MarpolCodeIbc),
1018 "SUM" => Some(Item::ImdgSubsidiaryRiskClass),
1019 "TG" => Some(Item::TransportGroupNumber),
1020 "TSN" => Some(Item::TaxonomicSerialNumber),
1021 "TSO" => Some(Item::ImdgMainHazardClass),
1022 "TSP" => Some(Item::EuCombinedNomenclature),
1023 "TSQ" => Some(Item::TherapeuticClassificationNumber),
1024 "TSR" => Some(Item::EuropeanWasteCatalogue),
1025 "TSS" => Some(Item::PriceGroupingCode),
1026 "TST" => Some(Item::Unspsc),
1027 "TSU" => Some(Item::EuRohsDirective),
1028 "UA" => Some(Item::UltimateCustomersArticleNumber),
1029 "UP" => Some(Item::UpcUniversalProductCode),
1030 "VN" => Some(Item::VendorItemNumber),
1031 "VP" => Some(Item::VendorsSellersPartNumber),
1032 "VS" => Some(Item::VendorsSupplementalItemNumber),
1033 "VX" => Some(Item::VendorSpecificationNumber),
1034 "ZZZ" => Some(Item::MutuallyDefined),
1035 _ => None,
1036 }
1037 }
1038}