DIOSDICOMInfo.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. #pragma once
  2. #include <stdlib.h>
  3. #include "ResDataObject.h"
  4. #define SIZE_Small ("SMALL")
  5. #define SIZE_Medium ("MEDIUM")
  6. #define SIZE_Large ("LARGE")
  7. #define SIZE_Paediatric ("PAEDIATRIC")
  8. class STUDAY_INFO : public BaseJsonDataObject<string>
  9. {
  10. public:
  11. BaseJsonDataObject<string> m_PatientName;
  12. BaseJsonDataObject<string> m_PatientID;
  13. BaseJsonDataObject<string> m_PatientSex;
  14. BaseJsonDataObject<string> m_StudyID;
  15. BaseJsonDataObject<string> m_OtherPatientIDs;
  16. BaseJsonDataObject<string> m_OtherPatientNames;
  17. BaseJsonDataObject<string> m_AccessionNumber;
  18. BaseJsonDataObject<string> m_StudyDescription;
  19. BaseJsonDataObject<string> m_PatientAge;
  20. BaseJsonDataObject<string> m_PatientLength;
  21. BaseJsonDataObject<string> m_PatientWeight;
  22. BaseJsonDataObject<string> m_PatientSize;
  23. BaseJsonDataObject<string> m_PatientBirthDate;
  24. BaseJsonDataObject<string> m_PatientBirthTime;
  25. BaseJsonDataObject<string> m_BodyPart;
  26. STUDAY_INFO(void)
  27. {
  28. SetKey("StudayInfo");
  29. m_PatientName.SetKey("PatientName");
  30. m_PatientID.SetKey("PatientID");
  31. m_PatientSex.SetKey("PatientSex");
  32. m_StudyID.SetKey("StudyID");
  33. m_OtherPatientIDs.SetKey("OtherPatientIDs");
  34. m_OtherPatientNames.SetKey("OtherPatientNames");
  35. m_AccessionNumber.SetKey("AccessionNumber");
  36. m_StudyDescription.SetKey("StudyDescription");
  37. m_PatientAge.SetKey("PatientAge");
  38. m_PatientLength.SetKey("PatientLength");
  39. m_PatientWeight.SetKey("PatientWeight");
  40. m_PatientSize.SetKey("PatientSize");
  41. m_PatientBirthDate.SetKey("PatientBirthDate");
  42. m_PatientBirthTime.SetKey("PatientBirthTime");
  43. m_BodyPart.SetKey("ProcedureGroup");
  44. }
  45. virtual ~STUDAY_INFO(void)
  46. {
  47. }
  48. virtual const char *GetVal()
  49. {
  50. ResDataObject obj;
  51. obj.add(m_PatientName.GetKey(), m_PatientName.GetVal());
  52. obj.add(m_PatientID.GetKey(), m_PatientID.GetVal());
  53. obj.add(m_PatientSex.GetKey(), m_PatientSex.GetVal());
  54. obj.add(m_StudyID.GetKey(), m_StudyID.GetVal());
  55. obj.add(m_OtherPatientIDs.GetKey(), m_OtherPatientIDs.GetVal());
  56. obj.add(m_OtherPatientNames.GetKey(), m_OtherPatientNames.GetVal());
  57. obj.add(m_AccessionNumber.GetKey(), m_AccessionNumber.GetVal());
  58. obj.add(m_StudyDescription.GetKey(), m_StudyDescription.GetVal());
  59. obj.add(m_PatientAge.GetKey(), m_PatientAge.GetVal());
  60. obj.add(m_PatientLength.GetKey(), m_PatientLength.GetVal());
  61. obj.add(m_PatientWeight.GetKey(), m_PatientWeight.GetVal());
  62. obj.add(m_PatientSize.GetKey(), m_PatientSize.GetVal());
  63. obj.add(m_PatientBirthDate.GetKey(), m_PatientBirthDate.GetVal());
  64. obj.add(m_PatientBirthTime.GetKey(), m_PatientBirthTime.GetVal());
  65. obj.add(m_BodyPart.GetKey(), m_BodyPart.GetVal());
  66. (m_ValString) = obj.encode();
  67. return m_ValString.c_str();
  68. };
  69. virtual bool SetVal(const char* pValString)
  70. {
  71. ResDataObject obj;
  72. if (obj.decode(pValString))
  73. {
  74. int idx;
  75. idx = obj.GetFirstOf(m_PatientName.GetKey());
  76. if (idx >= 0)
  77. {
  78. m_PatientName.SetVal(obj[idx]);
  79. }
  80. idx = obj.GetFirstOf(m_PatientID.GetKey());
  81. if (idx >= 0)
  82. {
  83. m_PatientID.SetVal(obj[idx]);
  84. }
  85. idx = obj.GetFirstOf(m_PatientSex.GetKey());
  86. if (idx >= 0)
  87. {
  88. m_PatientSex.SetVal(obj[idx]);
  89. }
  90. idx = obj.GetFirstOf(m_StudyID.GetKey());
  91. if (idx >= 0)
  92. {
  93. m_StudyID.SetVal(obj[idx]);
  94. }
  95. idx = obj.GetFirstOf(m_OtherPatientIDs.GetKey());
  96. if (idx >= 0)
  97. {
  98. m_OtherPatientIDs.SetVal(obj[idx]);
  99. }
  100. idx = obj.GetFirstOf(m_OtherPatientNames.GetKey());
  101. if (idx >= 0)
  102. {
  103. m_OtherPatientNames.SetVal(obj[idx]);
  104. }
  105. idx = obj.GetFirstOf(m_AccessionNumber.GetKey());
  106. if (idx >= 0)
  107. {
  108. m_AccessionNumber.SetVal(obj[idx]);
  109. }
  110. idx = obj.GetFirstOf(m_StudyDescription.GetKey());
  111. if (idx >= 0)
  112. {
  113. m_StudyDescription.SetVal(obj[idx]);
  114. }
  115. idx = obj.GetFirstOf(m_PatientAge.GetKey());
  116. if (idx >= 0)
  117. {
  118. m_PatientAge.SetVal(obj[idx]);
  119. }
  120. idx = obj.GetFirstOf(m_PatientLength.GetKey());
  121. if (idx >= 0)
  122. {
  123. m_PatientLength.SetVal(obj[idx]);
  124. }
  125. idx = obj.GetFirstOf(m_PatientWeight.GetKey());
  126. if (idx >= 0)
  127. {
  128. m_PatientWeight.SetVal(obj[idx]);
  129. }
  130. idx = obj.GetFirstOf(m_PatientSize.GetKey());
  131. if (idx >= 0)
  132. {
  133. m_PatientSize.SetVal(obj[idx]);
  134. }
  135. idx = obj.GetFirstOf(m_PatientBirthDate.GetKey());
  136. if (idx >= 0)
  137. {
  138. m_PatientBirthDate.SetVal(obj[idx]);
  139. }
  140. idx = obj.GetFirstOf(m_PatientBirthTime.GetKey());
  141. if (idx >= 0)
  142. {
  143. m_PatientBirthTime.SetVal(obj[idx]);
  144. }
  145. idx = obj.GetFirstOf(m_BodyPart.GetKey());
  146. if (idx >= 0)
  147. {
  148. m_BodyPart.SetVal(obj[idx]);
  149. }
  150. return true;
  151. }
  152. return false;
  153. };
  154. };
  155. class TECHPARAM_INFO : public BaseJsonDataObject<string>
  156. {
  157. public:
  158. BaseJsonDataObject<string> m_CollimatorHeight;
  159. BaseJsonDataObject<string> m_CollimatorWidth;
  160. BaseJsonDataObject<string> m_CollimatorPosition;
  161. BaseJsonDataObject<string> m_CollimatorFilter;
  162. BaseJsonDataObject<string> m_SID;
  163. BaseJsonDataObject<string> m_PositionNumber;
  164. BaseJsonDataObject<string> m_TargetEXI;
  165. TECHPARAM_INFO(void)
  166. {
  167. SetKey("TechParamsInfo");
  168. m_CollimatorHeight.SetKey("CollimatorHeight");
  169. m_CollimatorWidth.SetKey("CollimatorWidth");
  170. m_CollimatorPosition.SetKey("CollimatorCenter");
  171. m_CollimatorFilter.SetKey("CollimatorFilter");
  172. m_SID.SetKey("SID");
  173. m_PositionNumber.SetKey("PositionNumber");
  174. m_TargetEXI.SetKey("TargetEXI");
  175. }
  176. virtual ~TECHPARAM_INFO(void)
  177. {
  178. }
  179. virtual const char *GetVal()
  180. {
  181. ResDataObject obj;
  182. obj.add(m_CollimatorHeight.GetKey(), m_CollimatorHeight.GetVal());
  183. obj.add(m_CollimatorWidth.GetKey(), m_CollimatorWidth.GetVal());
  184. obj.add(m_CollimatorPosition.GetKey(), m_CollimatorPosition.GetVal());
  185. obj.add(m_CollimatorFilter.GetKey(), m_CollimatorFilter.GetVal());
  186. obj.add(m_SID.GetKey(), m_SID.GetVal());
  187. obj.add(m_PositionNumber.GetKey(), m_PositionNumber.GetVal());
  188. obj.add(m_TargetEXI.GetKey(), m_TargetEXI.GetVal());
  189. (m_ValString) = obj.encode();
  190. return m_ValString.c_str();
  191. };
  192. virtual bool SetVal(const char* pValString)
  193. {
  194. ResDataObject obj;
  195. if (obj.decode(pValString))
  196. {
  197. int idx;
  198. idx = obj.GetFirstOf(m_CollimatorHeight.GetKey());
  199. if (idx >= 0)
  200. {
  201. m_CollimatorHeight.SetVal(obj[idx]);
  202. }
  203. idx = obj.GetFirstOf(m_CollimatorWidth.GetKey());
  204. if (idx >= 0)
  205. {
  206. m_CollimatorWidth.SetVal(obj[idx]);
  207. }
  208. idx = obj.GetFirstOf(m_CollimatorPosition.GetKey());
  209. if (idx >= 0)
  210. {
  211. m_CollimatorPosition.SetVal(obj[idx]);
  212. }
  213. idx = obj.GetFirstOf(m_CollimatorFilter.GetKey());
  214. if (idx >= 0)
  215. {
  216. m_CollimatorFilter.SetVal(obj[idx]);
  217. }
  218. idx = obj.GetFirstOf(m_SID.GetKey());
  219. if (idx >= 0)
  220. {
  221. m_SID.SetVal(obj[idx]);
  222. }
  223. idx = obj.GetFirstOf(m_PositionNumber.GetKey());
  224. if (idx >= 0)
  225. {
  226. m_PositionNumber.SetVal(obj[idx]);
  227. }
  228. idx = obj.GetFirstOf(m_TargetEXI.GetKey());
  229. if (idx >= 0)
  230. {
  231. m_TargetEXI.SetVal(obj[idx]);
  232. }
  233. return true;
  234. }
  235. return false;
  236. };
  237. };
  238. class STITCH_INFO : public BaseJsonDataObject<string>
  239. {
  240. public:
  241. BaseJsonDataObject<string> m_InitialHeight;
  242. BaseJsonDataObject<string> m_StitchLength;
  243. BaseJsonDataObject<string> m_StepLength;
  244. BaseJsonDataObject<string> m_SID;
  245. BaseJsonDataObject<string> m_StitchType;
  246. BaseJsonDataObject<string> m_Direction;
  247. BaseJsonDataObject<string> m_ImageCount;
  248. STITCH_INFO(void)
  249. {
  250. SetKey("StitchInfo");
  251. m_InitialHeight.SetKey("InitialHeight");
  252. m_StitchLength.SetKey("StitchLength");
  253. m_StepLength.SetKey("StepLength");
  254. m_SID.SetKey("SID");
  255. m_StitchType.SetKey("StitchType");
  256. m_Direction.SetKey("Direction");
  257. m_ImageCount.SetKey("ImageCount");
  258. }
  259. virtual ~STITCH_INFO(void)
  260. {
  261. }
  262. virtual const char *GetVal()
  263. {
  264. ResDataObject obj;
  265. obj.add(m_InitialHeight.GetKey(), m_InitialHeight.GetVal());
  266. obj.add(m_StitchLength.GetKey(), m_StitchLength.GetVal());
  267. obj.add(m_StepLength.GetKey(), m_StepLength.GetVal());
  268. obj.add(m_SID.GetKey(), m_SID.GetVal());
  269. obj.add(m_StitchType.GetKey(), m_StitchType.GetVal());
  270. obj.add(m_Direction.GetKey(), m_Direction.GetVal());
  271. obj.add(m_ImageCount.GetKey(), m_ImageCount.GetVal());
  272. (m_ValString) = obj.encode();
  273. return m_ValString.c_str();
  274. };
  275. virtual bool SetVal(const char* pValString)
  276. {
  277. ResDataObject obj;
  278. if (obj.decode(pValString))
  279. {
  280. int idx;
  281. idx = obj.GetFirstOf(m_InitialHeight.GetKey());
  282. if (idx >= 0)
  283. {
  284. m_InitialHeight.SetVal(obj[idx]);
  285. }
  286. idx = obj.GetFirstOf(m_StitchLength.GetKey());
  287. if (idx >= 0)
  288. {
  289. m_StitchLength.SetVal(obj[idx]);
  290. }
  291. idx = obj.GetFirstOf(m_StepLength.GetKey());
  292. if (idx >= 0)
  293. {
  294. m_StepLength.SetVal(obj[idx]);
  295. }
  296. idx = obj.GetFirstOf(m_SID.GetKey());
  297. if (idx >= 0)
  298. {
  299. m_SID.SetVal(obj[idx]);
  300. }
  301. idx = obj.GetFirstOf(m_StitchType.GetKey());
  302. if (idx >= 0)
  303. {
  304. m_StitchType.SetVal(obj[idx]);
  305. }
  306. idx = obj.GetFirstOf(m_Direction.GetKey());
  307. if (idx >= 0)
  308. {
  309. m_Direction.SetVal(obj[idx]);
  310. }
  311. idx = obj.GetFirstOf(m_ImageCount.GetKey());
  312. if (idx >= 0)
  313. {
  314. m_ImageCount.SetVal(obj[idx]);
  315. }
  316. return true;
  317. }
  318. return false;
  319. };
  320. };
  321. //add by wxx for OTCStitching at 20231218
  322. //---------------------------------------------------------------------------------------
  323. //
  324. // 结构名称:ECOM_PATIENT
  325. // 结构说明:用于保存病人信息,病人信息来源于worklist或者技师手工输入。
  326. //
  327. //---------------------------------------------------------------------------------------
  328. typedef struct ECOM_PATIENT
  329. {
  330. string strPatientID; // 病人标示码
  331. string strPatientName; // 病人姓名
  332. string strOtherPatientID; // 病人其他标示码
  333. string strOtherPatientName; // 病人其他姓名
  334. string strAge; // 年龄
  335. string strOccupation; // 职业
  336. string strSex; // 性别
  337. string strMedicalAlert; // 药物警告
  338. string strContrastAllergies;// 造影剂过敏
  339. string strSmokingStatus; // 吸烟状态
  340. string strPatientComments; // 评论
  341. string strPatientHistory; // 病史
  342. string strPregnancyStatus; // 怀孕状态
  343. string strSpecialNeeds; // 特殊需要
  344. string strPatientState; // 病人状态
  345. string strPatientStatus; // 如果病人有任意一个未完成的检查,则病人的状态为:未完成。
  346. string strDob; // 生日 YYYYMMDD
  347. string dtDob; // 生日 YYYYMMDD
  348. string dtLastMenstrualDate; // 最近一次月经时间
  349. //code begin 20150611 for IMIX
  350. string strPatientSize; // 病人体型
  351. string strAccessionNumber; //
  352. string strStudyID; // StudyID
  353. //code end 20150611 for IMIX
  354. string strReserve1;
  355. string strReserve2;
  356. string strReserve3;
  357. string strStudyDescription;// study 描述 20150724
  358. ECOM_PATIENT& operator =(const ECOM_PATIENT& patient)
  359. {
  360. //string::CopyChars(strPatientID, patient.strPatientID, patient.strPatientID.GetLength());
  361. strPatientID = patient.strPatientID;
  362. strPatientName = patient.strPatientName;
  363. strOtherPatientID = patient.strOtherPatientID;
  364. strOtherPatientName = patient.strOtherPatientName;
  365. strAge = patient.strAge;
  366. strSex = patient.strSex;
  367. strOccupation = patient.strOccupation;
  368. strMedicalAlert = patient.strMedicalAlert;
  369. strContrastAllergies = patient.strContrastAllergies;
  370. strSmokingStatus = patient.strSmokingStatus;
  371. strPatientComments = patient.strPatientComments;
  372. strPatientHistory = patient.strPatientHistory;
  373. strPregnancyStatus = patient.strPregnancyStatus;
  374. strSpecialNeeds = patient.strSpecialNeeds;
  375. strPatientState = patient.strPatientState;
  376. strPatientStatus = patient.strPatientStatus;
  377. strReserve1 = patient.strReserve1;
  378. strReserve2 = patient.strReserve2;
  379. strReserve3 = patient.strReserve3;
  380. strDob = patient.strDob;
  381. dtDob = patient.dtDob;
  382. dtLastMenstrualDate = patient.dtLastMenstrualDate;
  383. strStudyDescription = patient.strStudyDescription; //code 20150724
  384. //code begin 20150611 for IMIX
  385. strPatientSize = patient.strPatientSize;
  386. strAccessionNumber = patient.strAccessionNumber;
  387. strStudyID = patient.strStudyID;
  388. //code end 20150611 for IMIX
  389. return *this;
  390. }
  391. };
  392. //---------------------------------------------------------------------------------------
  393. //
  394. // 结构名称:ECOM_STUDY
  395. // 结构说明:用于保存检查信息,检查信息来源于worklist或者技师手工输入。
  396. //
  397. //---------------------------------------------------------------------------------------
  398. typedef struct ECOM_STUDY
  399. {
  400. string strStudyID; // Study内部标示
  401. string strPatientID; // 病人标示码
  402. string strAdmissionID; // 分配ID
  403. string strAccessionNum; // 访问标示码
  404. string strStudyInstanceUID; //
  405. string strScheduledAETitle; //
  406. string strRegSource; //
  407. string strStudyStatus; //
  408. string strStudyPriority; //
  409. string strStudyComments; //
  410. string strRequestingPhysician; //
  411. string strRequestedProcedureDescription; //
  412. string strRequestedContrasAgent; //
  413. string strScheduledProcedureStepID; //
  414. string strScheduledProcedureStepDescription;//
  415. string strRequestedProcedureID; //
  416. string strPreMedication; //
  417. string strProcedureCode; //
  418. string strProcedureCodeValue; //
  419. string strProcedureCodeMeaning; //
  420. string strMPPSInstanceUID; //
  421. string strMPPSStatus;
  422. string strModality;
  423. string strOperatorName; // 技师名字
  424. string dtScheduledStartDateTime; //
  425. string dtStudyStartDateTime; //
  426. string dtStudyCompletionDateTime; //
  427. string strReserve1;
  428. string strReserve2;
  429. string strReserve3;
  430. ECOM_STUDY& operator =(const ECOM_STUDY& study)
  431. {
  432. strStudyID = study.strStudyID;
  433. strPatientID = study.strPatientID;
  434. strAdmissionID = study.strAdmissionID;
  435. strAccessionNum = study.strAccessionNum;
  436. strStudyInstanceUID = study.strStudyInstanceUID;
  437. strScheduledAETitle = study.strScheduledAETitle;
  438. strRegSource = study.strRegSource;
  439. strStudyStatus = study.strStudyStatus;
  440. strStudyPriority = study.strStudyPriority;
  441. strStudyComments = study.strStudyComments;
  442. strRequestingPhysician = study.strRequestingPhysician;
  443. strRequestedProcedureDescription = study.strRequestedProcedureDescription;
  444. strRequestedContrasAgent = study.strRequestedContrasAgent;
  445. strScheduledProcedureStepID = study.strScheduledProcedureStepID;
  446. strScheduledProcedureStepDescription = study.strScheduledProcedureStepDescription;
  447. strRequestedProcedureID = study.strRequestedProcedureID;
  448. strPreMedication = study.strPreMedication;
  449. strProcedureCode = study.strProcedureCode;
  450. strProcedureCodeValue = study.strProcedureCodeValue;
  451. strProcedureCodeMeaning = study.strProcedureCodeMeaning;
  452. strMPPSInstanceUID = study.strMPPSInstanceUID;
  453. strMPPSStatus = study.strMPPSStatus;
  454. strModality = study.strModality;
  455. strOperatorName = study.strOperatorName;
  456. dtScheduledStartDateTime = study.dtScheduledStartDateTime;
  457. dtStudyStartDateTime = study.dtStudyStartDateTime;
  458. dtStudyCompletionDateTime = study.dtStudyCompletionDateTime;
  459. strReserve1 = study.strReserve1;
  460. strReserve2 = study.strReserve2;
  461. strReserve3 = study.strReserve3;
  462. return *this;
  463. }
  464. };
  465. //---------------------------------------------------------------------------------------
  466. //
  467. // 结构名称:ECOM_PROCEDURE_VIEW
  468. // 结构说明:用来保存 界面与 WorkFlow 交互时传递的 Porcedure and View 信息.
  469. //
  470. //---------------------------------------------------------------------------------------
  471. typedef struct ECOM_PROCEDURE_VIEW
  472. {
  473. //Station
  474. string strStationName;
  475. string strInstitutionName;
  476. // Procedure
  477. string strProcedureCode;
  478. string strProcedureName;
  479. string strProcedureFastName; //new added, for fast input/search procedure
  480. string strProcedureDescription; //for local language
  481. string strBodyPart;
  482. string strBodyPartDescription; //new added, for local language
  483. string strOftenUsed;
  484. string strTrueSize;
  485. string strFilmOrientation;
  486. string strFilmSize;
  487. string strPrintFormat;
  488. //code begin 20091105
  489. string strStitchingLength;
  490. string strStitchingPID;
  491. string strStitchingOverlap;
  492. string strStitchingDirection;
  493. string strStitchingType;
  494. string strInitialPosition;
  495. //code end 20091105
  496. // View
  497. string strViewID;
  498. string strSOPInstanceUID; //newadded, for identification
  499. string strImageID; //newadded, for identification
  500. string strViewDescription;
  501. string strAnatomicRegion;
  502. string strBodyPartExamined;
  503. string strOrientation;
  504. string strViewPosition;
  505. string strPatientOrientationRow;
  506. string strPatientOrientationColumn;
  507. string strImageLaterality;
  508. string strImageRotate;
  509. string strCollimatorSize;
  510. string strImageProcess;
  511. string strImageHorizontalFlip;
  512. string strLabelStyle;
  513. string strLabelPosition;
  514. string strViewIconName;
  515. string strViewBigIconName;
  516. string strStandPos;
  517. string strFilter;
  518. //code begin 20150616
  519. string strViewSeriesInstanceUID; //seriesInstanceUID(对应每个view)
  520. string strViewStatus; //view 是新的view还是拒绝后重新copy出来的; 0:新的view;1:拒绝后重新copy出来的
  521. string strViewGridType; //Grid type: 0 表示没有; 其他则对应具体grid定义
  522. string strViewAPRStatus; //当前view的曝光状态,0 表示没有曝光; 1 表示曝光成功; 2:曝光拒绝
  523. //code end 20150616
  524. ECOM_PROCEDURE_VIEW& operator =(const ECOM_PROCEDURE_VIEW& procedureview)
  525. {
  526. //string::CopyChars(strPatientID, patient.strPatientID, patient.strPatientID.GetLength();
  527. strStationName = procedureview.strStationName;
  528. strInstitutionName = procedureview.strInstitutionName;
  529. strProcedureCode = procedureview.strProcedureCode;
  530. strProcedureName = procedureview.strProcedureName;
  531. strProcedureFastName = procedureview.strProcedureFastName;
  532. strProcedureDescription = procedureview.strProcedureDescription;
  533. strBodyPart = procedureview.strBodyPart;
  534. strBodyPartDescription = procedureview.strBodyPartDescription;
  535. strOftenUsed = procedureview.strOftenUsed;
  536. strTrueSize = procedureview.strTrueSize;
  537. strFilmOrientation = procedureview.strFilmOrientation;
  538. strFilmSize = procedureview.strFilmSize;
  539. strPrintFormat = procedureview.strPrintFormat;
  540. strViewID = procedureview.strViewID;
  541. strSOPInstanceUID = procedureview.strSOPInstanceUID;
  542. strImageID = procedureview.strImageID;
  543. strViewDescription = procedureview.strViewDescription;
  544. strAnatomicRegion = procedureview.strAnatomicRegion;
  545. strBodyPartExamined = procedureview.strBodyPartExamined;
  546. strOrientation = procedureview.strOrientation;
  547. strViewPosition = procedureview.strViewPosition;
  548. strPatientOrientationRow = procedureview.strPatientOrientationRow;
  549. strPatientOrientationColumn = procedureview.strPatientOrientationColumn;
  550. strImageLaterality = procedureview.strImageLaterality;
  551. strImageRotate = procedureview.strImageRotate;
  552. strCollimatorSize = procedureview.strCollimatorSize;
  553. strImageProcess = procedureview.strImageProcess;
  554. strImageHorizontalFlip = procedureview.strImageHorizontalFlip;
  555. strLabelStyle = procedureview.strLabelStyle;
  556. strLabelPosition = procedureview.strLabelPosition;
  557. strViewIconName = procedureview.strViewIconName;
  558. strViewBigIconName = procedureview.strViewBigIconName;
  559. strStandPos = procedureview.strStandPos;
  560. strFilter = procedureview.strFilter;
  561. //code begin 20091105
  562. strStitchingLength = procedureview.strStitchingLength;
  563. strStitchingPID = procedureview.strStitchingPID;
  564. strStitchingOverlap = procedureview.strStitchingOverlap;
  565. strStitchingDirection = procedureview.strStitchingDirection;
  566. strStitchingType = procedureview.strStitchingType;
  567. strInitialPosition = procedureview.strInitialPosition;
  568. //code end 20091105
  569. strViewSeriesInstanceUID = procedureview.strViewSeriesInstanceUID;
  570. strViewStatus = procedureview.strViewStatus;
  571. strViewGridType = procedureview.strViewGridType;
  572. strViewAPRStatus = procedureview.strViewAPRStatus;
  573. return *this;
  574. }
  575. };
  576. //---------------------------------------------------------------------------------------
  577. //
  578. // 结构名称:ECOM_COLLIMATOR_INFO
  579. // 结构说明:用来保存遮光器的参数信息.
  580. //
  581. //---------------------------------------------------------------------------------------
  582. typedef struct ECOM_COLLIMATOR_INFO
  583. {
  584. float fWidth; //cm
  585. float fHeight; //cm
  586. ECOM_COLLIMATOR_INFO& operator =(const ECOM_COLLIMATOR_INFO &Collimator)
  587. {
  588. fWidth = Collimator.fWidth;
  589. fHeight = Collimator.fWidth;
  590. return *this;
  591. }
  592. };