feature: a very minimal patients feature implemented. it needs lots of improvments though
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { IsDateString, IsNumber, IsOptional, IsString, MaxLength } from 'class-validator';
|
||||
|
||||
export class CreateTreatmentHistoryDto {
|
||||
@IsString()
|
||||
@MaxLength(120)
|
||||
title: string;
|
||||
|
||||
@IsString()
|
||||
@MaxLength(40)
|
||||
status: string;
|
||||
|
||||
@IsDateString()
|
||||
treatmentAt: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(20)
|
||||
tooth?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(1000)
|
||||
notes?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
totalCost?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user