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