123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474 |
- import 'liveConsultation.m.dart';
- import 'recordInfo.m.dart';
- import 'notification.m.dart';
- import 'organization.m.dart';
- import 'patient.m.dart';
- import 'education.m.dart';
- import 'aIDiagnosis.m.dart';
- import 'package:fis_jsonrpc/utils.dart';
- class CreateExaminfoResult {
- String? examCode;
- CreateExaminfoResult({
- this.examCode,
- });
- factory CreateExaminfoResult.fromJson(Map<String, dynamic> map) {
- return CreateExaminfoResult(
- examCode: map['ExamCode'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(examCode != null)
- map['ExamCode'] = examCode;
- return map;
- }
- }
- class CreateExaminfoRequest extends TokenRequest{
- String? patientType;
- String? examRecordCode;
- List<DataItemDTO >? patientInfo;
- List<PatientInfoExt >? patientScanInfoList;
- CreateExaminfoRequest({
- this.patientType,
- this.examRecordCode,
- this.patientInfo,
- this.patientScanInfoList,
- String? token,
- }) : super(
- token: token,
- );
- factory CreateExaminfoRequest.fromJson(Map<String, dynamic> map) {
- return CreateExaminfoRequest(
- patientType: map['PatientType'],
- examRecordCode: map['ExamRecordCode'],
- patientInfo: map['PatientInfo'] != null ? (map['PatientInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- patientScanInfoList: map['PatientScanInfoList'] != null ? (map['PatientScanInfoList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(patientType != null)
- map['PatientType'] = patientType;
- if(examRecordCode != null)
- map['ExamRecordCode'] = examRecordCode;
- if(patientInfo != null)
- map['PatientInfo'] = patientInfo;
- if(patientScanInfoList != null)
- map['PatientScanInfoList'] = patientScanInfoList;
- return map;
- }
- }
- class UploadExamDataRequest extends TokenRequest{
- String? examCode;
- String? previewFileToken;
- String? fileToken;
- int fileSize;
- String? coverImageToken;
- String? applicationCategory;
- String? application;
- RemedicalFileDataTypeEnum fileDataType;
- MeasuredResultsDTO? measuredResult;
- ScanImageDTO? commentResult;
- ImageLocationDTO? imageLocation;
- UploadExamDataRequest({
- this.examCode,
- this.previewFileToken,
- this.fileToken,
- this.fileSize = 0,
- this.coverImageToken,
- this.applicationCategory,
- this.application,
- this.fileDataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
- this.measuredResult,
- this.commentResult,
- this.imageLocation,
- String? token,
- }) : super(
- token: token,
- );
- factory UploadExamDataRequest.fromJson(Map<String, dynamic> map) {
- return UploadExamDataRequest(
- examCode: map['ExamCode'],
- previewFileToken: map['PreviewFileToken'],
- fileToken: map['FileToken'],
- fileSize: map['FileSize'],
- coverImageToken: map['CoverImageToken'],
- applicationCategory: map['ApplicationCategory'],
- application: map['Application'],
- fileDataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['FileDataType']),
- measuredResult: map['MeasuredResult'] != null ? MeasuredResultsDTO.fromJson(map['MeasuredResult']) : null,
- commentResult: map['CommentResult'] != null ? ScanImageDTO.fromJson(map['CommentResult']) : null,
- imageLocation: map['ImageLocation'] != null ? ImageLocationDTO.fromJson(map['ImageLocation']) : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(examCode != null)
- map['ExamCode'] = examCode;
- if(previewFileToken != null)
- map['PreviewFileToken'] = previewFileToken;
- if(fileToken != null)
- map['FileToken'] = fileToken;
- map['FileSize'] = fileSize;
- if(coverImageToken != null)
- map['CoverImageToken'] = coverImageToken;
- if(applicationCategory != null)
- map['ApplicationCategory'] = applicationCategory;
- if(application != null)
- map['Application'] = application;
- map['FileDataType'] = fileDataType.index;
- if(measuredResult != null)
- map['MeasuredResult'] = measuredResult;
- if(commentResult != null)
- map['CommentResult'] = commentResult;
- if(imageLocation != null)
- map['ImageLocation'] = imageLocation;
- return map;
- }
- }
- class FindRemedicalByCodeRequest extends TokenRequest{
- String? remedicalCode;
- bool existDiagnosisResult;
- FindRemedicalByCodeRequest({
- this.remedicalCode,
- this.existDiagnosisResult = false,
- String? token,
- }) : super(
- token: token,
- );
- factory FindRemedicalByCodeRequest.fromJson(Map<String, dynamic> map) {
- return FindRemedicalByCodeRequest(
- remedicalCode: map['RemedicalCode'],
- existDiagnosisResult: map['ExistDiagnosisResult'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(remedicalCode != null)
- map['RemedicalCode'] = remedicalCode;
- map['ExistDiagnosisResult'] = existDiagnosisResult;
- return map;
- }
- }
- class AddToRemedicalDiagnosisRequest extends TokenRequest{
- String? remedicalCode;
- AddToRemedicalDiagnosisRequest({
- this.remedicalCode,
- String? token,
- }) : super(
- token: token,
- );
- factory AddToRemedicalDiagnosisRequest.fromJson(Map<String, dynamic> map) {
- return AddToRemedicalDiagnosisRequest(
- remedicalCode: map['RemedicalCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(remedicalCode != null)
- map['RemedicalCode'] = remedicalCode;
- return map;
- }
- }
- class RemedicalItemList {
- String? patientScanTypeDesc;
- List<String >? patientScanTypeList;
- String? applicationCategory;
- String? application;
- List<RemedicalInfoDTO >? remedicalList;
- RemedicalItemList({
- this.patientScanTypeDesc,
- this.patientScanTypeList,
- this.applicationCategory,
- this.application,
- this.remedicalList,
- });
- factory RemedicalItemList.fromJson(Map<String, dynamic> map) {
- return RemedicalItemList(
- patientScanTypeDesc: map['PatientScanTypeDesc'],
- patientScanTypeList: map['PatientScanTypeList'] != null ? map['PatientScanTypeList'].cast<String>().toList() : null,
- applicationCategory: map['ApplicationCategory'],
- application: map['Application'],
- remedicalList: map['RemedicalList'] != null ? (map['RemedicalList'] as List).map((e)=>RemedicalInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(patientScanTypeDesc != null)
- map['PatientScanTypeDesc'] = patientScanTypeDesc;
- if(patientScanTypeList != null)
- map['PatientScanTypeList'] = patientScanTypeList;
- if(applicationCategory != null)
- map['ApplicationCategory'] = applicationCategory;
- if(application != null)
- map['Application'] = application;
- if(remedicalList != null)
- map['RemedicalList'] = remedicalList;
- return map;
- }
- }
- class RemedicalListResult {
- String? scanDate;
- String? recordCode;
- List<RemedicalItemList >? remedicalItemList;
- RemedicalListResult({
- this.scanDate,
- this.recordCode,
- this.remedicalItemList,
- });
- factory RemedicalListResult.fromJson(Map<String, dynamic> map) {
- return RemedicalListResult(
- scanDate: map['ScanDate'],
- recordCode: map['RecordCode'],
- remedicalItemList: map['RemedicalItemList'] != null ? (map['RemedicalItemList'] as List).map((e)=>RemedicalItemList.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(scanDate != null)
- map['ScanDate'] = scanDate;
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(remedicalItemList != null)
- map['RemedicalItemList'] = remedicalItemList;
- return map;
- }
- }
- enum QueryDropdownListEnum {
- Org,
- }
- class QueryDropdownListReuqest extends TokenRequest{
- QueryDropdownListEnum queryType;
- String? queryValue;
- QueryDropdownListReuqest({
- this.queryType = QueryDropdownListEnum.Org,
- this.queryValue,
- String? token,
- }) : super(
- token: token,
- );
- factory QueryDropdownListReuqest.fromJson(Map<String, dynamic> map) {
- return QueryDropdownListReuqest(
- queryType: QueryDropdownListEnum.values.firstWhere((e) => e.index == map['QueryType']),
- queryValue: map['QueryValue'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- map['QueryType'] = queryType.index;
- if(queryValue != null)
- map['QueryValue'] = queryValue;
- return map;
- }
- }
- class RservationResult {
- String? reservationCode;
- List<DataItemDTO >? patientInfo;
- List<PatientInfoExt >? patientInfoExtList;
- String? dataSource;
- RservationResult({
- this.reservationCode,
- this.patientInfo,
- this.patientInfoExtList,
- this.dataSource,
- });
- factory RservationResult.fromJson(Map<String, dynamic> map) {
- return RservationResult(
- reservationCode: map['ReservationCode'],
- patientInfo: map['PatientInfo'] != null ? (map['PatientInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- patientInfoExtList: map['PatientInfoExtList'] != null ? (map['PatientInfoExtList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
- dataSource: map['DataSource'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(reservationCode != null)
- map['ReservationCode'] = reservationCode;
- if(patientInfo != null)
- map['PatientInfo'] = patientInfo;
- if(patientInfoExtList != null)
- map['PatientInfoExtList'] = patientInfoExtList;
- if(dataSource != null)
- map['DataSource'] = dataSource;
- return map;
- }
- }
- class QueryReservationResult {
- List<RservationResult >? reservationList;
- QueryReservationResult({
- this.reservationList,
- });
- factory QueryReservationResult.fromJson(Map<String, dynamic> map) {
- return QueryReservationResult(
- reservationList: map['ReservationList'] != null ? (map['ReservationList'] as List).map((e)=>RservationResult.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(reservationList != null)
- map['ReservationList'] = reservationList;
- return map;
- }
- }
- class QueryReservationRequest extends TokenRequest{
- DateTime? createTime;
- QueryReservationRequest({
- this.createTime,
- String? token,
- }) : super(
- token: token,
- );
- factory QueryReservationRequest.fromJson(Map<String, dynamic> map) {
- return QueryReservationRequest(
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(createTime != null)
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
- return map;
- }
- }
- class FinishExamNotifyDetail {
- String? recordCode;
- RecordStatusEnum recordStatus;
- FinishExamNotifyDetail({
- this.recordCode,
- this.recordStatus = RecordStatusEnum.NotScanned,
- });
- factory FinishExamNotifyDetail.fromJson(Map<String, dynamic> map) {
- return FinishExamNotifyDetail(
- recordCode: map['RecordCode'],
- recordStatus: RecordStatusEnum.values.firstWhere((e) => e.index == map['RecordStatus']),
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- map['RecordStatus'] = recordStatus.index;
- return map;
- }
- }
- class PushFinishExamNotifyToClientRequest {
- List<FinishExamNotifyDetail >? records;
- String? userCode;
- PushFinishExamNotifyToClientRequest({
- this.records,
- this.userCode,
- });
- factory PushFinishExamNotifyToClientRequest.fromJson(Map<String, dynamic> map) {
- return PushFinishExamNotifyToClientRequest(
- records: map['Records'] != null ? (map['Records'] as List).map((e)=>FinishExamNotifyDetail.fromJson(e as Map<String,dynamic>)).toList() : null,
- userCode: map['UserCode'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(records != null)
- map['Records'] = records;
- if(userCode != null)
- map['UserCode'] = userCode;
- return map;
- }
- }
- class DeviceFinishExamRequest extends TokenRequest{
- List<String >? records;
- DeviceFinishExamRequest({
- this.records,
- String? token,
- }) : super(
- token: token,
- );
- factory DeviceFinishExamRequest.fromJson(Map<String, dynamic> map) {
- return DeviceFinishExamRequest(
- records: map['Records'] != null ? map['Records'].cast<String>().toList() : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(records != null)
- map['Records'] = records;
- return map;
- }
- }
- class QueryExamListItemResult {
- String? examCode;
- String? patientName;
- String? age;
- List<DataItemDTO >? ageInfo;
- String? sex;
- List<String >? associatedExamCodes;
- DateTime? createTime;
- QueryExamListItemResult({
- this.examCode,
- this.patientName,
- this.age,
- this.ageInfo,
- this.sex,
- this.associatedExamCodes,
- this.createTime,
- });
- factory QueryExamListItemResult.fromJson(Map<String, dynamic> map) {
- return QueryExamListItemResult(
- examCode: map['ExamCode'],
- patientName: map['PatientName'],
- age: map['Age'],
- ageInfo: map['AgeInfo'] != null ? (map['AgeInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- sex: map['Sex'],
- associatedExamCodes: map['AssociatedExamCodes'] != null ? map['AssociatedExamCodes'].cast<String>().toList() : null,
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(examCode != null)
- map['ExamCode'] = examCode;
- if(patientName != null)
- map['PatientName'] = patientName;
- if(age != null)
- map['Age'] = age;
- if(ageInfo != null)
- map['AgeInfo'] = ageInfo;
- if(sex != null)
- map['Sex'] = sex;
- if(associatedExamCodes != null)
- map['AssociatedExamCodes'] = associatedExamCodes;
- if(createTime != null)
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
- return map;
- }
- }
- enum ExamStatusEnum {
- Wait,
- Done,
- }
- class QueryExamListRequest extends PageRequest{
- String? patientName;
- DateTime? startTime;
- DateTime? endTime;
- ExamStatusEnum examStatus;
- QueryExamListRequest({
- this.patientName,
- this.startTime,
- this.endTime,
- this.examStatus = ExamStatusEnum.Wait,
- int pageIndex = 0,
- int pageSize = 0,
- String? token,
- }) : super(
- pageIndex: pageIndex,
- pageSize: pageSize,
- token: token,
- );
- factory QueryExamListRequest.fromJson(Map<String, dynamic> map) {
- return QueryExamListRequest(
- patientName: map['PatientName'],
- startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
- endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
- examStatus: ExamStatusEnum.values.firstWhere((e) => e.index == map['ExamStatus']),
- pageIndex: map['PageIndex'],
- pageSize: map['PageSize'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(patientName != null)
- map['PatientName'] = patientName;
- if(startTime != null)
- map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
- if(endTime != null)
- map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
- map['ExamStatus'] = examStatus.index;
- return map;
- }
- }
- class QueryExamInfoResult {
- DateTime? createTime;
- String? deptName;
- String? patientName;
- String? patientAge;
- List<DataItemDTO >? patientAgeInfo;
- String? patientSex;
- List<PatientInfoExt >? patientInfoExtList;
- List<String >? associatedExamCodes;
- RecordStatusEnum examStatus;
- QueryExamInfoResult({
- this.createTime,
- this.deptName,
- this.patientName,
- this.patientAge,
- this.patientAgeInfo,
- this.patientSex,
- this.patientInfoExtList,
- this.associatedExamCodes,
- this.examStatus = RecordStatusEnum.NotScanned,
- });
- factory QueryExamInfoResult.fromJson(Map<String, dynamic> map) {
- return QueryExamInfoResult(
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- deptName: map['DeptName'],
- patientName: map['PatientName'],
- patientAge: map['PatientAge'],
- patientAgeInfo: map['PatientAgeInfo'] != null ? (map['PatientAgeInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- patientSex: map['PatientSex'],
- patientInfoExtList: map['PatientInfoExtList'] != null ? (map['PatientInfoExtList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
- associatedExamCodes: map['AssociatedExamCodes'] != null ? map['AssociatedExamCodes'].cast<String>().toList() : null,
- examStatus: RecordStatusEnum.values.firstWhere((e) => e.index == map['ExamStatus']),
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(createTime != null)
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
- if(deptName != null)
- map['DeptName'] = deptName;
- if(patientName != null)
- map['PatientName'] = patientName;
- if(patientAge != null)
- map['PatientAge'] = patientAge;
- if(patientAgeInfo != null)
- map['PatientAgeInfo'] = patientAgeInfo;
- if(patientSex != null)
- map['PatientSex'] = patientSex;
- if(patientInfoExtList != null)
- map['PatientInfoExtList'] = patientInfoExtList;
- if(associatedExamCodes != null)
- map['AssociatedExamCodes'] = associatedExamCodes;
- map['ExamStatus'] = examStatus.index;
- return map;
- }
- }
- class QueryExamInfoRequest extends TokenRequest{
- String? examCode;
- QueryExamInfoRequest({
- this.examCode,
- String? token,
- }) : super(
- token: token,
- );
- factory QueryExamInfoRequest.fromJson(Map<String, dynamic> map) {
- return QueryExamInfoRequest(
- examCode: map['ExamCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(examCode != null)
- map['ExamCode'] = examCode;
- return map;
- }
- }
- class OutputItemMetaDTO {
- String? name;
- String? description;
- int unit;
- bool? isWorking;
- OutputItemMetaDTO({
- this.name,
- this.description,
- this.unit = 0,
- this.isWorking,
- });
- factory OutputItemMetaDTO.fromJson(Map<String, dynamic> map) {
- return OutputItemMetaDTO(
- name: map['Name'],
- description: map['Description'],
- unit: map['Unit'],
- isWorking: map['IsWorking'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(name != null)
- map['Name'] = name;
- if(description != null)
- map['Description'] = description;
- map['Unit'] = unit;
- if(isWorking != null)
- map['IsWorking'] = isWorking;
- return map;
- }
- }
- class CalculatorMetaDTO {
- List<OutputItemMetaDTO >? availableOutputs;
- CalculatorMetaDTO({
- this.availableOutputs,
- });
- factory CalculatorMetaDTO.fromJson(Map<String, dynamic> map) {
- return CalculatorMetaDTO(
- availableOutputs: map['AvailableOutputs'] != null ? (map['AvailableOutputs'] as List).map((e)=>OutputItemMetaDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(availableOutputs != null)
- map['AvailableOutputs'] = availableOutputs;
- return map;
- }
- }
- class ChildItemMetaDTO {
- String? name;
- String? description;
- bool isWorking;
- List<ChildItemMetaDTO >? childItems;
- CalculatorMetaDTO? calculator;
- String? measureTypeName;
- ChildItemMetaDTO({
- this.name,
- this.description,
- this.isWorking = false,
- this.childItems,
- this.calculator,
- this.measureTypeName,
- });
- factory ChildItemMetaDTO.fromJson(Map<String, dynamic> map) {
- return ChildItemMetaDTO(
- name: map['Name'],
- description: map['Description'],
- isWorking: map['IsWorking'],
- childItems: map['ChildItems'] != null ? (map['ChildItems'] as List).map((e)=>ChildItemMetaDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- calculator: map['Calculator'] != null ? CalculatorMetaDTO.fromJson(map['Calculator']) : null,
- measureTypeName: map['MeasureTypeName'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(name != null)
- map['Name'] = name;
- if(description != null)
- map['Description'] = description;
- map['IsWorking'] = isWorking;
- if(childItems != null)
- map['ChildItems'] = childItems;
- if(calculator != null)
- map['Calculator'] = calculator;
- if(measureTypeName != null)
- map['MeasureTypeName'] = measureTypeName;
- return map;
- }
- }
- class ItemMetaDTO {
- String? name;
- String? description;
- String? briefAnnotation;
- String? measureTypeName;
- List<String >? categories;
- CalculatorMetaDTO? calculator;
- List<ChildItemMetaDTO >? multiMethodItems;
- List<ChildItemMetaDTO >? methodChildItems;
- ItemMetaDTO({
- this.name,
- this.description,
- this.briefAnnotation,
- this.measureTypeName,
- this.categories,
- this.calculator,
- this.multiMethodItems,
- this.methodChildItems,
- });
- factory ItemMetaDTO.fromJson(Map<String, dynamic> map) {
- return ItemMetaDTO(
- name: map['Name'],
- description: map['Description'],
- briefAnnotation: map['BriefAnnotation'],
- measureTypeName: map['MeasureTypeName'],
- categories: map['Categories'] != null ? map['Categories'].cast<String>().toList() : null,
- calculator: map['Calculator'] != null ? CalculatorMetaDTO.fromJson(map['Calculator']) : null,
- multiMethodItems: map['MultiMethodItems'] != null ? (map['MultiMethodItems'] as List).map((e)=>ChildItemMetaDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- methodChildItems: map['MethodChildItems'] != null ? (map['MethodChildItems'] as List).map((e)=>ChildItemMetaDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(name != null)
- map['Name'] = name;
- if(description != null)
- map['Description'] = description;
- if(briefAnnotation != null)
- map['BriefAnnotation'] = briefAnnotation;
- if(measureTypeName != null)
- map['MeasureTypeName'] = measureTypeName;
- if(categories != null)
- map['Categories'] = categories;
- if(calculator != null)
- map['Calculator'] = calculator;
- if(multiMethodItems != null)
- map['MultiMethodItems'] = multiMethodItems;
- if(methodChildItems != null)
- map['MethodChildItems'] = methodChildItems;
- return map;
- }
- }
- class MeasureFolderDTO {
- String? name;
- List<String >? workingItemNames;
- List<ItemMetaDTO >? availableItems;
- MeasureFolderDTO({
- this.name,
- this.workingItemNames,
- this.availableItems,
- });
- factory MeasureFolderDTO.fromJson(Map<String, dynamic> map) {
- return MeasureFolderDTO(
- name: map['Name'],
- workingItemNames: map['WorkingItemNames'] != null ? map['WorkingItemNames'].cast<String>().toList() : null,
- availableItems: map['AvailableItems'] != null ? (map['AvailableItems'] as List).map((e)=>ItemMetaDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(name != null)
- map['Name'] = name;
- if(workingItemNames != null)
- map['WorkingItemNames'] = workingItemNames;
- if(availableItems != null)
- map['AvailableItems'] = availableItems;
- return map;
- }
- }
- class MeasureGroupDTO {
- String? name;
- String? description;
- List<MeasureFolderDTO >? availableFolders;
- MeasureGroupDTO({
- this.name,
- this.description,
- this.availableFolders,
- });
- factory MeasureGroupDTO.fromJson(Map<String, dynamic> map) {
- return MeasureGroupDTO(
- name: map['Name'],
- description: map['Description'],
- availableFolders: map['AvailableFolders'] != null ? (map['AvailableFolders'] as List).map((e)=>MeasureFolderDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(name != null)
- map['Name'] = name;
- if(description != null)
- map['Description'] = description;
- if(availableFolders != null)
- map['AvailableFolders'] = availableFolders;
- return map;
- }
- }
- class MeasureModeDTO {
- String? modeName;
- List<MeasureGroupDTO >? availableGroups;
- MeasureModeDTO({
- this.modeName,
- this.availableGroups,
- });
- factory MeasureModeDTO.fromJson(Map<String, dynamic> map) {
- return MeasureModeDTO(
- modeName: map['ModeName'],
- availableGroups: map['AvailableGroups'] != null ? (map['AvailableGroups'] as List).map((e)=>MeasureGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(modeName != null)
- map['ModeName'] = modeName;
- if(availableGroups != null)
- map['AvailableGroups'] = availableGroups;
- return map;
- }
- }
- class MeasureApplicationDTO {
- String? version;
- String? id;
- String? description;
- List<MeasureModeDTO >? availableModes;
- MeasureApplicationDTO({
- this.version,
- this.id,
- this.description,
- this.availableModes,
- });
- factory MeasureApplicationDTO.fromJson(Map<String, dynamic> map) {
- return MeasureApplicationDTO(
- version: map['Version'],
- id: map['Id'],
- description: map['Description'],
- availableModes: map['AvailableModes'] != null ? (map['AvailableModes'] as List).map((e)=>MeasureModeDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(version != null)
- map['Version'] = version;
- if(id != null)
- map['Id'] = id;
- if(description != null)
- map['Description'] = description;
- if(availableModes != null)
- map['AvailableModes'] = availableModes;
- return map;
- }
- }
- class GetMeasureApplicationRequest extends TokenRequest{
- String? applicationName;
- String? categoryName;
- List<String >? measureModes;
- GetMeasureApplicationRequest({
- this.applicationName,
- this.categoryName,
- this.measureModes,
- String? token,
- }) : super(
- token: token,
- );
- factory GetMeasureApplicationRequest.fromJson(Map<String, dynamic> map) {
- return GetMeasureApplicationRequest(
- applicationName: map['ApplicationName'],
- categoryName: map['CategoryName'],
- measureModes: map['MeasureModes'] != null ? map['MeasureModes'].cast<String>().toList() : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(applicationName != null)
- map['ApplicationName'] = applicationName;
- if(categoryName != null)
- map['CategoryName'] = categoryName;
- if(measureModes != null)
- map['MeasureModes'] = measureModes;
- return map;
- }
- }
- class CommentItemDTO {
- String? text;
- CommentItemDTO({
- this.text,
- });
- factory CommentItemDTO.fromJson(Map<String, dynamic> map) {
- return CommentItemDTO(
- text: map['Text'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(text != null)
- map['Text'] = text;
- return map;
- }
- }
- class CommentItemResultDTO {
- String? version;
- List<CommentItemDTO >? commentItems;
- CommentItemResultDTO({
- this.version,
- this.commentItems,
- });
- factory CommentItemResultDTO.fromJson(Map<String, dynamic> map) {
- return CommentItemResultDTO(
- version: map['Version'],
- commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(version != null)
- map['Version'] = version;
- if(commentItems != null)
- map['CommentItems'] = commentItems;
- return map;
- }
- }
- class GetCommentsByApplicationRequest extends TokenRequest{
- String? languageCode;
- String? applicationName;
- String? categoryName;
- GetCommentsByApplicationRequest({
- this.languageCode,
- this.applicationName,
- this.categoryName,
- String? token,
- }) : super(
- token: token,
- );
- factory GetCommentsByApplicationRequest.fromJson(Map<String, dynamic> map) {
- return GetCommentsByApplicationRequest(
- languageCode: map['LanguageCode'],
- applicationName: map['ApplicationName'],
- categoryName: map['CategoryName'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(languageCode != null)
- map['LanguageCode'] = languageCode;
- if(applicationName != null)
- map['ApplicationName'] = applicationName;
- if(categoryName != null)
- map['CategoryName'] = categoryName;
- return map;
- }
- }
- class PresetCommentItemDTO {
- List<String >? categoryList;
- String? text;
- PresetCommentItemDTO({
- this.categoryList,
- this.text,
- });
- factory PresetCommentItemDTO.fromJson(Map<String, dynamic> map) {
- return PresetCommentItemDTO(
- categoryList: map['CategoryList'] != null ? map['CategoryList'].cast<String>().toList() : null,
- text: map['Text'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(categoryList != null)
- map['CategoryList'] = categoryList;
- if(text != null)
- map['Text'] = text;
- return map;
- }
- }
- class PresetCommentItemResultDTO {
- String? version;
- List<PresetCommentItemDTO >? presetCommentItems;
- PresetCommentItemResultDTO({
- this.version,
- this.presetCommentItems,
- });
- factory PresetCommentItemResultDTO.fromJson(Map<String, dynamic> map) {
- return PresetCommentItemResultDTO(
- version: map['Version'],
- presetCommentItems: map['PresetCommentItems'] != null ? (map['PresetCommentItems'] as List).map((e)=>PresetCommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(version != null)
- map['Version'] = version;
- if(presetCommentItems != null)
- map['PresetCommentItems'] = presetCommentItems;
- return map;
- }
- }
- class GetPresetCommentsRequest extends TokenRequest{
- String? languageCode;
- GetPresetCommentsRequest({
- this.languageCode,
- String? token,
- }) : super(
- token: token,
- );
- factory GetPresetCommentsRequest.fromJson(Map<String, dynamic> map) {
- return GetPresetCommentsRequest(
- languageCode: map['LanguageCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(languageCode != null)
- map['LanguageCode'] = languageCode;
- return map;
- }
- }
- class GetReportElementByLanguageRequest extends TokenRequest{
- String? reportDatasJosn;
- String? language;
- GetReportElementByLanguageRequest({
- this.reportDatasJosn,
- this.language,
- String? token,
- }) : super(
- token: token,
- );
- factory GetReportElementByLanguageRequest.fromJson(Map<String, dynamic> map) {
- return GetReportElementByLanguageRequest(
- reportDatasJosn: map['ReportDatasJosn'],
- language: map['Language'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(reportDatasJosn != null)
- map['ReportDatasJosn'] = reportDatasJosn;
- if(language != null)
- map['Language'] = language;
- return map;
- }
- }
- class UpdateCommentItemDTO {
- String? oldText;
- String? newText;
- UpdateCommentItemDTO({
- this.oldText,
- this.newText,
- });
- factory UpdateCommentItemDTO.fromJson(Map<String, dynamic> map) {
- return UpdateCommentItemDTO(
- oldText: map['OldText'],
- newText: map['NewText'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(oldText != null)
- map['OldText'] = oldText;
- if(newText != null)
- map['NewText'] = newText;
- return map;
- }
- }
- class SaveUserDefinedCommentsRequest extends TokenRequest{
- String? version;
- String? languageCode;
- String? applicationName;
- String? categoryName;
- List<CommentItemDTO >? addCommentItems;
- List<CommentItemDTO >? deletedCommentItems;
- List<UpdateCommentItemDTO >? updateCommentItems;
- SaveUserDefinedCommentsRequest({
- this.version,
- this.languageCode,
- this.applicationName,
- this.categoryName,
- this.addCommentItems,
- this.deletedCommentItems,
- this.updateCommentItems,
- String? token,
- }) : super(
- token: token,
- );
- factory SaveUserDefinedCommentsRequest.fromJson(Map<String, dynamic> map) {
- return SaveUserDefinedCommentsRequest(
- version: map['Version'],
- languageCode: map['LanguageCode'],
- applicationName: map['ApplicationName'],
- categoryName: map['CategoryName'],
- addCommentItems: map['AddCommentItems'] != null ? (map['AddCommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- deletedCommentItems: map['DeletedCommentItems'] != null ? (map['DeletedCommentItems'] as List).map((e)=>CommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- updateCommentItems: map['UpdateCommentItems'] != null ? (map['UpdateCommentItems'] as List).map((e)=>UpdateCommentItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(version != null)
- map['Version'] = version;
- if(languageCode != null)
- map['LanguageCode'] = languageCode;
- if(applicationName != null)
- map['ApplicationName'] = applicationName;
- if(categoryName != null)
- map['CategoryName'] = categoryName;
- if(addCommentItems != null)
- map['AddCommentItems'] = addCommentItems;
- if(deletedCommentItems != null)
- map['DeletedCommentItems'] = deletedCommentItems;
- if(updateCommentItems != null)
- map['UpdateCommentItems'] = updateCommentItems;
- return map;
- }
- }
- class ResetUserCommentsRequest extends TokenRequest{
- bool isAllReset;
- String? applicationName;
- String? categoryName;
- ResetUserCommentsRequest({
- this.isAllReset = false,
- this.applicationName,
- this.categoryName,
- String? token,
- }) : super(
- token: token,
- );
- factory ResetUserCommentsRequest.fromJson(Map<String, dynamic> map) {
- return ResetUserCommentsRequest(
- isAllReset: map['IsAllReset'],
- applicationName: map['ApplicationName'],
- categoryName: map['CategoryName'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- map['IsAllReset'] = isAllReset;
- if(applicationName != null)
- map['ApplicationName'] = applicationName;
- if(categoryName != null)
- map['CategoryName'] = categoryName;
- return map;
- }
- }
- class UserDefinedItemMetaDTO {
- String? name;
- String? workingMethodItem;
- UserDefinedItemMetaDTO({
- this.name,
- this.workingMethodItem,
- });
- factory UserDefinedItemMetaDTO.fromJson(Map<String, dynamic> map) {
- return UserDefinedItemMetaDTO(
- name: map['Name'],
- workingMethodItem: map['WorkingMethodItem'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(name != null)
- map['Name'] = name;
- if(workingMethodItem != null)
- map['WorkingMethodItem'] = workingMethodItem;
- return map;
- }
- }
- class UserDefinedMeasureFolderDTO {
- String? name;
- List<String >? workingItemNames;
- String? defaultItem;
- List<UserDefinedItemMetaDTO >? multiMethodItemMetas;
- UserDefinedMeasureFolderDTO({
- this.name,
- this.workingItemNames,
- this.defaultItem,
- this.multiMethodItemMetas,
- });
- factory UserDefinedMeasureFolderDTO.fromJson(Map<String, dynamic> map) {
- return UserDefinedMeasureFolderDTO(
- name: map['Name'],
- workingItemNames: map['WorkingItemNames'] != null ? map['WorkingItemNames'].cast<String>().toList() : null,
- defaultItem: map['DefaultItem'],
- multiMethodItemMetas: map['MultiMethodItemMetas'] != null ? (map['MultiMethodItemMetas'] as List).map((e)=>UserDefinedItemMetaDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(name != null)
- map['Name'] = name;
- if(workingItemNames != null)
- map['WorkingItemNames'] = workingItemNames;
- if(defaultItem != null)
- map['DefaultItem'] = defaultItem;
- if(multiMethodItemMetas != null)
- map['MultiMethodItemMetas'] = multiMethodItemMetas;
- return map;
- }
- }
- class UserDefinedMeasureGroupDTO {
- String? name;
- List<UserDefinedMeasureFolderDTO >? folders;
- UserDefinedMeasureGroupDTO({
- this.name,
- this.folders,
- });
- factory UserDefinedMeasureGroupDTO.fromJson(Map<String, dynamic> map) {
- return UserDefinedMeasureGroupDTO(
- name: map['Name'],
- folders: map['Folders'] != null ? (map['Folders'] as List).map((e)=>UserDefinedMeasureFolderDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(name != null)
- map['Name'] = name;
- if(folders != null)
- map['Folders'] = folders;
- return map;
- }
- }
- class UserDefinedMeasureModeDTO {
- String? modeName;
- List<UserDefinedMeasureGroupDTO >? workingGroups;
- UserDefinedMeasureModeDTO({
- this.modeName,
- this.workingGroups,
- });
- factory UserDefinedMeasureModeDTO.fromJson(Map<String, dynamic> map) {
- return UserDefinedMeasureModeDTO(
- modeName: map['ModeName'],
- workingGroups: map['WorkingGroups'] != null ? (map['WorkingGroups'] as List).map((e)=>UserDefinedMeasureGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(modeName != null)
- map['ModeName'] = modeName;
- if(workingGroups != null)
- map['WorkingGroups'] = workingGroups;
- return map;
- }
- }
- class SaveUserDefinedMeasureApplicationRequest extends TokenRequest{
- String? version;
- String? applicationName;
- String? categoryName;
- UserDefinedMeasureModeDTO? workingMode;
- SaveUserDefinedMeasureApplicationRequest({
- this.version,
- this.applicationName,
- this.categoryName,
- this.workingMode,
- String? token,
- }) : super(
- token: token,
- );
- factory SaveUserDefinedMeasureApplicationRequest.fromJson(Map<String, dynamic> map) {
- return SaveUserDefinedMeasureApplicationRequest(
- version: map['Version'],
- applicationName: map['ApplicationName'],
- categoryName: map['CategoryName'],
- workingMode: map['WorkingMode'] != null ? UserDefinedMeasureModeDTO.fromJson(map['WorkingMode']) : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(version != null)
- map['Version'] = version;
- if(applicationName != null)
- map['ApplicationName'] = applicationName;
- if(categoryName != null)
- map['CategoryName'] = categoryName;
- if(workingMode != null)
- map['WorkingMode'] = workingMode;
- return map;
- }
- }
- enum CursorTypeEnum {
- CursorType1Icon,
- CursorType2Icon,
- CursorType3Icon,
- CursorType4Icon,
- CursorType5Icon,
- }
- class MeasureSystemSettingDTO {
- String? version;
- CursorTypeEnum cursorType;
- int cursorSize;
- int shapeCursorSize;
- String? cursorColor;
- bool showResultWindow;
- int showResultLocation;
- int fontSize;
- bool showCursorLine;
- bool holdMeasureLine;
- bool showDepthGuideline;
- bool showBriefAnnotation;
- String? minCursorDistance;
- String? autoSnapDistance;
- int annotationFontSize;
- bool showProtocolInWorkSheet;
- bool showAnnotation;
- MeasureSystemSettingDTO({
- this.version,
- this.cursorType = CursorTypeEnum.CursorType1Icon,
- this.cursorSize = 0,
- this.shapeCursorSize = 0,
- this.cursorColor,
- this.showResultWindow = false,
- this.showResultLocation = 0,
- this.fontSize = 0,
- this.showCursorLine = false,
- this.holdMeasureLine = false,
- this.showDepthGuideline = false,
- this.showBriefAnnotation = false,
- this.minCursorDistance,
- this.autoSnapDistance,
- this.annotationFontSize = 0,
- this.showProtocolInWorkSheet = false,
- this.showAnnotation = false,
- });
- factory MeasureSystemSettingDTO.fromJson(Map<String, dynamic> map) {
- return MeasureSystemSettingDTO(
- version: map['Version'],
- cursorType: CursorTypeEnum.values.firstWhere((e) => e.index == map['CursorType']),
- cursorSize: map['CursorSize'],
- shapeCursorSize: map['ShapeCursorSize'],
- cursorColor: map['CursorColor'],
- showResultWindow: map['ShowResultWindow'],
- showResultLocation: map['ShowResultLocation'],
- fontSize: map['FontSize'],
- showCursorLine: map['ShowCursorLine'],
- holdMeasureLine: map['HoldMeasureLine'],
- showDepthGuideline: map['ShowDepthGuideline'],
- showBriefAnnotation: map['ShowBriefAnnotation'],
- minCursorDistance: map['MinCursorDistance'],
- autoSnapDistance: map['AutoSnapDistance'],
- annotationFontSize: map['AnnotationFontSize'],
- showProtocolInWorkSheet: map['ShowProtocolInWorkSheet'],
- showAnnotation: map['ShowAnnotation'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(version != null)
- map['Version'] = version;
- map['CursorType'] = cursorType.index;
- map['CursorSize'] = cursorSize;
- map['ShapeCursorSize'] = shapeCursorSize;
- if(cursorColor != null)
- map['CursorColor'] = cursorColor;
- map['ShowResultWindow'] = showResultWindow;
- map['ShowResultLocation'] = showResultLocation;
- map['FontSize'] = fontSize;
- map['ShowCursorLine'] = showCursorLine;
- map['HoldMeasureLine'] = holdMeasureLine;
- map['ShowDepthGuideline'] = showDepthGuideline;
- map['ShowBriefAnnotation'] = showBriefAnnotation;
- if(minCursorDistance != null)
- map['MinCursorDistance'] = minCursorDistance;
- if(autoSnapDistance != null)
- map['AutoSnapDistance'] = autoSnapDistance;
- map['AnnotationFontSize'] = annotationFontSize;
- map['ShowProtocolInWorkSheet'] = showProtocolInWorkSheet;
- map['ShowAnnotation'] = showAnnotation;
- return map;
- }
- }
- class GetMeasureSystemSettingRequest extends TokenRequest{
- GetMeasureSystemSettingRequest({
- String? token,
- }) : super(
- token: token,
- );
- factory GetMeasureSystemSettingRequest.fromJson(Map<String, dynamic> map) {
- return GetMeasureSystemSettingRequest(
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- return map;
- }
- }
- class SaveMeasureSystemSettingRequest extends TokenRequest{
- MeasureSystemSettingDTO? systemSetting;
- SaveMeasureSystemSettingRequest({
- this.systemSetting,
- String? token,
- }) : super(
- token: token,
- );
- factory SaveMeasureSystemSettingRequest.fromJson(Map<String, dynamic> map) {
- return SaveMeasureSystemSettingRequest(
- systemSetting: map['SystemSetting'] != null ? MeasureSystemSettingDTO.fromJson(map['SystemSetting']) : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(systemSetting != null)
- map['SystemSetting'] = systemSetting;
- return map;
- }
- }
- enum RecordCreateTypeEnum {
- Reservation,
- Normal,
- }
- class RecordInfoDTO extends BaseDTO{
- String? recordCode;
- String? patientCode;
- String? deviceCode;
- RecordStatusEnum recordStatus;
- String? creatorCode;
- String? tags;
- RecordCreateTypeEnum createType;
- List<DataItemDTO >? patientInfo;
- List<PatientInfoExt >? patientInfoExtList;
- String? devicePatientID;
- String? patientType;
- List<String >? readUsers;
- String? rootOrganizationCode;
- String? organizationCode;
- List<String >? associatedExamCodes;
- DiagnosisStatusEnum diagnosisStatus;
- List<DiagnosisInfoDTO >? diagnosisInfos;
- bool isCollecting;
- DateTime? startCollectingTime;
- RecordInfoDTO({
- this.recordCode,
- this.patientCode,
- this.deviceCode,
- this.recordStatus = RecordStatusEnum.NotScanned,
- this.creatorCode,
- this.tags,
- this.createType = RecordCreateTypeEnum.Reservation,
- this.patientInfo,
- this.patientInfoExtList,
- this.devicePatientID,
- this.patientType,
- this.readUsers,
- this.rootOrganizationCode,
- this.organizationCode,
- this.associatedExamCodes,
- this.diagnosisStatus = DiagnosisStatusEnum.NotRequired,
- this.diagnosisInfos,
- this.isCollecting = false,
- this.startCollectingTime,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory RecordInfoDTO.fromJson(Map<String, dynamic> map) {
- return RecordInfoDTO(
- recordCode: map['RecordCode'],
- patientCode: map['PatientCode'],
- deviceCode: map['DeviceCode'],
- recordStatus: RecordStatusEnum.values.firstWhere((e) => e.index == map['RecordStatus']),
- creatorCode: map['CreatorCode'],
- tags: map['Tags'],
- createType: RecordCreateTypeEnum.values.firstWhere((e) => e.index == map['CreateType']),
- patientInfo: map['PatientInfo'] != null ? (map['PatientInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- patientInfoExtList: map['PatientInfoExtList'] != null ? (map['PatientInfoExtList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
- devicePatientID: map['DevicePatientID'],
- patientType: map['PatientType'],
- readUsers: map['ReadUsers'] != null ? map['ReadUsers'].cast<String>().toList() : null,
- rootOrganizationCode: map['RootOrganizationCode'],
- organizationCode: map['OrganizationCode'],
- associatedExamCodes: map['AssociatedExamCodes'] != null ? map['AssociatedExamCodes'].cast<String>().toList() : null,
- diagnosisStatus: DiagnosisStatusEnum.values.firstWhere((e) => e.index == map['DiagnosisStatus']),
- diagnosisInfos: map['DiagnosisInfos'] != null ? (map['DiagnosisInfos'] as List).map((e)=>DiagnosisInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- isCollecting: map['IsCollecting'],
- startCollectingTime: map['StartCollectingTime'] != null ? DateTime.parse(map['StartCollectingTime']) : null,
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(deviceCode != null)
- map['DeviceCode'] = deviceCode;
- map['RecordStatus'] = recordStatus.index;
- if(creatorCode != null)
- map['CreatorCode'] = creatorCode;
- if(tags != null)
- map['Tags'] = tags;
- map['CreateType'] = createType.index;
- if(patientInfo != null)
- map['PatientInfo'] = patientInfo;
- if(patientInfoExtList != null)
- map['PatientInfoExtList'] = patientInfoExtList;
- if(devicePatientID != null)
- map['DevicePatientID'] = devicePatientID;
- if(patientType != null)
- map['PatientType'] = patientType;
- if(readUsers != null)
- map['ReadUsers'] = readUsers;
- if(rootOrganizationCode != null)
- map['RootOrganizationCode'] = rootOrganizationCode;
- if(organizationCode != null)
- map['OrganizationCode'] = organizationCode;
- if(associatedExamCodes != null)
- map['AssociatedExamCodes'] = associatedExamCodes;
- map['DiagnosisStatus'] = diagnosisStatus.index;
- if(diagnosisInfos != null)
- map['DiagnosisInfos'] = diagnosisInfos;
- map['IsCollecting'] = isCollecting;
- if(startCollectingTime != null)
- map['StartCollectingTime'] = JsonRpcUtils.dateFormat(startCollectingTime!);
- return map;
- }
- }
- class RecordData {
- String? patientName;
- String? patientCode;
- List<RecordInfoDTO >? recordItemList;
- RecordData({
- this.patientName,
- this.patientCode,
- this.recordItemList,
- });
- factory RecordData.fromJson(Map<String, dynamic> map) {
- return RecordData(
- patientName: map['PatientName'],
- patientCode: map['PatientCode'],
- recordItemList: map['RecordItemList'] != null ? (map['RecordItemList'] as List).map((e)=>RecordInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(patientName != null)
- map['PatientName'] = patientName;
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(recordItemList != null)
- map['RecordItemList'] = recordItemList;
- return map;
- }
- }
- class ReportItem {
- String? recordCode;
- String? fileToken;
- ReportItem({
- this.recordCode,
- this.fileToken,
- });
- factory ReportItem.fromJson(Map<String, dynamic> map) {
- return ReportItem(
- recordCode: map['RecordCode'],
- fileToken: map['FileToken'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(fileToken != null)
- map['FileToken'] = fileToken;
- return map;
- }
- }
- class ReportData {
- String? patientName;
- String? patientCode;
- List<ReportItem >? reportItemList;
- ReportData({
- this.patientName,
- this.patientCode,
- this.reportItemList,
- });
- factory ReportData.fromJson(Map<String, dynamic> map) {
- return ReportData(
- patientName: map['PatientName'],
- patientCode: map['PatientCode'],
- reportItemList: map['ReportItemList'] != null ? (map['ReportItemList'] as List).map((e)=>ReportItem.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(patientName != null)
- map['PatientName'] = patientName;
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(reportItemList != null)
- map['ReportItemList'] = reportItemList;
- return map;
- }
- }
- class RemedicalItem {
- String? recordCode;
- String? fileToken;
- RemedicalFileDataTypeEnum fileDataType;
- RemedicalItem({
- this.recordCode,
- this.fileToken,
- this.fileDataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
- });
- factory RemedicalItem.fromJson(Map<String, dynamic> map) {
- return RemedicalItem(
- recordCode: map['RecordCode'],
- fileToken: map['FileToken'],
- fileDataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['FileDataType']),
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(fileToken != null)
- map['FileToken'] = fileToken;
- map['FileDataType'] = fileDataType.index;
- return map;
- }
- }
- class RemedicalData {
- String? patientName;
- String? patientCode;
- List<RemedicalItem >? remedicalItemList;
- RemedicalData({
- this.patientName,
- this.patientCode,
- this.remedicalItemList,
- });
- factory RemedicalData.fromJson(Map<String, dynamic> map) {
- return RemedicalData(
- patientName: map['PatientName'],
- patientCode: map['PatientCode'],
- remedicalItemList: map['RemedicalItemList'] != null ? (map['RemedicalItemList'] as List).map((e)=>RemedicalItem.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(patientName != null)
- map['PatientName'] = patientName;
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(remedicalItemList != null)
- map['RemedicalItemList'] = remedicalItemList;
- return map;
- }
- }
- class ExportRemedicalDataResult {
- List<RecordData >? recordList;
- List<ReportData >? reportList;
- List<RemedicalData >? remedicalList;
- ExportRemedicalDataResult({
- this.recordList,
- this.reportList,
- this.remedicalList,
- });
- factory ExportRemedicalDataResult.fromJson(Map<String, dynamic> map) {
- return ExportRemedicalDataResult(
- recordList: map['RecordList'] != null ? (map['RecordList'] as List).map((e)=>RecordData.fromJson(e as Map<String,dynamic>)).toList() : null,
- reportList: map['ReportList'] != null ? (map['ReportList'] as List).map((e)=>ReportData.fromJson(e as Map<String,dynamic>)).toList() : null,
- remedicalList: map['RemedicalList'] != null ? (map['RemedicalList'] as List).map((e)=>RemedicalData.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(recordList != null)
- map['RecordList'] = recordList;
- if(reportList != null)
- map['ReportList'] = reportList;
- if(remedicalList != null)
- map['RemedicalList'] = remedicalList;
- return map;
- }
- }
- class ExportRemedicalDataRequest extends TokenRequest{
- DateTime? startTime;
- DateTime? endTime;
- bool isExportReport;
- bool isExportRecord;
- bool isExportRemedicalData;
- List<String >? patientCodes;
- ExportRemedicalDataRequest({
- this.startTime,
- this.endTime,
- this.isExportReport = false,
- this.isExportRecord = false,
- this.isExportRemedicalData = false,
- this.patientCodes,
- String? token,
- }) : super(
- token: token,
- );
- factory ExportRemedicalDataRequest.fromJson(Map<String, dynamic> map) {
- return ExportRemedicalDataRequest(
- startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
- endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
- isExportReport: map['IsExportReport'],
- isExportRecord: map['IsExportRecord'],
- isExportRemedicalData: map['IsExportRemedicalData'],
- patientCodes: map['PatientCodes'] != null ? map['PatientCodes'].cast<String>().toList() : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(startTime != null)
- map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
- if(endTime != null)
- map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
- map['IsExportReport'] = isExportReport;
- map['IsExportRecord'] = isExportRecord;
- map['IsExportRemedicalData'] = isExportRemedicalData;
- if(patientCodes != null)
- map['PatientCodes'] = patientCodes;
- return map;
- }
- }
- class FindCacheByCodeRequest extends TokenRequest{
- String? cacheCode;
- FindCacheByCodeRequest({
- this.cacheCode,
- String? token,
- }) : super(
- token: token,
- );
- factory FindCacheByCodeRequest.fromJson(Map<String, dynamic> map) {
- return FindCacheByCodeRequest(
- cacheCode: map['CacheCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(cacheCode != null)
- map['CacheCode'] = cacheCode;
- return map;
- }
- }
- class CreateReferralRecordRequest extends TokenRequest{
- String? patientCode;
- String? subjectMatter;
- String? referralOrganizationCode;
- String? referralUserCode;
- String? referralRecordCode;
- CreateReferralRecordRequest({
- this.patientCode,
- this.subjectMatter,
- this.referralOrganizationCode,
- this.referralUserCode,
- this.referralRecordCode,
- String? token,
- }) : super(
- token: token,
- );
- factory CreateReferralRecordRequest.fromJson(Map<String, dynamic> map) {
- return CreateReferralRecordRequest(
- patientCode: map['PatientCode'],
- subjectMatter: map['SubjectMatter'],
- referralOrganizationCode: map['ReferralOrganizationCode'],
- referralUserCode: map['ReferralUserCode'],
- referralRecordCode: map['ReferralRecordCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(subjectMatter != null)
- map['SubjectMatter'] = subjectMatter;
- if(referralOrganizationCode != null)
- map['ReferralOrganizationCode'] = referralOrganizationCode;
- if(referralUserCode != null)
- map['ReferralUserCode'] = referralUserCode;
- if(referralRecordCode != null)
- map['ReferralRecordCode'] = referralRecordCode;
- return map;
- }
- }
- class ModifyReferralRecordRequest extends TokenRequest{
- String? patientCode;
- String? subjectMatter;
- String? referralOrganizationCode;
- String? referralUserCode;
- String? referralRecordCode;
- ModifyReferralRecordRequest({
- this.patientCode,
- this.subjectMatter,
- this.referralOrganizationCode,
- this.referralUserCode,
- this.referralRecordCode,
- String? token,
- }) : super(
- token: token,
- );
- factory ModifyReferralRecordRequest.fromJson(Map<String, dynamic> map) {
- return ModifyReferralRecordRequest(
- patientCode: map['PatientCode'],
- subjectMatter: map['SubjectMatter'],
- referralOrganizationCode: map['ReferralOrganizationCode'],
- referralUserCode: map['ReferralUserCode'],
- referralRecordCode: map['ReferralRecordCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(subjectMatter != null)
- map['SubjectMatter'] = subjectMatter;
- if(referralOrganizationCode != null)
- map['ReferralOrganizationCode'] = referralOrganizationCode;
- if(referralUserCode != null)
- map['ReferralUserCode'] = referralUserCode;
- if(referralRecordCode != null)
- map['ReferralRecordCode'] = referralRecordCode;
- return map;
- }
- }
- class QueryReferralRecordPageDTO extends ClientPatientInfoBaseDTO{
- String? code;
- String? outUserName;
- String? inUserName;
- QueryReferralRecordPageDTO({
- this.code,
- this.outUserName,
- this.inUserName,
- String? patientCode,
- bool isValid = false,
- List<DataItemDTO >? patientData,
- int unReadRecordCount = 0,
- bool isReferral = false,
- List<String >? devicePatientIDs,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- patientCode: patientCode,
- isValid: isValid,
- patientData: patientData,
- unReadRecordCount: unReadRecordCount,
- isReferral: isReferral,
- devicePatientIDs: devicePatientIDs,
- createTime: createTime,
- updateTime: updateTime,
- );
- factory QueryReferralRecordPageDTO.fromJson(Map<String, dynamic> map) {
- return QueryReferralRecordPageDTO(
- code: map['Code'],
- outUserName: map['OutUserName'],
- inUserName: map['InUserName'],
- patientCode: map['PatientCode'],
- isValid: map['IsValid'],
- patientData: map['PatientData'] != null ? (map['PatientData'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- unReadRecordCount: map['UnReadRecordCount'],
- isReferral: map['IsReferral'],
- devicePatientIDs: map['DevicePatientIDs'] != null ? map['DevicePatientIDs'].cast<String>().toList() : null,
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(code != null)
- map['Code'] = code;
- if(outUserName != null)
- map['OutUserName'] = outUserName;
- if(inUserName != null)
- map['InUserName'] = inUserName;
- return map;
- }
- }
- class QueryReferralRecordListRequest extends PageRequest{
- String? keyWord;
- DateTime? startTime;
- DateTime? endTime;
- PatientValidStatusEnum isValid;
- QueryReferralRecordListRequest({
- this.keyWord,
- this.startTime,
- this.endTime,
- this.isValid = PatientValidStatusEnum.All,
- int pageIndex = 0,
- int pageSize = 0,
- String? token,
- }) : super(
- pageIndex: pageIndex,
- pageSize: pageSize,
- token: token,
- );
- factory QueryReferralRecordListRequest.fromJson(Map<String, dynamic> map) {
- return QueryReferralRecordListRequest(
- keyWord: map['KeyWord'],
- startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
- endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
- isValid: PatientValidStatusEnum.values.firstWhere((e) => e.index == map['IsValid']),
- pageIndex: map['PageIndex'],
- pageSize: map['PageSize'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(keyWord != null)
- map['KeyWord'] = keyWord;
- if(startTime != null)
- map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
- if(endTime != null)
- map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
- map['IsValid'] = isValid.index;
- return map;
- }
- }
- class AuditReferralRecordRequest extends TokenRequest{
- String? referralRecordCode;
- bool isReceive;
- String? rejectReason;
- AuditReferralRecordRequest({
- this.referralRecordCode,
- this.isReceive = false,
- this.rejectReason,
- String? token,
- }) : super(
- token: token,
- );
- factory AuditReferralRecordRequest.fromJson(Map<String, dynamic> map) {
- return AuditReferralRecordRequest(
- referralRecordCode: map['ReferralRecordCode'],
- isReceive: map['IsReceive'],
- rejectReason: map['RejectReason'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(referralRecordCode != null)
- map['ReferralRecordCode'] = referralRecordCode;
- map['IsReceive'] = isReceive;
- if(rejectReason != null)
- map['RejectReason'] = rejectReason;
- return map;
- }
- }
- class WithdrawReferralRecordRequest extends TokenRequest{
- String? referralRecordCode;
- WithdrawReferralRecordRequest({
- this.referralRecordCode,
- String? token,
- }) : super(
- token: token,
- );
- factory WithdrawReferralRecordRequest.fromJson(Map<String, dynamic> map) {
- return WithdrawReferralRecordRequest(
- referralRecordCode: map['ReferralRecordCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(referralRecordCode != null)
- map['ReferralRecordCode'] = referralRecordCode;
- return map;
- }
- }
- class ReferralOrganizationsQueryRequest extends TokenRequest{
- String? keyword;
- ReferralOrganizationsQueryRequest({
- this.keyword,
- String? token,
- }) : super(
- token: token,
- );
- factory ReferralOrganizationsQueryRequest.fromJson(Map<String, dynamic> map) {
- return ReferralOrganizationsQueryRequest(
- keyword: map['Keyword'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(keyword != null)
- map['Keyword'] = keyword;
- return map;
- }
- }
- class QueryReferralPatientByCodeRequest extends FindPatientByCodeRequest{
- String? referralRecordCode;
- QueryReferralPatientByCodeRequest({
- this.referralRecordCode,
- String? code,
- String? token,
- }) : super(
- code: code,
- token: token,
- );
- factory QueryReferralPatientByCodeRequest.fromJson(Map<String, dynamic> map) {
- return QueryReferralPatientByCodeRequest(
- referralRecordCode: map['ReferralRecordCode'],
- code: map['Code'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(referralRecordCode != null)
- map['ReferralRecordCode'] = referralRecordCode;
- return map;
- }
- }
- class CreateReportClass {
- String? referralCode;
- String? creatorCode;
- String? reportCode;
- CreateReportClass({
- this.referralCode,
- this.creatorCode,
- this.reportCode,
- });
- factory CreateReportClass.fromJson(Map<String, dynamic> map) {
- return CreateReportClass(
- referralCode: map['ReferralCode'],
- creatorCode: map['CreatorCode'],
- reportCode: map['ReportCode'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(referralCode != null)
- map['ReferralCode'] = referralCode;
- if(creatorCode != null)
- map['CreatorCode'] = creatorCode;
- if(reportCode != null)
- map['ReportCode'] = reportCode;
- return map;
- }
- }
- class ReferralRecordDTO extends BaseDTO{
- String? code;
- String? patientCode;
- DateTime? referralOutTime;
- String? referralOutOrganizationCode;
- String? subjectMatter;
- String? creator;
- String? referralInOrganizationCode;
- String? referralInUserCode;
- ReferralStatusEnum referralStatus;
- String? rejectReason;
- List<String >? referralCodeList;
- PatientInfoDTO? patientInfo;
- List<String >? recordCodeList;
- List<String >? reportCodeList;
- List<String >? remedicalDataCodeList;
- List<CreateReportClass >? createReportCodeList;
- ReferralRecordDTO({
- this.code,
- this.patientCode,
- this.referralOutTime,
- this.referralOutOrganizationCode,
- this.subjectMatter,
- this.creator,
- this.referralInOrganizationCode,
- this.referralInUserCode,
- this.referralStatus = ReferralStatusEnum.Wait,
- this.rejectReason,
- this.referralCodeList,
- this.patientInfo,
- this.recordCodeList,
- this.reportCodeList,
- this.remedicalDataCodeList,
- this.createReportCodeList,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory ReferralRecordDTO.fromJson(Map<String, dynamic> map) {
- return ReferralRecordDTO(
- code: map['Code'],
- patientCode: map['PatientCode'],
- referralOutTime: map['ReferralOutTime'] != null ? DateTime.parse(map['ReferralOutTime']) : null,
- referralOutOrganizationCode: map['ReferralOutOrganizationCode'],
- subjectMatter: map['SubjectMatter'],
- creator: map['Creator'],
- referralInOrganizationCode: map['ReferralInOrganizationCode'],
- referralInUserCode: map['ReferralInUserCode'],
- referralStatus: ReferralStatusEnum.values.firstWhere((e) => e.index == map['ReferralStatus']),
- rejectReason: map['RejectReason'],
- referralCodeList: map['ReferralCodeList'] != null ? map['ReferralCodeList'].cast<String>().toList() : null,
- patientInfo: map['PatientInfo'] != null ? PatientInfoDTO.fromJson(map['PatientInfo']) : null,
- recordCodeList: map['RecordCodeList'] != null ? map['RecordCodeList'].cast<String>().toList() : null,
- reportCodeList: map['ReportCodeList'] != null ? map['ReportCodeList'].cast<String>().toList() : null,
- remedicalDataCodeList: map['RemedicalDataCodeList'] != null ? map['RemedicalDataCodeList'].cast<String>().toList() : null,
- createReportCodeList: map['CreateReportCodeList'] != null ? (map['CreateReportCodeList'] as List).map((e)=>CreateReportClass.fromJson(e as Map<String,dynamic>)).toList() : null,
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(code != null)
- map['Code'] = code;
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(referralOutTime != null)
- map['ReferralOutTime'] = JsonRpcUtils.dateFormat(referralOutTime!);
- if(referralOutOrganizationCode != null)
- map['ReferralOutOrganizationCode'] = referralOutOrganizationCode;
- if(subjectMatter != null)
- map['SubjectMatter'] = subjectMatter;
- if(creator != null)
- map['Creator'] = creator;
- if(referralInOrganizationCode != null)
- map['ReferralInOrganizationCode'] = referralInOrganizationCode;
- if(referralInUserCode != null)
- map['ReferralInUserCode'] = referralInUserCode;
- map['ReferralStatus'] = referralStatus.index;
- if(rejectReason != null)
- map['RejectReason'] = rejectReason;
- if(referralCodeList != null)
- map['ReferralCodeList'] = referralCodeList;
- if(patientInfo != null)
- map['PatientInfo'] = patientInfo;
- if(recordCodeList != null)
- map['RecordCodeList'] = recordCodeList;
- if(reportCodeList != null)
- map['ReportCodeList'] = reportCodeList;
- if(remedicalDataCodeList != null)
- map['RemedicalDataCodeList'] = remedicalDataCodeList;
- if(createReportCodeList != null)
- map['CreateReportCodeList'] = createReportCodeList;
- return map;
- }
- }
- class ReferralRecordDetailDTO extends ReferralRecordDTO{
- String? referralOutOrganizationName;
- String? creatorName;
- String? referralInOrganizationName;
- String? referralInUserName;
- ReferralRecordDetailDTO({
- this.referralOutOrganizationName,
- this.creatorName,
- this.referralInOrganizationName,
- this.referralInUserName,
- String? code,
- String? patientCode,
- DateTime? referralOutTime,
- String? referralOutOrganizationCode,
- String? subjectMatter,
- String? creator,
- String? referralInOrganizationCode,
- String? referralInUserCode,
- ReferralStatusEnum referralStatus = ReferralStatusEnum.Wait,
- String? rejectReason,
- List<String >? referralCodeList,
- PatientInfoDTO? patientInfo,
- List<String >? recordCodeList,
- List<String >? reportCodeList,
- List<String >? remedicalDataCodeList,
- List<CreateReportClass >? createReportCodeList,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- code: code,
- patientCode: patientCode,
- referralOutTime: referralOutTime,
- referralOutOrganizationCode: referralOutOrganizationCode,
- subjectMatter: subjectMatter,
- creator: creator,
- referralInOrganizationCode: referralInOrganizationCode,
- referralInUserCode: referralInUserCode,
- referralStatus: referralStatus,
- rejectReason: rejectReason,
- referralCodeList: referralCodeList,
- patientInfo: patientInfo,
- recordCodeList: recordCodeList,
- reportCodeList: reportCodeList,
- remedicalDataCodeList: remedicalDataCodeList,
- createReportCodeList: createReportCodeList,
- createTime: createTime,
- updateTime: updateTime,
- );
- factory ReferralRecordDetailDTO.fromJson(Map<String, dynamic> map) {
- return ReferralRecordDetailDTO(
- referralOutOrganizationName: map['ReferralOutOrganizationName'],
- creatorName: map['CreatorName'],
- referralInOrganizationName: map['ReferralInOrganizationName'],
- referralInUserName: map['ReferralInUserName'],
- code: map['Code'],
- patientCode: map['PatientCode'],
- referralOutTime: map['ReferralOutTime'] != null ? DateTime.parse(map['ReferralOutTime']) : null,
- referralOutOrganizationCode: map['ReferralOutOrganizationCode'],
- subjectMatter: map['SubjectMatter'],
- creator: map['Creator'],
- referralInOrganizationCode: map['ReferralInOrganizationCode'],
- referralInUserCode: map['ReferralInUserCode'],
- referralStatus: ReferralStatusEnum.values.firstWhere((e) => e.index == map['ReferralStatus']),
- rejectReason: map['RejectReason'],
- referralCodeList: map['ReferralCodeList'] != null ? map['ReferralCodeList'].cast<String>().toList() : null,
- patientInfo: map['PatientInfo'] != null ? PatientInfoDTO.fromJson(map['PatientInfo']) : null,
- recordCodeList: map['RecordCodeList'] != null ? map['RecordCodeList'].cast<String>().toList() : null,
- reportCodeList: map['ReportCodeList'] != null ? map['ReportCodeList'].cast<String>().toList() : null,
- remedicalDataCodeList: map['RemedicalDataCodeList'] != null ? map['RemedicalDataCodeList'].cast<String>().toList() : null,
- createReportCodeList: map['CreateReportCodeList'] != null ? (map['CreateReportCodeList'] as List).map((e)=>CreateReportClass.fromJson(e as Map<String,dynamic>)).toList() : null,
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(referralOutOrganizationName != null)
- map['ReferralOutOrganizationName'] = referralOutOrganizationName;
- if(creatorName != null)
- map['CreatorName'] = creatorName;
- if(referralInOrganizationName != null)
- map['ReferralInOrganizationName'] = referralInOrganizationName;
- if(referralInUserName != null)
- map['ReferralInUserName'] = referralInUserName;
- return map;
- }
- }
- class FindPatientReferralRecordRequest extends TokenRequest{
- String? patientCode;
- FindPatientReferralRecordRequest({
- this.patientCode,
- String? token,
- }) : super(
- token: token,
- );
- factory FindPatientReferralRecordRequest.fromJson(Map<String, dynamic> map) {
- return FindPatientReferralRecordRequest(
- patientCode: map['PatientCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- return map;
- }
- }
- class FindReferralInRecordRequest extends TokenRequest{
- String? referralRecordCode;
- FindReferralInRecordRequest({
- this.referralRecordCode,
- String? token,
- }) : super(
- token: token,
- );
- factory FindReferralInRecordRequest.fromJson(Map<String, dynamic> map) {
- return FindReferralInRecordRequest(
- referralRecordCode: map['ReferralRecordCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(referralRecordCode != null)
- map['ReferralRecordCode'] = referralRecordCode;
- return map;
- }
- }
- class QueryReferralRecordsPageRequest extends GetRecordsPageRequest{
- String? referralRecordCode;
- QueryReferralRecordsPageRequest({
- this.referralRecordCode,
- String? patientCode,
- QueryRecordStatusEnum queryRecordStatus = QueryRecordStatusEnum.All,
- QueryRecordCreateTypeEnum queryRecordCreateType = QueryRecordCreateTypeEnum.All,
- int pageIndex = 0,
- int pageSize = 0,
- String? token,
- }) : super(
- patientCode: patientCode,
- queryRecordStatus: queryRecordStatus,
- queryRecordCreateType: queryRecordCreateType,
- pageIndex: pageIndex,
- pageSize: pageSize,
- token: token,
- );
- factory QueryReferralRecordsPageRequest.fromJson(Map<String, dynamic> map) {
- return QueryReferralRecordsPageRequest(
- referralRecordCode: map['ReferralRecordCode'],
- patientCode: map['PatientCode'],
- queryRecordStatus: QueryRecordStatusEnum.values.firstWhere((e) => e.index == map['QueryRecordStatus']),
- queryRecordCreateType: QueryRecordCreateTypeEnum.values.firstWhere((e) => e.index == map['QueryRecordCreateType']),
- pageIndex: map['PageIndex'],
- pageSize: map['PageSize'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(referralRecordCode != null)
- map['ReferralRecordCode'] = referralRecordCode;
- return map;
- }
- }
- class ReportPreviewDTO {
- String? fileToken;
- String? thumbnailToken;
- String? language;
- UploadFileTypeEnum fileType;
- ReportPreviewDTO({
- this.fileToken,
- this.thumbnailToken,
- this.language,
- this.fileType = UploadFileTypeEnum.Unknown,
- });
- factory ReportPreviewDTO.fromJson(Map<String, dynamic> map) {
- return ReportPreviewDTO(
- fileToken: map['FileToken'],
- thumbnailToken: map['ThumbnailToken'],
- language: map['Language'],
- fileType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FileType']),
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(fileToken != null)
- map['FileToken'] = fileToken;
- if(thumbnailToken != null)
- map['ThumbnailToken'] = thumbnailToken;
- if(language != null)
- map['Language'] = language;
- map['FileType'] = fileType.index;
- return map;
- }
- }
- enum ReportTypeEnum {
- RemoteDiagnosis,
- LiveConsultation,
- }
- class ReportBaseDTO extends BaseDTO{
- String? reportCode;
- String? recordCode;
- String? reportUserCode;
- String? deviceCode;
- String? patientCode;
- String? patientId;
- String? patientName;
- List<String >? reportLabels;
- List<String >? platformLabels;
- List<String >? diagnosisLabels;
- DiagnosisOrganEnum reportOrgan;
- DateTime? reportTime;
- String? reportUserName;
- List<ReportPreviewDTO >? reportPreviewList;
- String? referralRecordCode;
- ReportTypeEnum reportType;
- ReportBaseDTO({
- this.reportCode,
- this.recordCode,
- this.reportUserCode,
- this.deviceCode,
- this.patientCode,
- this.patientId,
- this.patientName,
- this.reportLabels,
- this.platformLabels,
- this.diagnosisLabels,
- this.reportOrgan = DiagnosisOrganEnum.Null,
- this.reportTime,
- this.reportUserName,
- this.reportPreviewList,
- this.referralRecordCode,
- this.reportType = ReportTypeEnum.RemoteDiagnosis,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory ReportBaseDTO.fromJson(Map<String, dynamic> map) {
- return ReportBaseDTO(
- reportCode: map['ReportCode'],
- recordCode: map['RecordCode'],
- reportUserCode: map['ReportUserCode'],
- deviceCode: map['DeviceCode'],
- patientCode: map['PatientCode'],
- patientId: map['PatientId'],
- patientName: map['PatientName'],
- reportLabels: map['ReportLabels'] != null ? map['ReportLabels'].cast<String>().toList() : null,
- platformLabels: map['PlatformLabels'] != null ? map['PlatformLabels'].cast<String>().toList() : null,
- diagnosisLabels: map['DiagnosisLabels'] != null ? map['DiagnosisLabels'].cast<String>().toList() : null,
- reportOrgan: DiagnosisOrganEnum.values.firstWhere((e) => e.index == map['ReportOrgan']),
- reportTime: map['ReportTime'] != null ? DateTime.parse(map['ReportTime']) : null,
- reportUserName: map['ReportUserName'],
- reportPreviewList: map['ReportPreviewList'] != null ? (map['ReportPreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- referralRecordCode: map['ReferralRecordCode'],
- reportType: ReportTypeEnum.values.firstWhere((e) => e.index == map['ReportType']),
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(reportCode != null)
- map['ReportCode'] = reportCode;
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(reportUserCode != null)
- map['ReportUserCode'] = reportUserCode;
- if(deviceCode != null)
- map['DeviceCode'] = deviceCode;
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(patientId != null)
- map['PatientId'] = patientId;
- if(patientName != null)
- map['PatientName'] = patientName;
- if(reportLabels != null)
- map['ReportLabels'] = reportLabels;
- if(platformLabels != null)
- map['PlatformLabels'] = platformLabels;
- if(diagnosisLabels != null)
- map['DiagnosisLabels'] = diagnosisLabels;
- map['ReportOrgan'] = reportOrgan.index;
- if(reportTime != null)
- map['ReportTime'] = JsonRpcUtils.dateFormat(reportTime!);
- if(reportUserName != null)
- map['ReportUserName'] = reportUserName;
- if(reportPreviewList != null)
- map['ReportPreviewList'] = reportPreviewList;
- if(referralRecordCode != null)
- map['ReferralRecordCode'] = referralRecordCode;
- map['ReportType'] = reportType.index;
- return map;
- }
- }
- class ReportDTO extends ReportBaseDTO{
- String? reportTemplateJson;
- String? reportDatasJson;
- String? encryptPatientName;
- bool canEditReport;
- String? deviceName;
- String? reportTemplateName;
- DateTime? examDate;
- ReportDTO({
- this.reportTemplateJson,
- this.reportDatasJson,
- this.encryptPatientName,
- this.canEditReport = false,
- this.deviceName,
- this.reportTemplateName,
- this.examDate,
- String? reportCode,
- String? recordCode,
- String? reportUserCode,
- String? deviceCode,
- String? patientCode,
- String? patientId,
- String? patientName,
- List<String >? reportLabels,
- List<String >? platformLabels,
- List<String >? diagnosisLabels,
- DiagnosisOrganEnum reportOrgan = DiagnosisOrganEnum.Null,
- DateTime? reportTime,
- String? reportUserName,
- List<ReportPreviewDTO >? reportPreviewList,
- String? referralRecordCode,
- ReportTypeEnum reportType = ReportTypeEnum.RemoteDiagnosis,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- reportCode: reportCode,
- recordCode: recordCode,
- reportUserCode: reportUserCode,
- deviceCode: deviceCode,
- patientCode: patientCode,
- patientId: patientId,
- patientName: patientName,
- reportLabels: reportLabels,
- platformLabels: platformLabels,
- diagnosisLabels: diagnosisLabels,
- reportOrgan: reportOrgan,
- reportTime: reportTime,
- reportUserName: reportUserName,
- reportPreviewList: reportPreviewList,
- referralRecordCode: referralRecordCode,
- reportType: reportType,
- createTime: createTime,
- updateTime: updateTime,
- );
- factory ReportDTO.fromJson(Map<String, dynamic> map) {
- return ReportDTO(
- reportTemplateJson: map['ReportTemplateJson'],
- reportDatasJson: map['ReportDatasJson'],
- encryptPatientName: map['EncryptPatientName'],
- canEditReport: map['CanEditReport'],
- deviceName: map['DeviceName'],
- reportTemplateName: map['ReportTemplateName'],
- examDate: map['ExamDate'] != null ? DateTime.parse(map['ExamDate']) : null,
- reportCode: map['ReportCode'],
- recordCode: map['RecordCode'],
- reportUserCode: map['ReportUserCode'],
- deviceCode: map['DeviceCode'],
- patientCode: map['PatientCode'],
- patientId: map['PatientId'],
- patientName: map['PatientName'],
- reportLabels: map['ReportLabels'] != null ? map['ReportLabels'].cast<String>().toList() : null,
- platformLabels: map['PlatformLabels'] != null ? map['PlatformLabels'].cast<String>().toList() : null,
- diagnosisLabels: map['DiagnosisLabels'] != null ? map['DiagnosisLabels'].cast<String>().toList() : null,
- reportOrgan: DiagnosisOrganEnum.values.firstWhere((e) => e.index == map['ReportOrgan']),
- reportTime: map['ReportTime'] != null ? DateTime.parse(map['ReportTime']) : null,
- reportUserName: map['ReportUserName'],
- reportPreviewList: map['ReportPreviewList'] != null ? (map['ReportPreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- referralRecordCode: map['ReferralRecordCode'],
- reportType: ReportTypeEnum.values.firstWhere((e) => e.index == map['ReportType']),
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(reportTemplateJson != null)
- map['ReportTemplateJson'] = reportTemplateJson;
- if(reportDatasJson != null)
- map['ReportDatasJson'] = reportDatasJson;
- if(encryptPatientName != null)
- map['EncryptPatientName'] = encryptPatientName;
- map['CanEditReport'] = canEditReport;
- if(deviceName != null)
- map['DeviceName'] = deviceName;
- if(reportTemplateName != null)
- map['ReportTemplateName'] = reportTemplateName;
- if(examDate != null)
- map['ExamDate'] = JsonRpcUtils.dateFormat(examDate!);
- return map;
- }
- }
- class FindReportsRequest extends TokenRequest{
- String? recordCode;
- FindReportsRequest({
- this.recordCode,
- String? token,
- }) : super(
- token: token,
- );
- factory FindReportsRequest.fromJson(Map<String, dynamic> map) {
- return FindReportsRequest(
- recordCode: map['RecordCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- return map;
- }
- }
- class QueryReferralExamReportRequest extends FindReportsRequest{
- String? referralRecordCode;
- QueryReferralExamReportRequest({
- this.referralRecordCode,
- String? recordCode,
- String? token,
- }) : super(
- recordCode: recordCode,
- token: token,
- );
- factory QueryReferralExamReportRequest.fromJson(Map<String, dynamic> map) {
- return QueryReferralExamReportRequest(
- referralRecordCode: map['ReferralRecordCode'],
- recordCode: map['RecordCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(referralRecordCode != null)
- map['ReferralRecordCode'] = referralRecordCode;
- return map;
- }
- }
- class QueryShareExamPageResult {
- String? shareExamPageUrl;
- QueryShareExamPageResult({
- this.shareExamPageUrl,
- });
- factory QueryShareExamPageResult.fromJson(Map<String, dynamic> map) {
- return QueryShareExamPageResult(
- shareExamPageUrl: map['ShareExamPageUrl'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(shareExamPageUrl != null)
- map['ShareExamPageUrl'] = shareExamPageUrl;
- return map;
- }
- }
- class QueryShareExamPageRequest extends TokenRequest{
- String? examFileToken;
- String? languageCode;
- QueryShareExamPageRequest({
- this.examFileToken,
- this.languageCode,
- String? token,
- }) : super(
- token: token,
- );
- factory QueryShareExamPageRequest.fromJson(Map<String, dynamic> map) {
- return QueryShareExamPageRequest(
- examFileToken: map['ExamFileToken'],
- languageCode: map['LanguageCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(examFileToken != null)
- map['ExamFileToken'] = examFileToken;
- if(languageCode != null)
- map['LanguageCode'] = languageCode;
- return map;
- }
- }
- class MeasureExportDetailDTO {
- int sortNum;
- String? remedicalMeasuredInfoCode;
- MeasureExportDetailDTO({
- this.sortNum = 0,
- this.remedicalMeasuredInfoCode,
- });
- factory MeasureExportDetailDTO.fromJson(Map<String, dynamic> map) {
- return MeasureExportDetailDTO(
- sortNum: map['SortNum'],
- remedicalMeasuredInfoCode: map['RemedicalMeasuredInfoCode'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['SortNum'] = sortNum;
- if(remedicalMeasuredInfoCode != null)
- map['RemedicalMeasuredInfoCode'] = remedicalMeasuredInfoCode;
- return map;
- }
- }
- class BatchExportMeasureResultRequest extends TokenRequest{
- List<MeasureExportDetailDTO >? remedicalMeasuredInfoCodes;
- BusinessTypeEnum businessType;
- String? recordCode;
- String? languageCode;
- BatchExportMeasureResultRequest({
- this.remedicalMeasuredInfoCodes,
- this.businessType = BusinessTypeEnum.RemoteDiagnosis,
- this.recordCode,
- this.languageCode,
- String? token,
- }) : super(
- token: token,
- );
- factory BatchExportMeasureResultRequest.fromJson(Map<String, dynamic> map) {
- return BatchExportMeasureResultRequest(
- remedicalMeasuredInfoCodes: map['RemedicalMeasuredInfoCodes'] != null ? (map['RemedicalMeasuredInfoCodes'] as List).map((e)=>MeasureExportDetailDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- businessType: BusinessTypeEnum.values.firstWhere((e) => e.index == map['BusinessType']),
- recordCode: map['RecordCode'],
- languageCode: map['LanguageCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(remedicalMeasuredInfoCodes != null)
- map['RemedicalMeasuredInfoCodes'] = remedicalMeasuredInfoCodes;
- map['BusinessType'] = businessType.index;
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(languageCode != null)
- map['LanguageCode'] = languageCode;
- return map;
- }
- }
- class GetRemedicalDiagnosisDataRequest extends TokenRequest{
- String? remedicalCode;
- int frameIndex;
- GetRemedicalDiagnosisDataRequest({
- this.remedicalCode,
- this.frameIndex = 0,
- String? token,
- }) : super(
- token: token,
- );
- factory GetRemedicalDiagnosisDataRequest.fromJson(Map<String, dynamic> map) {
- return GetRemedicalDiagnosisDataRequest(
- remedicalCode: map['RemedicalCode'],
- frameIndex: map['FrameIndex'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(remedicalCode != null)
- map['RemedicalCode'] = remedicalCode;
- map['FrameIndex'] = frameIndex;
- return map;
- }
- }
- class RemedicalAISelectedInfoDTO {
- String? remedicalAISelectedInfoCode;
- String? patientCode;
- String? recordCode;
- String? remedicalCode;
- int frameIndex;
- String? userCode;
- String? orginalFileToken;
- String? cdnFileToken;
- String? aIFileToken;
- String? aICdnFileToken;
- RecommendedDownloadModeEnum recommendedDownloadMode;
- String? previewFileToken;
- String? diagnosisData;
- DiagnosisConclusionEnum diagnosisConclusion;
- List<DiagnosisOrganEnum >? diagnosisOrgans;
- RemedicalAISelectedInfoDTO({
- this.remedicalAISelectedInfoCode,
- this.patientCode,
- this.recordCode,
- this.remedicalCode,
- this.frameIndex = 0,
- this.userCode,
- this.orginalFileToken,
- this.cdnFileToken,
- this.aIFileToken,
- this.aICdnFileToken,
- this.recommendedDownloadMode = RecommendedDownloadModeEnum.Origin,
- this.previewFileToken,
- this.diagnosisData,
- this.diagnosisConclusion = DiagnosisConclusionEnum.NotRequired,
- this.diagnosisOrgans,
- });
- factory RemedicalAISelectedInfoDTO.fromJson(Map<String, dynamic> map) {
- return RemedicalAISelectedInfoDTO(
- remedicalAISelectedInfoCode: map['RemedicalAISelectedInfoCode'],
- patientCode: map['PatientCode'],
- recordCode: map['RecordCode'],
- remedicalCode: map['RemedicalCode'],
- frameIndex: map['FrameIndex'],
- userCode: map['UserCode'],
- orginalFileToken: map['OrginalFileToken'],
- cdnFileToken: map['CdnFileToken'],
- aIFileToken: map['AIFileToken'],
- aICdnFileToken: map['AICdnFileToken'],
- recommendedDownloadMode: RecommendedDownloadModeEnum.values.firstWhere((e) => e.index == map['RecommendedDownloadMode']),
- previewFileToken: map['PreviewFileToken'],
- diagnosisData: map['DiagnosisData'],
- diagnosisConclusion: DiagnosisConclusionEnum.values.firstWhere((e) => e.index == map['DiagnosisConclusion']),
- diagnosisOrgans: map['DiagnosisOrgans'] != null ? (map['DiagnosisOrgans'] as List).map((e)=>DiagnosisOrganEnum.values.firstWhere((i) => i.index == e)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(remedicalAISelectedInfoCode != null)
- map['RemedicalAISelectedInfoCode'] = remedicalAISelectedInfoCode;
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(remedicalCode != null)
- map['RemedicalCode'] = remedicalCode;
- map['FrameIndex'] = frameIndex;
- if(userCode != null)
- map['UserCode'] = userCode;
- if(orginalFileToken != null)
- map['OrginalFileToken'] = orginalFileToken;
- if(cdnFileToken != null)
- map['CdnFileToken'] = cdnFileToken;
- if(aIFileToken != null)
- map['AIFileToken'] = aIFileToken;
- if(aICdnFileToken != null)
- map['AICdnFileToken'] = aICdnFileToken;
- map['RecommendedDownloadMode'] = recommendedDownloadMode.index;
- if(previewFileToken != null)
- map['PreviewFileToken'] = previewFileToken;
- if(diagnosisData != null)
- map['DiagnosisData'] = diagnosisData;
- map['DiagnosisConclusion'] = diagnosisConclusion.index;
- if(diagnosisOrgans != null)
- map['DiagnosisOrgans'] = diagnosisOrgans;
- return map;
- }
- }
- class GetPatientAISelectedInfosRequest extends TokenRequest{
- String? patientCode;
- String? recordCode;
- GetPatientAISelectedInfosRequest({
- this.patientCode,
- this.recordCode,
- String? token,
- }) : super(
- token: token,
- );
- factory GetPatientAISelectedInfosRequest.fromJson(Map<String, dynamic> map) {
- return GetPatientAISelectedInfosRequest(
- patientCode: map['PatientCode'],
- recordCode: map['RecordCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- return map;
- }
- }
- class GetRemedicalAISelectedInfoRequest extends TokenRequest{
- String? code;
- GetRemedicalAISelectedInfoRequest({
- this.code,
- String? token,
- }) : super(
- token: token,
- );
- factory GetRemedicalAISelectedInfoRequest.fromJson(Map<String, dynamic> map) {
- return GetRemedicalAISelectedInfoRequest(
- code: map['Code'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(code != null)
- map['Code'] = code;
- return map;
- }
- }
- class SaveRemedicalAISelectedInfoRequest extends TokenRequest{
- String? code;
- String? remedicalCode;
- int frameIndex;
- String? aIFileToken;
- String? previewFileToken;
- String? diagnosisData;
- DiagnosisConclusionEnum diagnosisConclusion;
- List<DiagnosisOrganEnum >? diagnosisOrgans;
- SaveRemedicalAISelectedInfoRequest({
- this.code,
- this.remedicalCode,
- this.frameIndex = 0,
- this.aIFileToken,
- this.previewFileToken,
- this.diagnosisData,
- this.diagnosisConclusion = DiagnosisConclusionEnum.NotRequired,
- this.diagnosisOrgans,
- String? token,
- }) : super(
- token: token,
- );
- factory SaveRemedicalAISelectedInfoRequest.fromJson(Map<String, dynamic> map) {
- return SaveRemedicalAISelectedInfoRequest(
- code: map['Code'],
- remedicalCode: map['RemedicalCode'],
- frameIndex: map['FrameIndex'],
- aIFileToken: map['AIFileToken'],
- previewFileToken: map['PreviewFileToken'],
- diagnosisData: map['DiagnosisData'],
- diagnosisConclusion: DiagnosisConclusionEnum.values.firstWhere((e) => e.index == map['DiagnosisConclusion']),
- diagnosisOrgans: map['DiagnosisOrgans'] != null ? (map['DiagnosisOrgans'] as List).map((e)=>DiagnosisOrganEnum.values.firstWhere((i) => i.index == e)).toList() : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(code != null)
- map['Code'] = code;
- if(remedicalCode != null)
- map['RemedicalCode'] = remedicalCode;
- map['FrameIndex'] = frameIndex;
- if(aIFileToken != null)
- map['AIFileToken'] = aIFileToken;
- if(previewFileToken != null)
- map['PreviewFileToken'] = previewFileToken;
- if(diagnosisData != null)
- map['DiagnosisData'] = diagnosisData;
- map['DiagnosisConclusion'] = diagnosisConclusion.index;
- if(diagnosisOrgans != null)
- map['DiagnosisOrgans'] = diagnosisOrgans;
- return map;
- }
- }
- class SyncRemedicalRecordRequest {
- String? code;
- String? organizationCode;
- String? deviceCode;
- bool isUploadReport;
- List<DataItemDTO >? patientInfo;
- DiagnosisStatusEnum diagnosisStatus;
- List<DiagnosisInfoDTO >? aIDiagnosisInfos;
- DateTime? createTime;
- DateTime? updateTime;
- String? creator;
- SyncRemedicalRecordRequest({
- this.code,
- this.organizationCode,
- this.deviceCode,
- this.isUploadReport = false,
- this.patientInfo,
- this.diagnosisStatus = DiagnosisStatusEnum.NotRequired,
- this.aIDiagnosisInfos,
- this.createTime,
- this.updateTime,
- this.creator,
- });
- factory SyncRemedicalRecordRequest.fromJson(Map<String, dynamic> map) {
- return SyncRemedicalRecordRequest(
- code: map['Code'],
- organizationCode: map['OrganizationCode'],
- deviceCode: map['DeviceCode'],
- isUploadReport: map['IsUploadReport'],
- patientInfo: map['PatientInfo'] != null ? (map['PatientInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- diagnosisStatus: DiagnosisStatusEnum.values.firstWhere((e) => e.index == map['DiagnosisStatus']),
- aIDiagnosisInfos: map['AIDiagnosisInfos'] != null ? (map['AIDiagnosisInfos'] as List).map((e)=>DiagnosisInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- creator: map['Creator'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(code != null)
- map['Code'] = code;
- if(organizationCode != null)
- map['OrganizationCode'] = organizationCode;
- if(deviceCode != null)
- map['DeviceCode'] = deviceCode;
- map['IsUploadReport'] = isUploadReport;
- if(patientInfo != null)
- map['PatientInfo'] = patientInfo;
- map['DiagnosisStatus'] = diagnosisStatus.index;
- if(aIDiagnosisInfos != null)
- map['AIDiagnosisInfos'] = aIDiagnosisInfos;
- if(createTime != null)
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
- if(updateTime != null)
- map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
- if(creator != null)
- map['Creator'] = creator;
- return map;
- }
- }
- class SyncBatchRemedicalRecordRequest {
- SyncDBEnum syncType;
- List<SyncRemedicalRecordRequest >? remedicalRecordList;
- SyncBatchRemedicalRecordRequest({
- this.syncType = SyncDBEnum.Migrate,
- this.remedicalRecordList,
- });
- factory SyncBatchRemedicalRecordRequest.fromJson(Map<String, dynamic> map) {
- return SyncBatchRemedicalRecordRequest(
- syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
- remedicalRecordList: map['RemedicalRecordList'] != null ? (map['RemedicalRecordList'] as List).map((e)=>SyncRemedicalRecordRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['SyncType'] = syncType.index;
- if(remedicalRecordList != null)
- map['RemedicalRecordList'] = remedicalRecordList;
- return map;
- }
- }
- class SyncUploadRemedicalDataRequest {
- String? code;
- DateTime? createTime;
- DateTime? updateTime;
- String? examCode;
- String? deviceCode;
- String? previewFileToken;
- String? fileToken;
- int fileSize;
- String? coverImageToken;
- String? applicationCategory;
- String? application;
- RemedicalFileDataTypeEnum fileDataType;
- ImageLocationDTO? imageLocation;
- SyncUploadRemedicalDataRequest({
- this.code,
- this.createTime,
- this.updateTime,
- this.examCode,
- this.deviceCode,
- this.previewFileToken,
- this.fileToken,
- this.fileSize = 0,
- this.coverImageToken,
- this.applicationCategory,
- this.application,
- this.fileDataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
- this.imageLocation,
- });
- factory SyncUploadRemedicalDataRequest.fromJson(Map<String, dynamic> map) {
- return SyncUploadRemedicalDataRequest(
- code: map['Code'],
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- examCode: map['ExamCode'],
- deviceCode: map['DeviceCode'],
- previewFileToken: map['PreviewFileToken'],
- fileToken: map['FileToken'],
- fileSize: map['FileSize'],
- coverImageToken: map['CoverImageToken'],
- applicationCategory: map['ApplicationCategory'],
- application: map['Application'],
- fileDataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['FileDataType']),
- imageLocation: map['ImageLocation'] != null ? ImageLocationDTO.fromJson(map['ImageLocation']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(code != null)
- map['Code'] = code;
- if(createTime != null)
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
- if(updateTime != null)
- map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
- if(examCode != null)
- map['ExamCode'] = examCode;
- if(deviceCode != null)
- map['DeviceCode'] = deviceCode;
- if(previewFileToken != null)
- map['PreviewFileToken'] = previewFileToken;
- if(fileToken != null)
- map['FileToken'] = fileToken;
- map['FileSize'] = fileSize;
- if(coverImageToken != null)
- map['CoverImageToken'] = coverImageToken;
- if(applicationCategory != null)
- map['ApplicationCategory'] = applicationCategory;
- if(application != null)
- map['Application'] = application;
- map['FileDataType'] = fileDataType.index;
- if(imageLocation != null)
- map['ImageLocation'] = imageLocation;
- return map;
- }
- }
- class SyncBatchUploadRemedicalDatasRequest {
- SyncDBEnum syncType;
- List<SyncUploadRemedicalDataRequest >? syncUploadRemedicalDataList;
- SyncBatchUploadRemedicalDatasRequest({
- this.syncType = SyncDBEnum.Migrate,
- this.syncUploadRemedicalDataList,
- });
- factory SyncBatchUploadRemedicalDatasRequest.fromJson(Map<String, dynamic> map) {
- return SyncBatchUploadRemedicalDatasRequest(
- syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
- syncUploadRemedicalDataList: map['SyncUploadRemedicalDataList'] != null ? (map['SyncUploadRemedicalDataList'] as List).map((e)=>SyncUploadRemedicalDataRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['SyncType'] = syncType.index;
- if(syncUploadRemedicalDataList != null)
- map['SyncUploadRemedicalDataList'] = syncUploadRemedicalDataList;
- return map;
- }
- }
- class SyncAIResultRequest {
- String? remedicalCode;
- String? diagnosisResult;
- DateTime? createTime;
- DateTime? updateTime;
- SyncAIResultRequest({
- this.remedicalCode,
- this.diagnosisResult,
- this.createTime,
- this.updateTime,
- });
- factory SyncAIResultRequest.fromJson(Map<String, dynamic> map) {
- return SyncAIResultRequest(
- remedicalCode: map['RemedicalCode'],
- diagnosisResult: map['DiagnosisResult'],
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(remedicalCode != null)
- map['RemedicalCode'] = remedicalCode;
- if(diagnosisResult != null)
- map['DiagnosisResult'] = diagnosisResult;
- if(createTime != null)
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
- if(updateTime != null)
- map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
- return map;
- }
- }
- class SyncBatchAIResultRequest {
- SyncDBEnum syncType;
- List<SyncAIResultRequest >? syncAIResultList;
- SyncBatchAIResultRequest({
- this.syncType = SyncDBEnum.Migrate,
- this.syncAIResultList,
- });
- factory SyncBatchAIResultRequest.fromJson(Map<String, dynamic> map) {
- return SyncBatchAIResultRequest(
- syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
- syncAIResultList: map['SyncAIResultList'] != null ? (map['SyncAIResultList'] as List).map((e)=>SyncAIResultRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['SyncType'] = syncType.index;
- if(syncAIResultList != null)
- map['SyncAIResultList'] = syncAIResultList;
- return map;
- }
- }
- class SyncBatchCarotidResultRequest {
- SyncDBEnum syncType;
- List<GetCarotidResultRequest >? syncCarotidResultRequest;
- SyncBatchCarotidResultRequest({
- this.syncType = SyncDBEnum.Migrate,
- this.syncCarotidResultRequest,
- });
- factory SyncBatchCarotidResultRequest.fromJson(Map<String, dynamic> map) {
- return SyncBatchCarotidResultRequest(
- syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
- syncCarotidResultRequest: map['SyncCarotidResultRequest'] != null ? (map['SyncCarotidResultRequest'] as List).map((e)=>GetCarotidResultRequest.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['SyncType'] = syncType.index;
- if(syncCarotidResultRequest != null)
- map['SyncCarotidResultRequest'] = syncCarotidResultRequest;
- return map;
- }
- }
|