ALTER TYPE encountertype_elements ADD VALUE 'DietPlanEncounter'  after 'PediatricEncounter' ;
CREATE TABLE IF NOT EXISTS public."DietPlanEncounter"
(
    "DietPlanEncounterId" serial primary key,
    "AppointmentId" integer,
    "DietPlanEncounterDate" timestamp(6) without time zone NOT NULL,
    "DietPlanPrescribed" text COLLATE pg_catalog."default",  
    "OpNutritionScreening" text COLLATE pg_catalog."default",   
    "OpNutritionAssessment" text COLLATE pg_catalog."default",   
    "IpNutritionScreening" text COLLATE pg_catalog."default",   
    "PediatricCDCScreening" text COLLATE pg_catalog."default",   
    "DietGuidlines" text COLLATE pg_catalog."default", 
    "AdmissionId" integer, 
    CONSTRAINT "UQ_DietPlanEncounter" UNIQUE ("AppointmentId")
);









