medicodeapp / backend /src /modules /codes /dto /create-procedure-code.dto.ts
Denisijcu's picture
upload files
c98875e
raw
history blame contribute delete
879 Bytes
// create-procedure-code.dto.ts
import { IsString, IsBoolean, IsOptional, IsNumber } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreateProcedureCodeDto {
@ApiProperty({ example: '99213' })
@IsString()
code: string;
@ApiProperty({ example: 'Office or other outpatient visit, established patient, moderate complexity' })
@IsString()
description: string;
@ApiProperty({ required: false })
@IsString()
@IsOptional()
category?: string;
@ApiProperty({ required: false })
@IsString()
@IsOptional()
subcategory?: string;
@ApiProperty({ required: false })
@IsNumber()
@IsOptional()
relativeValueUnit?: number;
@ApiProperty({ required: false })
@IsNumber()
@IsOptional()
globalDays?: number;
@ApiProperty({ required: false, default: true })
@IsBoolean()
@IsOptional()
billable?: boolean;
}