improvement: pdf generation added to cases feature.
This commit is contained in:
@@ -14,7 +14,7 @@ import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger';
|
||||
import { LabOrgGuard } from '../../common/guards/lab-org.guard';
|
||||
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard';
|
||||
import { CasesService } from './cases.service';
|
||||
import { ListLabCasesDto, UpdateLabCaseImportantDto, AssignLabCaseTaskDto } from './dto/cases.dto';
|
||||
import { ListLabCasesDto, UpdateLabCaseImportantDto, UpdateLabCaseExternalCodeDto, AssignLabCaseTaskDto } from './dto/cases.dto';
|
||||
|
||||
@ApiTags('cases')
|
||||
@ApiBearerAuth('JWT-auth')
|
||||
@@ -82,6 +82,17 @@ export class CasesController {
|
||||
return this.casesService.setCaseImportant(id, dto, organizationId, req.user.id, req.user.language);
|
||||
}
|
||||
|
||||
@Patch(':id/external-code')
|
||||
@ApiOperation({ summary: 'Set or clear the optional external order code for a case' })
|
||||
setCaseExternalCode(
|
||||
@Param('id') id: string,
|
||||
@Body() dto: UpdateLabCaseExternalCodeDto,
|
||||
@Req() req,
|
||||
) {
|
||||
const organizationId = this.casesService.getOrganizationIdFromUser(req.user);
|
||||
return this.casesService.setCaseExternalCode(id, dto, organizationId, req.user.id, req.user.language);
|
||||
}
|
||||
|
||||
@Patch(':caseId/tasks/:taskId/assign')
|
||||
@ApiOperation({ summary: 'Assign or unassign a task to lab staff' })
|
||||
assignTask(
|
||||
|
||||
Reference in New Issue
Block a user