fix vital signs
This commit is contained in:
@ -7,19 +7,25 @@ import {
|
||||
DeleteDateColumn,
|
||||
JoinColumn,
|
||||
OneToOne,
|
||||
ManyToOne,
|
||||
} from "typeorm";
|
||||
|
||||
import { consciousness } from "../../enum/consciousness";
|
||||
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||
import { EmrRegistration } from "./emr_registration";
|
||||
import { EmrPatient } from "./emr_patient";
|
||||
|
||||
@Entity("emr_vital_signs", { schema: "emr" })
|
||||
export class EmrVitalSigns {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@OneToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||
@OneToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
registration_outpatient: EmrRegistrationOutpatient;
|
||||
registration: EmrRegistration;
|
||||
|
||||
@ManyToOne(() => EmrPatient, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
patient: EmrPatient;
|
||||
|
||||
@Column({ nullable: true, length: 64 })
|
||||
blood_pressure: string;
|
||||
|
||||
Reference in New Issue
Block a user