Skip to content

Commit

Permalink
Update noharm-triggers.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
heukirne authored Jan 20, 2025
1 parent ff8d765 commit db9df13
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions noharm-triggers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ BEGIN

-- DEFINIR PARAMETROS
PRESMED_PARAMETRO.nome_schema = 'demo';
PRESMED_PARAMETRO.features = ARRAY[]::text[];
--PRESMED_PARAMETRO.features = ARRAY['CPOE']::text[];
PRESMED_PARAMETRO.features = ARRAY['INSERT_IGNORE']::text[];
--PRESMED_PARAMETRO.features = ARRAY['CPOE']::text[];
PRESMED_PARAMETRO.skip_list = ARRAY[]::text[];

-- FUNCAO CENTRAL
PRESMED_RESULTADO := public.complete_presmed(PRESMED_PARAMETRO.*, new.*);


IF PRESMED_RESULTADO IS NULL THEN
RETURN NULL;
END IF;

-- USAR VALORES CALCULADOS
new.origem := PRESMED_RESULTADO.origem;
new.idsegmento := PRESMED_RESULTADO.idsegmento;
Expand Down

0 comments on commit db9df13

Please sign in to comment.