10 changed files with 16489 additions and 3 deletions
-
19src/Shentun.Peis.Application.Contracts/Worklists/CreateRegisterCheckWorklistInputDto.cs
-
64src/Shentun.Peis.Application.Contracts/Worklists/GetWorklistPatientListDto.cs
-
30src/Shentun.Peis.Application.Contracts/Worklists/GetWorklistPatientListInputDto.cs
-
42src/Shentun.Peis.Application/Worklists/WorklistAppService.cs
-
4src/Shentun.Peis.DbMigrator/appsettings.json
-
18src/Shentun.Peis.Domain/RegisterChecks/RegisterCheck.cs
-
3src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterChecks/RegisterCheckDbMapping.cs
-
16247src/Shentun.Peis.EntityFrameworkCore/Migrations/20241127143729_add_register_check_worklist.Designer.cs
-
49src/Shentun.Peis.EntityFrameworkCore/Migrations/20241127143729_add_register_check_worklist.cs
-
16src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
@ -0,0 +1,19 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.Worklists |
||||
|
{ |
||||
|
public class CreateRegisterCheckWorklistInputDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 预检Aet
|
||||
|
/// </summary>
|
||||
|
public string ScheduledAET { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检查条码
|
||||
|
/// </summary>
|
||||
|
public string CheckRequestNo { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,64 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.Worklists |
||||
|
{ |
||||
|
public class GetWorklistPatientListDto |
||||
|
{ |
||||
|
public string AccessionNumber { get; set; } = string.Empty; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检查条码号
|
||||
|
/// </summary>
|
||||
|
public string PatientID { get; set; } = string.Empty; |
||||
|
|
||||
|
public string Surname { get; set; } = string.Empty; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 姓名
|
||||
|
/// </summary>
|
||||
|
public string Forename { get; set; } = string.Empty; |
||||
|
|
||||
|
public string Title { get; set; } = string.Empty; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 性别
|
||||
|
/// </summary>
|
||||
|
public string Sex { get; set; } = string.Empty; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 出生日期
|
||||
|
/// </summary>
|
||||
|
public DateTime DateOfBirth { get; set; } = DateTime.Now; |
||||
|
|
||||
|
public string ReferringPhysician { get; set; } = string.Empty; |
||||
|
|
||||
|
public string PerformingPhysician { get; set; } = string.Empty; |
||||
|
|
||||
|
public string Modality { get; set; } = string.Empty; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 扫码日期
|
||||
|
/// </summary>
|
||||
|
public DateTime ExamDateAndTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
public string ExamRoom { get; set; } = string.Empty; |
||||
|
|
||||
|
public string ExamDescription { get; set; } = string.Empty; |
||||
|
|
||||
|
public string StudyUID { get; set; } = string.Empty; |
||||
|
|
||||
|
public string ProcedureID { get; set; } = string.Empty; |
||||
|
|
||||
|
public string ProcedureStepID { get; set; } = string.Empty; |
||||
|
|
||||
|
public string HospitalName { get; set; } = string.Empty; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 预检Aet
|
||||
|
/// </summary>
|
||||
|
public string ScheduledAET { get; set; } = string.Empty; |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.Worklists |
||||
|
{ |
||||
|
public class GetWorklistPatientListInputDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 预检AET
|
||||
|
/// </summary>
|
||||
|
public string ScheduledAet { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 设备类型
|
||||
|
/// </summary>
|
||||
|
public string Modality { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 开始日期
|
||||
|
/// </summary>
|
||||
|
public string StartDate { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 结束日期
|
||||
|
/// </summary>
|
||||
|
public string EndDate { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,42 @@ |
|||||
|
using Microsoft.AspNetCore.Authorization; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Application.Services; |
||||
|
|
||||
|
namespace Shentun.Peis.Worklists |
||||
|
{ |
||||
|
[ApiExplorerSettings(GroupName = "Work")] |
||||
|
[Authorize] |
||||
|
public class WorklistAppService : ApplicationService |
||||
|
{ |
||||
|
public WorklistAppService() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 获取worklist数据
|
||||
|
/// </summary>
|
||||
|
/// <returns></returns>
|
||||
|
[HttpPost("api/app/Worklist/GetWorklistPatientList")] |
||||
|
public async Task<List<GetWorklistPatientListDto>> GetWorklistPatientListAsync(GetWorklistPatientListInputDto input) |
||||
|
{ |
||||
|
return new List<GetWorklistPatientListDto>(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 创建检查项目worklist数据
|
||||
|
/// </summary>
|
||||
|
/// <returns></returns>
|
||||
|
[HttpPost("api/app/Worklist/CreateRegisterCheckWorklist")] |
||||
|
public async Task CreateRegisterCheckWorklistAsync(CreateRegisterCheckWorklistInputDto input) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
16247
src/Shentun.Peis.EntityFrameworkCore/Migrations/20241127143729_add_register_check_worklist.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,49 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class add_register_check_worklist : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "scheduled_aet", |
||||
|
table: "register_check", |
||||
|
type: "text", |
||||
|
nullable: true, |
||||
|
comment: "预检AET"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<char>( |
||||
|
name: "worklist_flag", |
||||
|
table: "register_check", |
||||
|
type: "character(1)", |
||||
|
nullable: false, |
||||
|
defaultValueSql: "'0'", |
||||
|
comment: "Worklist标记(0-默认值,1-已扫码登记,2-设备已获取数据,预留设计)"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "worklist_pre_check_date", |
||||
|
table: "register_check", |
||||
|
type: "timestamp without time zone", |
||||
|
nullable: true); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "scheduled_aet", |
||||
|
table: "register_check"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "worklist_flag", |
||||
|
table: "register_check"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "worklist_pre_check_date", |
||||
|
table: "register_check"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue