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

Medications Task 1: Extract relevant Medication FHIR data from HealthKit #21

Open
1 task done
kcallon opened this issue Jan 26, 2024 · 0 comments
Open
1 task done
Assignees
Labels
enhancement New feature or request Medications Medications task

Comments

@kcallon
Copy link
Contributor

kcallon commented Jan 26, 2024

Use Case

This will extract the relevant medication from patient health data they have given Intake access to.

Problem

This feature will obtain patient medication information automatically, preventing them from having to fill out this information from scratch.

Solution

The feature should be able to query the HealthKit data collected and retrieve relevant medications, dose amount, and intake method and return this in the form of a nested list.

Alternatives considered

Ideally patient medication information will be able to be extracted. However, in the case that no medication data is retrieved or the patient did not provide access to their health data, an alternative method of a blank dynamic table for the patient to fill out would be considered.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
@kcallon kcallon added the enhancement New feature or request label Jan 26, 2024
@philippzagar philippzagar added Medical History Medical History Task Medications Medications task and removed Medical History Medical History Task labels Jan 29, 2024
apgupta3303 pushed a commit that referenced this issue Feb 29, 2024
# Working Medications View with Sample Patient Data and Updating Global
Environment Variable

## ♻️ Current situation & Problem
#21 
Previously, the medications view would only pull the display name from
the medications fhir resource. This was problematic in several ways--the
UI was not developed, patient medications could be added that weren't
accurate, and there was no additional information beyond the display
name.


## ⚙️ Release Notes 

- Updated the patient medication data to be filtered by only including
outpatient and activate medications (like from llmonfhir)
- Modified existing code from SpeziMedications to create structs
specific to Intake such as IntakeMedications and IntakeDosage
- Updated medicationOptions to represent some of the top mock patient
medications
- Updated a MedicationSettingsViewModel to initialize with existing mock
patient medications including dosage, intake method, and dose frequency
- Added compatibility to global variable



## 📚 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.*


## ✅ 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/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x ] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Medications Medications task
Projects
None yet
Development

No branches or pull requests

2 participants