|
|
|
|
@ -39,22 +39,20 @@ class _VitalSignScreenState extends State<VitalSignScreen> {
|
|
|
|
|
*@return:
|
|
|
|
|
*@desc: getVitalSignList Function
|
|
|
|
|
*/
|
|
|
|
|
getVitalSignList(context) {
|
|
|
|
|
getVitalSignList(context) async {
|
|
|
|
|
final routeArgs = ModalRoute.of(context).settings.arguments as Map;
|
|
|
|
|
PatiantInformtion patient = routeArgs['patient'];
|
|
|
|
|
sharedPref.getString(TOKEN).then((token) {
|
|
|
|
|
VitalSignReqModel vitalSignReqModel = VitalSignReqModel(
|
|
|
|
|
patientID: 1237159, //patient.patientId,
|
|
|
|
|
projectID: 12, //patient.projectId,
|
|
|
|
|
tokenID: '@dm!n',
|
|
|
|
|
String token = await sharedPref.getString(TOKEN);
|
|
|
|
|
VitalSignReqModel vitalSignReqModel = VitalSignReqModel(
|
|
|
|
|
patientID: patient.patientId,
|
|
|
|
|
projectID: patient.projectId,
|
|
|
|
|
tokenID: token,
|
|
|
|
|
patientTypeID: patient.patientType,
|
|
|
|
|
inOutpatientType: 2,
|
|
|
|
|
inOutpatientType: 1,
|
|
|
|
|
languageID: 2,
|
|
|
|
|
transNo: 0,
|
|
|
|
|
);
|
|
|
|
|
//patient.admissionNo != null ? int.parse(patient.admissionNo) : 0);
|
|
|
|
|
patientsProv.getPatientVitalSign(vitalSignReqModel.toJson());
|
|
|
|
|
});
|
|
|
|
|
transNo:
|
|
|
|
|
patient.admissionNo != null ? int.parse(patient.admissionNo) : 0);
|
|
|
|
|
patientsProv.getPatientVitalSign(vitalSignReqModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -71,6 +69,8 @@ class _VitalSignScreenState extends State<VitalSignScreen> {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
appBarTitle: "VITAL SIGN",
|
|
|
|
|
showAppDrawer: false,
|
|
|
|
|
showBottomBar: false,
|
|
|
|
|
body: patientsProv.isLoading
|
|
|
|
|
? DrAppCircularProgressIndeicator()
|
|
|
|
|
: patientsProv.isError
|
|
|
|
|
@ -88,6 +88,11 @@ class _VitalSignScreenState extends State<VitalSignScreen> {
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
margin: EdgeInsets.fromLTRB(
|
|
|
|
|
SizeConfig.realScreenWidth * 0.05,
|
|
|
|
|
0,
|
|
|
|
|
SizeConfig.realScreenWidth * 0.05,
|
|
|
|
|
0),
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
itemCount: patientsProv.patientVitalSignList.length,
|
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
|
@ -96,18 +101,42 @@ class _VitalSignScreenState extends State<VitalSignScreen> {
|
|
|
|
|
widget: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'DoctorName - ${patientsProv.patientVitalSignList[index].doctorName}',
|
|
|
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
AppText('painScoreDesc - ${patientsProv.patientVitalSignList[index].painScoreDesc}',
|
|
|
|
|
fontSize:
|
|
|
|
|
2.5 * SizeConfig.textMultiplier),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
CircleAvatar(
|
|
|
|
|
radius:
|
|
|
|
|
SizeConfig.imageSizeMultiplier *
|
|
|
|
|
12,
|
|
|
|
|
backgroundImage: NetworkImage(
|
|
|
|
|
patientsProv
|
|
|
|
|
.patientVitalSignList[index]
|
|
|
|
|
.doctorImageURL),
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.fromLTRB(8,0,0,0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'${patientsProv.patientVitalSignList[index].doctorName}',
|
|
|
|
|
fontSize: 2.5 *
|
|
|
|
|
SizeConfig.textMultiplier,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
' ${patientsProv.patientVitalSignList[index].clinicName}',
|
|
|
|
|
fontSize: 2.5 *
|
|
|
|
|
SizeConfig.textMultiplier),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|