feat(patient): use type and make nullable for citizen in patient
This commit is contained in:
@ -9,6 +9,7 @@ import { Province } from "../province";
|
||||
import { City } from "../city";
|
||||
import { Subdistrict } from "../subdistrict";
|
||||
import { Ward } from "../ward";
|
||||
import { Citizen } from "../../types/citizen";
|
||||
|
||||
@Entity("emr_patients", { schema: "emr" })
|
||||
export class EmrPatient {
|
||||
@ -36,8 +37,8 @@ export class EmrPatient {
|
||||
@Column({ nullable: false, length: 32 })
|
||||
gender: string;
|
||||
|
||||
@Column({ nullable: false, length: 32 })
|
||||
citizen: string;
|
||||
@Column({ nullable: true, length: 32 })
|
||||
citizen: Citizen;
|
||||
|
||||
@Column({ nullable: true, length: 64 })
|
||||
marriage_status: string;
|
||||
|
||||
@ -58,3 +58,4 @@ export * from "../types/radiology_order_status";
|
||||
export * from "../types/laboratory_order_status";
|
||||
export * from "../enum/consciousness";
|
||||
export * from "../types/patient_category";
|
||||
export * from "../types/citizen";
|
||||
|
||||
9
src/types/citizen.ts
Normal file
9
src/types/citizen.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Workflow kategori pendaftaran pasien.
|
||||
* Timoroan: pasien timor leste
|
||||
* Estranjeiru: pasien asing
|
||||
*/
|
||||
export enum Citizen {
|
||||
TIMOROAN = "Timoroan",
|
||||
ESTRANJEIRU = "Estranjeiru",
|
||||
}
|
||||
Reference in New Issue
Block a user