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