Merge branch 'development' into 'master'
Development See merge request Cloud_Solution/doctor_app_flutter!582merge-requests/615/merge
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
||||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 24 KiB |
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="ic_launcher_background">#ffffff</color>
|
||||||
|
</resources>
|
||||||
|
After Width: | Height: | Size: 348 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 475 B |
|
After Width: | Height: | Size: 206 B |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 453 B |
|
After Width: | Height: | Size: 453 B |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 760 B |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 595 B |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 579 B |
|
After Width: | Height: | Size: 1.2 KiB |
@ -1,122 +1,128 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images":[
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"20x20",
|
||||||
"filename" : "Icon-App-20x20@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-20x20@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"20x20",
|
||||||
"filename" : "Icon-App-20x20@3x.png",
|
"scale":"3x",
|
||||||
"scale" : "3x"
|
"filename":"Icon-App-20x20@3x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-29x29@1x.png",
|
"scale":"1x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-29x29@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-29x29@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-29x29@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-29x29@3x.png",
|
"scale":"3x",
|
||||||
"scale" : "3x"
|
"filename":"Icon-App-29x29@3x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"40x40",
|
||||||
"filename" : "Icon-App-40x40@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-40x40@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"40x40",
|
||||||
"filename" : "Icon-App-40x40@3x.png",
|
"scale":"3x",
|
||||||
"scale" : "3x"
|
"filename":"Icon-App-40x40@3x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "60x60",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"60x60",
|
||||||
"filename" : "Icon-App-60x60@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-60x60@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "60x60",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"60x60",
|
||||||
"filename" : "Icon-App-60x60@3x.png",
|
"scale":"3x",
|
||||||
"scale" : "3x"
|
"filename":"Icon-App-60x60@3x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"idiom":"iphone",
|
||||||
"idiom" : "ipad",
|
"size":"76x76",
|
||||||
"filename" : "Icon-App-20x20@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-76x76@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"20x20",
|
||||||
"filename" : "Icon-App-20x20@2x.png",
|
"scale":"1x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-20x20@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"20x20",
|
||||||
"filename" : "Icon-App-29x29@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-20x20@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-29x29@2x.png",
|
"scale":"1x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-29x29@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-40x40@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-29x29@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"40x40",
|
||||||
"filename" : "Icon-App-40x40@2x.png",
|
"scale":"1x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-40x40@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "76x76",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"40x40",
|
||||||
"filename" : "Icon-App-76x76@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-40x40@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "76x76",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"76x76",
|
||||||
"filename" : "Icon-App-76x76@2x.png",
|
"scale":"1x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-76x76@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "83.5x83.5",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"76x76",
|
||||||
"filename" : "Icon-App-83.5x83.5@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-76x76@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "1024x1024",
|
"idiom":"ipad",
|
||||||
"idiom" : "ios-marketing",
|
"size":"83.5x83.5",
|
||||||
"filename" : "Icon-App-1024x1024@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-83.5x83.5@2x.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "1024x1024",
|
||||||
|
"idiom" : "ios-marketing",
|
||||||
|
"scale" : "1x",
|
||||||
|
"filename" : "ItunesArtwork@2x.png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info":{
|
||||||
|
"version":1,
|
||||||
|
"author":"easyappicon"
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"version" : 1,
|
|
||||||
"author" : "xcode"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 998 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 181 KiB |
@ -0,0 +1,69 @@
|
|||||||
|
import 'dart:io' show Platform;
|
||||||
|
|
||||||
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
|
import 'widgets/shared/buttons/secondary_button.dart';
|
||||||
|
|
||||||
|
class UpdatePage extends StatelessWidget {
|
||||||
|
final String message;
|
||||||
|
final String androidLink;
|
||||||
|
final String iosLink;
|
||||||
|
|
||||||
|
const UpdatePage({Key key, this.message, this.androidLink, this.iosLink})
|
||||||
|
: super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return SafeArea(
|
||||||
|
child: AppScaffold(
|
||||||
|
isShowAppBar: false,
|
||||||
|
backgroundColor: Colors.white,
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
physics: BouncingScrollPhysics(),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Image.asset(
|
||||||
|
'assets/images/update_rocket_image.png',
|
||||||
|
width: double.maxFinite,fit: BoxFit.fill,
|
||||||
|
),
|
||||||
|
Image.asset('assets/images/HMG_logo.png'),
|
||||||
|
SizedBox(height: 8,),
|
||||||
|
AppText(
|
||||||
|
TranslationBase.of(context).updateTheApp.toUpperCase(),fontSize: 17,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
),
|
||||||
|
SizedBox(height: 12,),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: AppText(message??"Update the app",fontSize: 12,),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
bottomSheet: Container(
|
||||||
|
height: 80,
|
||||||
|
child: Container(
|
||||||
|
// padding: const EdgeInsets.all(8.0),
|
||||||
|
margin: EdgeInsets.all(15),
|
||||||
|
child: SecondaryButton(
|
||||||
|
color: Colors.red[800],
|
||||||
|
onTap: () {
|
||||||
|
if (Platform.isIOS)
|
||||||
|
launch(iosLink);
|
||||||
|
else
|
||||||
|
launch(androidLink);
|
||||||
|
},
|
||||||
|
label: TranslationBase.of(context).updateNow.toUpperCase(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,64 @@
|
|||||||
|
class InsuranceApprovalInPatientRequestModel {
|
||||||
|
int patientID;
|
||||||
|
int patientTypeID;
|
||||||
|
int eXuldAPPNO;
|
||||||
|
int projectID;
|
||||||
|
int languageID;
|
||||||
|
String stamp;
|
||||||
|
String iPAdress;
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
String tokenID;
|
||||||
|
String sessionID;
|
||||||
|
bool isLoginForDoctorApp;
|
||||||
|
bool patientOutSA;
|
||||||
|
|
||||||
|
InsuranceApprovalInPatientRequestModel(
|
||||||
|
{this.patientID,
|
||||||
|
this.patientTypeID,
|
||||||
|
this.eXuldAPPNO,
|
||||||
|
this.projectID,
|
||||||
|
this.languageID,
|
||||||
|
this.stamp,
|
||||||
|
this.iPAdress,
|
||||||
|
this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.tokenID,
|
||||||
|
this.sessionID,
|
||||||
|
this.isLoginForDoctorApp,
|
||||||
|
this.patientOutSA});
|
||||||
|
|
||||||
|
InsuranceApprovalInPatientRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
patientTypeID = json['PatientTypeID'];
|
||||||
|
eXuldAPPNO = json['EXuldAPPNO'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
stamp = json['stamp'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['PatientTypeID'] = this.patientTypeID;
|
||||||
|
data['EXuldAPPNO'] = this.eXuldAPPNO;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['stamp'] = this.stamp;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,218 @@
|
|||||||
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||||
|
|
||||||
|
class DischargeReferralPatient {
|
||||||
|
dynamic rowID;
|
||||||
|
int projectID;
|
||||||
|
int lineItemNo;
|
||||||
|
int doctorID;
|
||||||
|
int patientID;
|
||||||
|
String doctorName;
|
||||||
|
dynamic doctorNameN;
|
||||||
|
String firstName;
|
||||||
|
String middleName;
|
||||||
|
String lastName;
|
||||||
|
dynamic firstNameN;
|
||||||
|
dynamic middleNameN;
|
||||||
|
dynamic lastNameN;
|
||||||
|
int gender;
|
||||||
|
String dateofBirth;
|
||||||
|
String mobileNumber;
|
||||||
|
String emailAddress;
|
||||||
|
String patientIdentificationNo;
|
||||||
|
int patientType;
|
||||||
|
String admissionNo;
|
||||||
|
String admissionDate;
|
||||||
|
String roomID;
|
||||||
|
String bedID;
|
||||||
|
dynamic nursingStationID;
|
||||||
|
dynamic description;
|
||||||
|
String nationalityName;
|
||||||
|
dynamic nationalityNameN;
|
||||||
|
int referralDoctor;
|
||||||
|
int referringDoctor;
|
||||||
|
int referralClinic;
|
||||||
|
int referringClinic;
|
||||||
|
int referralStatus;
|
||||||
|
DateTime referralDate;
|
||||||
|
String referringDoctorRemarks;
|
||||||
|
String referredDoctorRemarks;
|
||||||
|
String referralResponseOn;
|
||||||
|
int priority;
|
||||||
|
int frequency;
|
||||||
|
String mAXResponseTime;
|
||||||
|
String dischargeDate;
|
||||||
|
dynamic clinicID;
|
||||||
|
String age;
|
||||||
|
String clinicDescription;
|
||||||
|
String frequencyDescription;
|
||||||
|
String genderDescription;
|
||||||
|
bool isDoctorLate;
|
||||||
|
bool isDoctorResponse;
|
||||||
|
String nursingStationName;
|
||||||
|
String priorityDescription;
|
||||||
|
String referringClinicDescription;
|
||||||
|
String referringDoctorName;
|
||||||
|
|
||||||
|
DischargeReferralPatient(
|
||||||
|
{this.rowID,
|
||||||
|
this.projectID,
|
||||||
|
this.lineItemNo,
|
||||||
|
this.doctorID,
|
||||||
|
this.patientID,
|
||||||
|
this.doctorName,
|
||||||
|
this.doctorNameN,
|
||||||
|
this.firstName,
|
||||||
|
this.middleName,
|
||||||
|
this.lastName,
|
||||||
|
this.firstNameN,
|
||||||
|
this.middleNameN,
|
||||||
|
this.lastNameN,
|
||||||
|
this.gender,
|
||||||
|
this.dateofBirth,
|
||||||
|
this.mobileNumber,
|
||||||
|
this.emailAddress,
|
||||||
|
this.patientIdentificationNo,
|
||||||
|
this.patientType,
|
||||||
|
this.admissionNo,
|
||||||
|
this.admissionDate,
|
||||||
|
this.roomID,
|
||||||
|
this.bedID,
|
||||||
|
this.nursingStationID,
|
||||||
|
this.description,
|
||||||
|
this.nationalityName,
|
||||||
|
this.nationalityNameN,
|
||||||
|
this.referralDoctor,
|
||||||
|
this.referringDoctor,
|
||||||
|
this.referralClinic,
|
||||||
|
this.referringClinic,
|
||||||
|
this.referralStatus,
|
||||||
|
this.referralDate,
|
||||||
|
this.referringDoctorRemarks,
|
||||||
|
this.referredDoctorRemarks,
|
||||||
|
this.referralResponseOn,
|
||||||
|
this.priority,
|
||||||
|
this.frequency,
|
||||||
|
this.mAXResponseTime,
|
||||||
|
this.dischargeDate,
|
||||||
|
this.clinicID,
|
||||||
|
this.age,
|
||||||
|
this.clinicDescription,
|
||||||
|
this.frequencyDescription,
|
||||||
|
this.genderDescription,
|
||||||
|
this.isDoctorLate,
|
||||||
|
this.isDoctorResponse,
|
||||||
|
this.nursingStationName,
|
||||||
|
this.priorityDescription,
|
||||||
|
this.referringClinicDescription,
|
||||||
|
this.referringDoctorName});
|
||||||
|
|
||||||
|
DischargeReferralPatient.fromJson(Map<String, dynamic> json) {
|
||||||
|
rowID = json['RowID'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
lineItemNo = json['LineItemNo'];
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
doctorName = json['DoctorName'];
|
||||||
|
doctorNameN = json['DoctorNameN'];
|
||||||
|
firstName = json['FirstName'];
|
||||||
|
middleName = json['MiddleName'];
|
||||||
|
lastName = json['LastName'];
|
||||||
|
firstNameN = json['FirstNameN'];
|
||||||
|
middleNameN = json['MiddleNameN'];
|
||||||
|
lastNameN = json['LastNameN'];
|
||||||
|
gender = json['Gender'];
|
||||||
|
dateofBirth = json['DateofBirth'];
|
||||||
|
mobileNumber = json['MobileNumber'];
|
||||||
|
emailAddress = json['EmailAddress'];
|
||||||
|
patientIdentificationNo = json['PatientIdentificationNo'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
admissionDate = json['AdmissionDate'];
|
||||||
|
roomID = json['RoomID'];
|
||||||
|
bedID = json['BedID'];
|
||||||
|
nursingStationID = json['NursingStationID'];
|
||||||
|
description = json['Description'];
|
||||||
|
nationalityName = json['NationalityName'];
|
||||||
|
nationalityNameN = json['NationalityNameN'];
|
||||||
|
referralDoctor = json['ReferralDoctor'];
|
||||||
|
referringDoctor = json['ReferringDoctor'];
|
||||||
|
referralClinic = json['ReferralClinic'];
|
||||||
|
referringClinic = json['ReferringClinic'];
|
||||||
|
referralStatus = json['ReferralStatus'];
|
||||||
|
referralDate = DateUtils.convertStringToDate(json['ReferralDate']);
|
||||||
|
referringDoctorRemarks = json['ReferringDoctorRemarks'];
|
||||||
|
referredDoctorRemarks = json['ReferredDoctorRemarks'];
|
||||||
|
referralResponseOn = json['ReferralResponseOn'];
|
||||||
|
priority = json['Priority'];
|
||||||
|
frequency = json['Frequency'];
|
||||||
|
mAXResponseTime = json['MAXResponseTime'];
|
||||||
|
dischargeDate = json['DischargeDate'];
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
age = json['Age'];
|
||||||
|
clinicDescription = json['ClinicDescription'];
|
||||||
|
frequencyDescription = json['FrequencyDescription'];
|
||||||
|
genderDescription = json['GenderDescription'];
|
||||||
|
isDoctorLate = json['IsDoctorLate'];
|
||||||
|
isDoctorResponse = json['IsDoctorResponse'];
|
||||||
|
nursingStationName = json['NursingStationName'];
|
||||||
|
priorityDescription = json['PriorityDescription'];
|
||||||
|
referringClinicDescription = json['ReferringClinicDescription'];
|
||||||
|
referringDoctorName = json['ReferringDoctorName'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['RowID'] = this.rowID;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['LineItemNo'] = this.lineItemNo;
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['DoctorName'] = this.doctorName;
|
||||||
|
data['DoctorNameN'] = this.doctorNameN;
|
||||||
|
data['FirstName'] = this.firstName;
|
||||||
|
data['MiddleName'] = this.middleName;
|
||||||
|
data['LastName'] = this.lastName;
|
||||||
|
data['FirstNameN'] = this.firstNameN;
|
||||||
|
data['MiddleNameN'] = this.middleNameN;
|
||||||
|
data['LastNameN'] = this.lastNameN;
|
||||||
|
data['Gender'] = this.gender;
|
||||||
|
data['DateofBirth'] = this.dateofBirth;
|
||||||
|
data['MobileNumber'] = this.mobileNumber;
|
||||||
|
data['EmailAddress'] = this.emailAddress;
|
||||||
|
data['PatientIdentificationNo'] = this.patientIdentificationNo;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
data['AdmissionDate'] = this.admissionDate;
|
||||||
|
data['RoomID'] = this.roomID;
|
||||||
|
data['BedID'] = this.bedID;
|
||||||
|
data['NursingStationID'] = this.nursingStationID;
|
||||||
|
data['Description'] = this.description;
|
||||||
|
data['NationalityName'] = this.nationalityName;
|
||||||
|
data['NationalityNameN'] = this.nationalityNameN;
|
||||||
|
data['ReferralDoctor'] = this.referralDoctor;
|
||||||
|
data['ReferringDoctor'] = this.referringDoctor;
|
||||||
|
data['ReferralClinic'] = this.referralClinic;
|
||||||
|
data['ReferringClinic'] = this.referringClinic;
|
||||||
|
data['ReferralStatus'] = this.referralStatus;
|
||||||
|
data['ReferralDate'] = this.referralDate;
|
||||||
|
data['ReferringDoctorRemarks'] = this.referringDoctorRemarks;
|
||||||
|
data['ReferredDoctorRemarks'] = this.referredDoctorRemarks;
|
||||||
|
data['ReferralResponseOn'] = this.referralResponseOn;
|
||||||
|
data['Priority'] = this.priority;
|
||||||
|
data['Frequency'] = this.frequency;
|
||||||
|
data['MAXResponseTime'] = this.mAXResponseTime;
|
||||||
|
data['DischargeDate'] = this.dischargeDate;
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['Age'] = this.age;
|
||||||
|
data['ClinicDescription'] = this.clinicDescription;
|
||||||
|
data['FrequencyDescription'] = this.frequencyDescription;
|
||||||
|
data['GenderDescription'] = this.genderDescription;
|
||||||
|
data['IsDoctorLate'] = this.isDoctorLate;
|
||||||
|
data['IsDoctorResponse'] = this.isDoctorResponse;
|
||||||
|
data['NursingStationName'] = this.nursingStationName;
|
||||||
|
data['PriorityDescription'] = this.priorityDescription;
|
||||||
|
data['ReferringClinicDescription'] = this.referringClinicDescription;
|
||||||
|
data['ReferringDoctorName'] = this.referringDoctorName;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,258 @@
|
|||||||
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||||
|
|
||||||
|
class MyReferralPatientModel {
|
||||||
|
dynamic rowID;
|
||||||
|
int projectID;
|
||||||
|
int lineItemNo;
|
||||||
|
int doctorID;
|
||||||
|
int patientID;
|
||||||
|
String doctorName;
|
||||||
|
dynamic doctorNameN;
|
||||||
|
String firstName;
|
||||||
|
String middleName;
|
||||||
|
String lastName;
|
||||||
|
dynamic firstNameN;
|
||||||
|
dynamic middleNameN;
|
||||||
|
dynamic lastNameN;
|
||||||
|
int gender;
|
||||||
|
String dateofBirth;
|
||||||
|
String mobileNumber;
|
||||||
|
String emailAddress;
|
||||||
|
String patientIdentificationNo;
|
||||||
|
int patientType;
|
||||||
|
String admissionNo;
|
||||||
|
String admissionDate;
|
||||||
|
String roomID;
|
||||||
|
String bedID;
|
||||||
|
dynamic nursingStationID;
|
||||||
|
dynamic description;
|
||||||
|
String nationalityName;
|
||||||
|
dynamic nationalityNameN;
|
||||||
|
String clinicDescription;
|
||||||
|
String clinicDescriptionN;
|
||||||
|
int referralDoctor;
|
||||||
|
int referringDoctor;
|
||||||
|
int referralClinic;
|
||||||
|
int referringClinic;
|
||||||
|
int referralStatus;
|
||||||
|
DateTime referralDate;
|
||||||
|
String referringDoctorRemarks;
|
||||||
|
String referredDoctorRemarks;
|
||||||
|
String referralResponseOn;
|
||||||
|
int priority;
|
||||||
|
int frequency;
|
||||||
|
String mAXResponseTime;
|
||||||
|
int episodeID;
|
||||||
|
int appointmentNo;
|
||||||
|
String appointmentDate;
|
||||||
|
int appointmentType;
|
||||||
|
int patientMRN;
|
||||||
|
String createdOn;
|
||||||
|
int clinicID;
|
||||||
|
String nationalityID;
|
||||||
|
String age;
|
||||||
|
String doctorImageURL;
|
||||||
|
String frequencyDescription;
|
||||||
|
String genderDescription;
|
||||||
|
bool isDoctorLate;
|
||||||
|
bool isDoctorResponse;
|
||||||
|
String nationalityFlagURL;
|
||||||
|
String nursingStationName;
|
||||||
|
String priorityDescription;
|
||||||
|
String referringClinicDescription;
|
||||||
|
String referringDoctorName;
|
||||||
|
|
||||||
|
MyReferralPatientModel(
|
||||||
|
{this.rowID,
|
||||||
|
this.projectID,
|
||||||
|
this.lineItemNo,
|
||||||
|
this.doctorID,
|
||||||
|
this.patientID,
|
||||||
|
this.doctorName,
|
||||||
|
this.doctorNameN,
|
||||||
|
this.firstName,
|
||||||
|
this.middleName,
|
||||||
|
this.lastName,
|
||||||
|
this.firstNameN,
|
||||||
|
this.middleNameN,
|
||||||
|
this.lastNameN,
|
||||||
|
this.gender,
|
||||||
|
this.dateofBirth,
|
||||||
|
this.mobileNumber,
|
||||||
|
this.emailAddress,
|
||||||
|
this.patientIdentificationNo,
|
||||||
|
this.patientType,
|
||||||
|
this.admissionNo,
|
||||||
|
this.admissionDate,
|
||||||
|
this.roomID,
|
||||||
|
this.bedID,
|
||||||
|
this.nursingStationID,
|
||||||
|
this.description,
|
||||||
|
this.nationalityName,
|
||||||
|
this.nationalityNameN,
|
||||||
|
this.clinicDescription,
|
||||||
|
this.clinicDescriptionN,
|
||||||
|
this.referralDoctor,
|
||||||
|
this.referringDoctor,
|
||||||
|
this.referralClinic,
|
||||||
|
this.referringClinic,
|
||||||
|
this.referralStatus,
|
||||||
|
this.referralDate,
|
||||||
|
this.referringDoctorRemarks,
|
||||||
|
this.referredDoctorRemarks,
|
||||||
|
this.referralResponseOn,
|
||||||
|
this.priority,
|
||||||
|
this.frequency,
|
||||||
|
this.mAXResponseTime,
|
||||||
|
this.episodeID,
|
||||||
|
this.appointmentNo,
|
||||||
|
this.appointmentDate,
|
||||||
|
this.appointmentType,
|
||||||
|
this.patientMRN,
|
||||||
|
this.createdOn,
|
||||||
|
this.clinicID,
|
||||||
|
this.nationalityID,
|
||||||
|
this.age,
|
||||||
|
this.doctorImageURL,
|
||||||
|
this.frequencyDescription,
|
||||||
|
this.genderDescription,
|
||||||
|
this.isDoctorLate,
|
||||||
|
this.isDoctorResponse,
|
||||||
|
this.nationalityFlagURL,
|
||||||
|
this.nursingStationName,
|
||||||
|
this.priorityDescription,
|
||||||
|
this.referringClinicDescription,
|
||||||
|
this.referringDoctorName});
|
||||||
|
|
||||||
|
MyReferralPatientModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
rowID = json['RowID'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
lineItemNo = json['LineItemNo'];
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
doctorName = json['DoctorName'];
|
||||||
|
doctorNameN = json['DoctorNameN'];
|
||||||
|
firstName = json['FirstName'];
|
||||||
|
middleName = json['MiddleName'];
|
||||||
|
lastName = json['LastName'];
|
||||||
|
firstNameN = json['FirstNameN'];
|
||||||
|
middleNameN = json['MiddleNameN'];
|
||||||
|
lastNameN = json['LastNameN'];
|
||||||
|
gender = json['Gender'];
|
||||||
|
dateofBirth = json['DateofBirth'];
|
||||||
|
mobileNumber = json['MobileNumber'];
|
||||||
|
emailAddress = json['EmailAddress'];
|
||||||
|
patientIdentificationNo = json['PatientIdentificationNo'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
admissionDate = json['AdmissionDate'];
|
||||||
|
roomID = json['RoomID'];
|
||||||
|
bedID = json['BedID'];
|
||||||
|
nursingStationID = json['NursingStationID'];
|
||||||
|
description = json['Description'];
|
||||||
|
nationalityName = json['NationalityName'];
|
||||||
|
nationalityNameN = json['NationalityNameN'];
|
||||||
|
clinicDescription = json['ClinicDescription'];
|
||||||
|
clinicDescriptionN = json['ClinicDescriptionN'];
|
||||||
|
referralDoctor = json['ReferralDoctor'];
|
||||||
|
referringDoctor = json['ReferringDoctor'];
|
||||||
|
referralClinic = json['ReferralClinic'];
|
||||||
|
referringClinic = json['ReferringClinic'];
|
||||||
|
referralStatus = json['ReferralStatus'];
|
||||||
|
referralDate = DateUtils.convertStringToDate(json['ReferralDate']);
|
||||||
|
referringDoctorRemarks = json['ReferringDoctorRemarks'];
|
||||||
|
referredDoctorRemarks = json['ReferredDoctorRemarks'];
|
||||||
|
referralResponseOn = json['ReferralResponseOn'];
|
||||||
|
priority = json['Priority'];
|
||||||
|
frequency = json['Frequency'];
|
||||||
|
mAXResponseTime = json['MAXResponseTime'];
|
||||||
|
episodeID = json['EpisodeID'];
|
||||||
|
appointmentNo = json['AppointmentNo'];
|
||||||
|
appointmentDate = json['AppointmentDate'];
|
||||||
|
appointmentType = json['AppointmentType'];
|
||||||
|
patientMRN = json['PatientMRN'];
|
||||||
|
createdOn = json['CreatedOn'];
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
nationalityID = json['NationalityID'];
|
||||||
|
age = json['Age'];
|
||||||
|
doctorImageURL = json['DoctorImageURL'];
|
||||||
|
frequencyDescription = json['FrequencyDescription'];
|
||||||
|
genderDescription = json['GenderDescription'];
|
||||||
|
isDoctorLate = json['IsDoctorLate'];
|
||||||
|
isDoctorResponse = json['IsDoctorResponse'];
|
||||||
|
nationalityFlagURL = json['NationalityFlagURL'];
|
||||||
|
nursingStationName = json['NursingStationName'];
|
||||||
|
priorityDescription = json['PriorityDescription'];
|
||||||
|
referringClinicDescription = json['ReferringClinicDescription'];
|
||||||
|
referringDoctorName = json['ReferringDoctorName'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['RowID'] = this.rowID;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['LineItemNo'] = this.lineItemNo;
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['DoctorName'] = this.doctorName;
|
||||||
|
data['DoctorNameN'] = this.doctorNameN;
|
||||||
|
data['FirstName'] = this.firstName;
|
||||||
|
data['MiddleName'] = this.middleName;
|
||||||
|
data['LastName'] = this.lastName;
|
||||||
|
data['FirstNameN'] = this.firstNameN;
|
||||||
|
data['MiddleNameN'] = this.middleNameN;
|
||||||
|
data['LastNameN'] = this.lastNameN;
|
||||||
|
data['Gender'] = this.gender;
|
||||||
|
data['DateofBirth'] = this.dateofBirth;
|
||||||
|
data['MobileNumber'] = this.mobileNumber;
|
||||||
|
data['EmailAddress'] = this.emailAddress;
|
||||||
|
data['PatientIdentificationNo'] = this.patientIdentificationNo;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
data['AdmissionDate'] = this.admissionDate;
|
||||||
|
data['RoomID'] = this.roomID;
|
||||||
|
data['BedID'] = this.bedID;
|
||||||
|
data['NursingStationID'] = this.nursingStationID;
|
||||||
|
data['Description'] = this.description;
|
||||||
|
data['NationalityName'] = this.nationalityName;
|
||||||
|
data['NationalityNameN'] = this.nationalityNameN;
|
||||||
|
data['ClinicDescription'] = this.clinicDescription;
|
||||||
|
data['ClinicDescriptionN'] = this.clinicDescriptionN;
|
||||||
|
data['ReferralDoctor'] = this.referralDoctor;
|
||||||
|
data['ReferringDoctor'] = this.referringDoctor;
|
||||||
|
data['ReferralClinic'] = this.referralClinic;
|
||||||
|
data['ReferringClinic'] = this.referringClinic;
|
||||||
|
data['ReferralStatus'] = this.referralStatus;
|
||||||
|
data['ReferralDate'] = this.referralDate;
|
||||||
|
data['ReferringDoctorRemarks'] = this.referringDoctorRemarks;
|
||||||
|
data['ReferredDoctorRemarks'] = this.referredDoctorRemarks;
|
||||||
|
data['ReferralResponseOn'] = this.referralResponseOn;
|
||||||
|
data['Priority'] = this.priority;
|
||||||
|
data['Frequency'] = this.frequency;
|
||||||
|
data['MAXResponseTime'] = this.mAXResponseTime;
|
||||||
|
data['EpisodeID'] = this.episodeID;
|
||||||
|
data['AppointmentNo'] = this.appointmentNo;
|
||||||
|
data['AppointmentDate'] = this.appointmentDate;
|
||||||
|
data['AppointmentType'] = this.appointmentType;
|
||||||
|
data['PatientMRN'] = this.patientMRN;
|
||||||
|
data['CreatedOn'] = this.createdOn;
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['NationalityID'] = this.nationalityID;
|
||||||
|
data['Age'] = this.age;
|
||||||
|
data['DoctorImageURL'] = this.doctorImageURL;
|
||||||
|
data['FrequencyDescription'] = this.frequencyDescription;
|
||||||
|
data['GenderDescription'] = this.genderDescription;
|
||||||
|
data['IsDoctorLate'] = this.isDoctorLate;
|
||||||
|
data['IsDoctorResponse'] = this.isDoctorResponse;
|
||||||
|
data['NationalityFlagURL'] = this.nationalityFlagURL;
|
||||||
|
data['NursingStationName'] = this.nursingStationName;
|
||||||
|
data['PriorityDescription'] = this.priorityDescription;
|
||||||
|
data['ReferringClinicDescription'] = this.referringClinicDescription;
|
||||||
|
data['ReferringDoctorName'] = this.referringDoctorName;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
get patientName {
|
||||||
|
return this.firstName+" "+this.lastName;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
class InPatientPrescriptionRequestModel {
|
||||||
|
String vidaAuthTokenID;
|
||||||
|
dynamic patientMRN;
|
||||||
|
dynamic appNo;
|
||||||
|
dynamic admissionNo;
|
||||||
|
|
||||||
|
InPatientPrescriptionRequestModel(
|
||||||
|
{this.vidaAuthTokenID, this.patientMRN, this.appNo, this.admissionNo});
|
||||||
|
|
||||||
|
InPatientPrescriptionRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
vidaAuthTokenID = json['VidaAuthTokenID'];
|
||||||
|
patientMRN = json['PatientID'];
|
||||||
|
appNo = json['AppointmentNo'];
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['VidaAuthTokenID'] = this.vidaAuthTokenID;
|
||||||
|
data['PatientID'] = this.patientMRN;
|
||||||
|
data['AppointmentNo'] = this.appNo;
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,200 @@
|
|||||||
|
class PrescriotionInPatient {
|
||||||
|
int admissionNo;
|
||||||
|
int authorizedBy;
|
||||||
|
dynamic bedNo;
|
||||||
|
String comments;
|
||||||
|
int createdBy;
|
||||||
|
String createdByName;
|
||||||
|
dynamic createdByNameN;
|
||||||
|
String createdOn;
|
||||||
|
String direction;
|
||||||
|
int directionID;
|
||||||
|
dynamic directionN;
|
||||||
|
String dose;
|
||||||
|
int editedBy;
|
||||||
|
dynamic iVDiluentLine;
|
||||||
|
int iVDiluentType;
|
||||||
|
dynamic iVDiluentVolume;
|
||||||
|
dynamic iVRate;
|
||||||
|
dynamic iVStability;
|
||||||
|
String itemDescription;
|
||||||
|
int itemID;
|
||||||
|
int lineItemNo;
|
||||||
|
int locationId;
|
||||||
|
int noOfDoses;
|
||||||
|
int orderNo;
|
||||||
|
int patientID;
|
||||||
|
String pharmacyRemarks;
|
||||||
|
String prescriptionDatetime;
|
||||||
|
int prescriptionNo;
|
||||||
|
String processedBy;
|
||||||
|
int projectID;
|
||||||
|
int refillID;
|
||||||
|
String refillType;
|
||||||
|
dynamic refillTypeN;
|
||||||
|
int reviewedPharmacist;
|
||||||
|
dynamic roomId;
|
||||||
|
String route;
|
||||||
|
int routeId;
|
||||||
|
dynamic routeN;
|
||||||
|
dynamic setupID;
|
||||||
|
String startDatetime;
|
||||||
|
int status;
|
||||||
|
String statusDescription;
|
||||||
|
dynamic statusDescriptionN;
|
||||||
|
String stopDatetime;
|
||||||
|
int unitofMeasurement;
|
||||||
|
String unitofMeasurementDescription;
|
||||||
|
dynamic unitofMeasurementDescriptionN;
|
||||||
|
|
||||||
|
PrescriotionInPatient(
|
||||||
|
{this.admissionNo,
|
||||||
|
this.authorizedBy,
|
||||||
|
this.bedNo,
|
||||||
|
this.comments,
|
||||||
|
this.createdBy,
|
||||||
|
this.createdByName,
|
||||||
|
this.createdByNameN,
|
||||||
|
this.createdOn,
|
||||||
|
this.direction,
|
||||||
|
this.directionID,
|
||||||
|
this.directionN,
|
||||||
|
this.dose,
|
||||||
|
this.editedBy,
|
||||||
|
this.iVDiluentLine,
|
||||||
|
this.iVDiluentType,
|
||||||
|
this.iVDiluentVolume,
|
||||||
|
this.iVRate,
|
||||||
|
this.iVStability,
|
||||||
|
this.itemDescription,
|
||||||
|
this.itemID,
|
||||||
|
this.lineItemNo,
|
||||||
|
this.locationId,
|
||||||
|
this.noOfDoses,
|
||||||
|
this.orderNo,
|
||||||
|
this.patientID,
|
||||||
|
this.pharmacyRemarks,
|
||||||
|
this.prescriptionDatetime,
|
||||||
|
this.prescriptionNo,
|
||||||
|
this.processedBy,
|
||||||
|
this.projectID,
|
||||||
|
this.refillID,
|
||||||
|
this.refillType,
|
||||||
|
this.refillTypeN,
|
||||||
|
this.reviewedPharmacist,
|
||||||
|
this.roomId,
|
||||||
|
this.route,
|
||||||
|
this.routeId,
|
||||||
|
this.routeN,
|
||||||
|
this.setupID,
|
||||||
|
this.startDatetime,
|
||||||
|
this.status,
|
||||||
|
this.statusDescription,
|
||||||
|
this.statusDescriptionN,
|
||||||
|
this.stopDatetime,
|
||||||
|
this.unitofMeasurement,
|
||||||
|
this.unitofMeasurementDescription,
|
||||||
|
this.unitofMeasurementDescriptionN});
|
||||||
|
|
||||||
|
PrescriotionInPatient.fromJson(Map<String, dynamic> json) {
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
authorizedBy = json['AuthorizedBy'];
|
||||||
|
bedNo = json['BedNo'];
|
||||||
|
comments = json['Comments'];
|
||||||
|
createdBy = json['CreatedBy'];
|
||||||
|
createdByName = json['CreatedByName'];
|
||||||
|
createdByNameN = json['CreatedByNameN'];
|
||||||
|
createdOn = json['CreatedOn'];
|
||||||
|
direction = json['Direction'];
|
||||||
|
directionID = json['DirectionID'];
|
||||||
|
directionN = json['DirectionN'];
|
||||||
|
dose = json['Dose'];
|
||||||
|
editedBy = json['EditedBy'];
|
||||||
|
iVDiluentLine = json['IVDiluentLine'];
|
||||||
|
iVDiluentType = json['IVDiluentType'];
|
||||||
|
iVDiluentVolume = json['IVDiluentVolume'];
|
||||||
|
iVRate = json['IVRate'];
|
||||||
|
iVStability = json['IVStability'];
|
||||||
|
itemDescription = json['ItemDescription'];
|
||||||
|
itemID = json['ItemID'];
|
||||||
|
lineItemNo = json['LineItemNo'];
|
||||||
|
locationId = json['LocationId'];
|
||||||
|
noOfDoses = json['NoOfDoses'];
|
||||||
|
orderNo = json['OrderNo'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
pharmacyRemarks = json['PharmacyRemarks'];
|
||||||
|
prescriptionDatetime = json['PrescriptionDatetime'];
|
||||||
|
prescriptionNo = json['PrescriptionNo'];
|
||||||
|
processedBy = json['ProcessedBy'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
refillID = json['RefillID'];
|
||||||
|
refillType = json['RefillType'];
|
||||||
|
refillTypeN = json['RefillTypeN'];
|
||||||
|
reviewedPharmacist = json['ReviewedPharmacist'];
|
||||||
|
roomId = json['RoomId'];
|
||||||
|
route = json['Route'];
|
||||||
|
routeId = json['RouteId'];
|
||||||
|
routeN = json['RouteN'];
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
startDatetime = json['StartDatetime'];
|
||||||
|
status = json['Status'];
|
||||||
|
statusDescription = json['StatusDescription'];
|
||||||
|
statusDescriptionN = json['StatusDescriptionN'];
|
||||||
|
stopDatetime = json['StopDatetime'];
|
||||||
|
unitofMeasurement = json['UnitofMeasurement'];
|
||||||
|
unitofMeasurementDescription = json['UnitofMeasurementDescription'];
|
||||||
|
unitofMeasurementDescriptionN = json['UnitofMeasurementDescriptionN'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
data['AuthorizedBy'] = this.authorizedBy;
|
||||||
|
data['BedNo'] = this.bedNo;
|
||||||
|
data['Comments'] = this.comments;
|
||||||
|
data['CreatedBy'] = this.createdBy;
|
||||||
|
data['CreatedByName'] = this.createdByName;
|
||||||
|
data['CreatedByNameN'] = this.createdByNameN;
|
||||||
|
data['CreatedOn'] = this.createdOn;
|
||||||
|
data['Direction'] = this.direction;
|
||||||
|
data['DirectionID'] = this.directionID;
|
||||||
|
data['DirectionN'] = this.directionN;
|
||||||
|
data['Dose'] = this.dose;
|
||||||
|
data['EditedBy'] = this.editedBy;
|
||||||
|
data['IVDiluentLine'] = this.iVDiluentLine;
|
||||||
|
data['IVDiluentType'] = this.iVDiluentType;
|
||||||
|
data['IVDiluentVolume'] = this.iVDiluentVolume;
|
||||||
|
data['IVRate'] = this.iVRate;
|
||||||
|
data['IVStability'] = this.iVStability;
|
||||||
|
data['ItemDescription'] = this.itemDescription;
|
||||||
|
data['ItemID'] = this.itemID;
|
||||||
|
data['LineItemNo'] = this.lineItemNo;
|
||||||
|
data['LocationId'] = this.locationId;
|
||||||
|
data['NoOfDoses'] = this.noOfDoses;
|
||||||
|
data['OrderNo'] = this.orderNo;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['PharmacyRemarks'] = this.pharmacyRemarks;
|
||||||
|
data['PrescriptionDatetime'] = this.prescriptionDatetime;
|
||||||
|
data['PrescriptionNo'] = this.prescriptionNo;
|
||||||
|
data['ProcessedBy'] = this.processedBy;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['RefillID'] = this.refillID;
|
||||||
|
data['RefillType'] = this.refillType;
|
||||||
|
data['RefillTypeN'] = this.refillTypeN;
|
||||||
|
data['ReviewedPharmacist'] = this.reviewedPharmacist;
|
||||||
|
data['RoomId'] = this.roomId;
|
||||||
|
data['Route'] = this.route;
|
||||||
|
data['RouteId'] = this.routeId;
|
||||||
|
data['RouteN'] = this.routeN;
|
||||||
|
data['SetupID'] = this.setupID;
|
||||||
|
data['StartDatetime'] = this.startDatetime;
|
||||||
|
data['Status'] = this.status;
|
||||||
|
data['StatusDescription'] = this.statusDescription;
|
||||||
|
data['StatusDescriptionN'] = this.statusDescriptionN;
|
||||||
|
data['StopDatetime'] = this.stopDatetime;
|
||||||
|
data['UnitofMeasurement'] = this.unitofMeasurement;
|
||||||
|
data['UnitofMeasurementDescription'] = this.unitofMeasurementDescription;
|
||||||
|
data['UnitofMeasurementDescriptionN'] = this.unitofMeasurementDescriptionN;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,108 @@
|
|||||||
|
class ReferralRequest {
|
||||||
|
String roomID;
|
||||||
|
String referralClinic;
|
||||||
|
String referralDoctor;
|
||||||
|
int createdBy;
|
||||||
|
int editedBy;
|
||||||
|
int patientID;
|
||||||
|
int patientTypeID;
|
||||||
|
int referringClinic;
|
||||||
|
int referringDoctor;
|
||||||
|
int projectID;
|
||||||
|
int admissionNo;
|
||||||
|
String referringDoctorRemarks;
|
||||||
|
String priority;
|
||||||
|
String frequency;
|
||||||
|
String extension;
|
||||||
|
int languageID;
|
||||||
|
String stamp;
|
||||||
|
String iPAdress;
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
String tokenID;
|
||||||
|
String sessionID;
|
||||||
|
bool isLoginForDoctorApp;
|
||||||
|
bool patientOutSA;
|
||||||
|
|
||||||
|
ReferralRequest(
|
||||||
|
{this.roomID,
|
||||||
|
this.referralClinic,
|
||||||
|
this.referralDoctor,
|
||||||
|
this.createdBy,
|
||||||
|
this.editedBy,
|
||||||
|
this.patientID,
|
||||||
|
this.patientTypeID,
|
||||||
|
this.referringClinic,
|
||||||
|
this.referringDoctor,
|
||||||
|
this.projectID,
|
||||||
|
this.admissionNo,
|
||||||
|
this.referringDoctorRemarks,
|
||||||
|
this.priority,
|
||||||
|
this.frequency,
|
||||||
|
this.extension,
|
||||||
|
this.languageID,
|
||||||
|
this.stamp,
|
||||||
|
this.iPAdress,
|
||||||
|
this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.tokenID,
|
||||||
|
this.sessionID,
|
||||||
|
this.isLoginForDoctorApp,
|
||||||
|
this.patientOutSA});
|
||||||
|
|
||||||
|
ReferralRequest.fromJson(Map<String, dynamic> json) {
|
||||||
|
roomID = json['RoomID'];
|
||||||
|
referralClinic = json['ReferralClinic'];
|
||||||
|
referralDoctor = json['ReferralDoctor'];
|
||||||
|
createdBy = json['CreatedBy'];
|
||||||
|
editedBy = json['EditedBy'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
patientTypeID = json['PatientTypeID'];
|
||||||
|
referringClinic = json['ReferringClinic'];
|
||||||
|
referringDoctor = json['ReferringDoctor'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
referringDoctorRemarks = json['ReferringDoctorRemarks'];
|
||||||
|
priority = json['Priority'];
|
||||||
|
frequency = json['Frequency'];
|
||||||
|
extension = json['Extension'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
stamp = json['stamp'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['RoomID'] = this.roomID;
|
||||||
|
data['ReferralClinic'] = this.referralClinic;
|
||||||
|
data['ReferralDoctor'] = this.referralDoctor;
|
||||||
|
data['CreatedBy'] = this.createdBy;
|
||||||
|
data['EditedBy'] = this.editedBy;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['PatientTypeID'] = this.patientTypeID;
|
||||||
|
data['ReferringClinic'] = this.referringClinic;
|
||||||
|
data['ReferringDoctor'] = this.referringDoctor;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
data['ReferringDoctorRemarks'] = this.referringDoctorRemarks;
|
||||||
|
data['Priority'] = this.priority;
|
||||||
|
data['Frequency'] = this.frequency;
|
||||||
|
data['Extension'] = this.extension;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['stamp'] = this.stamp;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,277 @@
|
|||||||
|
class InsuranceApprovalInPatientModel {
|
||||||
|
String setupID;
|
||||||
|
int projectID;
|
||||||
|
int approvalNo;
|
||||||
|
int status;
|
||||||
|
String approvalDate;
|
||||||
|
int patientType;
|
||||||
|
int patientID;
|
||||||
|
int companyID;
|
||||||
|
bool subCategoryID;
|
||||||
|
int doctorID;
|
||||||
|
int clinicID;
|
||||||
|
int approvalType;
|
||||||
|
int inpatientApprovalSubType;
|
||||||
|
dynamic isApprovalOnGross;
|
||||||
|
String companyApprovalNo;
|
||||||
|
dynamic progNoteOrderNo;
|
||||||
|
String submitOn;
|
||||||
|
String receiptOn;
|
||||||
|
String expiryDate;
|
||||||
|
int admissionNo;
|
||||||
|
int admissionRequestNo;
|
||||||
|
String approvalStatusDescption;
|
||||||
|
dynamic approvalStatusDescptionN;
|
||||||
|
dynamic remarks;
|
||||||
|
List<ApporvalDetails> apporvalDetails;
|
||||||
|
String clinicName;
|
||||||
|
dynamic companyName;
|
||||||
|
String doctorName;
|
||||||
|
String projectName;
|
||||||
|
int totaUnUsedCount;
|
||||||
|
int unUsedCount;
|
||||||
|
String doctorImage;
|
||||||
|
|
||||||
|
InsuranceApprovalInPatientModel(
|
||||||
|
{this.setupID,
|
||||||
|
this.projectID,
|
||||||
|
this.approvalNo,
|
||||||
|
this.status,
|
||||||
|
this.approvalDate,
|
||||||
|
this.patientType,
|
||||||
|
this.patientID,
|
||||||
|
this.companyID,
|
||||||
|
this.subCategoryID,
|
||||||
|
this.doctorID,
|
||||||
|
this.clinicID,
|
||||||
|
this.approvalType,
|
||||||
|
this.inpatientApprovalSubType,
|
||||||
|
this.isApprovalOnGross,
|
||||||
|
this.companyApprovalNo,
|
||||||
|
this.progNoteOrderNo,
|
||||||
|
this.submitOn,
|
||||||
|
this.receiptOn,
|
||||||
|
this.expiryDate,
|
||||||
|
this.admissionNo,
|
||||||
|
this.admissionRequestNo,
|
||||||
|
this.approvalStatusDescption,
|
||||||
|
this.approvalStatusDescptionN,
|
||||||
|
this.remarks,
|
||||||
|
this.apporvalDetails,
|
||||||
|
this.clinicName,
|
||||||
|
this.companyName,
|
||||||
|
this.doctorName,
|
||||||
|
this.projectName,
|
||||||
|
this.totaUnUsedCount,
|
||||||
|
this.unUsedCount,
|
||||||
|
this.doctorImage});
|
||||||
|
|
||||||
|
InsuranceApprovalInPatientModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
doctorImage = json['DoctorImageURL'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
approvalNo = json['ApprovalNo'];
|
||||||
|
status = json['Status'];
|
||||||
|
approvalDate = json['ApprovalDate'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
companyID = json['CompanyID'];
|
||||||
|
subCategoryID = json['SubCategoryID'];
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
approvalType = json['ApprovalType'];
|
||||||
|
inpatientApprovalSubType = json['InpatientApprovalSubType'];
|
||||||
|
isApprovalOnGross = json['IsApprovalOnGross'];
|
||||||
|
companyApprovalNo = json['CompanyApprovalNo'];
|
||||||
|
progNoteOrderNo = json['ProgNoteOrderNo'];
|
||||||
|
submitOn = json['SubmitOn'];
|
||||||
|
receiptOn = json['ReceiptOn'];
|
||||||
|
expiryDate = json['ExpiryDate'];
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
admissionRequestNo = json['AdmissionRequestNo'];
|
||||||
|
approvalStatusDescption = json['ApprovalStatusDescption'];
|
||||||
|
approvalStatusDescptionN = json['ApprovalStatusDescptionN'];
|
||||||
|
remarks = json['Remarks'];
|
||||||
|
if (json['ApporvalDetails'] != null) {
|
||||||
|
apporvalDetails = new List<ApporvalDetails>();
|
||||||
|
json['ApporvalDetails'].forEach((v) {
|
||||||
|
apporvalDetails.add(new ApporvalDetails.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
clinicName = json['ClinicName'];
|
||||||
|
companyName = json['CompanyName'];
|
||||||
|
doctorName = json['DoctorName'];
|
||||||
|
projectName = json['ProjectName'];
|
||||||
|
totaUnUsedCount = json['TotaUnUsedCount'];
|
||||||
|
unUsedCount = json['UnUsedCount'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['SetupID'] = this.setupID;
|
||||||
|
data['DoctorImageURL'] = this.doctorImage;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['ApprovalNo'] = this.approvalNo;
|
||||||
|
data['Status'] = this.status;
|
||||||
|
data['ApprovalDate'] = this.approvalDate;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['CompanyID'] = this.companyID;
|
||||||
|
data['SubCategoryID'] = this.subCategoryID;
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['ApprovalType'] = this.approvalType;
|
||||||
|
data['InpatientApprovalSubType'] = this.inpatientApprovalSubType;
|
||||||
|
data['IsApprovalOnGross'] = this.isApprovalOnGross;
|
||||||
|
data['CompanyApprovalNo'] = this.companyApprovalNo;
|
||||||
|
data['ProgNoteOrderNo'] = this.progNoteOrderNo;
|
||||||
|
data['SubmitOn'] = this.submitOn;
|
||||||
|
data['ReceiptOn'] = this.receiptOn;
|
||||||
|
data['ExpiryDate'] = this.expiryDate;
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
data['AdmissionRequestNo'] = this.admissionRequestNo;
|
||||||
|
data['ApprovalStatusDescption'] = this.approvalStatusDescption;
|
||||||
|
data['ApprovalStatusDescptionN'] = this.approvalStatusDescptionN;
|
||||||
|
data['Remarks'] = this.remarks;
|
||||||
|
if (this.apporvalDetails != null) {
|
||||||
|
data['ApporvalDetails'] =
|
||||||
|
this.apporvalDetails.map((v) => v.toJson()).toList();
|
||||||
|
}
|
||||||
|
data['ClinicName'] = this.clinicName;
|
||||||
|
data['CompanyName'] = this.companyName;
|
||||||
|
data['DoctorName'] = this.doctorName;
|
||||||
|
data['ProjectName'] = this.projectName;
|
||||||
|
data['TotaUnUsedCount'] = this.totaUnUsedCount;
|
||||||
|
data['UnUsedCount'] = this.unUsedCount;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ApporvalDetails {
|
||||||
|
Null setupID;
|
||||||
|
Null projectID;
|
||||||
|
int approvalNo;
|
||||||
|
Null lineItemNo;
|
||||||
|
Null orderType;
|
||||||
|
Null procedureID;
|
||||||
|
Null toothNo;
|
||||||
|
Null price;
|
||||||
|
Null approvedAmount;
|
||||||
|
Null unapprovedPatientShare;
|
||||||
|
Null waivedAmount;
|
||||||
|
Null discountType;
|
||||||
|
Null discountValue;
|
||||||
|
Null shareType;
|
||||||
|
Null patientShareTypeValue;
|
||||||
|
Null companyShareTypeValue;
|
||||||
|
Null patientShare;
|
||||||
|
Null companyShare;
|
||||||
|
Null deductableAmount;
|
||||||
|
String disapprovedRemarks;
|
||||||
|
Null progNoteOrderNo;
|
||||||
|
Null progNoteLineItemNo;
|
||||||
|
Null invoiceTransactionType;
|
||||||
|
Null invoiceNo;
|
||||||
|
String procedureName;
|
||||||
|
String procedureNameN;
|
||||||
|
String status;
|
||||||
|
Null isInvoiced;
|
||||||
|
String isInvoicedDesc;
|
||||||
|
|
||||||
|
ApporvalDetails(
|
||||||
|
{this.setupID,
|
||||||
|
this.projectID,
|
||||||
|
this.approvalNo,
|
||||||
|
this.lineItemNo,
|
||||||
|
this.orderType,
|
||||||
|
this.procedureID,
|
||||||
|
this.toothNo,
|
||||||
|
this.price,
|
||||||
|
this.approvedAmount,
|
||||||
|
this.unapprovedPatientShare,
|
||||||
|
this.waivedAmount,
|
||||||
|
this.discountType,
|
||||||
|
this.discountValue,
|
||||||
|
this.shareType,
|
||||||
|
this.patientShareTypeValue,
|
||||||
|
this.companyShareTypeValue,
|
||||||
|
this.patientShare,
|
||||||
|
this.companyShare,
|
||||||
|
this.deductableAmount,
|
||||||
|
this.disapprovedRemarks,
|
||||||
|
this.progNoteOrderNo,
|
||||||
|
this.progNoteLineItemNo,
|
||||||
|
this.invoiceTransactionType,
|
||||||
|
this.invoiceNo,
|
||||||
|
this.procedureName,
|
||||||
|
this.procedureNameN,
|
||||||
|
this.status,
|
||||||
|
this.isInvoiced,
|
||||||
|
this.isInvoicedDesc});
|
||||||
|
|
||||||
|
ApporvalDetails.fromJson(Map<String, dynamic> json) {
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
approvalNo = json['ApprovalNo'];
|
||||||
|
lineItemNo = json['LineItemNo'];
|
||||||
|
orderType = json['OrderType'];
|
||||||
|
procedureID = json['ProcedureID'];
|
||||||
|
toothNo = json['ToothNo'];
|
||||||
|
price = json['Price'];
|
||||||
|
approvedAmount = json['ApprovedAmount'];
|
||||||
|
unapprovedPatientShare = json['UnapprovedPatientShare'];
|
||||||
|
waivedAmount = json['WaivedAmount'];
|
||||||
|
discountType = json['DiscountType'];
|
||||||
|
discountValue = json['DiscountValue'];
|
||||||
|
shareType = json['ShareType'];
|
||||||
|
patientShareTypeValue = json['PatientShareTypeValue'];
|
||||||
|
companyShareTypeValue = json['CompanyShareTypeValue'];
|
||||||
|
patientShare = json['PatientShare'];
|
||||||
|
companyShare = json['CompanyShare'];
|
||||||
|
deductableAmount = json['DeductableAmount'];
|
||||||
|
disapprovedRemarks = json['DisapprovedRemarks'];
|
||||||
|
progNoteOrderNo = json['ProgNoteOrderNo'];
|
||||||
|
progNoteLineItemNo = json['ProgNoteLineItemNo'];
|
||||||
|
invoiceTransactionType = json['InvoiceTransactionType'];
|
||||||
|
invoiceNo = json['InvoiceNo'];
|
||||||
|
procedureName = json['ProcedureName'];
|
||||||
|
procedureNameN = json['ProcedureNameN'];
|
||||||
|
status = json['Status'];
|
||||||
|
isInvoiced = json['IsInvoiced'];
|
||||||
|
isInvoicedDesc = json['IsInvoicedDesc'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['SetupID'] = this.setupID;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['ApprovalNo'] = this.approvalNo;
|
||||||
|
data['LineItemNo'] = this.lineItemNo;
|
||||||
|
data['OrderType'] = this.orderType;
|
||||||
|
data['ProcedureID'] = this.procedureID;
|
||||||
|
data['ToothNo'] = this.toothNo;
|
||||||
|
data['Price'] = this.price;
|
||||||
|
data['ApprovedAmount'] = this.approvedAmount;
|
||||||
|
data['UnapprovedPatientShare'] = this.unapprovedPatientShare;
|
||||||
|
data['WaivedAmount'] = this.waivedAmount;
|
||||||
|
data['DiscountType'] = this.discountType;
|
||||||
|
data['DiscountValue'] = this.discountValue;
|
||||||
|
data['ShareType'] = this.shareType;
|
||||||
|
data['PatientShareTypeValue'] = this.patientShareTypeValue;
|
||||||
|
data['CompanyShareTypeValue'] = this.companyShareTypeValue;
|
||||||
|
data['PatientShare'] = this.patientShare;
|
||||||
|
data['CompanyShare'] = this.companyShare;
|
||||||
|
data['DeductableAmount'] = this.deductableAmount;
|
||||||
|
data['DisapprovedRemarks'] = this.disapprovedRemarks;
|
||||||
|
data['ProgNoteOrderNo'] = this.progNoteOrderNo;
|
||||||
|
data['ProgNoteLineItemNo'] = this.progNoteLineItemNo;
|
||||||
|
data['InvoiceTransactionType'] = this.invoiceTransactionType;
|
||||||
|
data['InvoiceNo'] = this.invoiceNo;
|
||||||
|
data['ProcedureName'] = this.procedureName;
|
||||||
|
data['ProcedureNameN'] = this.procedureNameN;
|
||||||
|
data['Status'] = this.status;
|
||||||
|
data['IsInvoiced'] = this.isInvoiced;
|
||||||
|
data['IsInvoicedDesc'] = this.isInvoicedDesc;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,88 @@
|
|||||||
|
class CreateNoteModel {
|
||||||
|
int visitType;
|
||||||
|
int admissionNo;
|
||||||
|
int projectID;
|
||||||
|
int patientTypeID;
|
||||||
|
int patientID;
|
||||||
|
int clinicID;
|
||||||
|
String notes;
|
||||||
|
int createdBy;
|
||||||
|
int editedBy;
|
||||||
|
String nursingRemarks;
|
||||||
|
int languageID;
|
||||||
|
String stamp;
|
||||||
|
String iPAdress;
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
String tokenID;
|
||||||
|
String sessionID;
|
||||||
|
bool isLoginForDoctorApp;
|
||||||
|
bool patientOutSA;
|
||||||
|
|
||||||
|
CreateNoteModel(
|
||||||
|
{this.visitType,
|
||||||
|
this.admissionNo,
|
||||||
|
this.projectID,
|
||||||
|
this.patientTypeID,
|
||||||
|
this.patientID,
|
||||||
|
this.clinicID,
|
||||||
|
this.notes,
|
||||||
|
this.createdBy,
|
||||||
|
this.editedBy,
|
||||||
|
this.nursingRemarks,
|
||||||
|
this.languageID,
|
||||||
|
this.stamp,
|
||||||
|
this.iPAdress,
|
||||||
|
this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.tokenID,
|
||||||
|
this.sessionID,
|
||||||
|
this.isLoginForDoctorApp,
|
||||||
|
this.patientOutSA});
|
||||||
|
|
||||||
|
CreateNoteModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
visitType = json['VisitType'];
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
patientTypeID = json['PatientTypeID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
notes = json['Notes'];
|
||||||
|
createdBy = json['CreatedBy'];
|
||||||
|
editedBy = json['EditedBy'];
|
||||||
|
nursingRemarks = json['NursingRemarks'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
stamp = json['stamp'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['VisitType'] = this.visitType;
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['PatientTypeID'] = this.patientTypeID;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['Notes'] = this.notes;
|
||||||
|
data['CreatedBy'] = this.createdBy;
|
||||||
|
data['EditedBy'] = this.editedBy;
|
||||||
|
data['NursingRemarks'] = this.nursingRemarks;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['stamp'] = this.stamp;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,92 @@
|
|||||||
|
class NoteModel {
|
||||||
|
String setupID;
|
||||||
|
int projectID;
|
||||||
|
int patientID;
|
||||||
|
int patientType;
|
||||||
|
String admissionNo;
|
||||||
|
int lineItemNo;
|
||||||
|
int visitType;
|
||||||
|
String notes;
|
||||||
|
String assessmentDate;
|
||||||
|
String visitTime;
|
||||||
|
int status;
|
||||||
|
String nursingRemarks;
|
||||||
|
String createdOn;
|
||||||
|
String editedOn;
|
||||||
|
int createdBy;
|
||||||
|
int admissionClinicID;
|
||||||
|
String admissionClinicName;
|
||||||
|
Null doctorClinicName;
|
||||||
|
String doctorName;
|
||||||
|
String visitTypeDesc;
|
||||||
|
|
||||||
|
NoteModel(
|
||||||
|
{this.setupID,
|
||||||
|
this.projectID,
|
||||||
|
this.patientID,
|
||||||
|
this.patientType,
|
||||||
|
this.admissionNo,
|
||||||
|
this.lineItemNo,
|
||||||
|
this.visitType,
|
||||||
|
this.notes,
|
||||||
|
this.assessmentDate,
|
||||||
|
this.visitTime,
|
||||||
|
this.status,
|
||||||
|
this.nursingRemarks,
|
||||||
|
this.createdOn,
|
||||||
|
this.editedOn,
|
||||||
|
this.createdBy,
|
||||||
|
this.admissionClinicID,
|
||||||
|
this.admissionClinicName,
|
||||||
|
this.doctorClinicName,
|
||||||
|
this.doctorName,
|
||||||
|
this.visitTypeDesc});
|
||||||
|
|
||||||
|
NoteModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
lineItemNo = json['LineItemNo'];
|
||||||
|
visitType = json['VisitType'];
|
||||||
|
notes = json['Notes'];
|
||||||
|
assessmentDate = json['AssessmentDate'];
|
||||||
|
visitTime = json['VisitTime'];
|
||||||
|
status = json['Status'];
|
||||||
|
nursingRemarks = json['NursingRemarks'];
|
||||||
|
createdOn = json['CreatedOn'];
|
||||||
|
editedOn = json['EditedOn'];
|
||||||
|
createdBy = json['CreatedBy'];
|
||||||
|
admissionClinicID = json['AdmissionClinicID'];
|
||||||
|
admissionClinicName = json['AdmissionClinicName'];
|
||||||
|
doctorClinicName = json['DoctorClinicName'];
|
||||||
|
doctorName = json['DoctorName'];
|
||||||
|
visitTypeDesc = json['VisitTypeDesc'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['SetupID'] = this.setupID;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
data['LineItemNo'] = this.lineItemNo;
|
||||||
|
data['VisitType'] = this.visitType;
|
||||||
|
data['Notes'] = this.notes;
|
||||||
|
data['AssessmentDate'] = this.assessmentDate;
|
||||||
|
data['VisitTime'] = this.visitTime;
|
||||||
|
data['Status'] = this.status;
|
||||||
|
data['NursingRemarks'] = this.nursingRemarks;
|
||||||
|
data['CreatedOn'] = this.createdOn;
|
||||||
|
data['EditedOn'] = this.editedOn;
|
||||||
|
data['CreatedBy'] = this.createdBy;
|
||||||
|
data['AdmissionClinicID'] = this.admissionClinicID;
|
||||||
|
data['AdmissionClinicName'] = this.admissionClinicName;
|
||||||
|
data['DoctorClinicName'] = this.doctorClinicName;
|
||||||
|
data['DoctorName'] = this.doctorName;
|
||||||
|
data['VisitTypeDesc'] = this.visitTypeDesc;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,80 @@
|
|||||||
|
class UpdateNoteReqModel {
|
||||||
|
int projectID;
|
||||||
|
int createdBy;
|
||||||
|
int admissionNo;
|
||||||
|
int lineItemNo;
|
||||||
|
String notes;
|
||||||
|
bool verifiedNote;
|
||||||
|
bool cancelledNote;
|
||||||
|
int languageID;
|
||||||
|
String stamp;
|
||||||
|
String iPAdress;
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
String tokenID;
|
||||||
|
String sessionID;
|
||||||
|
bool isLoginForDoctorApp;
|
||||||
|
bool patientOutSA;
|
||||||
|
int patientTypeID;
|
||||||
|
|
||||||
|
UpdateNoteReqModel(
|
||||||
|
{this.projectID,
|
||||||
|
this.createdBy,
|
||||||
|
this.admissionNo,
|
||||||
|
this.lineItemNo,
|
||||||
|
this.notes,
|
||||||
|
this.verifiedNote,
|
||||||
|
this.cancelledNote,
|
||||||
|
this.languageID,
|
||||||
|
this.stamp,
|
||||||
|
this.iPAdress,
|
||||||
|
this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.tokenID,
|
||||||
|
this.sessionID,
|
||||||
|
this.isLoginForDoctorApp,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.patientTypeID});
|
||||||
|
|
||||||
|
UpdateNoteReqModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
createdBy = json['CreatedBy'];
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
lineItemNo = json['LineItemNo'];
|
||||||
|
notes = json['Notes'];
|
||||||
|
verifiedNote = json['VerifiedNote'];
|
||||||
|
cancelledNote = json['CancelledNote'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
stamp = json['stamp'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
patientTypeID = json['PatientTypeID'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['CreatedBy'] = this.createdBy;
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
data['LineItemNo'] = this.lineItemNo;
|
||||||
|
data['Notes'] = this.notes;
|
||||||
|
data['VerifiedNote'] = this.verifiedNote;
|
||||||
|
data['CancelledNote'] = this.cancelledNote;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['stamp'] = this.stamp;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
data['PatientTypeID'] = this.patientTypeID;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,144 @@
|
|||||||
|
class SickLeavePatientModel {
|
||||||
|
String setupID;
|
||||||
|
int projectID;
|
||||||
|
int patientID;
|
||||||
|
int patientType;
|
||||||
|
int clinicID;
|
||||||
|
int doctorID;
|
||||||
|
int requestNo;
|
||||||
|
String requestDate;
|
||||||
|
int sickLeaveDays;
|
||||||
|
int appointmentNo;
|
||||||
|
int admissionNo;
|
||||||
|
int actualDoctorRate;
|
||||||
|
String appointmentDate;
|
||||||
|
String clinicName;
|
||||||
|
String doctorImageURL;
|
||||||
|
String doctorName;
|
||||||
|
int doctorRate;
|
||||||
|
String doctorTitle;
|
||||||
|
int gender;
|
||||||
|
String genderDescription;
|
||||||
|
bool isActiveDoctorProfile;
|
||||||
|
bool isDoctorAllowVedioCall;
|
||||||
|
bool isExecludeDoctor;
|
||||||
|
bool isInOutPatient;
|
||||||
|
String isInOutPatientDescription;
|
||||||
|
String isInOutPatientDescriptionN;
|
||||||
|
bool isLiveCareAppointment;
|
||||||
|
int noOfPatientsRate;
|
||||||
|
dynamic patientName;
|
||||||
|
String projectName;
|
||||||
|
String qR;
|
||||||
|
List<String> speciality;
|
||||||
|
String strRequestDate;
|
||||||
|
|
||||||
|
SickLeavePatientModel(
|
||||||
|
{this.setupID,
|
||||||
|
this.projectID,
|
||||||
|
this.patientID,
|
||||||
|
this.patientType,
|
||||||
|
this.clinicID,
|
||||||
|
this.doctorID,
|
||||||
|
this.requestNo,
|
||||||
|
this.requestDate,
|
||||||
|
this.sickLeaveDays,
|
||||||
|
this.appointmentNo,
|
||||||
|
this.admissionNo,
|
||||||
|
this.actualDoctorRate,
|
||||||
|
this.appointmentDate,
|
||||||
|
this.clinicName,
|
||||||
|
this.doctorImageURL,
|
||||||
|
this.doctorName,
|
||||||
|
this.doctorRate,
|
||||||
|
this.doctorTitle,
|
||||||
|
this.gender,
|
||||||
|
this.genderDescription,
|
||||||
|
this.isActiveDoctorProfile,
|
||||||
|
this.isDoctorAllowVedioCall,
|
||||||
|
this.isExecludeDoctor,
|
||||||
|
this.isInOutPatient,
|
||||||
|
this.isInOutPatientDescription,
|
||||||
|
this.isInOutPatientDescriptionN,
|
||||||
|
this.isLiveCareAppointment,
|
||||||
|
this.noOfPatientsRate,
|
||||||
|
this.patientName,
|
||||||
|
this.projectName,
|
||||||
|
this.qR,
|
||||||
|
this.speciality,
|
||||||
|
this.strRequestDate});
|
||||||
|
|
||||||
|
SickLeavePatientModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
setupID = json['SetupID'];
|
||||||
|
projectID = json['ProjectID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
clinicID = json['ClinicID'];
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
requestNo = json['RequestNo'];
|
||||||
|
requestDate = json['RequestDate'];
|
||||||
|
sickLeaveDays = json['SickLeaveDays'];
|
||||||
|
appointmentNo = json['AppointmentNo'];
|
||||||
|
admissionNo = json['AdmissionNo'];
|
||||||
|
actualDoctorRate = json['ActualDoctorRate'];
|
||||||
|
appointmentDate = json['AppointmentDate'];
|
||||||
|
clinicName = json['ClinicName'];
|
||||||
|
doctorImageURL = json['DoctorImageURL'];
|
||||||
|
doctorName = json['DoctorName'];
|
||||||
|
doctorRate = json['DoctorRate'];
|
||||||
|
doctorTitle = json['DoctorTitle'];
|
||||||
|
gender = json['Gender'];
|
||||||
|
genderDescription = json['GenderDescription'];
|
||||||
|
isActiveDoctorProfile = json['IsActiveDoctorProfile'];
|
||||||
|
isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
|
||||||
|
isExecludeDoctor = json['IsExecludeDoctor'];
|
||||||
|
isInOutPatient = json['IsInOutPatient'];
|
||||||
|
isInOutPatientDescription = json['IsInOutPatientDescription'];
|
||||||
|
isInOutPatientDescriptionN = json['IsInOutPatientDescriptionN'];
|
||||||
|
isLiveCareAppointment = json['IsLiveCareAppointment'];
|
||||||
|
noOfPatientsRate = json['NoOfPatientsRate'];
|
||||||
|
patientName = json['PatientName'];
|
||||||
|
projectName = json['ProjectName'];
|
||||||
|
qR = json['QR'];
|
||||||
|
speciality = json['Speciality'].cast<String>();
|
||||||
|
strRequestDate = json['StrRequestDate'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['SetupID'] = this.setupID;
|
||||||
|
data['ProjectID'] = this.projectID;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
data['ClinicID'] = this.clinicID;
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
data['RequestNo'] = this.requestNo;
|
||||||
|
data['RequestDate'] = this.requestDate;
|
||||||
|
data['SickLeaveDays'] = this.sickLeaveDays;
|
||||||
|
data['AppointmentNo'] = this.appointmentNo;
|
||||||
|
data['AdmissionNo'] = this.admissionNo;
|
||||||
|
data['ActualDoctorRate'] = this.actualDoctorRate;
|
||||||
|
data['AppointmentDate'] = this.appointmentDate;
|
||||||
|
data['ClinicName'] = this.clinicName;
|
||||||
|
data['DoctorImageURL'] = this.doctorImageURL;
|
||||||
|
data['DoctorName'] = this.doctorName;
|
||||||
|
data['DoctorRate'] = this.doctorRate;
|
||||||
|
data['DoctorTitle'] = this.doctorTitle;
|
||||||
|
data['Gender'] = this.gender;
|
||||||
|
data['GenderDescription'] = this.genderDescription;
|
||||||
|
data['IsActiveDoctorProfile'] = this.isActiveDoctorProfile;
|
||||||
|
data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
|
||||||
|
data['IsExecludeDoctor'] = this.isExecludeDoctor;
|
||||||
|
data['IsInOutPatient'] = this.isInOutPatient;
|
||||||
|
data['IsInOutPatientDescription'] = this.isInOutPatientDescription;
|
||||||
|
data['IsInOutPatientDescriptionN'] = this.isInOutPatientDescriptionN;
|
||||||
|
data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
|
||||||
|
data['NoOfPatientsRate'] = this.noOfPatientsRate;
|
||||||
|
data['PatientName'] = this.patientName;
|
||||||
|
data['ProjectName'] = this.projectName;
|
||||||
|
data['QR'] = this.qR;
|
||||||
|
data['Speciality'] = this.speciality;
|
||||||
|
data['StrRequestDate'] = this.strRequestDate;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,60 @@
|
|||||||
|
class SickLeavePatientRequestModel {
|
||||||
|
double versionID;
|
||||||
|
int channel;
|
||||||
|
int languageID;
|
||||||
|
String iPAdress;
|
||||||
|
String generalid;
|
||||||
|
int patientOutSA;
|
||||||
|
int deviceTypeID;
|
||||||
|
int patientType;
|
||||||
|
int patientTypeID;
|
||||||
|
String tokenID;
|
||||||
|
int patientID;
|
||||||
|
String sessionID;
|
||||||
|
|
||||||
|
SickLeavePatientRequestModel(
|
||||||
|
{this.versionID,
|
||||||
|
this.channel,
|
||||||
|
this.languageID,
|
||||||
|
this.iPAdress,
|
||||||
|
this.generalid,
|
||||||
|
this.patientOutSA,
|
||||||
|
this.deviceTypeID,
|
||||||
|
this.patientType,
|
||||||
|
this.patientTypeID,
|
||||||
|
this.tokenID,
|
||||||
|
this.patientID,
|
||||||
|
this.sessionID});
|
||||||
|
|
||||||
|
SickLeavePatientRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
versionID = json['VersionID'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
languageID = json['LanguageID'];
|
||||||
|
iPAdress = json['IPAdress'];
|
||||||
|
generalid = json['generalid'];
|
||||||
|
patientOutSA = json['PatientOutSA'];
|
||||||
|
deviceTypeID = json['DeviceTypeID'];
|
||||||
|
patientType = json['PatientType'];
|
||||||
|
patientTypeID = json['PatientTypeID'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
patientID = json['PatientID'];
|
||||||
|
sessionID = json['SessionID'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['VersionID'] = this.versionID;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['LanguageID'] = this.languageID;
|
||||||
|
data['IPAdress'] = this.iPAdress;
|
||||||
|
data['generalid'] = this.generalid;
|
||||||
|
data['PatientOutSA'] = this.patientOutSA;
|
||||||
|
data['DeviceTypeID'] = this.deviceTypeID;
|
||||||
|
data['PatientType'] = this.patientType;
|
||||||
|
data['PatientTypeID'] = this.patientTypeID;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['PatientID'] = this.patientID;
|
||||||
|
data['SessionID'] = this.sessionID;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
import 'dart:async';
|
||||||
|
|
||||||
|
class RobotProvider {
|
||||||
|
static final RobotProvider _singleton = RobotProvider._internal();
|
||||||
|
var value;
|
||||||
|
StreamController<Map> controller = StreamController<Map>.broadcast();
|
||||||
|
|
||||||
|
getData() {
|
||||||
|
// return data;
|
||||||
|
}
|
||||||
|
intStream() {
|
||||||
|
controller.add({});
|
||||||
|
}
|
||||||
|
|
||||||
|
setValue(Map data) {
|
||||||
|
value = data;
|
||||||
|
controller.add(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
factory RobotProvider() {
|
||||||
|
return _singleton;
|
||||||
|
}
|
||||||
|
|
||||||
|
RobotProvider._internal();
|
||||||
|
}
|
||||||
@ -0,0 +1,76 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/model/DischargeReferralPatient.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||||
|
|
||||||
|
class DischargedPatientService extends BaseService {
|
||||||
|
List<PatiantInformtion> myDischargedPatients = List();
|
||||||
|
|
||||||
|
List<DischargeReferralPatient> myDischargeReferralPatients = List();
|
||||||
|
|
||||||
|
Future getDischargedPatient() async {
|
||||||
|
hasError = false;
|
||||||
|
Map<String, dynamic> body = Map();
|
||||||
|
await getDoctorProfile();
|
||||||
|
body['DoctorID'] = doctorProfile.doctorID;
|
||||||
|
body['FirstName'] = "0";
|
||||||
|
body['MiddleName'] = "0";
|
||||||
|
body['LastName'] = "0";
|
||||||
|
body['PatientMobileNumber'] = "0";
|
||||||
|
body['PatientIdentificationID'] = "0";
|
||||||
|
body['PatientID'] = 0;
|
||||||
|
body['From'] = "0";
|
||||||
|
body['To'] = "0";
|
||||||
|
body['stamp'] = DateTime.now().toIso8601String();
|
||||||
|
body['IsLoginForDoctorApp'] = true;
|
||||||
|
body['IPAdress'] = "11.11.11.11";
|
||||||
|
body['PatientOutSA'] = false;
|
||||||
|
body['PatientTypeID'] = 1;
|
||||||
|
hasError = false;
|
||||||
|
myDischargedPatients.clear();
|
||||||
|
await baseAppClient.post(GET_MY_DISCHARGE_PATIENT,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {
|
||||||
|
if (response['List_MyDischargePatient'] != null) {
|
||||||
|
response['List_MyDischargePatient'].forEach((v) {
|
||||||
|
myDischargedPatients.add(PatiantInformtion.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
}, body: body);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future gtMyDischargeReferralPatient() async {
|
||||||
|
hasError = false;
|
||||||
|
Map<String, dynamic> body = Map();
|
||||||
|
await getDoctorProfile();
|
||||||
|
body['DoctorID'] = doctorProfile.doctorID;
|
||||||
|
body['FirstName'] = "0";
|
||||||
|
body['MiddleName'] = "0";
|
||||||
|
body['LastName'] = "0";
|
||||||
|
body['PatientMobileNumber'] = "0";
|
||||||
|
body['PatientIdentificationID'] = "0";
|
||||||
|
body['PatientID'] = 0;
|
||||||
|
body['From'] = "0";
|
||||||
|
body['To'] = "0";
|
||||||
|
body['stamp'] = DateTime.now().toIso8601String();
|
||||||
|
body['IsLoginForDoctorApp'] = true;
|
||||||
|
body['IPAdress'] = "11.11.11.11";
|
||||||
|
body['PatientOutSA'] = false;
|
||||||
|
body['PatientTypeID'] = 1;
|
||||||
|
hasError = false;
|
||||||
|
myDischargeReferralPatients.clear();
|
||||||
|
await baseAppClient.post(GET_MY_DISCHARGE_PATIENT,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {
|
||||||
|
if (response['List_MyDischargeReferralPatient'] != null) {
|
||||||
|
response['List_MyDischargeReferralPatient'].forEach((v) {
|
||||||
|
myDischargeReferralPatients.add(DischargeReferralPatient.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
}, body: body);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,68 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/model/MyReferralPatientModel.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/doctor/request_add_referred_doctor_remarks.dart';
|
||||||
|
|
||||||
|
class MyReferralInPatientService extends BaseService {
|
||||||
|
List<MyReferralPatientModel> myReferralPatients = List();
|
||||||
|
|
||||||
|
Future getMyReferralPatientService() async {
|
||||||
|
hasError = false;
|
||||||
|
Map<String, dynamic> body = Map();
|
||||||
|
await getDoctorProfile();
|
||||||
|
body['DoctorID'] = doctorProfile.doctorID;
|
||||||
|
body['FirstName'] = "0";
|
||||||
|
body['MiddleName'] = "0";
|
||||||
|
body['LastName'] = "0";
|
||||||
|
body['PatientMobileNumber'] = "0";
|
||||||
|
body['PatientIdentificationID'] = "0";
|
||||||
|
body['PatientID'] = 0;
|
||||||
|
body['From'] = "0";
|
||||||
|
body['To'] = "0";
|
||||||
|
body['stamp'] = DateTime.now().toIso8601String();
|
||||||
|
body['IsLoginForDoctorApp'] = true;
|
||||||
|
body['IPAdress'] = "11.11.11.11";
|
||||||
|
body['PatientOutSA'] = false;
|
||||||
|
body['PatientTypeID'] = 1;
|
||||||
|
myReferralPatients.clear();
|
||||||
|
await baseAppClient.post(
|
||||||
|
GET_MY_REFERRAL_INPATIENT,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {
|
||||||
|
if (response['List_MyReferralPatient'] != null) {
|
||||||
|
response['List_MyReferralPatient'].forEach((v) {
|
||||||
|
myReferralPatients.add(MyReferralPatientModel.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
},
|
||||||
|
body: body,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future replay(String referredDoctorRemarks, MyReferralPatientModel referral) async {
|
||||||
|
hasError = false;
|
||||||
|
await getDoctorProfile();
|
||||||
|
RequestAddReferredDoctorRemarks _requestAddReferredDoctorRemarks = RequestAddReferredDoctorRemarks();
|
||||||
|
_requestAddReferredDoctorRemarks.projectID = referral.projectID;
|
||||||
|
_requestAddReferredDoctorRemarks.admissionNo = referral.admissionNo.toString();
|
||||||
|
_requestAddReferredDoctorRemarks.lineItemNo = referral.lineItemNo;
|
||||||
|
_requestAddReferredDoctorRemarks.referredDoctorRemarks = referredDoctorRemarks;
|
||||||
|
_requestAddReferredDoctorRemarks.editedBy = doctorProfile.doctorID;
|
||||||
|
_requestAddReferredDoctorRemarks.patientID = referral.patientID;
|
||||||
|
_requestAddReferredDoctorRemarks.referringDoctor = referral.referringDoctor;
|
||||||
|
await baseAppClient.post(
|
||||||
|
ADD_REFERRED_DOCTOR_REMARKS,
|
||||||
|
body: _requestAddReferredDoctorRemarks.toJson(),
|
||||||
|
onSuccess: (dynamic body, int statusCode) {
|
||||||
|
|
||||||
|
},
|
||||||
|
onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/model/ReferralRequest.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||||
|
|
||||||
|
class ReferralService extends BaseService {
|
||||||
|
|
||||||
|
Future referralPatient(
|
||||||
|
{int admissionNo,
|
||||||
|
String roomID,
|
||||||
|
int referralClinic,
|
||||||
|
int referralDoctor,
|
||||||
|
int patientID,
|
||||||
|
int patientTypeID,
|
||||||
|
int priority,
|
||||||
|
int frequency,
|
||||||
|
String referringDoctorRemarks,
|
||||||
|
String extension}) async {
|
||||||
|
await getDoctorProfile();
|
||||||
|
ReferralRequest referralRequest = ReferralRequest();
|
||||||
|
referralRequest.admissionNo = admissionNo;
|
||||||
|
referralRequest.roomID = roomID;
|
||||||
|
referralRequest.referralClinic = referralClinic.toString();
|
||||||
|
referralRequest.referralDoctor = referralDoctor.toString();
|
||||||
|
referralRequest.patientID = patientID;
|
||||||
|
referralRequest.patientTypeID = patientTypeID;
|
||||||
|
referralRequest.priority = priority.toString();
|
||||||
|
referralRequest.frequency = frequency.toString();
|
||||||
|
referralRequest.referringDoctorRemarks = referringDoctorRemarks;
|
||||||
|
referralRequest.referringClinic = doctorProfile.clinicID;
|
||||||
|
referralRequest.referringDoctor = doctorProfile.doctorID;
|
||||||
|
referralRequest.extension = extension;
|
||||||
|
referralRequest.editedBy = doctorProfile.doctorID;
|
||||||
|
referralRequest.createdBy = doctorProfile.doctorID;
|
||||||
|
referralRequest.patientOutSA = false;
|
||||||
|
|
||||||
|
await baseAppClient.post(
|
||||||
|
REFER_TO_DOCTOR,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {},
|
||||||
|
onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
},
|
||||||
|
body: referralRequest.toJson(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||