TreatmentType and ProsthesisType database shcema and data updated. Lab dispatch wired through new data.

This commit is contained in:
2026-07-06 20:40:19 +03:30
parent 3e81c110a3
commit 667b08ed0c
48 changed files with 1813 additions and 275 deletions

View File

@@ -45,6 +45,19 @@ export class SaveTreatmentDraftDto {
details: SaveTreatmentDetailDto[];
}
export class LabCaseToothProsthesisDto {
@IsUUID()
treatmentDetailId: string;
@IsString()
@MaxLength(8)
tooth: string;
@IsString()
@MaxLength(64)
prosthesisTypeCode: string;
}
export class SaveLabCaseDto {
@IsString()
@MaxLength(64)
@@ -67,6 +80,12 @@ export class SaveLabCaseDto {
@ArrayMinSize(1)
@IsUUID(undefined, { each: true })
treatmentDetailIds: string[];
@IsOptional()
@IsArray()
@ValidateNested({ each: true })
@Type(() => LabCaseToothProsthesisDto)
toothProsthesis?: LabCaseToothProsthesisDto[];
}
export class SaveTreatmentLabCasesDto {