Skip to content

Commit

Permalink
dosemax fields
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloarocha committed Jan 9, 2025
1 parent 3050711 commit 942f541
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion noharm-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ CREATE TABLE demo."medatributos" (
"lactante" varchar(1),
"gestante" varchar(1),
"jejum" boolean,
"ref_dosemaxima" float4,
"ref_dosemaxima_peso" float4,
"update_at" timestamp DEFAULT NULL,
"update_by" integer DEFAULT NULL
);
Expand Down Expand Up @@ -318,6 +320,7 @@ CREATE TABLE demo."unidademedida" (
"fkhospital" smallint DEFAULT 1,
"fkunidademedida" varchar(32) NOT NULL,
"nome" varchar(250) NOT NULL,
"unidademedida_nh" varchar(32),
PRIMARY KEY ("fkhospital", "fkunidademedida")
);

Expand All @@ -331,7 +334,8 @@ CREATE TABLE demo."unidadeconverte" (
CREATE TABLE demo."segmento" (
"idsegmento" SERIAL PRIMARY KEY NOT NULL,
"nome" varchar(250) NOT NULL,
"status" smallint DEFAULT NULL
"status" smallint DEFAULT NULL,
"tp_segmento" smallint
);

CREATE TABLE demo."segmentoexame" (
Expand Down
7 changes: 6 additions & 1 deletion noharm-public.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ CREATE TABLE public."substancia" (
"idclasse" varchar(10) NULL,
"ativo" boolean DEFAULT true,
"manejo" jsonb NULL,
"curadoria" text null
"curadoria" text null,
"dosemax_adulto" float4 NULL,
"dosemax_pediatrico" float4 NULL,
"unidadepadrao" varchar(32) NULL,
"dosemax_peso_adulto" float4 NULL,
"dosemax_peso_pediatrico" float4 NULL
);

CREATE TABLE public."notifica" (
Expand Down

0 comments on commit 942f541

Please sign in to comment.