|
@@ -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;
|
|
@@ -421,27 +421,27 @@ 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(reportMeasureDatasJson != null)
|
|
|
+ if (reportMeasureDatasJson != null)
|
|
|
map['ReportMeasureDatasJson'] = reportMeasureDatasJson;
|
|
|
- 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;
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -505,7 +505,7 @@ class ModifyReportRequest extends AddReportRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportCode != null)
|
|
|
+ if (reportCode != null)
|
|
|
map['ReportCode'] = reportCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -533,9 +533,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;
|
|
|
}
|
|
@@ -566,11 +566,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;
|
|
|
}
|
|
@@ -601,11 +601,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;
|
|
|
}
|
|
@@ -630,7 +630,7 @@ class CopyReportTemplateRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -655,7 +655,7 @@ class CopyOrgReportTemplateRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -698,15 +698,15 @@ 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)
|
|
|
+ if (reportTemplateStateType != null)
|
|
|
map['ReportTemplateStateType'] = reportTemplateStateType;
|
|
|
return map;
|
|
|
}
|
|
@@ -743,14 +743,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;
|
|
|
}
|
|
@@ -784,13 +784,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;
|
|
|
}
|
|
@@ -815,7 +815,7 @@ class RemoveReportTemplateRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportTemplateCode != null)
|
|
|
+ if (reportTemplateCode != null)
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -846,9 +846,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;
|
|
@@ -877,9 +877,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;
|
|
|
}
|
|
@@ -910,11 +910,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;
|
|
|
}
|
|
@@ -948,13 +948,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;
|
|
|
}
|
|
@@ -988,13 +988,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;
|
|
|
}
|
|
@@ -1031,15 +1031,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;
|
|
|
}
|
|
@@ -1064,7 +1064,7 @@ class RemoveThesaurusRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1092,9 +1092,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;
|
|
|
}
|
|
@@ -1167,33 +1167,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;
|
|
@@ -1249,23 +1249,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;
|
|
|
}
|
|
@@ -1312,20 +1312,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;
|
|
@@ -1356,9 +1356,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;
|
|
|
}
|
|
@@ -1386,9 +1386,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;
|
|
|
}
|
|
@@ -1419,11 +1419,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;
|
|
|
}
|
|
@@ -1454,11 +1454,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;
|
|
|
}
|
|
@@ -1483,7 +1483,7 @@ class CopyThesaurusRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1508,7 +1508,7 @@ class CopyOrgThesaurusRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1532,10 +1532,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;
|
|
@@ -1561,7 +1561,7 @@ class GetDefaultThesaurusContentRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1589,9 +1589,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;
|
|
|
}
|
|
@@ -1616,7 +1616,7 @@ class RetryPushReportRecordsByCodesRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(codes != null)
|
|
|
+ if (codes != null)
|
|
|
map['Codes'] = codes;
|
|
|
return map;
|
|
|
}
|
|
@@ -1644,9 +1644,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;
|
|
|
}
|
|
@@ -1674,9 +1674,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;
|
|
|
}
|
|
@@ -1701,7 +1701,7 @@ class GetDefaultReportTemplateContentRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(languageCode != null)
|
|
|
+ if (languageCode != null)
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1729,9 +1729,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;
|
|
|
}
|
|
@@ -1755,10 +1755,10 @@ class GetReportTemplateDBRequest {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(reportTemplateCode != null) {
|
|
|
+ if (reportTemplateCode != null) {
|
|
|
map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
}
|
|
|
- if(languageCode != null) {
|
|
|
+ if (languageCode != null) {
|
|
|
map['LanguageCode'] = languageCode;
|
|
|
}
|
|
|
return map;
|
|
@@ -1784,7 +1784,7 @@ class RefreshReportPosterRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(reportPosterCode != null)
|
|
|
+ if (reportPosterCode != null)
|
|
|
map['ReportPosterCode'] = reportPosterCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -1847,47 +1847,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;
|
|
@@ -1913,7 +1913,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;
|
|
@@ -1938,10 +1938,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;
|
|
@@ -1966,10 +1966,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;
|
|
@@ -1994,10 +1994,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;
|
|
@@ -2019,7 +2019,7 @@ class ThesaurusTemplateInfoDTO {
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = Map<String, dynamic>();
|
|
|
- if(thesaurusList != null) {
|
|
|
+ if (thesaurusList != null) {
|
|
|
map['ThesaurusList'] = thesaurusList;
|
|
|
}
|
|
|
return map;
|
|
@@ -2066,18 +2066,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;
|
|
|
}
|
|
@@ -2101,10 +2101,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;
|
|
@@ -2130,7 +2130,7 @@ class FindThesaurusByCodeRequest extends TokenRequest{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(thesaurusCode != null)
|
|
|
+ if (thesaurusCode != null)
|
|
|
map['ThesaurusCode'] = thesaurusCode;
|
|
|
return map;
|
|
|
}
|
|
@@ -2240,9 +2240,9 @@ class DeviceExamReportDTO extends ReportDTO{
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
- if(shareUrl != null)
|
|
|
+ if (shareUrl != null)
|
|
|
map['ShareUrl'] = shareUrl;
|
|
|
- if(reportBytes != null)
|
|
|
+ if (reportBytes != null)
|
|
|
map['ReportBytes'] = reportBytes;
|
|
|
return map;
|
|
|
}
|
|
@@ -2270,9 +2270,9 @@ class GetDeviceExamReportsRequest 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;
|
|
|
}
|
|
@@ -2303,9 +2303,9 @@ class GetDeviceExamReportByCodeRequest 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;
|
|
|
map['IncludeReportBytes'] = includeReportBytes;
|
|
|
return map;
|