remedical.m.dart 34 KB

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