emr: vital signs done

This commit is contained in:
wayanrivan
2026-02-12 13:38:06 +07:00
parent de86e52958
commit 4e29a5366d
3 changed files with 76 additions and 0 deletions

View 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;
}

View File

@ -0,0 +1,8 @@
export enum consciousness {
COMPOSMENTIS = 'COMPOS MENTIS',
APATHETIC = 'APATHETIC',
SOMNOLENT = 'SOMNOLENT',
SOPOR = 'SOPOR',
COMA = 'COMA',
DOA = 'DOA'
}

View File

@ -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";