|
@@ -1330,21 +1330,60 @@ class GetPresetCommentsRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class DeviceDiagnosisChangedNotification {
|
|
|
+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;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class DeviceDiagnosisChangedNotification extends TokenRequest{
|
|
|
+ String? diagnosisModule;
|
|
|
+ String? organizationCode;
|
|
|
String? deviceCode;
|
|
|
|
|
|
DeviceDiagnosisChangedNotification({
|
|
|
+ this.diagnosisModule,
|
|
|
+ this.organizationCode,
|
|
|
this.deviceCode,
|
|
|
- });
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
|
|
|
factory DeviceDiagnosisChangedNotification.fromJson(Map<String, dynamic> map) {
|
|
|
return DeviceDiagnosisChangedNotification(
|
|
|
+ diagnosisModule: map['DiagnosisModule'],
|
|
|
+ organizationCode: map['OrganizationCode'],
|
|
|
deviceCode: map['DeviceCode'],
|
|
|
+ token: map['Token'],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
+ final map = super.toJson();
|
|
|
+ if(diagnosisModule != null)
|
|
|
+ map['DiagnosisModule'] = diagnosisModule;
|
|
|
+ if(organizationCode != null)
|
|
|
+ map['OrganizationCode'] = organizationCode;
|
|
|
if(deviceCode != null)
|
|
|
map['DeviceCode'] = deviceCode;
|
|
|
return map;
|
|
@@ -1717,4 +1756,213 @@ class SaveMeasureSystemSettingRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+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;
|
|
|
+
|
|
|
+ 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,
|
|
|
+ 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,
|
|
|
+ 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;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class RemedicalData {
|
|
|
+ RecordInfoDTO? recordBaseInfo;
|
|
|
+ List<String>? reports;
|
|
|
+ List<String>? remedicalDatas;
|
|
|
+
|
|
|
+ RemedicalData({
|
|
|
+ this.recordBaseInfo,
|
|
|
+ this.reports,
|
|
|
+ this.remedicalDatas,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory RemedicalData.fromJson(Map<String, dynamic> map) {
|
|
|
+ return RemedicalData(
|
|
|
+ recordBaseInfo: map['RecordBaseInfo'] != null ? RecordInfoDTO.fromJson(map['RecordBaseInfo']) : null,
|
|
|
+ reports: map['Reports'] != null ? map['Reports'].cast<String>().toList() : null,
|
|
|
+ remedicalDatas: map['RemedicalDatas'] != null ? map['RemedicalDatas'].cast<String>().toList() : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(recordBaseInfo != null)
|
|
|
+ map['RecordBaseInfo'] = recordBaseInfo;
|
|
|
+ if(reports != null)
|
|
|
+ map['Reports'] = reports;
|
|
|
+ if(remedicalDatas != null)
|
|
|
+ map['RemedicalDatas'] = remedicalDatas;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class ExportRemedicalDataResult {
|
|
|
+ List<RemedicalData>? remedicalDataList;
|
|
|
+
|
|
|
+ ExportRemedicalDataResult({
|
|
|
+ this.remedicalDataList,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory ExportRemedicalDataResult.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ExportRemedicalDataResult(
|
|
|
+ remedicalDataList: map['RemedicalDataList'] != null ? (map['RemedicalDataList'] as List).map((e)=>RemedicalData.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(remedicalDataList != null)
|
|
|
+ map['RemedicalDataList'] = remedicalDataList;
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|