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