TreatmentType and ProsthesisType database shcema and data updated. Lab dispatch wired through new data.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user