|
@@ -4,7 +4,6 @@ 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';
|
|
|
|
|
@@ -461,7 +460,6 @@ class QueryExamListItemResult {
|
|
|
List<DataItemDTO >? ageInfo;
|
|
|
String? sex;
|
|
|
List<String >? associatedExamCodes;
|
|
|
- DateTime? createTime;
|
|
|
|
|
|
QueryExamListItemResult({
|
|
|
this.examCode,
|
|
@@ -470,7 +468,6 @@ class QueryExamListItemResult {
|
|
|
this.ageInfo,
|
|
|
this.sex,
|
|
|
this.associatedExamCodes,
|
|
|
- this.createTime,
|
|
|
});
|
|
|
|
|
|
factory QueryExamListItemResult.fromJson(Map<String, dynamic> map) {
|
|
@@ -481,7 +478,6 @@ class QueryExamListItemResult {
|
|
|
ageInfo: map['AgeInfo'] != null ? (map['AgeInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
sex: map['Sex'],
|
|
|
associatedExamCodes: map['AssociatedExamCodes'] != null ? map['AssociatedExamCodes'].cast<String>().toList() : null,
|
|
|
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -499,8 +495,6 @@ class QueryExamListItemResult {
|
|
|
map['Sex'] = sex;
|
|
|
if(associatedExamCodes != null)
|
|
|
map['AssociatedExamCodes'] = associatedExamCodes;
|
|
|
- if(createTime != null)
|
|
|
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -1578,8 +1572,6 @@ class RecordInfoDTO extends BaseDTO{
|
|
|
List<String >? associatedExamCodes;
|
|
|
DiagnosisStatusEnum diagnosisStatus;
|
|
|
List<DiagnosisInfoDTO >? diagnosisInfos;
|
|
|
- bool isCollecting;
|
|
|
- DateTime? startCollectingTime;
|
|
|
|
|
|
RecordInfoDTO({
|
|
|
this.recordCode,
|
|
@@ -1599,8 +1591,6 @@ class RecordInfoDTO extends BaseDTO{
|
|
|
this.associatedExamCodes,
|
|
|
this.diagnosisStatus = DiagnosisStatusEnum.NotRequired,
|
|
|
this.diagnosisInfos,
|
|
|
- this.isCollecting = false,
|
|
|
- this.startCollectingTime,
|
|
|
DateTime? createTime,
|
|
|
DateTime? updateTime,
|
|
|
}) : super(
|
|
@@ -1627,8 +1617,6 @@ class RecordInfoDTO extends BaseDTO{
|
|
|
associatedExamCodes: map['AssociatedExamCodes'] != null ? map['AssociatedExamCodes'].cast<String>().toList() : null,
|
|
|
diagnosisStatus: DiagnosisStatusEnum.values.firstWhere((e) => e.index == map['DiagnosisStatus']),
|
|
|
diagnosisInfos: map['DiagnosisInfos'] != null ? (map['DiagnosisInfos'] as List).map((e)=>DiagnosisInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- isCollecting: map['IsCollecting'],
|
|
|
- startCollectingTime: map['StartCollectingTime'] != null ? DateTime.parse(map['StartCollectingTime']) : null,
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
);
|
|
@@ -1667,9 +1655,6 @@ class RecordInfoDTO extends BaseDTO{
|
|
|
map['DiagnosisStatus'] = diagnosisStatus.index;
|
|
|
if(diagnosisInfos != null)
|
|
|
map['DiagnosisInfos'] = diagnosisInfos;
|
|
|
- map['IsCollecting'] = isCollecting;
|
|
|
- if(startCollectingTime != null)
|
|
|
- map['StartCollectingTime'] = JsonRpcUtils.dateFormat(startCollectingTime!);
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -3187,262 +3172,4 @@ class SaveRemedicalAISelectedInfoRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class SyncRemedicalRecordRequest {
|
|
|
- String? code;
|
|
|
- String? organizationCode;
|
|
|
- String? deviceCode;
|
|
|
- bool isUploadReport;
|
|
|
- List<DataItemDTO >? patientInfo;
|
|
|
- DiagnosisStatusEnum diagnosisStatus;
|
|
|
- List<DiagnosisInfoDTO >? aIDiagnosisInfos;
|
|
|
- DateTime? createTime;
|
|
|
- DateTime? updateTime;
|
|
|
- String? creator;
|
|
|
-
|
|
|
- SyncRemedicalRecordRequest({
|
|
|
- this.code,
|
|
|
- this.organizationCode,
|
|
|
- this.deviceCode,
|
|
|
- this.isUploadReport = false,
|
|
|
- this.patientInfo,
|
|
|
- this.diagnosisStatus = DiagnosisStatusEnum.NotRequired,
|
|
|
- this.aIDiagnosisInfos,
|
|
|
- this.createTime,
|
|
|
- this.updateTime,
|
|
|
- this.creator,
|
|
|
- });
|
|
|
-
|
|
|
- factory SyncRemedicalRecordRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return SyncRemedicalRecordRequest(
|
|
|
- code: map['Code'],
|
|
|
- organizationCode: map['OrganizationCode'],
|
|
|
- deviceCode: map['DeviceCode'],
|
|
|
- isUploadReport: map['IsUploadReport'],
|
|
|
- patientInfo: map['PatientInfo'] != null ? (map['PatientInfo'] as List).map((e)=>DataItemDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- diagnosisStatus: DiagnosisStatusEnum.values.firstWhere((e) => e.index == map['DiagnosisStatus']),
|
|
|
- aIDiagnosisInfos: map['AIDiagnosisInfos'] != null ? (map['AIDiagnosisInfos'] as List).map((e)=>DiagnosisInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
- creator: map['Creator'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- if(code != null)
|
|
|
- map['Code'] = code;
|
|
|
- if(organizationCode != null)
|
|
|
- map['OrganizationCode'] = organizationCode;
|
|
|
- if(deviceCode != null)
|
|
|
- map['DeviceCode'] = deviceCode;
|
|
|
- map['IsUploadReport'] = isUploadReport;
|
|
|
- if(patientInfo != null)
|
|
|
- map['PatientInfo'] = patientInfo;
|
|
|
- map['DiagnosisStatus'] = diagnosisStatus.index;
|
|
|
- if(aIDiagnosisInfos != null)
|
|
|
- map['AIDiagnosisInfos'] = aIDiagnosisInfos;
|
|
|
- if(createTime != null)
|
|
|
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
- if(updateTime != null)
|
|
|
- map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
|
|
|
- if(creator != null)
|
|
|
- map['Creator'] = creator;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class SyncBatchRemedicalRecordRequest {
|
|
|
- List<SyncRemedicalRecordRequest >? remedicalRecordList;
|
|
|
-
|
|
|
- SyncBatchRemedicalRecordRequest({
|
|
|
- this.remedicalRecordList,
|
|
|
- });
|
|
|
-
|
|
|
- factory SyncBatchRemedicalRecordRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return SyncBatchRemedicalRecordRequest(
|
|
|
- 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>();
|
|
|
- if(remedicalRecordList != null)
|
|
|
- map['RemedicalRecordList'] = remedicalRecordList;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class SyncUploadRemedicalDataRequest {
|
|
|
- String? code;
|
|
|
- DateTime? createTime;
|
|
|
- DateTime? updateTime;
|
|
|
- String? examCode;
|
|
|
- String? previewFileToken;
|
|
|
- String? fileToken;
|
|
|
- int fileSize;
|
|
|
- String? coverImageToken;
|
|
|
- String? applicationCategory;
|
|
|
- String? application;
|
|
|
- RemedicalFileDataTypeEnum fileDataType;
|
|
|
- ImageLocationDTO? imageLocation;
|
|
|
-
|
|
|
- SyncUploadRemedicalDataRequest({
|
|
|
- this.code,
|
|
|
- this.createTime,
|
|
|
- this.updateTime,
|
|
|
- this.examCode,
|
|
|
- this.previewFileToken,
|
|
|
- this.fileToken,
|
|
|
- this.fileSize = 0,
|
|
|
- this.coverImageToken,
|
|
|
- this.applicationCategory,
|
|
|
- this.application,
|
|
|
- this.fileDataType = RemedicalFileDataTypeEnum.VinnoVidSingle,
|
|
|
- this.imageLocation,
|
|
|
- });
|
|
|
-
|
|
|
- factory SyncUploadRemedicalDataRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return SyncUploadRemedicalDataRequest(
|
|
|
- code: map['Code'],
|
|
|
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
- examCode: map['ExamCode'],
|
|
|
- previewFileToken: map['PreviewFileToken'],
|
|
|
- fileToken: map['FileToken'],
|
|
|
- fileSize: map['FileSize'],
|
|
|
- coverImageToken: map['CoverImageToken'],
|
|
|
- applicationCategory: map['ApplicationCategory'],
|
|
|
- application: map['Application'],
|
|
|
- fileDataType: RemedicalFileDataTypeEnum.values.firstWhere((e) => e.index == map['FileDataType']),
|
|
|
- imageLocation: map['ImageLocation'] != null ? ImageLocationDTO.fromJson(map['ImageLocation']) : null,
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- if(code != null)
|
|
|
- map['Code'] = code;
|
|
|
- if(createTime != null)
|
|
|
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
- if(updateTime != null)
|
|
|
- map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
|
|
|
- if(examCode != null)
|
|
|
- map['ExamCode'] = examCode;
|
|
|
- if(previewFileToken != null)
|
|
|
- map['PreviewFileToken'] = previewFileToken;
|
|
|
- if(fileToken != null)
|
|
|
- map['FileToken'] = fileToken;
|
|
|
- map['FileSize'] = fileSize;
|
|
|
- if(coverImageToken != null)
|
|
|
- map['CoverImageToken'] = coverImageToken;
|
|
|
- if(applicationCategory != null)
|
|
|
- map['ApplicationCategory'] = applicationCategory;
|
|
|
- if(application != null)
|
|
|
- map['Application'] = application;
|
|
|
- map['FileDataType'] = fileDataType.index;
|
|
|
- if(imageLocation != null)
|
|
|
- map['ImageLocation'] = imageLocation;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class SyncBatchUploadRemedicalDatasRequest {
|
|
|
- List<SyncUploadRemedicalDataRequest >? syncUploadRemedicalDataList;
|
|
|
-
|
|
|
- SyncBatchUploadRemedicalDatasRequest({
|
|
|
- this.syncUploadRemedicalDataList,
|
|
|
- });
|
|
|
-
|
|
|
- factory SyncBatchUploadRemedicalDatasRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return SyncBatchUploadRemedicalDatasRequest(
|
|
|
- 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>();
|
|
|
- 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 {
|
|
|
- List<SyncAIResultRequest >? syncAIResultList;
|
|
|
-
|
|
|
- SyncBatchAIResultRequest({
|
|
|
- this.syncAIResultList,
|
|
|
- });
|
|
|
-
|
|
|
- factory SyncBatchAIResultRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return SyncBatchAIResultRequest(
|
|
|
- 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>();
|
|
|
- if(syncAIResultList != null)
|
|
|
- map['SyncAIResultList'] = syncAIResultList;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class SyncBatchCarotidResultRequest {
|
|
|
- List<GetCarotidResultRequest >? syncCarotidResultRequest;
|
|
|
-
|
|
|
- SyncBatchCarotidResultRequest({
|
|
|
- this.syncCarotidResultRequest,
|
|
|
- });
|
|
|
-
|
|
|
- factory SyncBatchCarotidResultRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return SyncBatchCarotidResultRequest(
|
|
|
- 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>();
|
|
|
- if(syncCarotidResultRequest != null)
|
|
|
- map['SyncCarotidResultRequest'] = syncCarotidResultRequest;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
|