WorklistItemsProvider.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Copyright (c) 2012-2020 fo-dicom contributors.
  2. // Licensed under the Microsoft Public License (MS-PL).
  3. using System;
  4. using System.Collections.Generic;
  5. namespace Worklist_SCP.Model
  6. {
  7. public class WorklistItemsProvider : IWorklistItemsSource
  8. {
  9. /// <summary>
  10. /// This method returns some hard coded worklist items - of course they should be loaded from database or some other service
  11. /// </summary>
  12. public List<WorklistItem> GetAllCurrentWorklistItems()
  13. {
  14. Console.WriteLine("GetAllCurrentWorklistItems");
  15. var item1 = new WorklistItem
  16. {
  17. AccessionNumber = "AB123",
  18. DateOfBirth = new DateTime(1975, 2, 14),
  19. PatientID = "100015",
  20. Surname = "测试",
  21. Forename = "Hilbert",
  22. Sex = "M",
  23. Title = null,
  24. Modality = "MR",
  25. ExamDescription = "mr knee left",
  26. ExamRoom = "MR1",
  27. HospitalName = null,
  28. PerformingPhysician = null,
  29. ProcedureID = "200001",
  30. ProcedureStepID = "200002",
  31. StudyUID = "1.2.34.567890.1234567890.1",
  32. ScheduledAET = "MRMODALITY",
  33. ReferringPhysician = "Smith^John^Md",
  34. ExamDateAndTime = DateTime.Now
  35. };
  36. var item2 = new WorklistItem
  37. {
  38. AccessionNumber = "AB123",
  39. DateOfBirth = new DateTime(1975, 2, 14),
  40. PatientID = "100015",
  41. Surname = "Test",
  42. Forename = "Hilbert",
  43. Sex = "M",
  44. Title = null,
  45. Modality = "MR",
  46. ExamDescription = "mr knee right",
  47. ExamRoom = "MR1",
  48. HospitalName = null,
  49. PerformingPhysician = null,
  50. ProcedureID = "200003",
  51. ProcedureStepID = "200004",
  52. StudyUID = "1.2.34.567890.1234567890.2",
  53. ScheduledAET = "MRMODALITY",
  54. ReferringPhysician = "Smith^John^Md",
  55. ExamDateAndTime = DateTime.Now
  56. };
  57. var item3 = new WorklistItem
  58. {
  59. AccessionNumber = "AB125",
  60. DateOfBirth = new DateTime(1984, 10, 2),
  61. PatientID = "100019",
  62. Surname = "Miller",
  63. Forename = "Albert",
  64. Sex = "M",
  65. Title = null,
  66. Modality = "CR",
  67. ExamDescription = "cp",
  68. ExamRoom = "CR2",
  69. HospitalName = null,
  70. PerformingPhysician = null,
  71. ProcedureID = "200005",
  72. ProcedureStepID = "200006",
  73. StudyUID = "1.2.34.567890.1234567890.3",
  74. ScheduledAET = "CRMODALITY",
  75. ReferringPhysician = "Daniels^Jack^Md",
  76. ExamDateAndTime = DateTime.Now
  77. };
  78. return new List<WorklistItem> { item1, item2, item3 };
  79. }
  80. }
  81. }