diff --git a/src/entity/emr/emr_patient.ts b/src/entity/emr/emr_patient.ts index 6742904..7fe2e2c 100644 --- a/src/entity/emr/emr_patient.ts +++ b/src/entity/emr/emr_patient.ts @@ -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; diff --git a/src/schema/emr.ts b/src/schema/emr.ts index 92b9375..f3666e1 100644 --- a/src/schema/emr.ts +++ b/src/schema/emr.ts @@ -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"; diff --git a/src/types/citizen.ts b/src/types/citizen.ts new file mode 100644 index 0000000..9ac4958 --- /dev/null +++ b/src/types/citizen.ts @@ -0,0 +1,9 @@ +/** + * Workflow kategori pendaftaran pasien. + * Timoroan: pasien timor leste + * Estranjeiru: pasien asing + */ +export enum Citizen { + TIMOROAN = "Timoroan", + ESTRANJEIRU = "Estranjeiru", +}