|
|
|
|
@ -40,9 +40,10 @@ class _ProgressNoteState extends State<VteAssessmentScreen> {
|
|
|
|
|
if (routeArgs.containsKey('isDischargedPatient'))
|
|
|
|
|
isDischargedPatient = routeArgs['isDischargedPatient'];
|
|
|
|
|
return BaseView<VteAssessmentViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getVteAssessment(patientId: patient.patientId, admissionNo: 2016023498
|
|
|
|
|
onModelReady: (model) => model.getVteAssessment(patientId: patient.patientId,
|
|
|
|
|
admissionNo: 2016023498
|
|
|
|
|
|
|
|
|
|
//int.parse(patient.admissionNo)
|
|
|
|
|
// admissionNo:int.parse(patient.admissionNo)
|
|
|
|
|
),
|
|
|
|
|
builder: (_, model, w) => AppScaffold(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
@ -51,8 +52,8 @@ class _ProgressNoteState extends State<VteAssessmentScreen> {
|
|
|
|
|
patient,
|
|
|
|
|
isInpatient: true,
|
|
|
|
|
),
|
|
|
|
|
body: model.allDisChargeSummaryList == null ||
|
|
|
|
|
model.allDisChargeSummaryList.length == 0
|
|
|
|
|
body: model.allVteHistoryList == null ||
|
|
|
|
|
model.allVteHistoryList.length == 0
|
|
|
|
|
? Center(
|
|
|
|
|
child: ErrorMessage(
|
|
|
|
|
error: TranslationBase.of(context).noDataAvailable,
|
|
|
|
|
@ -65,7 +66,7 @@ class _ProgressNoteState extends State<VteAssessmentScreen> {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
itemCount: model.allDisChargeSummaryList.length,
|
|
|
|
|
itemCount: model.allVteHistoryList.length,
|
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
|
return FractionallySizedBox(
|
|
|
|
|
widthFactor: 0.95,
|
|
|
|
|
@ -102,10 +103,11 @@ class _ProgressNoteState extends State<VteAssessmentScreen> {
|
|
|
|
|
.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.createdBy,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
model
|
|
|
|
|
.allVteHistoryList[
|
|
|
|
|
index].riskScore,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
@ -117,14 +119,14 @@ class _ProgressNoteState extends State<VteAssessmentScreen> {
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.allDisChargeSummaryList[
|
|
|
|
|
.allVteHistoryList[
|
|
|
|
|
index]
|
|
|
|
|
.createdOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
AppDateUtils
|
|
|
|
|
.getDateTimeFromServerFormat(model
|
|
|
|
|
.allDisChargeSummaryList[
|
|
|
|
|
.getDateTimeFromString(model
|
|
|
|
|
.allVteHistoryList[
|
|
|
|
|
index]
|
|
|
|
|
.createdOn),
|
|
|
|
|
isArabic:
|
|
|
|
|
@ -143,14 +145,14 @@ class _ProgressNoteState extends State<VteAssessmentScreen> {
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.allDisChargeSummaryList[
|
|
|
|
|
.allVteHistoryList[
|
|
|
|
|
index]
|
|
|
|
|
.createdOn !=
|
|
|
|
|
null
|
|
|
|
|
? AppDateUtils.getHour(
|
|
|
|
|
AppDateUtils
|
|
|
|
|
.getDateTimeFromServerFormat(model
|
|
|
|
|
.allDisChargeSummaryList[
|
|
|
|
|
.getDateTimeFromString(model
|
|
|
|
|
.allVteHistoryList[
|
|
|
|
|
index]
|
|
|
|
|
.createdOn))
|
|
|
|
|
: AppDateUtils.getHour(
|
|
|
|
|
@ -174,14 +176,62 @@ class _ProgressNoteState extends State<VteAssessmentScreen> {
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.icd +
|
|
|
|
|
.VTE_Type +
|
|
|
|
|
" : ",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.allDisChargeSummaryList[
|
|
|
|
|
.allVteHistoryList[
|
|
|
|
|
index]
|
|
|
|
|
.vTEType,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.pharmacology +
|
|
|
|
|
" : ",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.allVteHistoryList[
|
|
|
|
|
index]
|
|
|
|
|
.pharmacology,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.reasonsThrombo +
|
|
|
|
|
" : ",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.allVteHistoryList[
|
|
|
|
|
index]
|
|
|
|
|
.reasonsThrombo,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
@ -197,15 +247,15 @@ class _ProgressNoteState extends State<VteAssessmentScreen> {
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Ascii Desc : ",
|
|
|
|
|
"Ambulation Protocol : ",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.allDisChargeSummaryList[
|
|
|
|
|
.allVteHistoryList[
|
|
|
|
|
index]
|
|
|
|
|
.riskScore,
|
|
|
|
|
.ambulationProtocol,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
),
|
|
|
|
|
|