development-3.3
haroon amjad 2 years ago
parent d0163d5a38
commit ad1f1e133c

@ -7,9 +7,9 @@ const ONLY_DATE = "[0-9/]";
const BASE_URL_LIVE_CARE = 'https://livecare.hmg.com/';
const DOCTOR_ROTATION = 'https://doctorrota.hmg.com/';
// const BASE_URL_LIVE_CARE = 'https://livecareuat.hmg.com/';
// const BASE_URL = 'https://hmgwebservices.com/';
const BASE_URL = 'https://hmgwebservices.com/';
const BASE_URL = 'https://uat.hmgwebservices.com/';
// const BASE_URL = 'https://uat.hmgwebservices.com/';
// const BASE_URL = 'https://webservices.hmg.com/';
@ -190,7 +190,8 @@ const GET_MY_REFERRAL_OUT_PATIENT = "Services/DoctorApplication.svc/REST/GtMyRef
const GET_MY_DISCHARGE_PATIENT = "Services/DoctorApplication.svc/REST/GtMyDischargeReferralPatient";
const GET_DISCHARGE_PATIENT = "Services/DoctorApplication.svc/REST/GtMyDischargePatient";
const GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus";
// const GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus";
const GET_PAtIENTS_INSURANCE_APPROVALS = "Services/Patients.svc/REST/GetApprovalStatus_Async";
const GET_RAD_IMAGE_URL = 'Services/Patients.svc/Rest/GetRadImageURL';
const GET_PATIENT_ORDERS = 'Services/Patients.svc/REST/GetPatientRadOrders';

@ -3,6 +3,7 @@ import 'package:doctor_app_flutter/core/viewModel/InsuranceViewModel.dart';
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.dart';
import 'package:doctor_app_flutter/screens/base/base_view.dart';
import 'package:doctor_app_flutter/screens/patients/In_patient/NoData.dart';
import 'package:doctor_app_flutter/utils/date-utils.dart';
import 'package:doctor_app_flutter/utils/translations_delegate_base_utils.dart';
import 'package:doctor_app_flutter/widgets/patients/patient_service_title.dart';
@ -714,7 +715,7 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 8.0),
child: ListView.builder(
child: (model.insuranceApproval[indexInsurance].apporvalDetails != null && model.insuranceApproval[indexInsurance].apporvalDetails.isNotEmpty) ? ListView.builder(
shrinkWrap: true,
physics: ScrollPhysics(),
itemCount: model
@ -789,7 +790,7 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
],
),
);
}),
}) : NoData(),
),
],
),

