/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include using namespace Aws::Utils; namespace Aws { namespace ComprehendMedical { namespace Model { namespace ICD10CMEntityCategoryMapper { static const int MEDICAL_CONDITION_HASH = HashingUtils::HashString("MEDICAL_CONDITION"); ICD10CMEntityCategory GetICD10CMEntityCategoryForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == MEDICAL_CONDITION_HASH) { return ICD10CMEntityCategory::MEDICAL_CONDITION; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ICD10CMEntityCategory::NOT_SET; } Aws::String GetNameForICD10CMEntityCategory(ICD10CMEntityCategory enumValue) { switch(enumValue) { case ICD10CMEntityCategory::MEDICAL_CONDITION: return "MEDICAL_CONDITION"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ICD10CMEntityCategoryMapper } // namespace Model } // namespace ComprehendMedical } // namespace Aws