123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362 |
- import 'authentication.m.dart';
- import 'patient.m.dart';
- import 'recordInfo.m.dart';
- import 'connect.m.dart';
- import 'device.m.dart';
- import 'organization.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? reservationCode;
- List<DataItemDTO>? patientInfo;
- List<PatientInfoExt>? patientScanInfoList;
- CreateExaminfoRequest({
- this.patientType,
- this.reservationCode,
- this.patientInfo,
- this.patientScanInfoList,
- String? token,
- }) : super(
- token: token,
- );
- factory CreateExaminfoRequest.fromJson(Map<String, dynamic> map) {
- return CreateExaminfoRequest(
- patientType: map['PatientType'],
- reservationCode: map['ReservationCode'],
- patientInfo: map['PatientInfo'] != null ? (map['PatientInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- patientScanInfoList: map['PatientScanInfoList'] != null ? (map['PatientScanInfoList'] as List).map((e)=>PatientInfoExt.fromJson(e as Map<String,dynamic>)).toList() : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(patientType != null)
- map['PatientType'] = patientType;
- if(reservationCode != null)
- map['ReservationCode'] = reservationCode;
- if(patientInfo != null)
- map['PatientInfo'] = patientInfo;
- if(patientScanInfoList != null)
- map['PatientScanInfoList'] = patientScanInfoList;
- return map;
- }
- }
- class UploadExamDataRequest extends TokenRequest{
- String? examCode;
- String? previewFileToken;
- String? fileToken;
- String? application;
- String? patientScanType;
- UploadExamDataRequest({
- this.examCode,
- this.previewFileToken,
- this.fileToken,
- this.application,
- this.patientScanType,
- String? token,
- }) : super(
- token: token,
- );
- factory UploadExamDataRequest.fromJson(Map<String, dynamic> map) {
- return UploadExamDataRequest(
- examCode: map['ExamCode'],
- previewFileToken: map['PreviewFileToken'],
- fileToken: map['FileToken'],
- application: map['Application'],
- patientScanType: map['PatientScanType'],
- 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;
- if(application != null)
- map['Application'] = application;
- if(patientScanType != null)
- map['PatientScanType'] = patientScanType;
- return map;
- }
- }
- class TerminalImageDTO {
- String? previewUrl;
- String? imageUrl;
- TerminalImageDTO({
- this.previewUrl,
- this.imageUrl,
- });
- factory TerminalImageDTO.fromJson(Map<String, dynamic> map) {
- return TerminalImageDTO(
- previewUrl: map['PreviewUrl'],
- imageUrl: map['ImageUrl'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(previewUrl != null)
- map['PreviewUrl'] = previewUrl;
- if(imageUrl != null)
- map['ImageUrl'] = imageUrl;
- return map;
- }
- }
- enum RemedicalFileDataTypeEnum {
- VinnoVidSingle,
- ThirdVidSingle,
- VinnoVidMovie,
- ThirdVidMovie,
- Image,
- }
- enum RemedicalImageLocationTypeEnum {
- BreastImageLocation,
- LiverImageLocation,
- ThyroidImageLocation,
- PositionImageLocation,
- }
- enum RemedicalImagePositionTypeEnum {
- None,
- Left,
- Right,
- Middle,
- }
- enum RemedicalApparatusTypeEnum {
- BreastOuterUpper,
- BreastInnerUpper,
- BreastOuterLower,
- BreastInnerLower,
- Lobe,
- LobeOfUnder,
- LobeOfInter,
- Thyroid,
- Abdomen,
- }
- class ImageLocationDTO {
- RemedicalImageLocationTypeEnum imageLocationType;
- RemedicalImagePositionTypeEnum position;
- String? scanLocationName;
- RemedicalApparatusTypeEnum apparatusType;
- ImageLocationDTO({
- this.imageLocationType = RemedicalImageLocationTypeEnum.BreastImageLocation,
- this.position = RemedicalImagePositionTypeEnum.None,
- this.scanLocationName,
- this.apparatusType = RemedicalApparatusTypeEnum.BreastOuterUpper,
- });
- factory ImageLocationDTO.fromJson(Map<String, dynamic> map) {
- return ImageLocationDTO(
- imageLocationType: RemedicalImageLocationTypeEnum.values.firstWhere((e) => e.index == map['ImageLocationType']),
- position: RemedicalImagePositionTypeEnum.values.firstWhere((e) => e.index == map['Position']),
- scanLocationName: map['ScanLocationName'],
- apparatusType: RemedicalApparatusTypeEnum.values.firstWhere((e) => e.index == map['ApparatusType']),
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['ImageLocationType'] = imageLocationType.index;
- map['Position'] = position.index;
- if(scanLocationName != null)
- map['ScanLocationName'] = scanLocationName;
- map['ApparatusType'] = apparatusType.index;
- return map;
- }
- }
- enum RemedicalAIDiagnosisStatusEnum {
- Null,
- NoObviousLesion,
- Benign,
- Malignant,
- BenignAndMalignant,
- }
- class RemedicalInfoDTO extends BaseDTO{
- String? remedicalCode;
- String? deviceCode;
- String? recordCode;
- String? patientScanType;
- String? application;
- TerminalImageDTO? terminalImages;
- RemedicalFileDataTypeEnum fileDataType;
- ImageLocationDTO? imageLocation;
- RemedicalAIDiagnosisStatusEnum aIDiagnosisStatus;
- RemedicalInfoDTO({
- this.remedicalCode,
- this.deviceCode,
- this.recordCode,
- this.patientScanType,
- this.application,
- this.terminalImages,
- this.fileDataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
- this.imageLocation,
- this.aIDiagnosisStatus = RemedicalAIDiagnosisStatusEnum.Null,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory RemedicalInfoDTO.fromJson(Map<String, dynamic> map) {
- return RemedicalInfoDTO(
- remedicalCode: map['RemedicalCode'],
- deviceCode: map['DeviceCode'],
- recordCode: map['RecordCode'],
- patientScanType: map['PatientScanType'],
- application: map['Application'],
- terminalImages: map['TerminalImages'] != null ? TerminalImageDTO.fromJson(map['TerminalImages']) : null,
- fileDataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['FileDataType']),
- imageLocation: map['ImageLocation'] != null ? ImageLocationDTO.fromJson(map['ImageLocation']) : null,
- aIDiagnosisStatus: RemedicalAIDiagnosisStatusEnum.values.firstWhere((e) => e.index == map['AIDiagnosisStatus']),
- 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(remedicalCode != null)
- map['RemedicalCode'] = remedicalCode;
- if(deviceCode != null)
- map['DeviceCode'] = deviceCode;
- if(recordCode != null)
- map['RecordCode'] = recordCode;
- if(patientScanType != null)
- map['PatientScanType'] = patientScanType;
- if(application != null)
- map['Application'] = application;
- if(terminalImages != null)
- map['TerminalImages'] = terminalImages;
- map['FileDataType'] = fileDataType.index;
- if(imageLocation != null)
- map['ImageLocation'] = imageLocation;
- map['AIDiagnosisStatus'] = aIDiagnosisStatus.index;
- return map;
- }
- }
- class RemedicalItemList {
- String? patientScanTypeDesc;
- List<RemedicalInfoDTO>? remedicalList;
- RemedicalItemList({
- this.patientScanTypeDesc,
- this.remedicalList,
- });
- factory RemedicalItemList.fromJson(Map<String, dynamic> map) {
- return RemedicalItemList(
- patientScanTypeDesc: map['PatientScanTypeDesc'],
- 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(remedicalList != null)
- map['RemedicalList'] = remedicalList;
- return map;
- }
- }
- class RemedicalListResult {
- String? sacnDate;
- String? recordCode;
- List<RemedicalItemList>? remedicalItemList;
- RemedicalListResult({
- this.sacnDate,
- this.recordCode,
- this.remedicalItemList,
- });
- factory RemedicalListResult.fromJson(Map<String, dynamic> map) {
- return RemedicalListResult(
- sacnDate: map['SacnDate'],
- 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(sacnDate != null)
- map['SacnDate'] = sacnDate;
- 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;
- }
- }
- enum ThesaurusStatusTypeEnum {
- Unpublished,
- Published,
- Referenced,
- }
- enum ThesaurusTypeEnum {
- Default,
- Organization,
- Personal,
- }
- enum ThesaurusUsageTypeEnum {
- People,
- Animal,
- }
- class ThesaurusDTO {
- String? thesaurusCode;
- String? thesaurusName;
- ThesaurusStatusTypeEnum thesaurusStateType;
- ThesaurusTypeEnum thesaurusType;
- ThesaurusUsageTypeEnum thesaurusUsageType;
- String? organizationCode;
- String? personalCode;
- String? languageCode;
- List<String>? thesaurusUser;
- bool isDefault;
- ThesaurusDTO({
- this.thesaurusCode,
- this.thesaurusName,
- this.thesaurusStateType = ThesaurusStatusTypeEnum.Unpublished,
- this.thesaurusType = ThesaurusTypeEnum.Default,
- this.thesaurusUsageType = ThesaurusUsageTypeEnum.People,
- this.organizationCode,
- this.personalCode,
- this.languageCode,
- this.thesaurusUser,
- this.isDefault = false,
- });
- factory ThesaurusDTO.fromJson(Map<String, dynamic> map) {
- return ThesaurusDTO(
- thesaurusCode: map['ThesaurusCode'],
- thesaurusName: map['ThesaurusName'],
- thesaurusStateType: ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']),
- thesaurusType: ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']),
- thesaurusUsageType: ThesaurusUsageTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusUsageType']),
- organizationCode: map['OrganizationCode'],
- personalCode: map['PersonalCode'],
- languageCode: map['LanguageCode'],
- thesaurusUser: map['ThesaurusUser'] != null ? map['ThesaurusUser'].cast<String>().toList() : null,
- isDefault: map['IsDefault'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- if(thesaurusName != null)
- map['ThesaurusName'] = thesaurusName;
- map['ThesaurusStateType'] = thesaurusStateType.index;
- map['ThesaurusType'] = thesaurusType.index;
- map['ThesaurusUsageType'] = thesaurusUsageType.index;
- if(organizationCode != null)
- map['OrganizationCode'] = organizationCode;
- if(personalCode != null)
- map['PersonalCode'] = personalCode;
- if(languageCode != null)
- map['LanguageCode'] = languageCode;
- if(thesaurusUser != null)
- map['ThesaurusUser'] = thesaurusUser;
- map['IsDefault'] = isDefault;
- return map;
- }
- }
- class AddThesaurusRequest extends TokenRequest{
- ThesaurusDTO? thesaurus;
- AddThesaurusRequest({
- this.thesaurus,
- String? token,
- }) : super(
- token: token,
- );
- factory AddThesaurusRequest.fromJson(Map<String, dynamic> map) {
- return AddThesaurusRequest(
- thesaurus: map['Thesaurus'] != null ? ThesaurusDTO.fromJson(map['Thesaurus']) : null,
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurus != null)
- map['Thesaurus'] = thesaurus;
- return map;
- }
- }
- class AddThesaurusClassifyRequest extends TokenRequest{
- String? thesaurusCode;
- String? thesaurusItemName;
- String? parentItemCode;
- AddThesaurusClassifyRequest({
- this.thesaurusCode,
- this.thesaurusItemName,
- this.parentItemCode,
- String? token,
- }) : super(
- token: token,
- );
- factory AddThesaurusClassifyRequest.fromJson(Map<String, dynamic> map) {
- return AddThesaurusClassifyRequest(
- thesaurusCode: map['ThesaurusCode'],
- thesaurusItemName: map['ThesaurusItemName'],
- parentItemCode: map['ParentItemCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- if(thesaurusItemName != null)
- map['ThesaurusItemName'] = thesaurusItemName;
- if(parentItemCode != null)
- map['ParentItemCode'] = parentItemCode;
- return map;
- }
- }
- class AddThesaurusContentRequest extends TokenRequest{
- String? thesaurusCode;
- String? thesaurusItemDescription;
- String? thesaurusItemConclusion;
- String? parentItemCode;
- AddThesaurusContentRequest({
- this.thesaurusCode,
- this.thesaurusItemDescription,
- this.thesaurusItemConclusion,
- this.parentItemCode,
- String? token,
- }) : super(
- token: token,
- );
- factory AddThesaurusContentRequest.fromJson(Map<String, dynamic> map) {
- return AddThesaurusContentRequest(
- thesaurusCode: map['ThesaurusCode'],
- thesaurusItemDescription: map['ThesaurusItemDescription'],
- thesaurusItemConclusion: map['ThesaurusItemConclusion'],
- parentItemCode: map['ParentItemCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- if(thesaurusItemDescription != null)
- map['ThesaurusItemDescription'] = thesaurusItemDescription;
- if(thesaurusItemConclusion != null)
- map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
- if(parentItemCode != null)
- map['ParentItemCode'] = parentItemCode;
- return map;
- }
- }
- class UpdateThesaurusClassifyRequest extends TokenRequest{
- String? thesaurusCode;
- String? thesaurusItemCode;
- String? thesaurusItemName;
- String? parentItemCode;
- UpdateThesaurusClassifyRequest({
- this.thesaurusCode,
- this.thesaurusItemCode,
- this.thesaurusItemName,
- this.parentItemCode,
- String? token,
- }) : super(
- token: token,
- );
- factory UpdateThesaurusClassifyRequest.fromJson(Map<String, dynamic> map) {
- return UpdateThesaurusClassifyRequest(
- thesaurusCode: map['ThesaurusCode'],
- thesaurusItemCode: map['ThesaurusItemCode'],
- thesaurusItemName: map['ThesaurusItemName'],
- parentItemCode: map['ParentItemCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- if(thesaurusItemCode != null)
- map['ThesaurusItemCode'] = thesaurusItemCode;
- if(thesaurusItemName != null)
- map['ThesaurusItemName'] = thesaurusItemName;
- if(parentItemCode != null)
- map['ParentItemCode'] = parentItemCode;
- return map;
- }
- }
- class UpdateThesaurusContentRequest extends TokenRequest{
- String? thesaurusCode;
- String? thesaurusItemCode;
- String? thesaurusItemDescription;
- String? thesaurusItemConclusion;
- String? parentItemCode;
- UpdateThesaurusContentRequest({
- this.thesaurusCode,
- this.thesaurusItemCode,
- this.thesaurusItemDescription,
- this.thesaurusItemConclusion,
- this.parentItemCode,
- String? token,
- }) : super(
- token: token,
- );
- factory UpdateThesaurusContentRequest.fromJson(Map<String, dynamic> map) {
- return UpdateThesaurusContentRequest(
- thesaurusCode: map['ThesaurusCode'],
- thesaurusItemCode: map['ThesaurusItemCode'],
- thesaurusItemDescription: map['ThesaurusItemDescription'],
- thesaurusItemConclusion: map['ThesaurusItemConclusion'],
- parentItemCode: map['ParentItemCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- if(thesaurusItemCode != null)
- map['ThesaurusItemCode'] = thesaurusItemCode;
- if(thesaurusItemDescription != null)
- map['ThesaurusItemDescription'] = thesaurusItemDescription;
- if(thesaurusItemConclusion != null)
- map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
- if(parentItemCode != null)
- map['ParentItemCode'] = parentItemCode;
- return map;
- }
- }
- class RemoveThesaurusRequest extends TokenRequest{
- String? thesaurusCode;
- RemoveThesaurusRequest({
- this.thesaurusCode,
- String? token,
- }) : super(
- token: token,
- );
- factory RemoveThesaurusRequest.fromJson(Map<String, dynamic> map) {
- return RemoveThesaurusRequest(
- thesaurusCode: map['ThesaurusCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- return map;
- }
- }
- class RemoveThesaurusItemRequest extends TokenRequest{
- String? thesaurusCode;
- String? thesaurusItemCode;
- RemoveThesaurusItemRequest({
- this.thesaurusCode,
- this.thesaurusItemCode,
- String? token,
- }) : super(
- token: token,
- );
- factory RemoveThesaurusItemRequest.fromJson(Map<String, dynamic> map) {
- return RemoveThesaurusItemRequest(
- thesaurusCode: map['ThesaurusCode'],
- thesaurusItemCode: map['ThesaurusItemCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- if(thesaurusItemCode != null)
- map['ThesaurusItemCode'] = thesaurusItemCode;
- return map;
- }
- }
- class QueryExamListItemResult {
- String? examCode;
- String? patientName;
- String? age;
- String? sex;
- List<String>? associatedExamCodes;
- QueryExamListItemResult({
- this.examCode,
- this.patientName,
- this.age,
- this.sex,
- this.associatedExamCodes,
- });
- factory QueryExamListItemResult.fromJson(Map<String, dynamic> map) {
- return QueryExamListItemResult(
- examCode: map['ExamCode'],
- patientName: map['PatientName'],
- age: map['Age'],
- sex: map['Sex'],
- associatedExamCodes: map['AssociatedExamCodes'] != null ? map['AssociatedExamCodes'].cast<String>().toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(examCode != null)
- map['ExamCode'] = examCode;
- if(patientName != null)
- map['PatientName'] = patientName;
- if(age != null)
- map['Age'] = age;
- if(sex != null)
- map['Sex'] = sex;
- if(associatedExamCodes != null)
- map['AssociatedExamCodes'] = associatedExamCodes;
- return map;
- }
- }
- enum ExamStatusEnum {
- Wait,
- Done,
- }
- class QueryExamListRequest extends PageRequest{
- String? patientName;
- DateTime? startTime;
- DateTime? endTime;
- ExamStatusEnum examStatus;
- QueryExamListRequest({
- this.patientName,
- this.startTime,
- this.endTime,
- this.examStatus = ExamStatusEnum.Wait,
- int pageIndex = 0,
- int pageSize = 0,
- String? token,
- }) : super(
- pageIndex: pageIndex,
- pageSize: pageSize,
- token: token,
- );
- factory QueryExamListRequest.fromJson(Map<String, dynamic> map) {
- return QueryExamListRequest(
- patientName: map['PatientName'],
- startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
- endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
- examStatus: ExamStatusEnum.values.firstWhere((e) => e.index == map['ExamStatus']),
- pageIndex: map['PageIndex'],
- pageSize: map['PageSize'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(patientName != null)
- map['PatientName'] = patientName;
- if(startTime != null)
- map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
- if(endTime != null)
- map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
- map['ExamStatus'] = examStatus.index;
- return map;
- }
- }
- class QueryExamInfoResult {
- DateTime? createTime;
- String? deptName;
- String? patientName;
- String? patientAge;
- String? patientSex;
- List<PatientInfoExt>? patientInfoExtList;
- List<String>? associatedExamCodes;
- QueryExamInfoResult({
- this.createTime,
- this.deptName,
- this.patientName,
- this.patientAge,
- this.patientSex,
- this.patientInfoExtList,
- this.associatedExamCodes,
- });
- factory QueryExamInfoResult.fromJson(Map<String, dynamic> map) {
- return QueryExamInfoResult(
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- deptName: map['DeptName'],
- patientName: map['PatientName'],
- patientAge: map['PatientAge'],
- 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,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(createTime != null)
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
- if(deptName != null)
- map['DeptName'] = deptName;
- if(patientName != null)
- map['PatientName'] = patientName;
- if(patientAge != null)
- map['PatientAge'] = patientAge;
- if(patientSex != null)
- map['PatientSex'] = patientSex;
- if(patientInfoExtList != null)
- map['PatientInfoExtList'] = patientInfoExtList;
- if(associatedExamCodes != null)
- map['AssociatedExamCodes'] = associatedExamCodes;
- 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 UpdateThesaurusUserCodeRequest extends TokenRequest{
- String? thesaurusCode;
- UpdateThesaurusUserCodeRequest({
- this.thesaurusCode,
- String? token,
- }) : super(
- token: token,
- );
- factory UpdateThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
- return UpdateThesaurusUserCodeRequest(
- thesaurusCode: map['ThesaurusCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- return map;
- }
- }
- class DeleteThesaurusUserCodeRequest extends TokenRequest{
- String? thesaurusCode;
- DeleteThesaurusUserCodeRequest({
- this.thesaurusCode,
- String? token,
- }) : super(
- token: token,
- );
- factory DeleteThesaurusUserCodeRequest.fromJson(Map<String, dynamic> map) {
- return DeleteThesaurusUserCodeRequest(
- thesaurusCode: map['ThesaurusCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- return map;
- }
- }
- class GetThesaurusPageRequest extends PageRequest{
- bool? isDefault;
- String? userCode;
- ThesaurusStatusTypeEnum? thesaurusStateType;
- ThesaurusTypeEnum? thesaurusType;
- String? organizationCode;
- String? personalCode;
- String? languageCode;
- String? thesaurusName;
- GetThesaurusPageRequest({
- this.isDefault,
- this.userCode,
- this.thesaurusStateType,
- this.thesaurusType,
- this.organizationCode,
- this.personalCode,
- this.languageCode,
- this.thesaurusName,
- int pageIndex = 0,
- int pageSize = 0,
- String? token,
- }) : super(
- pageIndex: pageIndex,
- pageSize: pageSize,
- token: token,
- );
- factory GetThesaurusPageRequest.fromJson(Map<String, dynamic> map) {
- return GetThesaurusPageRequest(
- isDefault: map['IsDefault'],
- userCode: map['UserCode'],
- thesaurusStateType: map['ThesaurusStateType'] != null ? ThesaurusStatusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusStateType']) : null,
- thesaurusType: map['ThesaurusType'] != null ? ThesaurusTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusType']) : null,
- organizationCode: map['OrganizationCode'],
- personalCode: map['PersonalCode'],
- languageCode: map['LanguageCode'],
- thesaurusName: map['ThesaurusName'],
- pageIndex: map['PageIndex'],
- pageSize: map['PageSize'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(isDefault != null)
- map['IsDefault'] = isDefault;
- if(userCode != null)
- map['UserCode'] = userCode;
- if(thesaurusStateType != null)
- map['ThesaurusStateType'] = thesaurusStateType;
- if(thesaurusType != null)
- map['ThesaurusType'] = thesaurusType;
- if(organizationCode != null)
- map['OrganizationCode'] = organizationCode;
- if(personalCode != null)
- map['PersonalCode'] = personalCode;
- if(languageCode != null)
- map['LanguageCode'] = languageCode;
- if(thesaurusName != null)
- map['ThesaurusName'] = thesaurusName;
- return map;
- }
- }
- enum ThesaurusItemTypeEnum {
- Classification,
- Contents,
- }
- class ThesaurusItemDTO {
- String? thesaurusItemCode;
- ThesaurusItemTypeEnum thesaurusItemType;
- String? thesaurusItemName;
- String? thesaurusItemDescription;
- String? thesaurusItemConclusion;
- String? parentItemCode;
- bool hasChildren;
- ThesaurusItemDTO({
- this.thesaurusItemCode,
- this.thesaurusItemType = ThesaurusItemTypeEnum.Classification,
- this.thesaurusItemName,
- this.thesaurusItemDescription,
- this.thesaurusItemConclusion,
- this.parentItemCode,
- this.hasChildren = false,
- });
- factory ThesaurusItemDTO.fromJson(Map<String, dynamic> map) {
- return ThesaurusItemDTO(
- thesaurusItemCode: map['ThesaurusItemCode'],
- thesaurusItemType: ThesaurusItemTypeEnum.values.firstWhere((e) => e.index == map['ThesaurusItemType']),
- thesaurusItemName: map['ThesaurusItemName'],
- thesaurusItemDescription: map['ThesaurusItemDescription'],
- thesaurusItemConclusion: map['ThesaurusItemConclusion'],
- parentItemCode: map['ParentItemCode'],
- hasChildren: map['HasChildren'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(thesaurusItemCode != null)
- map['ThesaurusItemCode'] = thesaurusItemCode;
- map['ThesaurusItemType'] = thesaurusItemType.index;
- if(thesaurusItemName != null)
- map['ThesaurusItemName'] = thesaurusItemName;
- if(thesaurusItemDescription != null)
- map['ThesaurusItemDescription'] = thesaurusItemDescription;
- if(thesaurusItemConclusion != null)
- map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
- if(parentItemCode != null)
- map['ParentItemCode'] = parentItemCode;
- map['HasChildren'] = hasChildren;
- return map;
- }
- }
- class GetThesaurusItemsRequest extends TokenRequest{
- String? thesaurusCode;
- GetThesaurusItemsRequest({
- this.thesaurusCode,
- String? token,
- }) : super(
- token: token,
- );
- factory GetThesaurusItemsRequest.fromJson(Map<String, dynamic> map) {
- return GetThesaurusItemsRequest(
- thesaurusCode: map['ThesaurusCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- return map;
- }
- }
- class GetThesaurusClassifyByParentCodeRequest extends TokenRequest{
- String? thesaurusCode;
- String? parentItemCode;
- GetThesaurusClassifyByParentCodeRequest({
- this.thesaurusCode,
- this.parentItemCode,
- String? token,
- }) : super(
- token: token,
- );
- factory GetThesaurusClassifyByParentCodeRequest.fromJson(Map<String, dynamic> map) {
- return GetThesaurusClassifyByParentCodeRequest(
- thesaurusCode: map['ThesaurusCode'],
- parentItemCode: map['ParentItemCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- if(parentItemCode != null)
- map['ParentItemCode'] = parentItemCode;
- return map;
- }
- }
- class GetThesaurusContentByParentCodeRequest extends TokenRequest{
- String? thesaurusCode;
- String? parentItemCode;
- GetThesaurusContentByParentCodeRequest({
- this.thesaurusCode,
- this.parentItemCode,
- String? token,
- }) : super(
- token: token,
- );
- factory GetThesaurusContentByParentCodeRequest.fromJson(Map<String, dynamic> map) {
- return GetThesaurusContentByParentCodeRequest(
- thesaurusCode: map['ThesaurusCode'],
- parentItemCode: map['ParentItemCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- if(parentItemCode != null)
- map['ParentItemCode'] = parentItemCode;
- return map;
- }
- }
- class CopyThesaurusRequest extends TokenRequest{
- String? thesaurusCode;
- CopyThesaurusRequest({
- this.thesaurusCode,
- String? token,
- }) : super(
- token: token,
- );
- factory CopyThesaurusRequest.fromJson(Map<String, dynamic> map) {
- return CopyThesaurusRequest(
- thesaurusCode: map['ThesaurusCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- return map;
- }
- }
- class CopyOrgThesaurusRequest extends TokenRequest{
- String? thesaurusCode;
- CopyOrgThesaurusRequest({
- this.thesaurusCode,
- String? token,
- }) : super(
- token: token,
- );
- factory CopyOrgThesaurusRequest.fromJson(Map<String, dynamic> map) {
- return CopyOrgThesaurusRequest(
- thesaurusCode: map['ThesaurusCode'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if(thesaurusCode != null)
- map['ThesaurusCode'] = thesaurusCode;
- return map;
- }
- }
- class SaveUserDefinedMeasureItemsRequest extends TokenRequest{
- SaveUserDefinedMeasureItemsRequest({
- String? token,
- }) : super(
- token: token,
- );
- factory SaveUserDefinedMeasureItemsRequest.fromJson(Map<String, dynamic> map) {
- return SaveUserDefinedMeasureItemsRequest(
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- return map;
- }
- }
- class SaveUserDefinedCommentItemsRequest extends TokenRequest{
- SaveUserDefinedCommentItemsRequest({
- String? token,
- }) : super(
- token: token,
- );
- factory SaveUserDefinedCommentItemsRequest.fromJson(Map<String, dynamic> map) {
- return SaveUserDefinedCommentItemsRequest(
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- return map;
- }
- }
|