|
|
|
|
@ -23,6 +23,7 @@ import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/card_with_bg_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/errors/dr_app_embedded_error.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/errors/error_message.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_dialog_utils.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
|
|
|
@ -50,10 +51,11 @@ class _ProgressNoteState extends State<DiagnosisScreen> {
|
|
|
|
|
|
|
|
|
|
print(type);
|
|
|
|
|
GetDiagnosisForInPatientRequestModel getDiagnosisForInPatientRequestModel =
|
|
|
|
|
GetDiagnosisForInPatientRequestModel(
|
|
|
|
|
GetDiagnosisForInPatientRequestModel(
|
|
|
|
|
admissionNo: int.parse(patient.admissionNo),
|
|
|
|
|
patientTypeID: patient.patientType,
|
|
|
|
|
patientID: patient.patientId, setupID: "010266");
|
|
|
|
|
patientID: patient.patientId,
|
|
|
|
|
setupID: "010266");
|
|
|
|
|
model.getDiagnosisForInPatient(getDiagnosisForInPatientRequestModel);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -76,8 +78,11 @@ class _ProgressNoteState extends State<DiagnosisScreen> {
|
|
|
|
|
),
|
|
|
|
|
body: model.diagnosisForInPatientList == null ||
|
|
|
|
|
model.diagnosisForInPatientList.length == 0
|
|
|
|
|
? DrAppEmbeddedError(
|
|
|
|
|
error: TranslationBase.of(context).noItem)
|
|
|
|
|
? Center(
|
|
|
|
|
child: ErrorMessage(
|
|
|
|
|
error: TranslationBase.of(context).noDataAvailable,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
color: Colors.grey[200],
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -85,8 +90,7 @@ class _ProgressNoteState extends State<DiagnosisScreen> {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
itemCount:
|
|
|
|
|
model.diagnosisForInPatientList.length,
|
|
|
|
|
itemCount: model.diagnosisForInPatientList.length,
|
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
|
return FractionallySizedBox(
|
|
|
|
|
widthFactor: 0.95,
|
|
|
|
|
@ -207,9 +211,9 @@ class _ProgressNoteState extends State<DiagnosisScreen> {
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.icd + " : ",
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.icd +
|
|
|
|
|
" : ",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
@ -228,16 +232,17 @@ class _ProgressNoteState extends State<DiagnosisScreen> {
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText("Ascii Desc : ",
|
|
|
|
|
AppText(
|
|
|
|
|
"Ascii Desc : ",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.diagnosisForInPatientList[
|
|
|
|
|
index]
|
|
|
|
|
index]
|
|
|
|
|
.asciiDesc,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
|