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