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