WorklistItemsProvider.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. var item1 = new WorklistItem
  15. {
  16. AccessionNumber = "AB123",
  17. DateOfBirth = new DateTime(1975, 2, 14),
  18. PatientID = "100015",
  19. Surname = "Test",
  20. Forename = "Hilbert",
  21. Sex = "M",
  22. Title = null,
  23. Modality = "MR",
  24. ExamDescription = "mr knee left",
  25. ExamRoom = "MR1",
  26. HospitalName = null,
  27. PerformingPhysician = null,
  28. ProcedureID = "200001",
  29. ProcedureStepID = "200002",
  30. StudyUID = "1.2.34.567890.1234567890.1",
  31. ScheduledAET = "MRMODALITY",
  32. ReferringPhysician = "Smith^John^Md",
  33. ExamDateAndTime = DateTime.Now
  34. };
  35. var item2 = new WorklistItem
  36. {
  37. AccessionNumber = "AB123",
  38. DateOfBirth = new DateTime(1975, 2, 14),
  39. PatientID = "100015",
  40. Surname = "Test",
  41. Forename = "Hilbert",
  42. Sex = "M",
  43. Title = null,
  44. Modality = "MR",
  45. ExamDescription = "mr knee right",
  46. ExamRoom = "MR1",
  47. HospitalName = null,
  48. PerformingPhysician = null,
  49. ProcedureID = "200003",
  50. ProcedureStepID = "200004",
  51. StudyUID = "1.2.34.567890.1234567890.2",
  52. ScheduledAET = "MRMODALITY",
  53. ReferringPhysician = "Smith^John^Md",
  54. ExamDateAndTime = DateTime.Now
  55. };
  56. var item3 = new WorklistItem
  57. {
  58. AccessionNumber = "AB125",
  59. DateOfBirth = new DateTime(1984, 10, 2),
  60. PatientID = "100019",
  61. Surname = "Miller",
  62. Forename = "Albert",
  63. Sex = "M",
  64. Title = null,
  65. Modality = "CR",
  66. ExamDescription = "cp",
  67. ExamRoom = "CR2",
  68. HospitalName = null,
  69. PerformingPhysician = null,
  70. ProcedureID = "200005",
  71. ProcedureStepID = "200006",
  72. StudyUID = "1.2.34.567890.1234567890.3",
  73. ScheduledAET = "CRMODALITY",
  74. ReferringPhysician = "Daniels^Jack^Md",
  75. ExamDateAndTime = DateTime.Now
  76. };
  77. return new List<WorklistItem> { item1, item2, item3 };
  78. }
  79. }
  80. }