Feat: API Integration supporting doc upload

This commit is contained in:
hasyim_kai
2025-11-13 16:16:26 +07:00
parent b2a512314b
commit 56109564cb
19 changed files with 401 additions and 101 deletions

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
import { type Base, genBase } from "./_base"
import { supportingDocOpt, supportingDocTypeCode, supportingDocTypeLabel, type supportingDocTypeCodeKey } 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: supportingDocTypeLabel["encounter-patient"],
name: 'example',
filePath: 'https://bing.com',
fileName: 'example',
}
}