feat(referral_hospital): add new column of type
This commit is contained in:
@ -6,6 +6,7 @@ import {
|
||||
UpdateDateColumn,
|
||||
DeleteDateColumn,
|
||||
} from "typeorm";
|
||||
import { RefferalHospitalType } from "../types/referral_hospital_type";
|
||||
|
||||
@Entity("refferal_hospital")
|
||||
export class RefferalHospital {
|
||||
@ -18,6 +19,13 @@ export class RefferalHospital {
|
||||
@Column({ type: "text", nullable: false })
|
||||
refferal_hospital_name!: string;
|
||||
|
||||
@Column({
|
||||
type: "enum",
|
||||
enum: RefferalHospitalType,
|
||||
nullable: true,
|
||||
})
|
||||
type?: RefferalHospitalType;
|
||||
|
||||
// Tanggal pembuatan grup pasien
|
||||
@CreateDateColumn()
|
||||
created_at!: Date;
|
||||
|
||||
@ -75,4 +75,4 @@ export * from "../types/diagnosis_type";
|
||||
export * from "../types/notification_priority";
|
||||
export * from "../types/card_print_queue_status";
|
||||
export * from "../types/card_print_queue_type";
|
||||
|
||||
export * from "../types/referral_hospital_type";
|
||||
|
||||
9
src/types/referral_hospital_type.ts
Normal file
9
src/types/referral_hospital_type.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Type of referral hospital.
|
||||
*/
|
||||
export enum RefferalHospitalType {
|
||||
PRIVATE_CLINIC = "private_clinic",
|
||||
PRIVATE_DOCTOR = "private_doctor",
|
||||
CENTRO_SAUDE = "centro_saude",
|
||||
HOSPITAL_REFERRAL = "hospital_referral",
|
||||
}
|
||||
Reference in New Issue
Block a user