12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542 |
- 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;
- bool isScreenshotVersion;
- CreateExaminfoRequest({
- this.patientType,
- this.examRecordCode,
- this.patientInfo,
- this.patientScanInfoList,
- this.isScreenshotVersion = false,
- 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,
- isScreenshotVersion: map['IsScreenshotVersion'],
- 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;
- map['IsScreenshotVersion'] = isScreenshotVersion;
- 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 QueryExamInfoResult {
- String? examCode;
- DateTime? createTime;
- String? deptName;
- String? patientCode;
- String? patientName;
- String? patientAge;
- List<DataItemDTO >? patientAgeInfo;
- String? patientSex;
- List<PatientInfoExt >? patientInfoExtList;
- List<String >? associatedExamCodes;
- RecordStatusEnum examStatus;
- QueryExamInfoResult({
- this.examCode,
- this.createTime,
- this.deptName,
- this.patientCode,
- 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(
- examCode: map['ExamCode'],
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- deptName: map['DeptName'],
- patientCode: map['PatientCode'],
- 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(examCode != null)
- map['ExamCode'] = examCode;
- if(createTime != null)
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
- if(deptName != null)
- map['DeptName'] = deptName;
- if(patientCode != null)
- map['PatientCode'] = patientCode;
- 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;
- }
- }
- 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 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;
- List<ItemMetaDTO >? itemMetas;
- String? itemMetaJson;
- UserDefinedMeasureFolderDTO({
- this.name,
- this.workingItemNames,
- this.defaultItem,
- this.multiMethodItemMetas,
- this.itemMetas,
- this.itemMetaJson,
- });
- 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,
- itemMetas: map['ItemMetas'] != null ? (map['ItemMetas'] as List).map((e)=>ItemMetaDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- itemMetaJson: map['ItemMetaJson'],
- );
- }
- 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;
- if(itemMetas != null)
- map['ItemMetas'] = itemMetas;
- if(itemMetaJson != null)
- map['ItemMetaJson'] = itemMetaJson;
- 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;
- bool isUserReport;
- bool isReferral;
- 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,
- this.isUserReport = false,
- this.isReferral = false,
- 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,
- isUserReport: map['IsUserReport'],
- isReferral: map['IsReferral'],
- 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!);
- map['IsUserReport'] = isUserReport;
- map['IsReferral'] = isReferral;
- 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? reportCode;
- String? fileToken;
- ReportItem({
- this.recordCode,
- this.reportCode,
- this.fileToken,
- });
- factory ReportItem.fromJson(Map<String, dynamic> map) {
- return ReportItem(
- recordCode: map['RecordCode'],
- reportCode: map['ReportCode'],
- fileToken: map['FileToken'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(reportCode != null)
- map['ReportCode'] = reportCode;
- 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,
- String? organizationCode,
- String? organizationName,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- patientCode: patientCode,
- isValid: isValid,
- patientData: patientData,
- unReadRecordCount: unReadRecordCount,
- isReferral: isReferral,
- devicePatientIDs: devicePatientIDs,
- organizationCode: organizationCode,
- organizationName: organizationName,
- 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,
- organizationCode: map['OrganizationCode'],
- organizationName: map['OrganizationName'],
- 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;
- String? languageCode;
- FindReportsRequest({
- this.recordCode,
- this.languageCode,
- String? token,
- }) : super(
- token: token,
- );
- factory FindReportsRequest.fromJson(Map<String, dynamic> map) {
- return FindReportsRequest(
- recordCode: map['RecordCode'],
- languageCode: map['LanguageCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(languageCode != null)
- map['LanguageCode'] = languageCode;
- return map;
- }
- }
- class QueryReferralExamReportRequest extends FindReportsRequest{
- String? referralRecordCode;
- QueryReferralExamReportRequest({
- this.referralRecordCode,
- String? recordCode,
- String? languageCode,
- String? token,
- }) : super(
- recordCode: recordCode,
- languageCode: languageCode,
- token: token,
- );
- factory QueryReferralExamReportRequest.fromJson(Map<String, dynamic> map) {
- return QueryReferralExamReportRequest(
- referralRecordCode: map['ReferralRecordCode'],
- recordCode: map['RecordCode'],
- languageCode: map['LanguageCode'],
- 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;
- bool isDelete;
- SyncRemedicalRecordRequest({
- this.code,
- this.organizationCode,
- this.deviceCode,
- this.isUploadReport = false,
- this.patientInfo,
- this.diagnosisStatus = DiagnosisStatusEnum.NotRequired,
- this.aIDiagnosisInfos,
- this.createTime,
- this.updateTime,
- this.creator,
- this.isDelete = false,
- });
- 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'],
- isDelete: map['IsDelete'],
- );
- }
- 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;
- map['IsDelete'] = isDelete;
- 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;
- String? imageUrl;
- 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.imageUrl,
- 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'],
- imageUrl: map['ImageUrl'],
- 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;
- if(imageUrl != null)
- map['ImageUrl'] = imageUrl;
- 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;
- }
- }
- class LabFileInfoRequest extends TokenRequest{
- String? filePath;
- String? fileName;
- UploadFileTypeEnum fileType;
- LabFileInfoRequest({
- this.filePath,
- this.fileName,
- this.fileType = UploadFileTypeEnum.Unknown,
- String? token,
- }) : super(
- token: token,
- );
- factory LabFileInfoRequest.fromJson(Map<String, dynamic> map) {
- return LabFileInfoRequest(
- filePath: map['FilePath'],
- fileName: map['FileName'],
- fileType: UploadFileTypeEnum.values.firstWhere((e) => e.index == map['FileType']),
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(filePath != null)
- map['FilePath'] = filePath;
- if(fileName != null)
- map['FileName'] = fileName;
- map['FileType'] = fileType.index;
- return map;
- }
- }
- class FindDeviceDiagnosisRequest extends TokenRequest{
- String? deviceCode;
- FindDeviceDiagnosisRequest({
- this.deviceCode,
- String? token,
- }) : super(
- token: token,
- );
- factory FindDeviceDiagnosisRequest.fromJson(Map<String, dynamic> map) {
- return FindDeviceDiagnosisRequest(
- deviceCode: map['DeviceCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(deviceCode != null)
- map['DeviceCode'] = deviceCode;
- return map;
- }
- }
|