Skip to content

Fix 1608; WIP #1617

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Fix 1608; WIP #1617

wants to merge 11 commits into from

Conversation

sangeetabhatia03
Copy link
Collaborator

No description provided.

@sangeetabhatia03
Copy link
Collaborator Author

@marghe-molaro if my understanding is correct, the clinics object would be a nested dictionary - clinics = {Hiv: {Facility_id:daily_capability,...}, ...}
Can you check if this sounds correct?

@sangeetabhatia03
Copy link
Collaborator Author

In the future, we might want to separate the rescaling of fungible/non-fungible capabilities. For now, only fungible time is rescaled. TODO: Discuss with group.

@sangeetabhatia03
Copy link
Collaborator Author

hi @marghe-molaro as discussed, here is my plan for next steps:

  1. Edit HSIEventQueueItem to include a property called clinic_access (boolean).
  2. Define a getter function in HealthSystem:
def get_clinic_eligibility(str)
 """ Return true if str is one of the keys of the clinics dictionary"""
  1. Edit _add_hsi_event_queue_item_to_hsi_event_queue as follows: before creating HSIEventQueueItem, check for clinic eligibility using hsi_event.module. That is
clinic_access = get_clinic_eligibility(hsi_event.module)

and set the value in HSIEvent appropriately.

@marghe-molaro
Copy link
Collaborator

Looks good @sangeetabhatia03 - in the last step ("and set the value in HSIEvent appropriately.") I think you mean HSIEventQueueItem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants