public Category XsdCategoryToCategory(SegmentationCodesCategory xsdCategory)
        {
            var category = new Category
            {
                CodeMeaning            = xsdCategory.codeMeaning,
                CodeValue              = xsdCategory.codeValue,
                CodingSchemeDesignator = xsdCategory.codingScheme,
                AnatomicRegionRequired = xsdCategory.showAnatomy
            };

            if (xsdCategory.Type != null)
            {
                foreach (SegmentationCodesCategoryType xsdType in xsdCategory.Type)
                {
                    if (xsdType != null)
                    {
                        Type type = XsdTypeToType(xsdType);
                        category.Types.Add(type);
                    }
                }
            }

            return(category);
        }
        public Category XsdCategoryToCategory(SegmentationCodesCategory xsdCategory)
        {
            var category = new Category
                               {
                                   CodeMeaning = xsdCategory.codeMeaning,
                                   CodeValue = xsdCategory.codeValue,
                                   CodingSchemeDesignator = xsdCategory.codingScheme,
                                   AnatomicRegionRequired = xsdCategory.showAnatomy
                               };

            if (xsdCategory.Type != null)
            {
                foreach (SegmentationCodesCategoryType xsdType in xsdCategory.Type)
                {
                    if (xsdType != null)
                    {
                        Type type = XsdTypeToType(xsdType);
                        category.Types.Add(type);
                    }
                }
            }

            return category;
        }