|
@@ -84,45 +84,45 @@ class ReportTemplateDTO {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(reportTemplateCode != null) {
|
|
|
+ if (reportTemplateCode != null) {
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
}
|
|
|
- if(reportTemplateName != null) {
|
|
|
+ if (reportTemplateName != null) {
|
|
|
map['ReportTemplateName'] = reportTemplateName;
|
|
|
}
|
|
|
map['ReportTemplateStateType'] = reportTemplateStateType.index;
|
|
|
map['ReportTemplateType'] = reportTemplateType.index;
|
|
|
map['ReportTemplateUsageType'] = reportTemplateUsageType.index;
|
|
|
- if(organizationCode != null) {
|
|
|
+ if (organizationCode != null) {
|
|
|
map['OrganizationCode'] = organizationCode;
|
|
|
}
|
|
|
- if(personalCode != null) {
|
|
|
+ if (personalCode != null) {
|
|
|
map['PersonalCode'] = personalCode;
|
|
|
}
|
|
|
- if(organizationName != null) {
|
|
|
+ if (organizationName != null) {
|
|
|
map['OrganizationName'] = organizationName;
|
|
|
}
|
|
|
- if(personalName != null) {
|
|
|
+ if (personalName != null) {
|
|
|
map['PersonalName'] = personalName;
|
|
|
}
|
|
|
- if(reportTemplateJson != null) {
|
|
|
+ if (reportTemplateJson != null) {
|
|
|
map['ReportTemplateJson'] = reportTemplateJson;
|
|
|
}
|
|
|
- if(referenceReportTemplateCode != null) {
|
|
|
+ if (referenceReportTemplateCode != null) {
|
|
|
map['ReferenceReportTemplateCode'] = referenceReportTemplateCode;
|
|
|
}
|
|
|
map['IsDefault'] = isDefault;
|
|
|
map['IsUserDefault'] = isUserDefault;
|
|
|
- if(reportDatasJson != null) {
|
|
|
+ if (reportDatasJson != null) {
|
|
|
map['ReportDatasJson'] = reportDatasJson;
|
|
|
}
|
|
|
- if(templatePreviewList != null) {
|
|
|
+ if (templatePreviewList != null) {
|
|
|
map['TemplatePreviewList'] = templatePreviewList;
|
|
|
}
|
|
|
- if(templatePreviewUrlList != null) {
|
|
|
+ if (templatePreviewUrlList != null) {
|
|
|
map['TemplatePreviewUrlList'] = templatePreviewUrlList;
|
|
|
}
|
|
|
- if(languageCode != null) {
|
|
|
+ if (languageCode != null) {
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
}
|
|
|
return map;
|
|
@@ -151,9 +151,9 @@ class FindReportTemplateByCodeRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -181,9 +181,9 @@ class FindReportByCodeRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportCode != null)
|
|
|
+ if (reportCode != null)
|
|
|
map['ReportCode'] = reportCode;
|
|
|
- if(language != null)
|
|
|
+ if (language != null)
|
|
|
map['Language'] = language;
|
|
|
return map;
|
|
|
}
|
|
@@ -211,9 +211,9 @@ class FindPatientReportsRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(patientCode != null)
|
|
|
+ if (patientCode != null)
|
|
|
map['PatientCode'] = patientCode;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -258,14 +258,14 @@ class ReportLabelDTO extends BaseDTO{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportLabelCode != null)
|
|
|
+ if (reportLabelCode != null)
|
|
|
map['ReportLabelCode'] = reportLabelCode;
|
|
|
- if(labelName != null)
|
|
|
+ if (labelName != null)
|
|
|
map['LabelName'] = labelName;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
map['UsageType'] = usageType.index;
|
|
|
- if(labelItems != null)
|
|
|
+ if (labelItems != null)
|
|
|
map['LabelItems'] = labelItems;
|
|
|
return map;
|
|
|
}
|
|
@@ -297,9 +297,9 @@ class FindReportLabelsRequest extends TokenRequest{
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
map['ReportType'] = reportType.index;
|
|
|
- if(recordCode != null)
|
|
|
+ if (recordCode != null)
|
|
|
map['RecordCode'] = recordCode;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -333,11 +333,11 @@ class ShareDTO extends BaseDTO{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(shareCode != null)
|
|
|
+ if (shareCode != null)
|
|
|
map['ShareCode'] = shareCode;
|
|
|
- if(shortCode != null)
|
|
|
+ if (shortCode != null)
|
|
|
map['ShortCode'] = shortCode;
|
|
|
- if(shareContent != null)
|
|
|
+ if (shareContent != null)
|
|
|
map['ShareContent'] = shareContent;
|
|
|
return map;
|
|
|
}
|
|
@@ -358,7 +358,7 @@ class FindShareContentRequest {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(shortCode != null) {
|
|
|
+ if (shortCode != null) {
|
|
|
map['ShortCode'] = shortCode;
|
|
|
}
|
|
|
return map;
|
|
@@ -415,22 +415,22 @@ class AddReportRequest extends TokenRequest{
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
map['ReportType'] = reportType.index;
|
|
|
- if(recordCode != null)
|
|
|
+ if (recordCode != null)
|
|
|
map['RecordCode'] = recordCode;
|
|
|
- if(reportTemplateJson != null)
|
|
|
+ if (reportTemplateJson != null)
|
|
|
map['ReportTemplateJson'] = reportTemplateJson;
|
|
|
- if(reportDatasJson != null)
|
|
|
+ if (reportDatasJson != null)
|
|
|
map['ReportDatasJson'] = reportDatasJson;
|
|
|
- if(patientName != null)
|
|
|
+ if (patientName != null)
|
|
|
map['PatientName'] = patientName;
|
|
|
- if(reportLabels != null)
|
|
|
+ if (reportLabels != null)
|
|
|
map['ReportLabels'] = reportLabels;
|
|
|
- if(platformLabels != null)
|
|
|
+ if (platformLabels != null)
|
|
|
map['PlatformLabels'] = platformLabels;
|
|
|
- if(diagnosisLabels != null)
|
|
|
+ if (diagnosisLabels != null)
|
|
|
map['DiagnosisLabels'] = diagnosisLabels;
|
|
|
map['ReportOrgan'] = reportOrgan.index;
|
|
|
- if(referralRecordCode != null)
|
|
|
+ if (referralRecordCode != null)
|
|
|
map['ReferralRecordCode'] = referralRecordCode;
|
|
|
map['IsReferral'] = isReferral;
|
|
|
return map;
|
|
@@ -489,7 +489,7 @@ class ModifyReportRequest extends AddReportRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportCode != null)
|
|
|
+ if (reportCode != null)
|
|
|
map['ReportCode'] = reportCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -517,9 +517,9 @@ class ModifyReportLabelsRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportCode != null)
|
|
|
+ if (reportCode != null)
|
|
|
map['ReportCode'] = reportCode;
|
|
|
- if(reportLabels != null)
|
|
|
+ if (reportLabels != null)
|
|
|
map['ReportLabels'] = reportLabels;
|
|
|
return map;
|
|
|
}
|
|
@@ -550,11 +550,11 @@ class ShareReportBySmsRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportCode != null)
|
|
|
+ if (reportCode != null)
|
|
|
map['ReportCode'] = reportCode;
|
|
|
- if(mobileList != null)
|
|
|
+ if (mobileList != null)
|
|
|
map['MobileList'] = mobileList;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -585,11 +585,11 @@ class ShareReportByEmailRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportCode != null)
|
|
|
+ if (reportCode != null)
|
|
|
map['ReportCode'] = reportCode;
|
|
|
- if(emailList != null)
|
|
|
+ if (emailList != null)
|
|
|
map['EmailList'] = emailList;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -614,7 +614,7 @@ class CopyReportTemplateRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -639,7 +639,7 @@ class CopyOrgReportTemplateRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -650,12 +650,14 @@ class FindReportTemplatePagesRequest extends PageRequest{
|
|
|
String? reportTemplateName;
|
|
|
String? languageCode;
|
|
|
ReportTemplateTypeEnum? reportTemplateType;
|
|
|
+ ReportTemplateStatusTypeEnum? reportTemplateStateType;
|
|
|
|
|
|
FindReportTemplatePagesRequest({
|
|
|
this.isDefault,
|
|
|
this.reportTemplateName,
|
|
|
this.languageCode,
|
|
|
this.reportTemplateType,
|
|
|
+ this.reportTemplateStateType,
|
|
|
int pageIndex = 0,
|
|
|
int pageSize = 0,
|
|
|
String? token,
|
|
@@ -671,6 +673,7 @@ class FindReportTemplatePagesRequest extends PageRequest{
|
|
|
reportTemplateName: map['ReportTemplateName'],
|
|
|
languageCode: map['LanguageCode'],
|
|
|
reportTemplateType: map['ReportTemplateType'] != null ? ReportTemplateTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateType']) : null,
|
|
|
+ reportTemplateStateType: map['ReportTemplateStateType'] != null ? ReportTemplateStatusTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateStateType']) : null,
|
|
|
pageIndex: map['PageIndex'],
|
|
|
pageSize: map['PageSize'],
|
|
|
token: map['Token'],
|
|
@@ -679,14 +682,16 @@ class FindReportTemplatePagesRequest extends PageRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(isDefault != null)
|
|
|
+ if (isDefault != null)
|
|
|
map['IsDefault'] = isDefault;
|
|
|
- if(reportTemplateName != null)
|
|
|
+ if (reportTemplateName != null)
|
|
|
map['ReportTemplateName'] = reportTemplateName;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
- if(reportTemplateType != null)
|
|
|
+ if (reportTemplateType != null)
|
|
|
map['ReportTemplateType'] = reportTemplateType;
|
|
|
+ if (reportTemplateStateType != null)
|
|
|
+ map['ReportTemplateStateType'] = reportTemplateStateType;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -722,14 +727,14 @@ class AddReportTemplateRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateName != null)
|
|
|
+ if (reportTemplateName != null)
|
|
|
map['ReportTemplateName'] = reportTemplateName;
|
|
|
- if(reportTemplateJson != null)
|
|
|
+ if (reportTemplateJson != null)
|
|
|
map['ReportTemplateJson'] = reportTemplateJson;
|
|
|
- if(reportDatasJson != null)
|
|
|
+ if (reportDatasJson != null)
|
|
|
map['ReportDatasJson'] = reportDatasJson;
|
|
|
map['ReportTemplateType'] = reportTemplateType.index;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -763,13 +768,13 @@ class UpdateReportTemplateRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
- if(reportTemplateName != null)
|
|
|
+ if (reportTemplateName != null)
|
|
|
map['ReportTemplateName'] = reportTemplateName;
|
|
|
- if(reportTemplateJson != null)
|
|
|
+ if (reportTemplateJson != null)
|
|
|
map['ReportTemplateJson'] = reportTemplateJson;
|
|
|
- if(reportDatasJson != null)
|
|
|
+ if (reportDatasJson != null)
|
|
|
map['ReportDatasJson'] = reportDatasJson;
|
|
|
return map;
|
|
|
}
|
|
@@ -794,7 +799,7 @@ class RemoveReportTemplateRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -825,9 +830,9 @@ class AddThesaurusRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusName != null)
|
|
|
+ if (thesaurusName != null)
|
|
|
map['ThesaurusName'] = thesaurusName;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
map['PatientType'] = patientType.index;
|
|
|
return map;
|
|
@@ -856,9 +861,9 @@ class UpdateThesaurusRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(thesaurusName != null)
|
|
|
+ if (thesaurusName != null)
|
|
|
map['ThesaurusName'] = thesaurusName;
|
|
|
return map;
|
|
|
}
|
|
@@ -889,11 +894,11 @@ class AddThesaurusClassifyRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(thesaurusItemName != null)
|
|
|
+ if (thesaurusItemName != null)
|
|
|
map['ThesaurusItemName'] = thesaurusItemName;
|
|
|
- if(parentItemCode != null)
|
|
|
+ if (parentItemCode != null)
|
|
|
map['ParentItemCode'] = parentItemCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -927,13 +932,13 @@ class AddThesaurusContentRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(thesaurusItemDescription != null)
|
|
|
+ if (thesaurusItemDescription != null)
|
|
|
map['ThesaurusItemDescription'] = thesaurusItemDescription;
|
|
|
- if(thesaurusItemConclusion != null)
|
|
|
+ if (thesaurusItemConclusion != null)
|
|
|
map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
|
|
|
- if(parentItemCode != null)
|
|
|
+ if (parentItemCode != null)
|
|
|
map['ParentItemCode'] = parentItemCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -967,13 +972,13 @@ class UpdateThesaurusClassifyRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(thesaurusItemCode != null)
|
|
|
+ if (thesaurusItemCode != null)
|
|
|
map['ThesaurusItemCode'] = thesaurusItemCode;
|
|
|
- if(thesaurusItemName != null)
|
|
|
+ if (thesaurusItemName != null)
|
|
|
map['ThesaurusItemName'] = thesaurusItemName;
|
|
|
- if(parentItemCode != null)
|
|
|
+ if (parentItemCode != null)
|
|
|
map['ParentItemCode'] = parentItemCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1010,15 +1015,15 @@ class UpdateThesaurusContentRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(thesaurusItemCode != null)
|
|
|
+ if (thesaurusItemCode != null)
|
|
|
map['ThesaurusItemCode'] = thesaurusItemCode;
|
|
|
- if(thesaurusItemDescription != null)
|
|
|
+ if (thesaurusItemDescription != null)
|
|
|
map['ThesaurusItemDescription'] = thesaurusItemDescription;
|
|
|
- if(thesaurusItemConclusion != null)
|
|
|
+ if (thesaurusItemConclusion != null)
|
|
|
map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
|
|
|
- if(parentItemCode != null)
|
|
|
+ if (parentItemCode != null)
|
|
|
map['ParentItemCode'] = parentItemCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1043,7 +1048,7 @@ class RemoveThesaurusRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1071,9 +1076,9 @@ class RemoveThesaurusItemRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(thesaurusItemCode != null)
|
|
|
+ if (thesaurusItemCode != null)
|
|
|
map['ThesaurusItemCode'] = thesaurusItemCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1146,33 +1151,33 @@ class ThesaurusDTO {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(thesaurusCode != null) {
|
|
|
+ if (thesaurusCode != null) {
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
}
|
|
|
- if(thesaurusName != null) {
|
|
|
+ if (thesaurusName != null) {
|
|
|
map['ThesaurusName'] = thesaurusName;
|
|
|
}
|
|
|
map['ThesaurusStateType'] = thesaurusStateType.index;
|
|
|
map['ThesaurusType'] = thesaurusType.index;
|
|
|
map['ThesaurusUsageType'] = thesaurusUsageType.index;
|
|
|
- if(organizationCode != null) {
|
|
|
+ if (organizationCode != null) {
|
|
|
map['OrganizationCode'] = organizationCode;
|
|
|
}
|
|
|
- if(personalCode != null) {
|
|
|
+ if (personalCode != null) {
|
|
|
map['PersonalCode'] = personalCode;
|
|
|
}
|
|
|
- if(organizationName != null) {
|
|
|
+ if (organizationName != null) {
|
|
|
map['OrganizationName'] = organizationName;
|
|
|
}
|
|
|
- if(personalName != null) {
|
|
|
+ if (personalName != null) {
|
|
|
map['PersonalName'] = personalName;
|
|
|
}
|
|
|
- if(referenceThesaurusCode != null) {
|
|
|
+ if (referenceThesaurusCode != null) {
|
|
|
map['ReferenceThesaurusCode'] = referenceThesaurusCode;
|
|
|
}
|
|
|
map['IsDefault'] = isDefault;
|
|
|
map['IsUserDefault'] = isUserDefault;
|
|
|
- if(languageCode != null) {
|
|
|
+ if (languageCode != null) {
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
}
|
|
|
return map;
|
|
@@ -1228,23 +1233,23 @@ class GetThesaurusPageRequest extends PageRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(isDefault != null)
|
|
|
+ if (isDefault != null)
|
|
|
map['IsDefault'] = isDefault;
|
|
|
- if(userCode != null)
|
|
|
+ if (userCode != null)
|
|
|
map['UserCode'] = userCode;
|
|
|
- if(thesaurusStateType != null)
|
|
|
+ if (thesaurusStateType != null)
|
|
|
map['ThesaurusStateType'] = thesaurusStateType;
|
|
|
- if(thesaurusType != null)
|
|
|
+ if (thesaurusType != null)
|
|
|
map['ThesaurusType'] = thesaurusType;
|
|
|
- if(thesaurusUsageType != null)
|
|
|
+ if (thesaurusUsageType != null)
|
|
|
map['ThesaurusUsageType'] = thesaurusUsageType;
|
|
|
- if(organizationCode != null)
|
|
|
+ if (organizationCode != null)
|
|
|
map['OrganizationCode'] = organizationCode;
|
|
|
- if(personalCode != null)
|
|
|
+ if (personalCode != null)
|
|
|
map['PersonalCode'] = personalCode;
|
|
|
- if(thesaurusName != null)
|
|
|
+ if (thesaurusName != null)
|
|
|
map['ThesaurusName'] = thesaurusName;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1291,20 +1296,20 @@ class ThesaurusItemDTO {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(thesaurusItemCode != null) {
|
|
|
+ if (thesaurusItemCode != null) {
|
|
|
map['ThesaurusItemCode'] = thesaurusItemCode;
|
|
|
}
|
|
|
map['ThesaurusItemType'] = thesaurusItemType.index;
|
|
|
- if(thesaurusItemName != null) {
|
|
|
+ if (thesaurusItemName != null) {
|
|
|
map['ThesaurusItemName'] = thesaurusItemName;
|
|
|
}
|
|
|
- if(thesaurusItemDescription != null) {
|
|
|
+ if (thesaurusItemDescription != null) {
|
|
|
map['ThesaurusItemDescription'] = thesaurusItemDescription;
|
|
|
}
|
|
|
- if(thesaurusItemConclusion != null) {
|
|
|
+ if (thesaurusItemConclusion != null) {
|
|
|
map['ThesaurusItemConclusion'] = thesaurusItemConclusion;
|
|
|
}
|
|
|
- if(parentItemCode != null) {
|
|
|
+ if (parentItemCode != null) {
|
|
|
map['ParentItemCode'] = parentItemCode;
|
|
|
}
|
|
|
map['HasChildren'] = hasChildren;
|
|
@@ -1335,9 +1340,9 @@ class GetThesaurusItemsRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(keyword != null)
|
|
|
+ if (keyword != null)
|
|
|
map['Keyword'] = keyword;
|
|
|
return map;
|
|
|
}
|
|
@@ -1365,9 +1370,9 @@ class GetThesaurusItemByCodeRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(thesaurusItemCode != null)
|
|
|
+ if (thesaurusItemCode != null)
|
|
|
map['ThesaurusItemCode'] = thesaurusItemCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1398,11 +1403,11 @@ class GetThesaurusClassifyByParentCodeRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(parentItemCode != null)
|
|
|
+ if (parentItemCode != null)
|
|
|
map['ParentItemCode'] = parentItemCode;
|
|
|
- if(keyword != null)
|
|
|
+ if (keyword != null)
|
|
|
map['Keyword'] = keyword;
|
|
|
return map;
|
|
|
}
|
|
@@ -1433,11 +1438,11 @@ class GetThesaurusContentByParentCodeRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(parentItemCode != null)
|
|
|
+ if (parentItemCode != null)
|
|
|
map['ParentItemCode'] = parentItemCode;
|
|
|
- if(keyword != null)
|
|
|
+ if (keyword != null)
|
|
|
map['Keyword'] = keyword;
|
|
|
return map;
|
|
|
}
|
|
@@ -1462,7 +1467,7 @@ class CopyThesaurusRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1487,7 +1492,7 @@ class CopyOrgThesaurusRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1511,10 +1516,10 @@ class ThesaurusAllDTO {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(baseInfo != null) {
|
|
|
+ if (baseInfo != null) {
|
|
|
map['BaseInfo'] = baseInfo;
|
|
|
}
|
|
|
- if(items != null) {
|
|
|
+ if (items != null) {
|
|
|
map['Items'] = items;
|
|
|
}
|
|
|
return map;
|
|
@@ -1540,7 +1545,7 @@ class GetDefaultThesaurusContentRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1568,9 +1573,9 @@ class SetUserDefaultThesaurusRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1595,7 +1600,7 @@ class RetryPushReportRecordsByCodesRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(codes != null)
|
|
|
+ if (codes != null)
|
|
|
map['Codes'] = codes;
|
|
|
return map;
|
|
|
}
|
|
@@ -1623,9 +1628,9 @@ class FindReportPreviewImageRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(recordCode != null)
|
|
|
+ if (recordCode != null)
|
|
|
map['RecordCode'] = recordCode;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1653,9 +1658,9 @@ class FindReportShareUrlRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportCode != null)
|
|
|
+ if (reportCode != null)
|
|
|
map['ReportCode'] = reportCode;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1680,7 +1685,7 @@ class GetDefaultReportTemplateContentRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1708,9 +1713,9 @@ class SetUserDefaultReportTemplateRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1731,7 +1736,7 @@ class GetReportTemplateDBRequest {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(reportTemplateCode != null) {
|
|
|
+ if (reportTemplateCode != null) {
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
}
|
|
|
return map;
|
|
@@ -1757,7 +1762,7 @@ class RefreshReportPosterRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportPosterCode != null)
|
|
|
+ if (reportPosterCode != null)
|
|
|
map['ReportPosterCode'] = reportPosterCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1820,47 +1825,47 @@ class SyncReportInfoRequest {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(reportCode != null) {
|
|
|
+ if (reportCode != null) {
|
|
|
map['ReportCode'] = reportCode;
|
|
|
}
|
|
|
- if(createTime != null) {
|
|
|
+ if (createTime != null) {
|
|
|
map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
}
|
|
|
- if(updateTime != null) {
|
|
|
+ if (updateTime != null) {
|
|
|
map['UpdateTime'] = JsonRpcUtils.dateFormat(updateTime!);
|
|
|
}
|
|
|
- if(recordCode != null) {
|
|
|
+ if (recordCode != null) {
|
|
|
map['RecordCode'] = recordCode;
|
|
|
}
|
|
|
- if(reportUserCode != null) {
|
|
|
+ if (reportUserCode != null) {
|
|
|
map['ReportUserCode'] = reportUserCode;
|
|
|
}
|
|
|
- if(patientCode != null) {
|
|
|
+ if (patientCode != null) {
|
|
|
map['PatientCode'] = patientCode;
|
|
|
}
|
|
|
- if(patientName != null) {
|
|
|
+ if (patientName != null) {
|
|
|
map['PatientName'] = patientName;
|
|
|
}
|
|
|
- if(deviceCode != null) {
|
|
|
+ if (deviceCode != null) {
|
|
|
map['DeviceCode'] = deviceCode;
|
|
|
}
|
|
|
- if(reportTemplateJson != null) {
|
|
|
+ if (reportTemplateJson != null) {
|
|
|
map['ReportTemplateJson'] = reportTemplateJson;
|
|
|
}
|
|
|
- if(reportDatasJson != null) {
|
|
|
+ if (reportDatasJson != null) {
|
|
|
map['ReportDatasJson'] = reportDatasJson;
|
|
|
}
|
|
|
- if(reportLabels != null) {
|
|
|
+ if (reportLabels != null) {
|
|
|
map['ReportLabels'] = reportLabels;
|
|
|
}
|
|
|
- if(platformLabels != null) {
|
|
|
+ if (platformLabels != null) {
|
|
|
map['PlatformLabels'] = platformLabels;
|
|
|
}
|
|
|
- if(diagnosisLabels != null) {
|
|
|
+ if (diagnosisLabels != null) {
|
|
|
map['DiagnosisLabels'] = diagnosisLabels;
|
|
|
}
|
|
|
map['ReportOrgan'] = reportOrgan.index;
|
|
|
- if(reportPreviewList != null) {
|
|
|
+ if (reportPreviewList != null) {
|
|
|
map['ReportPreviewList'] = reportPreviewList;
|
|
|
}
|
|
|
return map;
|
|
@@ -1886,7 +1891,7 @@ class SyncBatchReportInfoRequest {
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
map['SyncType'] = syncType.index;
|
|
|
- if(syncReportInfos != null) {
|
|
|
+ if (syncReportInfos != null) {
|
|
|
map['SyncReportInfos'] = syncReportInfos;
|
|
|
}
|
|
|
return map;
|
|
@@ -1911,10 +1916,10 @@ class ApplicationItemDTO {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(description != null) {
|
|
|
+ if (description != null) {
|
|
|
map['Description'] = description;
|
|
|
}
|
|
|
- if(summary != null) {
|
|
|
+ if (summary != null) {
|
|
|
map['Summary'] = summary;
|
|
|
}
|
|
|
return map;
|
|
@@ -1939,10 +1944,10 @@ class ApplicationInfoDTO {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(name != null) {
|
|
|
+ if (name != null) {
|
|
|
map['Name'] = name;
|
|
|
}
|
|
|
- if(items != null) {
|
|
|
+ if (items != null) {
|
|
|
map['Items'] = items;
|
|
|
}
|
|
|
return map;
|
|
@@ -1967,10 +1972,10 @@ class ThesaurusInfoDTO {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(name != null) {
|
|
|
+ if (name != null) {
|
|
|
map['Name'] = name;
|
|
|
}
|
|
|
- if(applications != null) {
|
|
|
+ if (applications != null) {
|
|
|
map['Applications'] = applications;
|
|
|
}
|
|
|
return map;
|
|
@@ -1992,7 +1997,7 @@ class ThesaurusTemplateInfoDTO {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(thesaurusList != null) {
|
|
|
+ if (thesaurusList != null) {
|
|
|
map['ThesaurusList'] = thesaurusList;
|
|
|
}
|
|
|
return map;
|
|
@@ -2039,18 +2044,18 @@ class ImportThesaurusInfoRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusName != null)
|
|
|
+ if (thesaurusName != null)
|
|
|
map['ThesaurusName'] = thesaurusName;
|
|
|
- if(thesaurusTemplateInfo != null)
|
|
|
+ if (thesaurusTemplateInfo != null)
|
|
|
map['ThesaurusTemplateInfo'] = thesaurusTemplateInfo;
|
|
|
map['ThesaurusUsageType'] = thesaurusUsageType.index;
|
|
|
map['ThesaurusStateType'] = thesaurusStateType.index;
|
|
|
map['ThesaurusType'] = thesaurusType.index;
|
|
|
- if(organizationCode != null)
|
|
|
+ if (organizationCode != null)
|
|
|
map['OrganizationCode'] = organizationCode;
|
|
|
- if(personalCode != null)
|
|
|
+ if (personalCode != null)
|
|
|
map['PersonalCode'] = personalCode;
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -2074,10 +2079,10 @@ class ExportThesaurusTemplateResult {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(thesaurusName != null) {
|
|
|
+ if (thesaurusName != null) {
|
|
|
map['ThesaurusName'] = thesaurusName;
|
|
|
}
|
|
|
- if(thesaurusTemplateInfo != null) {
|
|
|
+ if (thesaurusTemplateInfo != null) {
|
|
|
map['ThesaurusTemplateInfo'] = thesaurusTemplateInfo;
|
|
|
}
|
|
|
return map;
|
|
@@ -2103,7 +2108,7 @@ class FindThesaurusByCodeRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
return map;
|
|
|
}
|