feat/encounter: done
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export interface DeathCause {
|
||||
id: bigint;
|
||||
encounter_id: bigint;
|
||||
value: any; // json mapped to 'any' type
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user