feat/encounter: done

This commit is contained in:
Andrian Roshandy
2025-10-21 22:48:34 +07:00
parent d8c861d60c
commit 3f77d927b6
14 changed files with 484 additions and 194 deletions
+6
View File
@@ -0,0 +1,6 @@
export interface DeathCause {
id: bigint;
encounter_id: bigint;
value: any; // json mapped to 'any' type
}
+6 -1
View File
@@ -1,5 +1,7 @@
import type { DeathCause } from "./death-cause"
import { type Doctor, genDoctor } from "./doctor"
import { genEmployee, type Employee } from "./employee"
import type { InternalReference } from "./internal-reference"
import { type Patient, genPatient } from "./patient"
import type { Specialist } from "./specialist"
import type { Subspecialist } from "./subspecialist"
@@ -29,8 +31,11 @@ export interface Encounter {
earlyEducation?: string
medicalDischargeEducation: string
admDischargeEducation?: string
dischargeMethod_code?: string
discharge_method_code?: string
discharge_reason?: string
discharge_date?: string
internalReferences?: InternalReference[]
deathCause?: DeathCause
status_code: string
}
+12
View File
@@ -0,0 +1,12 @@
export interface InternalReference {
id: number;
encounter_id: number;
unit_id: number; // smallint mapped to number
doctor_id: number; // int mapped to number
}
export interface CreateDto {
encounter_id: number;
unit_id: number; // smallint mapped to number
doctor_id: number; // int mapped to number
}