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