-
Notifications
You must be signed in to change notification settings - Fork 2
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
Moves the antifungal logic out of a signal into update_from_dict #1459
Open
fredkingham
wants to merge
25
commits into
v0.108
Choose a base branch
from
move-micro-input-antifungal-logic-into-update-from-dict
base: v0.108
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Moves the antifungal logic out of a signal into update_from_dict #1459
fredkingham
wants to merge
25
commits into
v0.108
from
move-micro-input-antifungal-logic-into-update-from-dict
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We do not want this logic to be called by merge_patient
At the moment there is a bug if a patient is created who has TB tests prior to 3 days ago, they are not added to the MDT list. We may as well run for all time.
as discussed, conflicts... |
Adds a human readable representation to BedStatus
This line was commented out when the method had not been pushed live. That method should now be live.
the css class 'text-strong' in elcid is the same as 'bold' in opal so lets just use that.
We don't need to hoist the patient id onto the scope so lets not.
Changes create_tb_observations to always run for all time
To location str
Removes the text-strong class which is the same as the bold class
Removes an old function call that is no longer used in opal that was returning false.
Changes the text to be more in keeping with the format of our other modals
Adds in a management command that takes in MRNs and reloads the associated patients. It errors if the patient does not exist.
Needs to be the previous Wed
…mand Adds the reload_patients management command
Patients name in modal
Fixup: TB model flags
…cations Makes the patients name appear in tb medications and other medications
davidmiller
reviewed
May 25, 2023
elcid/models.py
Outdated
@@ -427,6 +427,12 @@ def update_from_dict(self, data, *args, **kwargs): | |||
).first() | |||
if micro_input: | |||
micro_input.delete_self() | |||
|
|||
if data.get("reason_for_interaction") == self.ANTIFUNGAL_STEWARDSHIP_ROUND: | |||
omodels.Episode.objects.get(id=data['episode_id']).patient.chronicantifungal_set.create( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use self.episode?
Changes the ANTIFUNGAL_STEWARDSHIP_ROUND logic to use self.episode rather than the episode id in the dict.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We do not want this logic to be called by merge_patient
This will conflict with #1456 but probs best kept seperate and the conflict handled