From 00d0ce7be99bbb8a67b1ff4e944bdf91bfaa787d Mon Sep 17 00:00:00 2001 From: Iki Date: Fri, 19 Jun 2026 17:10:38 +0900 Subject: [PATCH] add column private_clinic_referral, private_doctor_referral and diagnosis_id --- src/entity/reporting/opd_diagnosis_fact.ts | 3 +++ src/entity/reporting/opd_referral_fact.ts | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/entity/reporting/opd_diagnosis_fact.ts b/src/entity/reporting/opd_diagnosis_fact.ts index 369f7b3..06972b9 100644 --- a/src/entity/reporting/opd_diagnosis_fact.ts +++ b/src/entity/reporting/opd_diagnosis_fact.ts @@ -43,6 +43,9 @@ export class OpdDiagnosisFact { @Column({ nullable: true, length: 32 }) icd_code: string | null; + @Column({ type: "uuid", nullable: true }) + diagnosis_id: string | null; + @Column({ nullable: false, length: 512 }) diagnosis_name: string; diff --git a/src/entity/reporting/opd_referral_fact.ts b/src/entity/reporting/opd_referral_fact.ts index 1eb2254..b499007 100644 --- a/src/entity/reporting/opd_referral_fact.ts +++ b/src/entity/reporting/opd_referral_fact.ts @@ -44,7 +44,10 @@ export class OpdReferralFact { centro_saude_referral: number; @Column({ type: "int", nullable: false, default: 0 }) - internal_referral: number; + private_clinic_referral: number; + + @Column({ type: "int", nullable: false, default: 0 }) + private_doctor_referral: number; @Column({ type: "int", nullable: false, default: 0 }) no_referral: number;