Merge branch 'main' of https://git.shiblysolution.id/SAUDE-TL/entity
This commit is contained in:
@ -5,22 +5,27 @@ import {
|
||||
CreateDateColumn,
|
||||
UpdateDateColumn,
|
||||
DeleteDateColumn,
|
||||
ManyToOne,
|
||||
OneToOne,
|
||||
JoinColumn,
|
||||
ManyToOne,
|
||||
} from "typeorm";
|
||||
import { EmrRegistration } from "./emr_registration";
|
||||
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||
import { EmrPatient } from "./emr_patient";
|
||||
|
||||
@Entity("emr_diet", { schema: "emr" })
|
||||
export class EmrDiet {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||
@ManyToOne(() => EmrPatient, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
registration: EmrRegistration;
|
||||
patient: EmrPatient;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
@OneToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
registration_outpatient: EmrRegistrationOutpatient;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
diet: string;
|
||||
|
||||
@Column()
|
||||
|
||||
@ -5,25 +5,25 @@ import {
|
||||
CreateDateColumn,
|
||||
UpdateDateColumn,
|
||||
DeleteDateColumn,
|
||||
ManyToOne,
|
||||
JoinColumn,
|
||||
OneToOne,
|
||||
} from "typeorm";
|
||||
|
||||
import { EmrRegistration } from "./emr_registration";
|
||||
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||
|
||||
@Entity("emr_physical_examination", { schema: "emr" })
|
||||
export class EmrPhysicalExamination {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||
@OneToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
registration: EmrRegistration;
|
||||
registration_outpatient: EmrRegistrationOutpatient;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
@Column({ nullable: true, type: "text" })
|
||||
internal_status: string;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
@Column({ nullable: true, type: "text" })
|
||||
findings: string;
|
||||
|
||||
@Column()
|
||||
|
||||
Reference in New Issue
Block a user