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 { City } from "../city";
|
||||||
import { Subdistrict } from "../subdistrict";
|
import { Subdistrict } from "../subdistrict";
|
||||||
import { Ward } from "../ward";
|
import { Ward } from "../ward";
|
||||||
|
import { Citizen } from "../../types/citizen";
|
||||||
|
|
||||||
@Entity("emr_patients", { schema: "emr" })
|
@Entity("emr_patients", { schema: "emr" })
|
||||||
export class EmrPatient {
|
export class EmrPatient {
|
||||||
@ -36,8 +37,8 @@ export class EmrPatient {
|
|||||||
@Column({ nullable: false, length: 32 })
|
@Column({ nullable: false, length: 32 })
|
||||||
gender: string;
|
gender: string;
|
||||||
|
|
||||||
@Column({ nullable: false, length: 32 })
|
@Column({ nullable: true, length: 32 })
|
||||||
citizen: string;
|
citizen: Citizen;
|
||||||
|
|
||||||
@Column({ nullable: true, length: 64 })
|
@Column({ nullable: true, length: 64 })
|
||||||
marriage_status: string;
|
marriage_status: string;
|
||||||
|
|||||||
@ -58,3 +58,4 @@ export * from "../types/radiology_order_status";
|
|||||||
export * from "../types/laboratory_order_status";
|
export * from "../types/laboratory_order_status";
|
||||||
export * from "../enum/consciousness";
|
export * from "../enum/consciousness";
|
||||||
export * from "../types/patient_category";
|
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