Fix: debug after reset
This commit is contained in:
@@ -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',
|
||||
}
|
||||
}
|
||||
@@ -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: [],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user