feat (encounter): implement general consent feature

This commit is contained in:
Abizrh
2025-11-11 08:57:49 +07:00
parent db15ec9445
commit e62ee1b37e
9 changed files with 798 additions and 1 deletions
+47
View File
@@ -0,0 +1,47 @@
export interface GeneralConsent {
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(): GeneralConsent {
return {
id: 0,
encounter_id: 0,
unit_id: 0,
doctor_id: 0,
problem: '',
solution: '',
repliedAt: '',
}
}