USE [gringlobal]
GO

DECLARE	@return_value int,
		@out_error_number int,
		@out_code_value_id int

EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
		@out_error_number = @out_error_number OUTPUT,
		@out_code_value_id = @out_code_value_id OUTPUT,
		@group_name = N'PATHOLOGY_TEST',
		@code_value = N'Xcv',
		@title = N'Xanthomonas vesicatoria',
		@description = N'Bacterial spot of pepper, Bacterial spot of tomato - caused by multiple X. spp.',
		@sys_lang_id = 1,
		@created_by = 174697

SELECT	@out_error_number as N'@out_error_number',
		@out_code_value_id as N'@out_code_value_id'
 SELECT	'Return Value' = @return_value

EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
		@out_error_number = @out_error_number OUTPUT,
		@out_code_value_id = @out_code_value_id OUTPUT,
		@group_name = N'PATHOLOGY_TEST',
		@code_value = N'Xeu',
		@title = N'Xanthomonas euvesicatoria',
		@description = N'Bacterial spot of pepper, Bacterial spot of tomato - caused by multiple X. spp.',
		@sys_lang_id = 1,
		@created_by = 174697

SELECT	@out_error_number as N'@out_error_number',
		@out_code_value_id as N'@out_code_value_id'

SELECT	'Return Value' = @return_value

--=====================================================================================================--

EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
		@out_error_number = @out_error_number OUTPUT,
		@out_code_value_id = @out_code_value_id OUTPUT,
		@group_name = N'PATHOLOGY_TEST',
		@code_value = N'Xhgar',
		@title = N'Xanthomonas gardneri',
		@description = N'Bacterial spot of pepper, Bacterial spot of tomato - caused by multiple X. spp.',
		@sys_lang_id = 1,
		@created_by = 174697

SELECT	@out_error_number as N'@out_error_number',
		@out_code_value_id as N'@out_code_value_id'

SELECT	'Return Value' = @return_value

--=====================================================================================================--

EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
		@out_error_number = @out_error_number OUTPUT,
		@out_code_value_id = @out_code_value_id OUTPUT,
		@group_name = N'PATHOLOGY_TEST',
		@code_value = N'Xperf',
		@title = N'Xanthomonas perforans',
		@description = N'Bacterial spot of pepper, Bacterial spot of tomato - caused by multiple X. spp.',
		@sys_lang_id = 1,
		@created_by = 174697

SELECT	@out_error_number as N'@out_error_number',
		@out_code_value_id as N'@out_code_value_id'

SELECT	'Return Value' = @return_value

--**

EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
		@out_error_number = @out_error_number OUTPUT,
		@out_code_value_id = @out_code_value_id OUTPUT,
		@group_name = N'PATHOLOGY_TEST',
		@code_value = N'TMV',
		@title = N'Tobacco Mosaic Virus',
		@description = N'Pepper mosaic, Tobacco mosaic',
		@sys_lang_id = 1,
		@created_by = 174697

SELECT	@out_error_number as N'@out_error_number',
		@out_code_value_id as N'@out_code_value_id'

SELECT	'Return Value' = @return_value

--**

EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
		@out_error_number = @out_error_number OUTPUT,
		@out_code_value_id = @out_code_value_id OUTPUT,
		@group_name = N'PATHOLOGY_TEST',
		@code_value = N'PCFVd',
		@title = N'Pepper chat fruit viroid',
		@description = N'Pospiviroid whose known host range is limited to the Solanaceae and its distribution is also limited',
		@sys_lang_id = 1,
		@created_by = 174697

SELECT	@out_error_number as N'@out_error_number',
		@out_code_value_id as N'@out_code_value_id'

SELECT	'Return Value' = @return_value
--**

-- NOTE: Record had been in DB, created 12/17/2015. Updated based on spreadsheet.

UPDATE 
	code_value_lang
SET 
	title = 'Potato spindle tuber viroid',
	description = 'Bunchy top of tomato, Spindle tuber of potato. Pospiviroid. Pepper can be a host of Potato spindle tuber viroid (PSTVd), however, it is more important in potato and tomato.',
	modified_by = 174697,
	modified_date = GETUTCDATE()
WHERE 
	code_value_lang_id = 13035


--EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
--		@out_error_number = @out_error_number OUTPUT,
--		@out_code_value_id = @out_code_value_id OUTPUT,
--		@group_name = N'PATHOLOGY_TEST',
--		@code_value = N'PSTVd',
--		@title = N'Potato spindle tuber viroid',
--		@description = N'Bunchy top of tomato, Spindle tuber of potato. Pospiviroid. Pepper can be a host of Potato spindle tuber viroid (PSTVd), however, it is more important in potato and tomato.',
--		@sys_lang_id = 1,
--		@created_by = 174697

--SELECT	@out_error_number as N'@out_error_number',
--		@out_code_value_id as N'@out_code_value_id'

--SELECT	'Return Value' = @return_value
--**

EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
		@out_error_number = @out_error_number OUTPUT,
		@out_code_value_id = @out_code_value_id OUTPUT,
		@group_name = N'PATHOLOGY_TEST',
		@code_value = N'TASVd',
		@title = N'Tomato apical stunt viroid',
		@description = N'Pospiviroid. Pathogen of tomato.',
		@sys_lang_id = 1,
		@created_by = 174697

SELECT	@out_error_number as N'@out_error_number',
		@out_code_value_id as N'@out_code_value_id'

SELECT	'Return Value' = @return_value
--**

EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
		@out_error_number = @out_error_number OUTPUT,
		@out_code_value_id = @out_code_value_id OUTPUT,
		@group_name = N'PATHOLOGY_TEST',
		@code_value = N'TCDVd',
		@title = N'Tomato chlorotic dwarf viroid',
		@description = N'Pospiviroid plant pathogen which infects a range of Solanaceous vegetables and ornamentals.',
		@sys_lang_id = 1,
		@created_by = 174697

SELECT	@out_error_number as N'@out_error_number',
		@out_code_value_id as N'@out_code_value_id'

SELECT	'Return Value' = @return_value



EXEC	@return_value = [dbo].[usp_GRINGlobal_Code_Value_Insert]
		@out_error_number = @out_error_number OUTPUT,
		@out_code_value_id = @out_code_value_id OUTPUT,
		@group_name = N'PATHOLOGY_TEST',
		@code_value = N'PSTVd',
		@title = N'Potato spindle tuber viroid',
		@description = N'Pospiviroid plant pathogen which infects a range of Solanaceous vegetables and ornamentals.',
		@sys_lang_id = 1,
		@created_by = 174697

SELECT	@out_error_number as N'@out_error_number',
		@out_code_value_id as N'@out_code_value_id'

SELECT	'Return Value' = @return_value



