remedical.m.dart 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382
  1. import 'authentication.m.dart';
  2. import 'patient.m.dart';
  3. import 'recordInfo.m.dart';
  4. import 'connect.m.dart';
  5. import 'device.m.dart';
  6. import 'organization.m.dart';
  7. import 'package:fis_jsonrpc/utils.dart';
  8. class CreateExaminfoResult {
  9. String? examCode;
  10. CreateExaminfoResult({
  11. this.examCode,
  12. });
  13. factory CreateExaminfoResult.fromJson(Map<String, dynamic> map) {
  14. return CreateExaminfoResult(
  15. examCode: map['ExamCode'],
  16. );
  17. }
  18. Map<String, dynamic> toJson() {
  19. final map = Map<String, dynamic>();
  20. if(examCode != null)
  21. map['ExamCode'] = examCode;
  22. return map;
  23. }
  24. }
  25. class CreateExaminfoRequest extends TokenRequest{
  26. String? patientType;
  27. String? reservationCode;
  28. List<DataItemDTO>? patientInfo;
  29. List<PatientInfoExt>? patientScanInfoList;
  30. CreateExaminfoRequest({
  31. this.patientType,
  32. this.reservationCode,
  33. this.patientInfo,
  34. this.patientScanInfoList,
  35. String? token,
  36. }) : super(
  37. token: token,
  38. );
  39. factory CreateExaminfoRequest.fromJson(Map<String, dynamic> map) {
  40. return CreateExaminfoRequest(
  41. patientType: map['PatientType'],
  42. reservationCode: map['ReservationCode'],
  43. patientInfo: map['PatientInfo'] != null ? (map['PatientInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  44. patientScanInfoList: map['PatientScanInfoList'] != null ? (map['PatientScanInfoList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
  45. token: map['Token'],
  46. );
  47. }
  48. Map<String, dynamic> toJson() {
  49. final map = super.toJson();
  50. if(patientType != null)
  51. map['PatientType'] = patientType;
  52. if(reservationCode != null)
  53. map['ReservationCode'] = reservationCode;
  54. if(patientInfo != null)
  55. map['PatientInfo'] = patientInfo;
  56. if(patientScanInfoList != null)
  57. map['PatientScanInfoList'] = patientScanInfoList;
  58. return map;
  59. }
  60. }
  61. class UploadExamDataRequest extends TokenRequest{
  62. String? examCode;
  63. String? previewFileToken;
  64. String? fileToken;
  65. String? application;
  66. UploadExamDataRequest({
  67. this.examCode,
  68. this.previewFileToken,
  69. this.fileToken,
  70. this.application,
  71. String? token,
  72. }) : super(
  73. token: token,
  74. );
  75. factory UploadExamDataRequest.fromJson(Map<String, dynamic> map) {
  76. return UploadExamDataRequest(
  77. examCode: map['ExamCode'],
  78. previewFileToken: map['PreviewFileToken'],
  79. fileToken: map['FileToken'],
  80. application: map['Application'],
  81. token: map['Token'],
  82. );
  83. }
  84. Map<String, dynamic> toJson() {
  85. final map = super.toJson();
  86. if(examCode != null)
  87. map['ExamCode'] = examCode;
  88. if(previewFileToken != null)
  89. map['PreviewFileToken'] = previewFileToken;
  90. if(fileToken != null)
  91. map['FileToken'] = fileToken;
  92. if(application != null)
  93. map['Application'] = application;
  94. return map;
  95. }
  96. }
  97. class TerminalImageDTO {
  98. String? previewUrl;
  99. String? imageUrl;
  100. TerminalImageDTO({
  101. this.previewUrl,
  102. this.imageUrl,
  103. });
  104. factory TerminalImageDTO.fromJson(Map<String, dynamic> map) {
  105. return TerminalImageDTO(
  106. previewUrl: map['PreviewUrl'],
  107. imageUrl: map['ImageUrl'],
  108. );
  109. }
  110. Map<String, dynamic> toJson() {
  111. final map = Map<String, dynamic>();
  112. if(previewUrl != null)
  113. map['PreviewUrl'] = previewUrl;
  114. if(imageUrl != null)
  115. map['ImageUrl'] = imageUrl;
  116. return map;
  117. }
  118. }
  119. enum RemedicalFileDataTypeEnum {
  120. VinnoVidSingle,
  121. ThirdVidSingle,
  122. VinnoVidMovie,
  123. ThirdVidMovie,
  124. Image,
  125. }
  126. enum RemedicalImageLocationTypeEnum {
  127. BreastImageLocation,
  128. LiverImageLocation,
  129. ThyroidImageLocation,
  130. PositionImageLocation,
  131. }
  132. enum RemedicalImagePositionTypeEnum {
  133. None,
  134. Left,
  135. Right,
  136. Middle,
  137. }
  138. enum RemedicalApparatusTypeEnum {
  139. BreastOuterUpper,
  140. BreastInnerUpper,
  141. BreastOuterLower,
  142. BreastInnerLower,
  143. Lobe,
  144. LobeOfUnder,
  145. LobeOfInter,
  146. Thyroid,
  147. Abdomen,
  148. }
  149. class ImageLocationDTO {
  150. RemedicalImageLocationTypeEnum imageLocationType;
  151. RemedicalImagePositionTypeEnum position;
  152. String? scanLocationName;
  153. RemedicalApparatusTypeEnum apparatusType;
  154. ImageLocationDTO({
  155. this.imageLocationType = RemedicalImageLocationTypeEnum.BreastImageLocation,
  156. this.position = RemedicalImagePositionTypeEnum.None,
  157. this.scanLocationName,
  158. this.apparatusType = RemedicalApparatusTypeEnum.BreastOuterUpper,
  159. });
  160. factory ImageLocationDTO.fromJson(Map<String, dynamic> map) {
  161. return ImageLocationDTO(
  162. imageLocationType: RemedicalImageLocationTypeEnum.values.firstWhere((e) => e.index == map['ImageLocationType']),
  163. position: RemedicalImagePositionTypeEnum.values.firstWhere((e) => e.index == map['Position']),
  164. scanLocationName: map['ScanLocationName'],
  165. apparatusType: RemedicalApparatusTypeEnum.values.firstWhere((e) => e.index == map['ApparatusType']),
  166. );
  167. }
  168. Map<String, dynamic> toJson() {
  169. final map = Map<String, dynamic>();
  170. map['ImageLocationType'] = imageLocationType.index;
  171. map['Position'] = position.index;
  172. if(scanLocationName != null)
  173. map['ScanLocationName'] = scanLocationName;
  174. map['ApparatusType'] = apparatusType.index;
  175. return map;
  176. }
  177. }
  178. enum RemedicalAIDiagnosisStatusEnum {
  179. Null,
  180. NoObviousLesion,
  181. Benign,
  182. Malignant,
  183. BenignAndMalignant,
  184. }
  185. class RemedicalInfoDTO extends BaseDTO{
  186. String? remedicalCode;
  187. String? deviceCode;
  188. String? recordCode;
  189. String? patientScanType;
  190. String? application;
  191. TerminalImageDTO? terminalImages;
  192. RemedicalFileDataTypeEnum fileDataType;
  193. ImageLocationDTO? imageLocation;
  194. RemedicalAIDiagnosisStatusEnum aIDiagnosisStatus;
  195. RemedicalInfoDTO({
  196. this.remedicalCode,
  197. this.deviceCode,
  198. this.recordCode,
  199. this.patientScanType,
  200. this.application,
  201. this.terminalImages,
  202. this.fileDataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
  203. this.imageLocation,
  204. this.aIDiagnosisStatus = RemedicalAIDiagnosisStatusEnum.Null,
  205. DateTime? createTime,
  206. DateTime? updateTime,
  207. }) : super(
  208. createTime: createTime,
  209. updateTime: updateTime,
  210. );
  211. factory RemedicalInfoDTO.fromJson(Map<String, dynamic> map) {
  212. return RemedicalInfoDTO(
  213. remedicalCode: map['RemedicalCode'],
  214. deviceCode: map['DeviceCode'],
  215. recordCode: map['RecordCode'],
  216. patientScanType: map['PatientScanType'],
  217. application: map['Application'],
  218. terminalImages: map['TerminalImages'] != null ? TerminalImageDTO.fromJson(map['TerminalImages']) : null,
  219. fileDataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['FileDataType']),
  220. imageLocation: map['ImageLocation'] != null ? ImageLocationDTO.fromJson(map['ImageLocation']) : null,
  221. aIDiagnosisStatus: RemedicalAIDiagnosisStatusEnum.values.firstWhere((e) => e.index == map['AIDiagnosisStatus']),
  222. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  223. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  224. );
  225. }
  226. Map<String, dynamic> toJson() {
  227. final map = super.toJson();
  228. if(remedicalCode != null)
  229. map['RemedicalCode'] = remedicalCode;
  230. if(deviceCode != null)
  231. map['DeviceCode'] = deviceCode;
  232. if(recordCode != null)
  233. map['RecordCode'] = recordCode;
  234. if(patientScanType != null)
  235. map['PatientScanType'] = patientScanType;
  236. if(application != null)
  237. map['Application'] = application;
  238. if(terminalImages != null)
  239. map['TerminalImages'] = terminalImages;
  240. map['FileDataType'] = fileDataType.index;
  241. if(imageLocation != null)
  242. map['ImageLocation'] = imageLocation;
  243. map['AIDiagnosisStatus'] = aIDiagnosisStatus.index;
  244. return map;
  245. }
  246. }
  247. class RemedicalItemList {
  248. String? patientScanTypeDesc;
  249. List<RemedicalInfoDTO>? remedicalList;
  250. RemedicalItemList({
  251. this.patientScanTypeDesc,
  252. this.remedicalList,
  253. });
  254. factory RemedicalItemList.fromJson(Map<String, dynamic> map) {
  255. return RemedicalItemList(
  256. patientScanTypeDesc: map['PatientScanTypeDesc'],
  257. remedicalList: map['RemedicalList'] != null ? (map['RemedicalList'] as List).map((e)=>RemedicalInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  258. );
  259. }
  260. Map<String, dynamic> toJson() {
  261. final map = Map<String, dynamic>();
  262. if(patientScanTypeDesc != null)
  263. map['PatientScanTypeDesc'] = patientScanTypeDesc;
  264. if(remedicalList != null)
  265. map['RemedicalList'] = remedicalList;
  266. return map;
  267. }
  268. }
  269. class RemedicalListResult {
  270. String? sacnDate;
  271. String? recordCode;
  272. List<RemedicalItemList>? remedicalItemList;
  273. RemedicalListResult({
  274. this.sacnDate,
  275. this.recordCode,
  276. this.remedicalItemList,
  277. });
  278. factory RemedicalListResult.fromJson(Map<String, dynamic> map) {
  279. return RemedicalListResult(
  280. sacnDate: map['SacnDate'],
  281. recordCode: map['RecordCode'],
  282. remedicalItemList: map['RemedicalItemList'] != null ? (map['RemedicalItemList'] as List).map((e)=>RemedicalItemList.fromJson(e as Map<String,dynamic>)).toList() : null,
  283. );
  284. }
  285. Map<String, dynamic> toJson() {
  286. final map = Map<String, dynamic>();
  287. if(sacnDate != null)
  288. map['SacnDate'] = sacnDate;
  289. if(recordCode != null)
  290. map['RecordCode'] = recordCode;
  291. if(remedicalItemList != null)
  292. map['RemedicalItemList'] = remedicalItemList;
  293. return map;
  294. }
  295. }
  296. enum QueryDropdownListEnum {
  297. Org,
  298. }
  299. class QueryDropdownListReuqest extends TokenRequest{
  300. QueryDropdownListEnum queryType;
  301. String? queryValue;
  302. QueryDropdownListReuqest({
  303. this.queryType = QueryDropdownListEnum.Org,
  304. this.queryValue,
  305. String? token,
  306. }) : super(
  307. token: token,
  308. );
  309. factory QueryDropdownListReuqest.fromJson(Map<String, dynamic> map) {
  310. return QueryDropdownListReuqest(
  311. queryType: QueryDropdownListEnum.values.firstWhere((e) => e.index == map['QueryType']),
  312. queryValue: map['QueryValue'],
  313. token: map['Token'],
  314. );
  315. }
  316. Map<String, dynamic> toJson() {
  317. final map = super.toJson();
  318. map['QueryType'] = queryType.index;
  319. if(queryValue != null)
  320. map['QueryValue'] = queryValue;
  321. return map;
  322. }
  323. }
  324. class RservationResult {
  325. String? reservationCode;
  326. List<DataItemDTO>? patientInfo;
  327. List<PatientInfoExt>? patientInfoExtList;
  328. String? dataSource;
  329. RservationResult({
  330. this.reservationCode,
  331. this.patientInfo,
  332. this.patientInfoExtList,
  333. this.dataSource,
  334. });
  335. factory RservationResult.fromJson(Map<String, dynamic> map) {
  336. return RservationResult(
  337. reservationCode: map['ReservationCode'],
  338. patientInfo: map['PatientInfo'] != null ? (map['PatientInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  339. patientInfoExtList: map['PatientInfoExtList'] != null ? (map['PatientInfoExtList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
  340. dataSource: map['DataSource'],
  341. );
  342. }
  343. Map<String, dynamic> toJson() {
  344. final map = Map<String, dynamic>();
  345. if(reservationCode != null)
  346. map['ReservationCode'] = reservationCode;
  347. if(patientInfo != null)
  348. map['PatientInfo'] = patientInfo;
  349. if(patientInfoExtList != null)
  350. map['PatientInfoExtList'] = patientInfoExtList;
  351. if(dataSource != null)
  352. map['DataSource'] = dataSource;
  353. return map;
  354. }
  355. }
  356. class QueryReservationResult {
  357. List<RservationResult>? reservationList;
  358. QueryReservationResult({
  359. this.reservationList,
  360. });
  361. factory QueryReservationResult.fromJson(Map<String, dynamic> map) {
  362. return QueryReservationResult(
  363. reservationList: map['ReservationList'] != null ? (map['ReservationList'] as List).map((e)=>RservationResult.fromJson(e as Map<String,dynamic>)).toList() : null,
  364. );
  365. }
  366. Map<String, dynamic> toJson() {
  367. final map = Map<String, dynamic>();
  368. if(reservationList != null)
  369. map['ReservationList'] = reservationList;
  370. return map;
  371. }
  372. }
  373. class QueryReservationRequest extends TokenRequest{
  374. DateTime? createTime;
  375. QueryReservationRequest({
  376. this.createTime,
  377. String? token,
  378. }) : super(
  379. token: token,
  380. );
  381. factory QueryReservationRequest.fromJson(Map<String, dynamic> map) {
  382. return QueryReservationRequest(
  383. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  384. token: map['Token'],
  385. );
  386. }
  387. Map<String, dynamic> toJson() {
  388. final map = super.toJson();
  389. if(createTime != null)
  390. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  391. return map;
  392. }
  393. }
  394. class FinishExamNotifyDetail {
  395. String? recordCode;
  396. RecordStatusEnum recordStatus;
  397. FinishExamNotifyDetail({
  398. this.recordCode,
  399. this.recordStatus = RecordStatusEnum.NotScanned,
  400. });
  401. factory FinishExamNotifyDetail.fromJson(Map<String, dynamic> map) {
  402. return FinishExamNotifyDetail(
  403. recordCode: map['RecordCode'],
  404. recordStatus: RecordStatusEnum.values.firstWhere((e) => e.index == map['RecordStatus']),
  405. );
  406. }
  407. Map<String, dynamic> toJson() {
  408. final map = Map<String, dynamic>();
  409. if(recordCode != null)
  410. map['RecordCode'] = recordCode;
  411. map['RecordStatus'] = recordStatus.index;
  412. return map;
  413. }
  414. }
  415. class PushFinishExamNotifyToClientRequest {
  416. List<FinishExamNotifyDetail>? records;
  417. String? userCode;
  418. PushFinishExamNotifyToClientRequest({
  419. this.records,
  420. this.userCode,
  421. });
  422. factory PushFinishExamNotifyToClientRequest.fromJson(Map<String, dynamic> map) {
  423. return PushFinishExamNotifyToClientRequest(
  424. records: map['Records'] != null ? (map['Records'] as List).map((e)=>FinishExamNotifyDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
  425. userCode: map['UserCode'],
  426. );
  427. }
  428. Map<String, dynamic> toJson() {
  429. final map = Map<String, dynamic>();
  430. if(records != null)
  431. map['Records'] = records;
  432. if(userCode != null)
  433. map['UserCode'] = userCode;
  434. return map;
  435. }
  436. }
  437. class DeviceFinishExamRequest extends TokenRequest{
  438. List<String>? records;
  439. DeviceFinishExamRequest({
  440. this.records,
  441. String? token,
  442. }) : super(
  443. token: token,
  444. );
  445. factory DeviceFinishExamRequest.fromJson(Map<String, dynamic> map) {
  446. return DeviceFinishExamRequest(
  447. records: map['Records'] != null ? map['Records'].cast<String>().toList() : null,
  448. token: map['Token'],
  449. );
  450. }
  451. Map<String, dynamic> toJson() {
  452. final map = super.toJson();
  453. if(records != null)
  454. map['Records'] = records;
  455. return map;
  456. }
  457. }
  458. enum ThesaurusStatusTypeEnum {
  459. Unpublished,
  460. Published,
  461. Referenced,
  462. }
  463. enum ThesaurusTypeEnum {
  464. Default,
  465. Organization,
  466. Personal,
  467. }
  468. enum ThesaurusUsageTypeEnum {
  469. People,
  470. Animal,
  471. }
  472. class ThesaurusDTO {
  473. String? thesaurusCode;
  474. String? thesaurusName;
  475. ThesaurusStatusTypeEnum thesaurusStateType;
  476. ThesaurusTypeEnum thesaurusType;
  477. ThesaurusUsageTypeEnum thesaurusUsageType;
  478. String? organizationCode;
  479. String? personalCode;
  480. String? languageCode;
  481. List<String>? thesaurusUser;
  482. bool isDefault;
  483. ThesaurusDTO({
  484. this.thesaurusCode,
  485. this.thesaurusName,
  486. this.thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
  487. this.thesaurusType = ThesaurusTypeEnum.Default,
  488. this.thesaurusUsageType = ThesaurusUsageTypeEnum.People,
  489. this.organizationCode,
  490. this.personalCode,
  491. this.languageCode,
  492. this.thesaurusUser,
  493. this.isDefault = false,
  494. });
  495. factory ThesaurusDTO.fromJson(Map<String, dynamic> map) {
  496. return ThesaurusDTO(
  497. thesaurusCode: map['ThesaurusCode'],
  498. thesaurusName: map['ThesaurusName'],
  499. thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
  500. thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
  501. thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
  502. organizationCode: map['OrganizationCode'],
  503. personalCode: map['PersonalCode'],
  504. languageCode: map['LanguageCode'],
  505. thesaurusUser: map['ThesaurusUser'] != null ? map['ThesaurusUser'].cast<String>().toList() : null,
  506. isDefault: map['IsDefault'],
  507. );
  508. }
  509. Map<String, dynamic> toJson() {
  510. final map = Map<String, dynamic>();
  511. if(thesaurusCode != null)
  512. map['ThesaurusCode'] = thesaurusCode;
  513. if(thesaurusName != null)
  514. map['ThesaurusName'] = thesaurusName;
  515. map['ThesaurusStateType'] = thesaurusStateType.index;
  516. map['ThesaurusType'] = thesaurusType.index;
  517. map['ThesaurusUsageType'] = thesaurusUsageType.index;
  518. if(organizationCode != null)
  519. map['OrganizationCode'] = organizationCode;
  520. if(personalCode != null)
  521. map['PersonalCode'] = personalCode;
  522. if(languageCode != null)
  523. map['LanguageCode'] = languageCode;
  524. if(thesaurusUser != null)
  525. map['ThesaurusUser'] = thesaurusUser;
  526. map['IsDefault'] = isDefault;
  527. return map;
  528. }
  529. }
  530. class AddThesaurusRequest extends TokenRequest{
  531. ThesaurusDTO? thesaurus;
  532. AddThesaurusRequest({
  533. this.thesaurus,
  534. String? token,
  535. }) : super(
  536. token: token,
  537. );
  538. factory AddThesaurusRequest.fromJson(Map<String, dynamic> map) {
  539. return AddThesaurusRequest(
  540. thesaurus: map['Thesaurus'] != null ? ThesaurusDTO.fromJson(map['Thesaurus']) : null,
  541. token: map['Token'],
  542. );
  543. }
  544. Map<String, dynamic> toJson() {
  545. final map = super.toJson();
  546. if(thesaurus != null)
  547. map['Thesaurus'] = thesaurus;
  548. return map;
  549. }
  550. }
  551. class UpdateThesaurusRequest extends TokenRequest{
  552. ThesaurusDTO? thesaurus;
  553. UpdateThesaurusRequest({
  554. this.thesaurus,
  555. String? token,
  556. }) : super(
  557. token: token,
  558. );
  559. factory UpdateThesaurusRequest.fromJson(Map<String, dynamic> map) {
  560. return UpdateThesaurusRequest(
  561. thesaurus: map['Thesaurus'] != null ? ThesaurusDTO.fromJson(map['Thesaurus']) : null,
  562. token: map['Token'],
  563. );
  564. }
  565. Map<String, dynamic> toJson() {
  566. final map = super.toJson();
  567. if(thesaurus != null)
  568. map['Thesaurus'] = thesaurus;
  569. return map;
  570. }
  571. }
  572. class AddThesaurusClassifyRequest extends TokenRequest{
  573. String? thesaurusCode;
  574. String? thesaurusItemName;
  575. String? parentItemCode;
  576. AddThesaurusClassifyRequest({
  577. this.thesaurusCode,
  578. this.thesaurusItemName,
  579. this.parentItemCode,
  580. String? token,
  581. }) : super(
  582. token: token,
  583. );
  584. factory AddThesaurusClassifyRequest.fromJson(Map<String, dynamic> map) {
  585. return AddThesaurusClassifyRequest(
  586. thesaurusCode: map['ThesaurusCode'],
  587. thesaurusItemName: map['ThesaurusItemName'],
  588. parentItemCode: map['ParentItemCode'],
  589. token: map['Token'],
  590. );
  591. }
  592. Map<String, dynamic> toJson() {
  593. final map = super.toJson();
  594. if(thesaurusCode != null)
  595. map['ThesaurusCode'] = thesaurusCode;
  596. if(thesaurusItemName != null)
  597. map['ThesaurusItemName'] = thesaurusItemName;
  598. if(parentItemCode != null)
  599. map['ParentItemCode'] = parentItemCode;
  600. return map;
  601. }
  602. }
  603. class AddThesaurusContentRequest extends TokenRequest{
  604. String? thesaurusCode;
  605. String? thesaurusItemDescription;
  606. String? thesaurusItemConclusion;
  607. String? parentItemCode;
  608. AddThesaurusContentRequest({
  609. this.thesaurusCode,
  610. this.thesaurusItemDescription,
  611. this.thesaurusItemConclusion,
  612. this.parentItemCode,
  613. String? token,
  614. }) : super(
  615. token: token,
  616. );
  617. factory AddThesaurusContentRequest.fromJson(Map<String, dynamic> map) {
  618. return AddThesaurusContentRequest(
  619. thesaurusCode: map['ThesaurusCode'],
  620. thesaurusItemDescription: map['ThesaurusItemDescription'],
  621. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  622. parentItemCode: map['ParentItemCode'],
  623. token: map['Token'],
  624. );
  625. }
  626. Map<String, dynamic> toJson() {
  627. final map = super.toJson();
  628. if(thesaurusCode != null)
  629. map['ThesaurusCode'] = thesaurusCode;
  630. if(thesaurusItemDescription != null)
  631. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  632. if(thesaurusItemConclusion != null)
  633. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  634. if(parentItemCode != null)
  635. map['ParentItemCode'] = parentItemCode;
  636. return map;
  637. }
  638. }
  639. class UpdateThesaurusClassifyRequest extends TokenRequest{
  640. String? thesaurusCode;
  641. String? thesaurusItemCode;
  642. String? thesaurusItemName;
  643. String? parentItemCode;
  644. UpdateThesaurusClassifyRequest({
  645. this.thesaurusCode,
  646. this.thesaurusItemCode,
  647. this.thesaurusItemName,
  648. this.parentItemCode,
  649. String? token,
  650. }) : super(
  651. token: token,
  652. );
  653. factory UpdateThesaurusClassifyRequest.fromJson(Map<String, dynamic> map) {
  654. return UpdateThesaurusClassifyRequest(
  655. thesaurusCode: map['ThesaurusCode'],
  656. thesaurusItemCode: map['ThesaurusItemCode'],
  657. thesaurusItemName: map['ThesaurusItemName'],
  658. parentItemCode: map['ParentItemCode'],
  659. token: map['Token'],
  660. );
  661. }
  662. Map<String, dynamic> toJson() {
  663. final map = super.toJson();
  664. if(thesaurusCode != null)
  665. map['ThesaurusCode'] = thesaurusCode;
  666. if(thesaurusItemCode != null)
  667. map['ThesaurusItemCode'] = thesaurusItemCode;
  668. if(thesaurusItemName != null)
  669. map['ThesaurusItemName'] = thesaurusItemName;
  670. if(parentItemCode != null)
  671. map['ParentItemCode'] = parentItemCode;
  672. return map;
  673. }
  674. }
  675. class UpdateThesaurusContentRequest extends TokenRequest{
  676. String? thesaurusCode;
  677. String? thesaurusItemCode;
  678. String? thesaurusItemDescription;
  679. String? thesaurusItemConclusion;
  680. String? parentItemCode;
  681. UpdateThesaurusContentRequest({
  682. this.thesaurusCode,
  683. this.thesaurusItemCode,
  684. this.thesaurusItemDescription,
  685. this.thesaurusItemConclusion,
  686. this.parentItemCode,
  687. String? token,
  688. }) : super(
  689. token: token,
  690. );
  691. factory UpdateThesaurusContentRequest.fromJson(Map<String, dynamic> map) {
  692. return UpdateThesaurusContentRequest(
  693. thesaurusCode: map['ThesaurusCode'],
  694. thesaurusItemCode: map['ThesaurusItemCode'],
  695. thesaurusItemDescription: map['ThesaurusItemDescription'],
  696. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  697. parentItemCode: map['ParentItemCode'],
  698. token: map['Token'],
  699. );
  700. }
  701. Map<String, dynamic> toJson() {
  702. final map = super.toJson();
  703. if(thesaurusCode != null)
  704. map['ThesaurusCode'] = thesaurusCode;
  705. if(thesaurusItemCode != null)
  706. map['ThesaurusItemCode'] = thesaurusItemCode;
  707. if(thesaurusItemDescription != null)
  708. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  709. if(thesaurusItemConclusion != null)
  710. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  711. if(parentItemCode != null)
  712. map['ParentItemCode'] = parentItemCode;
  713. return map;
  714. }
  715. }
  716. class RemoveThesaurusRequest extends TokenRequest{
  717. String? thesaurusCode;
  718. RemoveThesaurusRequest({
  719. this.thesaurusCode,
  720. String? token,
  721. }) : super(
  722. token: token,
  723. );
  724. factory RemoveThesaurusRequest.fromJson(Map<String, dynamic> map) {
  725. return RemoveThesaurusRequest(
  726. thesaurusCode: map['ThesaurusCode'],
  727. token: map['Token'],
  728. );
  729. }
  730. Map<String, dynamic> toJson() {
  731. final map = super.toJson();
  732. if(thesaurusCode != null)
  733. map['ThesaurusCode'] = thesaurusCode;
  734. return map;
  735. }
  736. }
  737. class RemoveThesaurusItemRequest extends TokenRequest{
  738. String? thesaurusCode;
  739. String? thesaurusItemCode;
  740. RemoveThesaurusItemRequest({
  741. this.thesaurusCode,
  742. this.thesaurusItemCode,
  743. String? token,
  744. }) : super(
  745. token: token,
  746. );
  747. factory RemoveThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
  748. return RemoveThesaurusItemRequest(
  749. thesaurusCode: map['ThesaurusCode'],
  750. thesaurusItemCode: map['ThesaurusItemCode'],
  751. token: map['Token'],
  752. );
  753. }
  754. Map<String, dynamic> toJson() {
  755. final map = super.toJson();
  756. if(thesaurusCode != null)
  757. map['ThesaurusCode'] = thesaurusCode;
  758. if(thesaurusItemCode != null)
  759. map['ThesaurusItemCode'] = thesaurusItemCode;
  760. return map;
  761. }
  762. }
  763. class QueryExamListItemResult {
  764. String? examCode;
  765. String? patientName;
  766. String? age;
  767. String? sex;
  768. List<String>? associatedExamCodes;
  769. QueryExamListItemResult({
  770. this.examCode,
  771. this.patientName,
  772. this.age,
  773. this.sex,
  774. this.associatedExamCodes,
  775. });
  776. factory QueryExamListItemResult.fromJson(Map<String, dynamic> map) {
  777. return QueryExamListItemResult(
  778. examCode: map['ExamCode'],
  779. patientName: map['PatientName'],
  780. age: map['Age'],
  781. sex: map['Sex'],
  782. associatedExamCodes: map['AssociatedExamCodes'] != null ? map['AssociatedExamCodes'].cast<String>().toList() : null,
  783. );
  784. }
  785. Map<String, dynamic> toJson() {
  786. final map = Map<String, dynamic>();
  787. if(examCode != null)
  788. map['ExamCode'] = examCode;
  789. if(patientName != null)
  790. map['PatientName'] = patientName;
  791. if(age != null)
  792. map['Age'] = age;
  793. if(sex != null)
  794. map['Sex'] = sex;
  795. if(associatedExamCodes != null)
  796. map['AssociatedExamCodes'] = associatedExamCodes;
  797. return map;
  798. }
  799. }
  800. enum ExamStatusEnum {
  801. Wait,
  802. Done,
  803. }
  804. class QueryExamListRequest extends PageRequest{
  805. String? patientName;
  806. DateTime? startTime;
  807. DateTime? endTime;
  808. ExamStatusEnum examStatus;
  809. QueryExamListRequest({
  810. this.patientName,
  811. this.startTime,
  812. this.endTime,
  813. this.examStatus = ExamStatusEnum.Wait,
  814. int pageIndex = 0,
  815. int pageSize = 0,
  816. String? token,
  817. }) : super(
  818. pageIndex: pageIndex,
  819. pageSize: pageSize,
  820. token: token,
  821. );
  822. factory QueryExamListRequest.fromJson(Map<String, dynamic> map) {
  823. return QueryExamListRequest(
  824. patientName: map['PatientName'],
  825. startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
  826. endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
  827. examStatus: ExamStatusEnum.values.firstWhere((e) => e.index == map['ExamStatus']),
  828. pageIndex: map['PageIndex'],
  829. pageSize: map['PageSize'],
  830. token: map['Token'],
  831. );
  832. }
  833. Map<String, dynamic> toJson() {
  834. final map = super.toJson();
  835. if(patientName != null)
  836. map['PatientName'] = patientName;
  837. if(startTime != null)
  838. map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
  839. if(endTime != null)
  840. map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
  841. map['ExamStatus'] = examStatus.index;
  842. return map;
  843. }
  844. }
  845. class QueryExamInfoResult {
  846. DateTime? createTime;
  847. String? deptName;
  848. String? patientName;
  849. String? patientAge;
  850. String? patientSex;
  851. List<PatientInfoExt>? patientInfoExtList;
  852. List<String>? associatedExamCodes;
  853. QueryExamInfoResult({
  854. this.createTime,
  855. this.deptName,
  856. this.patientName,
  857. this.patientAge,
  858. this.patientSex,
  859. this.patientInfoExtList,
  860. this.associatedExamCodes,
  861. });
  862. factory QueryExamInfoResult.fromJson(Map<String, dynamic> map) {
  863. return QueryExamInfoResult(
  864. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  865. deptName: map['DeptName'],
  866. patientName: map['PatientName'],
  867. patientAge: map['PatientAge'],
  868. patientSex: map['PatientSex'],
  869. patientInfoExtList: map['PatientInfoExtList'] != null ? (map['PatientInfoExtList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
  870. associatedExamCodes: map['AssociatedExamCodes'] != null ? map['AssociatedExamCodes'].cast<String>().toList() : null,
  871. );
  872. }
  873. Map<String, dynamic> toJson() {
  874. final map = Map<String, dynamic>();
  875. if(createTime != null)
  876. map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
  877. if(deptName != null)
  878. map['DeptName'] = deptName;
  879. if(patientName != null)
  880. map['PatientName'] = patientName;
  881. if(patientAge != null)
  882. map['PatientAge'] = patientAge;
  883. if(patientSex != null)
  884. map['PatientSex'] = patientSex;
  885. if(patientInfoExtList != null)
  886. map['PatientInfoExtList'] = patientInfoExtList;
  887. if(associatedExamCodes != null)
  888. map['AssociatedExamCodes'] = associatedExamCodes;
  889. return map;
  890. }
  891. }
  892. class QueryExamInfoRequest extends TokenRequest{
  893. String? examCode;
  894. QueryExamInfoRequest({
  895. this.examCode,
  896. String? token,
  897. }) : super(
  898. token: token,
  899. );
  900. factory QueryExamInfoRequest.fromJson(Map<String, dynamic> map) {
  901. return QueryExamInfoRequest(
  902. examCode: map['ExamCode'],
  903. token: map['Token'],
  904. );
  905. }
  906. Map<String, dynamic> toJson() {
  907. final map = super.toJson();
  908. if(examCode != null)
  909. map['ExamCode'] = examCode;
  910. return map;
  911. }
  912. }
  913. class UpdateThesaurusUserCodeRequest extends TokenRequest{
  914. String? thesaurusCode;
  915. UpdateThesaurusUserCodeRequest({
  916. this.thesaurusCode,
  917. String? token,
  918. }) : super(
  919. token: token,
  920. );
  921. factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  922. return UpdateThesaurusUserCodeRequest(
  923. thesaurusCode: map['ThesaurusCode'],
  924. token: map['Token'],
  925. );
  926. }
  927. Map<String, dynamic> toJson() {
  928. final map = super.toJson();
  929. if(thesaurusCode != null)
  930. map['ThesaurusCode'] = thesaurusCode;
  931. return map;
  932. }
  933. }
  934. class DeleteThesaurusUserCodeRequest extends TokenRequest{
  935. String? thesaurusCode;
  936. DeleteThesaurusUserCodeRequest({
  937. this.thesaurusCode,
  938. String? token,
  939. }) : super(
  940. token: token,
  941. );
  942. factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
  943. return DeleteThesaurusUserCodeRequest(
  944. thesaurusCode: map['ThesaurusCode'],
  945. token: map['Token'],
  946. );
  947. }
  948. Map<String, dynamic> toJson() {
  949. final map = super.toJson();
  950. if(thesaurusCode != null)
  951. map['ThesaurusCode'] = thesaurusCode;
  952. return map;
  953. }
  954. }
  955. class GetThesaurusPageRequest extends PageRequest{
  956. bool? isDefault;
  957. String? userCode;
  958. ThesaurusStatusTypeEnum? thesaurusStateType;
  959. ThesaurusTypeEnum? thesaurusType;
  960. String? organizationCode;
  961. String? personalCode;
  962. String? languageCode;
  963. String? thesaurusName;
  964. GetThesaurusPageRequest({
  965. this.isDefault,
  966. this.userCode,
  967. this.thesaurusStateType,
  968. this.thesaurusType,
  969. this.organizationCode,
  970. this.personalCode,
  971. this.languageCode,
  972. this.thesaurusName,
  973. int pageIndex = 0,
  974. int pageSize = 0,
  975. String? token,
  976. }) : super(
  977. pageIndex: pageIndex,
  978. pageSize: pageSize,
  979. token: token,
  980. );
  981. factory GetThesaurusPageRequest.fromJson(Map<String, dynamic> map) {
  982. return GetThesaurusPageRequest(
  983. isDefault: map['IsDefault'],
  984. userCode: map['UserCode'],
  985. thesaurusStateType: map['ThesaurusStateType'] != null ? ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']) : null,
  986. thesaurusType: map['ThesaurusType'] != null ? ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']) : null,
  987. organizationCode: map['OrganizationCode'],
  988. personalCode: map['PersonalCode'],
  989. languageCode: map['LanguageCode'],
  990. thesaurusName: map['ThesaurusName'],
  991. pageIndex: map['PageIndex'],
  992. pageSize: map['PageSize'],
  993. token: map['Token'],
  994. );
  995. }
  996. Map<String, dynamic> toJson() {
  997. final map = super.toJson();
  998. if(isDefault != null)
  999. map['IsDefault'] = isDefault;
  1000. if(userCode != null)
  1001. map['UserCode'] = userCode;
  1002. if(thesaurusStateType != null)
  1003. map['ThesaurusStateType'] = thesaurusStateType;
  1004. if(thesaurusType != null)
  1005. map['ThesaurusType'] = thesaurusType;
  1006. if(organizationCode != null)
  1007. map['OrganizationCode'] = organizationCode;
  1008. if(personalCode != null)
  1009. map['PersonalCode'] = personalCode;
  1010. if(languageCode != null)
  1011. map['LanguageCode'] = languageCode;
  1012. if(thesaurusName != null)
  1013. map['ThesaurusName'] = thesaurusName;
  1014. return map;
  1015. }
  1016. }
  1017. enum ThesaurusItemTypeEnum {
  1018. Classification,
  1019. Contents,
  1020. }
  1021. class ThesaurusItemDTO {
  1022. String? thesaurusItemCode;
  1023. ThesaurusItemTypeEnum thesaurusItemType;
  1024. String? thesaurusItemName;
  1025. String? thesaurusItemDescription;
  1026. String? thesaurusItemConclusion;
  1027. String? parentItemCode;
  1028. bool hasChildren;
  1029. ThesaurusItemDTO({
  1030. this.thesaurusItemCode,
  1031. this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
  1032. this.thesaurusItemName,
  1033. this.thesaurusItemDescription,
  1034. this.thesaurusItemConclusion,
  1035. this.parentItemCode,
  1036. this.hasChildren = false,
  1037. });
  1038. factory ThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
  1039. return ThesaurusItemDTO(
  1040. thesaurusItemCode: map['ThesaurusItemCode'],
  1041. thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
  1042. thesaurusItemName: map['ThesaurusItemName'],
  1043. thesaurusItemDescription: map['ThesaurusItemDescription'],
  1044. thesaurusItemConclusion: map['ThesaurusItemConclusion'],
  1045. parentItemCode: map['ParentItemCode'],
  1046. hasChildren: map['HasChildren'],
  1047. );
  1048. }
  1049. Map<String, dynamic> toJson() {
  1050. final map = Map<String, dynamic>();
  1051. if(thesaurusItemCode != null)
  1052. map['ThesaurusItemCode'] = thesaurusItemCode;
  1053. map['ThesaurusItemType'] = thesaurusItemType.index;
  1054. if(thesaurusItemName != null)
  1055. map['ThesaurusItemName'] = thesaurusItemName;
  1056. if(thesaurusItemDescription != null)
  1057. map['ThesaurusItemDescription'] = thesaurusItemDescription;
  1058. if(thesaurusItemConclusion != null)
  1059. map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
  1060. if(parentItemCode != null)
  1061. map['ParentItemCode'] = parentItemCode;
  1062. map['HasChildren'] = hasChildren;
  1063. return map;
  1064. }
  1065. }
  1066. class GetThesaurusItemsRequest extends TokenRequest{
  1067. String? thesaurusCode;
  1068. GetThesaurusItemsRequest({
  1069. this.thesaurusCode,
  1070. String? token,
  1071. }) : super(
  1072. token: token,
  1073. );
  1074. factory GetThesaurusItemsRequest.fromJson(Map<String, dynamic> map) {
  1075. return GetThesaurusItemsRequest(
  1076. thesaurusCode: map['ThesaurusCode'],
  1077. token: map['Token'],
  1078. );
  1079. }
  1080. Map<String, dynamic> toJson() {
  1081. final map = super.toJson();
  1082. if(thesaurusCode != null)
  1083. map['ThesaurusCode'] = thesaurusCode;
  1084. return map;
  1085. }
  1086. }
  1087. class GetThesaurusClassifyByParentCodeRequest extends TokenRequest{
  1088. String? thesaurusCode;
  1089. String? parentItemCode;
  1090. GetThesaurusClassifyByParentCodeRequest({
  1091. this.thesaurusCode,
  1092. this.parentItemCode,
  1093. String? token,
  1094. }) : super(
  1095. token: token,
  1096. );
  1097. factory GetThesaurusClassifyByParentCodeRequest.fromJson(Map<String, dynamic> map) {
  1098. return GetThesaurusClassifyByParentCodeRequest(
  1099. thesaurusCode: map['ThesaurusCode'],
  1100. parentItemCode: map['ParentItemCode'],
  1101. token: map['Token'],
  1102. );
  1103. }
  1104. Map<String, dynamic> toJson() {
  1105. final map = super.toJson();
  1106. if(thesaurusCode != null)
  1107. map['ThesaurusCode'] = thesaurusCode;
  1108. if(parentItemCode != null)
  1109. map['ParentItemCode'] = parentItemCode;
  1110. return map;
  1111. }
  1112. }
  1113. class GetThesaurusContentByParentCodeRequest extends TokenRequest{
  1114. String? thesaurusCode;
  1115. String? parentItemCode;
  1116. GetThesaurusContentByParentCodeRequest({
  1117. this.thesaurusCode,
  1118. this.parentItemCode,
  1119. String? token,
  1120. }) : super(
  1121. token: token,
  1122. );
  1123. factory GetThesaurusContentByParentCodeRequest.fromJson(Map<String, dynamic> map) {
  1124. return GetThesaurusContentByParentCodeRequest(
  1125. thesaurusCode: map['ThesaurusCode'],
  1126. parentItemCode: map['ParentItemCode'],
  1127. token: map['Token'],
  1128. );
  1129. }
  1130. Map<String, dynamic> toJson() {
  1131. final map = super.toJson();
  1132. if(thesaurusCode != null)
  1133. map['ThesaurusCode'] = thesaurusCode;
  1134. if(parentItemCode != null)
  1135. map['ParentItemCode'] = parentItemCode;
  1136. return map;
  1137. }
  1138. }
  1139. class CopyThesaurusRequest extends TokenRequest{
  1140. String? thesaurusCode;
  1141. CopyThesaurusRequest({
  1142. this.thesaurusCode,
  1143. String? token,
  1144. }) : super(
  1145. token: token,
  1146. );
  1147. factory CopyThesaurusRequest.fromJson(Map<String, dynamic> map) {
  1148. return CopyThesaurusRequest(
  1149. thesaurusCode: map['ThesaurusCode'],
  1150. token: map['Token'],
  1151. );
  1152. }
  1153. Map<String, dynamic> toJson() {
  1154. final map = super.toJson();
  1155. if(thesaurusCode != null)
  1156. map['ThesaurusCode'] = thesaurusCode;
  1157. return map;
  1158. }
  1159. }
  1160. class CopyOrgThesaurusRequest extends TokenRequest{
  1161. String? thesaurusCode;
  1162. CopyOrgThesaurusRequest({
  1163. this.thesaurusCode,
  1164. String? token,
  1165. }) : super(
  1166. token: token,
  1167. );
  1168. factory CopyOrgThesaurusRequest.fromJson(Map<String, dynamic> map) {
  1169. return CopyOrgThesaurusRequest(
  1170. thesaurusCode: map['ThesaurusCode'],
  1171. token: map['Token'],
  1172. );
  1173. }
  1174. Map<String, dynamic> toJson() {
  1175. final map = super.toJson();
  1176. if(thesaurusCode != null)
  1177. map['ThesaurusCode'] = thesaurusCode;
  1178. return map;
  1179. }
  1180. }
  1181. class SaveUserDefinedMeasureItemsRequest extends TokenRequest{
  1182. SaveUserDefinedMeasureItemsRequest({
  1183. String? token,
  1184. }) : super(
  1185. token: token,
  1186. );
  1187. factory SaveUserDefinedMeasureItemsRequest.fromJson(Map<String, dynamic> map) {
  1188. return SaveUserDefinedMeasureItemsRequest(
  1189. token: map['Token'],
  1190. );
  1191. }
  1192. Map<String, dynamic> toJson() {
  1193. final map = super.toJson();
  1194. return map;
  1195. }
  1196. }
  1197. class SaveUserDefinedCommentItemsRequest extends TokenRequest{
  1198. SaveUserDefinedCommentItemsRequest({
  1199. String? token,
  1200. }) : super(
  1201. token: token,
  1202. );
  1203. factory SaveUserDefinedCommentItemsRequest.fromJson(Map<String, dynamic> map) {
  1204. return SaveUserDefinedCommentItemsRequest(
  1205. token: map['Token'],
  1206. );
  1207. }
  1208. Map<String, dynamic> toJson() {
  1209. final map = super.toJson();
  1210. return map;
  1211. }
  1212. }