remove patient type and arrival type form patient profile header

merge-requests/737/head
Elham Rababah 5 years ago
parent bc53ca7b8a
commit 411746da98

@ -185,7 +185,7 @@ class _EndCallScreenState extends State<EndCallScreen> {
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
isShowAppBar: true,
appBar: PatientProfileAppBar(
widget.patient, arrivalType ?? '7', '1',
widget.patient,
isInpatient: isInpatient,
height: (widget.patient.patientStatusType != null &&
widget.patient.patientStatusType == 43)

@ -32,8 +32,6 @@ class _HealthSummaryPageState extends State<HealthSummaryPage> {
AppScaffold(
appBar: PatientProfileAppBar(
patient,
patientType.toString() ?? "0",
arrivalType,
isInpatient: isInpatient,
),
isShowAppBar: true,

@ -104,8 +104,6 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
AppScaffold(
appBar: PatientProfileAppBar(
patient,
patient.patientType.toString() ?? "0",
patient.arrivedOn.toString() ?? 0,
doctorName: doctorName,
profileUrl: doctorImage,
clinic: clinicName,

@ -31,7 +31,7 @@ class ECGPage extends StatelessWidget {
baseViewModel: model,
isShowAppBar: true,
backgroundColor: Color(0xffF8F8F8),
appBar: PatientProfileAppBar(patient,arrivalType??'0',patientType),
appBar: PatientProfileAppBar(patient),
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(8.0),

@ -46,8 +46,6 @@ class _InsuranceApprovalScreenNewState
AppScaffold(
appBar: PatientProfileAppBar(
patient,
patientType.toString() ?? "0",
patientType,
isInpatient: isInpatient,
),
isShowAppBar: true,

@ -55,7 +55,7 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
isShowAppBar: true,
baseViewModel: model,
appBar: PatientProfileAppBar(
patient, patient.patientType.toString(), patient.arrivedOn),
patient),
body: patient.admissionNo != null
? SingleChildScrollView(
child: Container(

@ -48,7 +48,7 @@ class _UcafDetailScreenState extends State<UcafDetailScreen> {
baseViewModel: model,
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient, patientType, arrivalType),
patient),
appBarTitle: TranslationBase.of(context).ucaf,
body: Column(
children: [

@ -66,7 +66,7 @@ class _UCAFInputScreenState extends State<UCAFInputScreen> {
baseViewModel: model,
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient, patientType, arrivalType),
patient),
appBarTitle: TranslationBase.of(context).ucaf,
body: model.patientVitalSignsHistory.length > 0 &&
model.patientChiefComplaintList != null &&

@ -62,7 +62,7 @@ class _AdmissionRequestThirdScreenState
baseViewModel: model,
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient, patientType, arrivalType),
patient),
appBarTitle: TranslationBase.of(context).admissionRequest,
body: GestureDetector(
onTap: () {

@ -53,7 +53,7 @@ class _AdmissionRequestThirdScreenState
baseViewModel: model,
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient, patientType, arrivalType),
patient),
appBarTitle: TranslationBase.of(context).admissionRequest,
body: GestureDetector(
onTap: () {

@ -75,7 +75,7 @@ class _AdmissionRequestSecondScreenState
baseViewModel: model,
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient, patientType, arrivalType),
patient),
appBarTitle: TranslationBase.of(context).admissionRequest,
body: GestureDetector(
onTap: () {

@ -40,8 +40,7 @@ class _LaboratoryResultPageState extends State<LaboratoryResultPage> {
isShowAppBar: true,
appBar: PatientProfileAppBar(
widget.patient,
widget.patientType ?? "0",
widget.arrivalType ?? "0",
isFromLabResult: true,
appointmentDate: widget.patientLabOrders.orderDate,
),

@ -54,8 +54,7 @@ class _LabsHomePageState extends State<LabsHomePage> {
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient,
patient.patientType.toString() ?? '0',
patientType,
isInpatient: isInpatient,
),
body: SingleChildScrollView(

@ -33,8 +33,6 @@ class MedicalReportDetailPage extends StatelessWidget {
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
appBar: PatientProfileAppBar(
patient,
patientType,
arrivalType,
),
body: Container(
child: SingleChildScrollView(

@ -45,8 +45,6 @@ class MedicalReportPage extends StatelessWidget {
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
appBar: PatientProfileAppBar(
patient,
patientType,
arrivalType,
),
body: SingleChildScrollView(
physics: BouncingScrollPhysics(),

@ -90,8 +90,6 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
// appBarTitle: TranslationBase.of(context).progressNote,
appBar: PatientProfileAppBar(
patient,
patient.patientType.toString() ?? '0',
arrivalType,
isInpatient: true,
),
body: model.patientProgressNoteList == null ||

@ -103,8 +103,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>
Column(
children: [
PatientProfileAppBar(
patient, arrivalType ?? '0', patientType,
isInpatient: isInpatient,
patient,
isFromLiveCare: isFromLiveCare,
height: (patient.patientStatusType != null &&
patient.patientStatusType == 43)

@ -37,8 +37,6 @@ class RadiologyDetailsPage extends StatelessWidget {
builder: (_, model, widget) => AppScaffold(
appBar: PatientProfileAppBar(
patient,
patientType ?? "0",
arrivalType ?? "0",
appointmentDate: finalRadiology.orderDate,
doctorName: finalRadiology.doctorName,
clinic: finalRadiology.clinicDescription,

@ -52,8 +52,6 @@ class _RadiologyHomePageState extends State<RadiologyHomePage> {
// appBarTitle: TranslationBase.of(context).radiology,
appBar: PatientProfileAppBar(
patient,
patient.patientType.toString() ?? '0',
arrivalType,
isInpatient: isInpatient,
),
baseViewModel: model,

@ -138,8 +138,6 @@ class _PatientMakeInPatientReferralScreenState extends State<PatientMakeInPatien
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient,
patientType,
arrivalType,
isInpatient: isInpatient,
),
body: SingleChildScrollView(

@ -75,7 +75,7 @@ class _PatientMakeReferralScreenState extends State<PatientMakeReferralScreen> {
appBarTitle: TranslationBase.of(context).referPatient,
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient, patientType, arrivalType),
patient),
body: SingleChildScrollView(
child: Container(
child: Column(

@ -82,7 +82,7 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndex>
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
PatientProfileAppBar(patient, '7', '7',isFromSOAP: true,),
PatientProfileAppBar(patient),
Container(
width: double.infinity,
height: 1,

@ -41,7 +41,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
isShowAppBar: true,
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
appBar: PatientProfileAppBar(
patient, patientType, arrivalType),
patient),
appBarTitle: TranslationBase.of(context).vitalSign,
body: mode.patientVitalSignsHistory.length > 0
? Column(

@ -191,7 +191,7 @@ class VitalSignItemDetailsScreen extends StatelessWidget {
backgroundColor: Color.fromRGBO(248, 248, 248, 1),
isShowAppBar: true,
appBar: PatientProfileAppBar(
patient, patientType, arrivalType),
patient,),
body: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,

@ -45,7 +45,7 @@ class PrescriptionItemsInPatientPage extends StatelessWidget {
backgroundColor: Colors.grey[100],
baseViewModel: model,
appBar: PatientProfileAppBar(
patient, patient.patientType.toString(), patient.arrivedOn),
patient),
body: SingleChildScrollView(
child: Container(
child: Column(

@ -30,8 +30,6 @@ class PrescriptionItemsPage extends StatelessWidget {
baseViewModel: model,
appBar: PatientProfileAppBar(
patient,
patientType??"0",
arrivalType??"0",
clinic: prescriptions.clinicDescription,
branch: prescriptions.name,
isPrescriptions: true,

@ -37,8 +37,6 @@ class PrescriptionsPage extends StatelessWidget {
backgroundColor: Colors.grey[100],
appBar: PatientProfileAppBar(
patient,
patientType ?? '0',
arrivalType,
isInpatient: isInpatient,
),
body: patient.admissionNo == null

@ -46,8 +46,6 @@ class ProcedureScreen extends StatelessWidget {
baseViewModel: model,
appBar: PatientProfileAppBar(
patient,
arrivalType ?? '0',
patientType,
isInpatient: isInpatient,
),
body: SingleChildScrollView(

@ -36,8 +36,6 @@ class AddSickLeavScreen extends StatelessWidget {
backgroundColor: Colors.grey[100],
appBar: PatientProfileAppBar(
patient,
routeArgs['patientType'] ?? "0",
routeArgs['arrivalType'] ?? "0",
isInpatient: isInpatient,
),
body: SingleChildScrollView(

@ -27,8 +27,6 @@ class ShowSickLeaveScreen extends StatelessWidget {
backgroundColor: Colors.grey[100],
appBar: PatientProfileAppBar(
patient,
routeArgs['patientType'] ?? "0",
routeArgs['arrivalType'] ?? "0",
),
body: SingleChildScrollView(
child: Column(

@ -1,4 +1,3 @@
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
@ -8,7 +7,6 @@ import 'package:doctor_app_flutter/util/helpers.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart';
import 'package:provider/provider.dart';
import 'package:url_launcher/url_launcher.dart';
@ -17,8 +15,6 @@ import 'large_avatar.dart';
class PatientProfileAppBar extends StatelessWidget
with PreferredSizeWidget {
final PatiantInformtion patient;
final String patientType;
final String arrivalType;
final double height;
final bool isInpatient;
final bool isDischargedPatient;
@ -36,11 +32,10 @@ class PatientProfileAppBar extends StatelessWidget
final String visitDate;
final String clinic;
final bool isAppointmentHeader;
final bool isFromSOAP;
final bool isFromLabResult;
PatientProfileAppBar(
this.patient, this.patientType, this.arrivalType,
this.patient,
{this.height = 0.0,
this.isInpatient = false,
this.isDischargedPatient = false,
@ -57,7 +52,6 @@ class PatientProfileAppBar extends StatelessWidget
this.episode,
this.visitDate,
this.isAppointmentHeader = false,
this.isFromSOAP = false,
this.isFromLabResult = false});
@ -86,7 +80,7 @@ class PatientProfileAppBar extends StatelessWidget
? 215
: isAppointmentHeader
? 325
: 215
: 200
: height,
child: Container(
padding: EdgeInsets.only(left: 10, right: 10, bottom: 10),
@ -173,25 +167,24 @@ class PatientProfileAppBar extends StatelessWidget
fontFamily: 'Poppins',
fontSize: 12,
)
: AppText(
TranslationBase
.of(context)
.notArrived,
color: Colors.red[800],
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 12,
),
patient.startTime != null
? AppText(
: AppText(
TranslationBase.of(context).notArrived,
color: Colors.red[800],
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 12,
),
patient.startTime != null
? patient.startTime
: '',
fontFamily: 'Poppins',
fontWeight: FontWeight.w600,
):SizedBox()
],
))
? AppText(
patient.startTime != null
? patient.startTime
: '',
fontWeight: FontWeight.w700,
fontSize: 12,
color: Color(0xFF2E303A))
: SizedBox()
],
))
: SizedBox(),
Row(
@ -296,13 +289,10 @@ class PatientProfileAppBar extends StatelessWidget
width: 3.5,
),
AppText(
(isFromSOAP ? AppDateUtils
AppDateUtils
.getDayMonthYearDateFormatted(
AppDateUtils.convertStringToDate(
patient.appointmentDate)) : AppDateUtils
.convertStringToDateFormat(
patient.appointmentDate,
'MM-dd-yyyy'))
patient.appointmentDate))
,
fontWeight: FontWeight.w700,
fontSize: 12,
@ -356,7 +346,12 @@ class PatientProfileAppBar extends StatelessWidget
new TextSpan(
text: patient.admissionDate == null
? ""
: "${AppDateUtils.convertDateFromServerFormat(patient.admissionDate.toString(), 'yyyy-MM-dd')}",
: "${AppDateUtils
.getDayMonthYearDateFormatted(
(AppDateUtils
.getDateTimeFromServerFormat(
patient.admissionDate
.toString())))}",
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 12,
@ -552,6 +547,6 @@ class PatientProfileAppBar extends StatelessWidget
@override
Size get preferredSize =>
Size(double.maxFinite, height == 0
? isInpatient ? 215 : isAppointmentHeader ? 325 : 215
? isInpatient ? 215 : isAppointmentHeader ? 325 : 200
: height);
}

Loading…
Cancel
Save