This commit is contained in:
dpurbosakti
2025-12-17 11:41:00 +07:00
parent 043ad16e89
commit 0b8ee04f77
4 changed files with 29 additions and 19 deletions

View File

@@ -1,17 +0,0 @@
-- Create "VaccineData" table
CREATE TABLE "public"."VaccineData" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Vaccine_type_Code" text NULL,
"Encounter_Id" bigint NULL,
"Vaccine_batch_number" bigint NULL,
"Vaccine_dose" bigint NULL,
"Dose_order" bigint NULL,
"Injection_location" text NULL,
"Vaccination_datetime" timestamptz NULL,
"Vaccine_expiration_date" timestamptz NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_VaccineData_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);

View File

@@ -0,0 +1,24 @@
-- Create "KFR" table
CREATE TABLE "public"."KFR" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"CreatedBy_Employee_Id" bigint NULL,
"Type" character varying(15) NULL,
"Subjective" text NULL,
"Objective" text NULL,
"Assessment" text NULL,
"TreatmentGoals" text NULL,
"Education" text NULL,
"Action" text NULL,
"Frequency" bigint NULL,
"IntervalUnit_Code" character varying(10) NULL,
"FollowUpType" character varying(10) NULL,
"FollowUpNote" text NULL,
"Status_Code" character varying(10) NOT NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_KFR_CreatedBy_Employee" FOREIGN KEY ("CreatedBy_Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_KFR_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);

View File

@@ -1,4 +1,4 @@
h1:hG7tbR8A3hp2zgbUt9pwONdJrHiSfrgcVBWoRB8Cx9k=
h1:1CaS7QWsLWAgD9ByH83Z9ZUhRWN/SSA5sNPc57BqiM0=
20250904105930.sql h1:MEM6blCgke9DzWQSTnLzasbPIrcHssNNrJqZpSkEo6k=
20250904141448.sql h1:J8cmYNk4ZrG9fhfbi2Z1IWz7YkfvhFqTzrLFo58BPY0=
20250908062237.sql h1:Pu23yEW/aKkwozHoOuROvHS/GK4ngARJGdO7FB7HZuI=
@@ -163,4 +163,5 @@ h1:hG7tbR8A3hp2zgbUt9pwONdJrHiSfrgcVBWoRB8Cx9k=
20251210145148.sql h1:rejGrnTpaygxPv06v0vxMytF4rk1OJBXaw3ttSmidgc=
20251211101547.sql h1:+jT5yRCEsSRExzoawrqymS/I7lVfwUQQSgSzbxCxgRk=
20251211113942.sql h1:hRwiVZnXGzgUbqOk5TZ6ZHzGs1GebIFeIKkJNb+6+f0=
20251216074834.sql h1:OJkATzCGB8NQlhaNblRMRhBLuT5XV1YSUWhtYjJzxl0=
20251216074834.sql h1:IGHk5mW7wVG+uTSEAHhaRLWJaLVtoFFS7DvxOnXRUxs=
20251217043504.sql h1:OpPzwiTWnwxFLuWzGeXrNrR7WO15CaIF6FHhAPcv1Ck=

View File

@@ -46,6 +46,7 @@ import (
internalreference "simrs-vx/internal/domain/main-entities/internal-reference"
item "simrs-vx/internal/domain/main-entities/item"
itemprice "simrs-vx/internal/domain/main-entities/item-price"
kfr "simrs-vx/internal/domain/main-entities/kfr"
laborant "simrs-vx/internal/domain/main-entities/laborant"
language "simrs-vx/internal/domain/main-entities/language"
material "simrs-vx/internal/domain/main-entities/material"
@@ -251,5 +252,6 @@ func getMainEntities() []any {
&screening.Screening{},
&procedurereport.ProcedureReport{},
&chemoplan.ChemoPlan{},
&kfr.KFR{},
}
}