|
@@ -2,7 +2,6 @@ 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';
|
|
@@ -1107,4 +1106,340 @@ class GetReportElementByLanguageRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class SaveUserDefinedCommentsRequest extends TokenRequest{
|
|
|
+ String? version;
|
|
|
+ String? languageCode;
|
|
|
+ String? applicationName;
|
|
|
+ String? categoryName;
|
|
|
+ List<CommentItemDTO>? commentItems;
|
|
|
+
|
|
|
+ SaveUserDefinedCommentsRequest({
|
|
|
+ this.version,
|
|
|
+ this.languageCode,
|
|
|
+ this.applicationName,
|
|
|
+ this.categoryName,
|
|
|
+ this.commentItems,
|
|
|
+ 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'],
|
|
|
+ commentItems: map['CommentItems'] != null ? (map['CommentItems'] as List).map((e)=>CommentItemDTO.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(commentItems != null)
|
|
|
+ map['CommentItems'] = commentItems;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class UserDefinedItemMetaDTO {
|
|
|
+ String? name;
|
|
|
+ String? workingMethodItem;
|
|
|
+
|
|
|
+ UserDefinedItemMetaDTO({
|
|
|
+ this.name,
|
|
|
+ this.workingMethodItem,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory UserDefinedItemMetaDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return UserDefinedItemMetaDTO(
|
|
|
+ name: map['Name'],
|
|
|
+ workingMethodItem: map['WorkingMethodItem'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(name != null)
|
|
|
+ map['Name'] = name;
|
|
|
+ if(workingMethodItem != null)
|
|
|
+ map['WorkingMethodItem'] = workingMethodItem;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class UserDefinedMeasureFolderDTO {
|
|
|
+ String? name;
|
|
|
+ List<String>? workingItemNames;
|
|
|
+ String? defaultItem;
|
|
|
+ List<UserDefinedItemMetaDTO>? multiMethodItemMetas;
|
|
|
+
|
|
|
+ UserDefinedMeasureFolderDTO({
|
|
|
+ this.name,
|
|
|
+ this.workingItemNames,
|
|
|
+ this.defaultItem,
|
|
|
+ this.multiMethodItemMetas,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory UserDefinedMeasureFolderDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return UserDefinedMeasureFolderDTO(
|
|
|
+ name: map['Name'],
|
|
|
+ workingItemNames: map['WorkingItemNames'] != null ? map['WorkingItemNames'].cast<String>().toList() : null,
|
|
|
+ defaultItem: map['DefaultItem'],
|
|
|
+ multiMethodItemMetas: map['MultiMethodItemMetas'] != null ? (map['MultiMethodItemMetas'] as List).map((e)=>UserDefinedItemMetaDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(name != null)
|
|
|
+ map['Name'] = name;
|
|
|
+ if(workingItemNames != null)
|
|
|
+ map['WorkingItemNames'] = workingItemNames;
|
|
|
+ if(defaultItem != null)
|
|
|
+ map['DefaultItem'] = defaultItem;
|
|
|
+ if(multiMethodItemMetas != null)
|
|
|
+ map['MultiMethodItemMetas'] = multiMethodItemMetas;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class UserDefinedMeasureGroupDTO {
|
|
|
+ String? name;
|
|
|
+ List<UserDefinedMeasureFolderDTO>? folders;
|
|
|
+
|
|
|
+ UserDefinedMeasureGroupDTO({
|
|
|
+ this.name,
|
|
|
+ this.folders,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory UserDefinedMeasureGroupDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return UserDefinedMeasureGroupDTO(
|
|
|
+ name: map['Name'],
|
|
|
+ folders: map['Folders'] != null ? (map['Folders'] as List).map((e)=>UserDefinedMeasureFolderDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(name != null)
|
|
|
+ map['Name'] = name;
|
|
|
+ if(folders != null)
|
|
|
+ map['Folders'] = folders;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class UserDefinedMeasureModeDTO {
|
|
|
+ String? modeName;
|
|
|
+ List<UserDefinedMeasureGroupDTO>? workingGroups;
|
|
|
+
|
|
|
+ UserDefinedMeasureModeDTO({
|
|
|
+ this.modeName,
|
|
|
+ this.workingGroups,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory UserDefinedMeasureModeDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return UserDefinedMeasureModeDTO(
|
|
|
+ modeName: map['ModeName'],
|
|
|
+ workingGroups: map['WorkingGroups'] != null ? (map['WorkingGroups'] as List).map((e)=>UserDefinedMeasureGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(modeName != null)
|
|
|
+ map['ModeName'] = modeName;
|
|
|
+ if(workingGroups != null)
|
|
|
+ map['WorkingGroups'] = workingGroups;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class SaveUserDefinedMeasureApplicationRequest extends TokenRequest{
|
|
|
+ String? version;
|
|
|
+ String? applicationName;
|
|
|
+ String? categoryName;
|
|
|
+ UserDefinedMeasureModeDTO? workingMode;
|
|
|
+
|
|
|
+ SaveUserDefinedMeasureApplicationRequest({
|
|
|
+ this.version,
|
|
|
+ this.applicationName,
|
|
|
+ this.categoryName,
|
|
|
+ this.workingMode,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory SaveUserDefinedMeasureApplicationRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return SaveUserDefinedMeasureApplicationRequest(
|
|
|
+ version: map['Version'],
|
|
|
+ applicationName: map['ApplicationName'],
|
|
|
+ categoryName: map['CategoryName'],
|
|
|
+ workingMode: map['WorkingMode'] != null ? UserDefinedMeasureModeDTO.fromJson(map['WorkingMode']) : null,
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(version != null)
|
|
|
+ map['Version'] = version;
|
|
|
+ if(applicationName != null)
|
|
|
+ map['ApplicationName'] = applicationName;
|
|
|
+ if(categoryName != null)
|
|
|
+ map['CategoryName'] = categoryName;
|
|
|
+ if(workingMode != null)
|
|
|
+ map['WorkingMode'] = workingMode;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+enum CursorTypeEnum {
|
|
|
+ CursorType1Icon,
|
|
|
+ CursorType2Icon,
|
|
|
+ CursorType3Icon,
|
|
|
+ CursorType4Icon,
|
|
|
+ CursorType5Icon,
|
|
|
+}
|
|
|
+
|
|
|
+class MeasureSystemSettingDTO {
|
|
|
+ String? version;
|
|
|
+ CursorTypeEnum cursorType;
|
|
|
+ int cursorSize;
|
|
|
+ int shapeCursorSize;
|
|
|
+ String? cursorColor;
|
|
|
+ bool showResultWindow;
|
|
|
+ int 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.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'],
|
|
|
+ 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['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;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|