emr: vital signs done
This commit is contained in:
67
src/entity/emr/emr_vital_signs.ts
Normal file
67
src/entity/emr/emr_vital_signs.ts
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
import {
|
||||||
|
Entity,
|
||||||
|
PrimaryGeneratedColumn,
|
||||||
|
Column,
|
||||||
|
CreateDateColumn,
|
||||||
|
UpdateDateColumn,
|
||||||
|
DeleteDateColumn,
|
||||||
|
ManyToOne,
|
||||||
|
OneToOne,
|
||||||
|
JoinColumn,
|
||||||
|
} from "typeorm";
|
||||||
|
|
||||||
|
import { consciousness } from "../../enum/consciousness";
|
||||||
|
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||||
|
|
||||||
|
|
||||||
|
@Entity("emr_vital_signs", { schema: "emr" })
|
||||||
|
export class EmrVitalSigns {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
id_emr_outpatient: EmrRegistrationOutpatient;
|
||||||
|
|
||||||
|
/** Contoh: "08:00-12:00" atau "Pagi" */
|
||||||
|
@Column({ nullable: true, length: 64 })
|
||||||
|
blood_preasure: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 64 })
|
||||||
|
heart_rate: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 64 })
|
||||||
|
temperature: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 64 })
|
||||||
|
respiratory_rate: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "enum",
|
||||||
|
enum: consciousness,
|
||||||
|
nullable: false,
|
||||||
|
})
|
||||||
|
consciousness: consciousness;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
created_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
updated_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
deleted_by: string;
|
||||||
|
}
|
||||||
|
|
||||||
8
src/enum/consciousness.ts
Normal file
8
src/enum/consciousness.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export enum consciousness {
|
||||||
|
COMPOSMENTIS = 'COMPOS MENTIS',
|
||||||
|
APATHETIC = 'APATHETIC',
|
||||||
|
SOMNOLENT = 'SOMNOLENT',
|
||||||
|
SOPOR = 'SOPOR',
|
||||||
|
COMA = 'COMA',
|
||||||
|
DOA = 'DOA'
|
||||||
|
}
|
||||||
@ -5,6 +5,7 @@ export * from "../entity/emr/emr_registration_inpatient";
|
|||||||
export * from "../entity/emr/emr_registration_emergency";
|
export * from "../entity/emr/emr_registration_emergency";
|
||||||
export * from "../entity/emr/emr_registration_hemodialysis";
|
export * from "../entity/emr/emr_registration_hemodialysis";
|
||||||
export * from "../entity/emr/emr_anamnesis";
|
export * from "../entity/emr/emr_anamnesis";
|
||||||
|
export * from "../entity/emr/emr_vital_signs";
|
||||||
|
|
||||||
export * from "../types/registration_type";
|
export * from "../types/registration_type";
|
||||||
export * from "../types/registration_status";
|
export * from "../types/registration_status";
|
||||||
|
|||||||
Reference in New Issue
Block a user