upd
This commit is contained in:
@ -9,8 +9,8 @@ import {
|
||||
JoinColumn,
|
||||
} from "typeorm";
|
||||
|
||||
import { Status } from "../../types/status";
|
||||
import { RegistrationType } from "../../types/registration_type";
|
||||
import { RegistrationStatus } from "../../types/registration_status";
|
||||
import { EmrPatient } from "./emr_patient";
|
||||
|
||||
/**
|
||||
@ -40,8 +40,8 @@ export class EmrRegistration {
|
||||
@Column({ type: "text", nullable: true })
|
||||
reason_notes: string;
|
||||
|
||||
@Column({ nullable: false, length: 64 })
|
||||
status: Status;
|
||||
@Column({ nullable: false, length: 32 })
|
||||
status: RegistrationStatus;
|
||||
|
||||
@Column({ type: "date", nullable: true })
|
||||
visit_date: Date;
|
||||
|
||||
@ -6,3 +6,4 @@ export * from "../entity/emr/emr_registration_emergency";
|
||||
export * from "../entity/emr/emr_registration_hemodialysis";
|
||||
|
||||
export * from "../types/registration_type";
|
||||
export * from "../types/registration_status";
|
||||
|
||||
10
src/types/registration_status.ts
Normal file
10
src/types/registration_status.ts
Normal 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user