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