From 1a072814cff4a5d352cdc19faaa18d4b49c03f42 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 8 Oct 2024 14:36:14 -0700 Subject: [PATCH] Update recommendation descriptions (#154) # Update recommendation descriptions ## :recycle: Current situation & Problem See #149 ## :gear: Release Notes *Add a bullet point list summary of the feature and possible migration guides if this is a breaking change so this section can be added to the release notes.* *Include code snippets that provide examples of the feature implemented or links to the documentation if it appends or changes the public interface.* ## :books: Documentation *Please ensure that you properly document any additions in conformance to [Spezi Documentation Guide](https://github.com/StanfordSpezi/.github/blob/main/DOCUMENTATIONGUIDE.md).* *You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.* ## :white_check_mark: Testing *Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.* *This section describes important information about the tests and why some elements might not be testable.* ### Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md). --- .../recommendation/recommendationService.ts | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/functions/src/services/recommendation/recommendationService.ts b/functions/src/services/recommendation/recommendationService.ts index 75f548cc..50c21ab2 100644 --- a/functions/src/services/recommendation/recommendationService.ts +++ b/functions/src/services/recommendation/recommendationService.ts @@ -225,29 +225,39 @@ export class RecommendationService { if (recommendedMedication !== undefined) { const displayName = recommendedMedication.displayName return new LocalizedText( - `Discuss starting ${displayName} (more effective med)`, + `Discuss starting ${displayName} (more effective med) with your care team to help your heart.`, ) } else { - return new LocalizedText('Discuss increasing') + return new LocalizedText( + 'Discuss increasing the dose with your care team to get closer to target.', + ) } } case UserMedicationRecommendationType.moreLabObservationsRequired: { - return new LocalizedText('Discuss lab check before med change') + return new LocalizedText( + 'Discuss lab check with your care team before med change.', + ) } case UserMedicationRecommendationType.morePatientObservationsRequired: { - return new LocalizedText('Measure blood pressure/heart rate') + return new LocalizedText( + 'Need more blood pressure / heart rate checks to suggest a change.', + ) } case UserMedicationRecommendationType.noActionRequired: { - return new LocalizedText('May not be eligible') + return new LocalizedText('') } case UserMedicationRecommendationType.notStarted: { - return new LocalizedText('Discuss starting') + return new LocalizedText( + 'Discuss starting this med with your care team to help your heart.', + ) } case UserMedicationRecommendationType.personalTargetDoseReached: { - return new LocalizedText('Possible personal target reached') + return new LocalizedText( + 'Your current target dose was reached. Congrats!', + ) } case UserMedicationRecommendationType.targetDoseReached: { - return new LocalizedText('Target dose reached') + return new LocalizedText(`You're on the target dose. Congrats!`) } } }