Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed iwp to urine sample date , removed -negtive calc feature for … #187

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lib/hcai_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1135,8 +1135,8 @@ class _HcaiFormPageState extends State<HcaiFormPage> {
if (setDate['calculatedKey'] == 'dateofCautiEvent') {
this._values['dateOfCautiEvent'] =
DateFormat('MMMM d, y').format(dateToConsider);
this._values['infectionWindowPeriod'] =
Helper.rangeInText(this._values['dateofCautiEvent']);
this._values['infectionWindowPeriod'] = Helper.rangeInText(
this._values['dateofUrineSampleCollectionforCulture']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it's base on cauti event date and cauti event date is the one which is snallest among those

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it was but yesterday mubassir and bushra asked me to change it to urine sample date despite what ever cauti doe is

this._values['repeatInfectionTimeframe'] =
Helper.longRange(this._values);
this._values['secondaryBloodAttributionPeriod'] =
Expand All @@ -1151,11 +1151,11 @@ class _HcaiFormPageState extends State<HcaiFormPage> {
this._values[eachCalculation!['to']] ?? '',
this._values[eachCalculation!['from']] ?? '',
'days'),
if (inBetween > -1)
{
this._values[eachCalculation['calculatedKey']] =
inBetween.toString()
}
// if (inBetween > -1)
// {
this._values[eachCalculation['calculatedKey']] =
inBetween.toString()
// }
});
}

Expand Down