Fix: debug after reset

This commit is contained in:
hasyim_kai
2025-11-18 15:31:04 +07:00
parent bcfb4c1456
commit 0a68dbf3a6
26 changed files with 1427 additions and 52 deletions
+29
View File
@@ -0,0 +1,29 @@
import { type Base, genBase } from "./_base"
import { docTypeLabel, } from '~/lib/constants'
import { genEmployee, type Employee } from "./employee"
import { genEncounter, type Encounter } from "./encounter"
export interface EncounterDocument extends Base {
encounter_id: number
encounter?: Encounter
upload_employee_id: number
employee?: Employee
type_code: string
name: string
filePath: string
fileName: string
}
export function genEncounterDocument(): EncounterDocument {
return {
...genBase(),
encounter_id: 2,
encounter: genEncounter(),
upload_employee_id: 0,
employee: genEmployee(),
type_code: docTypeLabel["encounter-patient"],
name: 'example',
filePath: 'https://bing.com',
fileName: 'example',
}
}
+4 -1
View File
@@ -1,6 +1,7 @@
import type { DeathCause } from "./death-cause"
import { type Doctor, genDoctor } from "./doctor"
import { genEmployee, type Employee } from "./employee"
import type { EncounterDocument } from "./encounter-document"
import type { InternalReference } from "./internal-reference"
import { type Patient, genPatient } from "./patient"
import type { Specialist } from "./specialist"
@@ -37,6 +38,7 @@ export interface Encounter {
internalReferences?: InternalReference[]
deathCause?: DeathCause
status_code: string
encounterDocuments: EncounterDocument[]
}
export function genEncounter(): Encounter {
@@ -54,7 +56,8 @@ export function genEncounter(): Encounter {
appointment_doctor_id: 0,
appointment_doctor: genDoctor(),
medicalDischargeEducation: '',
status_code: ''
status_code: '',
encounterDocuments: [],
}
}