@ -49,7 +49,8 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
GlobalKey key = new GlobalKey<AutoCompleteTextFieldState<MasterKeyModel>>();
bool isFormSubmitted = false;
bool complexDiagnosis =true;
bool complexDiagnosis = true;
@override
Widget build(BuildContext context) {
ProjectViewModel projectViewModel = Provider.of(context);
@ -98,7 +99,7 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
builder: (_, model, w) => AppScaffold(
baseViewModel: model,
isShowAppBar: true,
appBar: BottomSheetTitle(title: widget.isUpdate ? TranslationBase.of(context).updateAssessmentDetails: TranslationBase.of(context).addAssessmentDetails),
appBar: BottomSheetTitle(title: widget.isUpdate ? TranslationBase.of(context).updateAssessmentDetails : TranslationBase.of(context).addAssessmentDetails),
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
body: SingleChildScrollView(
child: Center(
@ -111,21 +112,18 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
SizedBox(
height: 16,
),
Row(children: [
Row(children: [
Checkbox(
value:complexDiagnosis,
value: complexDiagnosis,
onChanged: (bool value) {
complexDiagnosis =value;
setState(() {
});
complexDiagnosis = value;
setState(() {});
},
checkColor: Colors.white,
activeColor: Colors.green,
),
Text(
TranslationBase.of(context).complexDiagnosis,
),
]),
SizedBox(
@ -145,8 +143,8 @@ Row(children: [
SizedBox(
height: 10,
),
Column(
children:[ InkWell(
Column(children: [
InkWell(
onTap: model.listOfICD10 != null
? () {
setState(() {
@ -156,7 +154,7 @@ Row(children: [
}
: null,
child: AppTextFieldCustom(
onChanged: (text){
onChanged: (text) {
setState(() {
icdNameController.text;
});
@ -174,12 +172,12 @@ Row(children: [
maxLines: 1,
minLines: 1,
controller: icdNameController,
enabled:true,
enabled: true,
isTextFieldHasSuffix: true,
suffixIcon: IconButton(
onPressed: () {
if (icdNameController.text.length <= 3) {
DrAppToastMsg.showErrorToast("Please enter 4 or more characters");
if (icdNameController.text.length <= 2) {
DrAppToastMsg.showErrorToast("Please enter 3 or more characters");
} else {
model.listOfICD10.clear();
model.callAddAssessmentLookupsServices(searchKey: icdNameController.text);
@ -191,28 +189,25 @@ Row(children: [
)),
)),
model.listOfICD10.length >0 && icdNameController.text.isNotEmpty ? Container(
model.listOfICD10.length > 0 && icdNameController.text.isNotEmpty
? Container(
color: Colors.white,
height: MediaQuery.of(context).size.height * 0.4, //height to 9% of screen height,
child:ListView.builder(
child: ListView.builder(
shrinkWrap: true,
itemCount: model.listOfICD10.length,
itemBuilder: (context, index) {
return InkWell(child:ListTile(
title: AppText( model.listOfICD10[index].description + " / " + model.listOfICD10[index].code.toString(), fontSize: 12.0)),
onTap: (){
return InkWell(
child: ListTile(title: AppText(model.listOfICD10[index].description + " / " + model.listOfICD10[index].code.toString(), fontSize: 12.0)),
onTap: () {
widget.mySelectedAssessment.selectedICD = model.listOfICD10[index];
icdNameController.text = model.listOfICD10[index].description;
model.listOfICD10.clear();
setState(() {
setState(() {});
});
}
);
},
)) :SizedBox()
))
: SizedBox()
// CustomAutoCompleteTextField(
// isShowError: isFormSubmitted && widget.mySelectedAssessment.selectedICD == null,
// child: Row(
@ -259,7 +254,6 @@ Row(children: [
// ],
// ),
// )
]),
if (widget.mySelectedAssessment.selectedICD != null)
Column(
@ -387,7 +381,7 @@ Row(children: [
height: 0,
)
: CustomBottomSheetContainer(
label: (widget.isUpdate ? TranslationBase.of(context).updateAssessmentDetails: TranslationBase.of(context).addAssessmentDetails),
label: (widget.isUpdate ? TranslationBase.of(context).updateAssessmentDetails : TranslationBase.of(context).addAssessmentDetails),
onTap: () async {
setState(() {
isFormSubmitted = true;
@ -411,7 +405,6 @@ Row(children: [
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
GifLoaderDialogUtils.showMyDialog(context);
if (isUpdate) {
PostAssessmentRequestUpdateModel patchAssessmentReqModel = PostAssessmentRequestUpdateModel(
patientMRN: widget.patientInfo.patientMRN,
episodeId: widget.patientInfo.episodeNo,
@ -425,7 +418,8 @@ Row(children: [
conditionId: mySelectedAssessment.selectedDiagnosisCondition.id,
prevIcdCode10ID: mySelectedAssessment.icdCode10ID,
diagnosisTypeId: mySelectedAssessment.selectedDiagnosisType.id,
icdcode10Id: mySelectedAssessment.selectedICD.code)]);
icdcode10Id: mySelectedAssessment.selectedICD.code)
]);
await model.patchAssessment(patchAssessmentReqModel);
} else {

Loading…
Cancel
Save