This commit is contained in:
Narul Hidayah
2026-02-11 16:45:17 +07:00
parent c046f41f41
commit 1e0927cea2
3 changed files with 14 additions and 3 deletions

View File

@ -9,8 +9,8 @@ import {
JoinColumn, JoinColumn,
} from "typeorm"; } from "typeorm";
import { Status } from "../../types/status";
import { RegistrationType } from "../../types/registration_type"; import { RegistrationType } from "../../types/registration_type";
import { RegistrationStatus } from "../../types/registration_status";
import { EmrPatient } from "./emr_patient"; import { EmrPatient } from "./emr_patient";
/** /**
@ -40,8 +40,8 @@ export class EmrRegistration {
@Column({ type: "text", nullable: true }) @Column({ type: "text", nullable: true })
reason_notes: string; reason_notes: string;
@Column({ nullable: false, length: 64 }) @Column({ nullable: false, length: 32 })
status: Status; status: RegistrationStatus;
@Column({ type: "date", nullable: true }) @Column({ type: "date", nullable: true })
visit_date: Date; visit_date: Date;

View File

@ -6,3 +6,4 @@ export * from "../entity/emr/emr_registration_emergency";
export * from "../entity/emr/emr_registration_hemodialysis"; export * from "../entity/emr/emr_registration_hemodialysis";
export * from "../types/registration_type"; export * from "../types/registration_type";
export * from "../types/registration_status";

View File

@ -0,0 +1,10 @@
/**
* Workflow status untuk registrasi EMR (bukan status Y/N).
*/
export enum RegistrationStatus {
SCHEDULED = "scheduled", // sudah didaftarkan, belum dipanggil
ONGOING = "ongoing", // sedang dalam proses (pasien sedang dilayani)
COMPLETED = "completed", // layanan sudah selesai
CANCELED = "canceled", // dibatalkan
}