-- Table: public.Encounter

-- DROP TABLE public."Encounter";

CREATE TABLE public."GynEncounter"
(
    "GynEncounterId" bigserial NOT NULL ,
    "AppointmentId" integer,
    "EncounterDate" timestamp(6) without time zone NOT NULL,
    "Abdomen" text COLLATE pg_catalog."default",
    "AdditionalLabs" text COLLATE pg_catalog."default",
    "BirthControl" text COLLATE pg_catalog."default",
    "Breast" text COLLATE pg_catalog."default",
    "BreastScreening" text COLLATE pg_catalog."default",
    "CancerHistory" text COLLATE pg_catalog."default",
    "Cardiovascular" text COLLATE pg_catalog."default",
    "GynHistory" text COLLATE pg_catalog."default",
    "GynLabs" text COLLATE pg_catalog."default",
    "GynUltraSound" text COLLATE pg_catalog."default",
    "Heent" text COLLATE pg_catalog."default",
    "LastBreastUltraSound" text COLLATE pg_catalog."default",
    "LastDexaScan" text COLLATE pg_catalog."default",
    "LastMammogram" text COLLATE pg_catalog."default",
    "LastPelvicUltraSound" text COLLATE pg_catalog."default",
    "Lymphatic" text COLLATE pg_catalog."default",
    "MenopausalHistory" text COLLATE pg_catalog."default",
    "MensutralHistory" text COLLATE pg_catalog."default",
    "MusculoSkeletal" text COLLATE pg_catalog."default",
    "PatientDeferred" text COLLATE pg_catalog."default",
    "Pelvic" text COLLATE pg_catalog."default",
    "PhysicalExam" text COLLATE pg_catalog."default",
    "Respiratory" text COLLATE pg_catalog."default",
    "Skin" text COLLATE pg_catalog."default",
    "Vitals" text COLLATE pg_catalog."default",
    "Active" boolean NOT NULL DEFAULT true,
    "CreatedBy" integer NOT NULL,
    "CreatedDate" timestamp(6) without time zone NOT NULL,
    "ModifiedBy" integer,
    "ModifiedDate" timestamp(6) without time zone,
    "AdmissionId" integer,
    CONSTRAINT "GynEncounter_pkey" PRIMARY KEY ("GynEncounterId"),
    CONSTRAINT "UQ_GynEncounter" UNIQUE ("AppointmentId")
);


ALTER TYPE encountertype_elements ADD VALUE 'GynEncounter';