feature: a very minimal patients feature implemented. it needs lots of improvments though
This commit is contained in:
29
backend/src/modules/patients/dto/create-patient.dto.ts
Normal file
29
backend/src/modules/patients/dto/create-patient.dto.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { IsDateString, IsEmail, IsOptional, IsString, MaxLength } from 'class-validator';
|
||||
|
||||
export class CreatePatientDto {
|
||||
@IsString()
|
||||
@MaxLength(80)
|
||||
firstName: string;
|
||||
|
||||
@IsString()
|
||||
@MaxLength(80)
|
||||
lastName: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(30)
|
||||
phone?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsEmail()
|
||||
email?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsDateString()
|
||||
dateOfBirth?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(1000)
|
||||
notes?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user