----drop FUNCTION fnx_GetDispChildXml_HealthInfringementType(int)
--CREATE OR REPLACE FUNCTION fnx_GetDispChildXml_HealthInfringementType("HealthInfringementType" int)
--  RETURNS TABLE(split text) AS
--$BODY$
--	select '1' as split where "HealthInfringementType" & 2 = 2
--	union all
--	select '2' as split where "HealthInfringementType" & 4 = 4
--	union all
--	select '3' as split where "HealthInfringementType" & 8 = 8
--	union all
--	select '4' as split where "HealthInfringementType" & 16 = 16
--	union all
--	select '5' as split where "HealthInfringementType" & 32 = 32
--	union all
--	select '6' as split where "HealthInfringementType" & 64 = 64
--	union all
--	select '7' as split where "HealthInfringementType" & 128 = 128
--	union all
--	select '8' as split where "HealthInfringementType" & 256 = 256
--	union all
--	select '9' as split where "HealthInfringementType" & 512 = 512
--$BODY$
--  LANGUAGE sql immutable
--  COST 100
--  ROWS 10;
--ALTER FUNCTION fnx_GetDispChildXml_HealthInfringementType(int)
--  OWNER TO postgres;