Create table "PatientRegistrationCharge"("PatientRegistrationChargeId" serial primary key,
										 "LocationId" int references "Location"("LocationId"),
										 "Charge" numeric(8,2),"Active" boolean default true,
										"CreatedBy" int references "Account"("AccountId"),
										 "CreatedDate" timestamp without time zone,
										"ModifiedBy" int references "Account"("AccountId"),
										 "ModifiedDate" timestamp without time zone);
								 
										 


CREATE TABLE "PatientRegistrationDetail"
(
    "PatientRegistrationDetailId" serial primary key,
    "Charge" numeric(8,2),
    "PatientId" integer,
    "CreatedBy" integer,
    "CreatedDate" timestamp without time zone,   
    CONSTRAINT "PatientRegistrationDetail_CreatedBy_fkey" FOREIGN KEY ("CreatedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
    CONSTRAINT "PatientRegistrationDetail_PatientId_fkey" FOREIGN KEY ("PatientId")
        REFERENCES public."Patient" ("PatientId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
);
										 