Fix Dialog Consultation (#124)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// Default item meta model for entities
|
||||
export interface ItemMeta {
|
||||
id: number
|
||||
createdAt: string | null
|
||||
deletedAt: string | null
|
||||
updatedAt: string | null
|
||||
}
|
||||
|
||||
// Pagination meta model for API responses
|
||||
export interface PaginationMeta {
|
||||
page_number: string
|
||||
page_size: string
|
||||
record_totalCount: string
|
||||
source: string
|
||||
}
|
||||
|
||||
export interface Base {
|
||||
name: string
|
||||
code: string
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
export interface Consultation {
|
||||
id: number
|
||||
encounter_id: number
|
||||
date?: string
|
||||
unit_id: number
|
||||
doctor_id?: number
|
||||
problem: string
|
||||
solution?: string
|
||||
repliedAt?: string
|
||||
}
|
||||
|
||||
export interface CreateDto {
|
||||
encounter_id: number
|
||||
date: string
|
||||
problem: string
|
||||
dstUnit_id: number
|
||||
}
|
||||
|
||||
export interface UpdateDto {
|
||||
id: number
|
||||
problem: string
|
||||
unit_id: number
|
||||
}
|
||||
|
||||
export interface DeleteDto {
|
||||
id: number
|
||||
}
|
||||
|
||||
export function genCreateDto(): CreateDto {
|
||||
return {
|
||||
encounter_id: 0,
|
||||
problem: '',
|
||||
unit_id: 0,
|
||||
}
|
||||
}
|
||||
|
||||
export function genConsultation(): Consultation {
|
||||
return {
|
||||
id: 0,
|
||||
encounter_id: 0,
|
||||
unit_id: 0,
|
||||
doctor_id: 0,
|
||||
problem: '',
|
||||
solution: '',
|
||||
repliedAt: '',
|
||||
}
|
||||
}
|
||||
@@ -13,4 +13,4 @@ export function genDevice(): Device {
|
||||
name: '',
|
||||
uom_code: '',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@ export function genDivision(): Division {
|
||||
parent_id: null,
|
||||
childrens: null,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@ export function genMaterial(): Material {
|
||||
uom_code: '',
|
||||
stock: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@ export function genSpecialist(): Specialist {
|
||||
name: '',
|
||||
unit_id: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@ export function genSubspecialist(): Subspecialist {
|
||||
name: '',
|
||||
specialist_id: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -13,4 +13,4 @@ export function genUom(): Uom {
|
||||
name: '',
|
||||
erp_id: '',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user