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

Implement Card Statuses #82

Closed
5 tasks done
AnnieMungai opened this issue Nov 3, 2020 · 5 comments
Closed
5 tasks done

Implement Card Statuses #82

AnnieMungai opened this issue Nov 3, 2020 · 5 comments
Labels
Card Support Issues around card support feature

Comments

@AnnieMungai
Copy link
Contributor

AnnieMungai commented Nov 3, 2020

For card support, there are 2 card status: needs_card and does_not_need_card status.

When & How to set the needs_card status

  1. During a new registration
  2. After a card is reported lost or damaged on the child profile Implement card support - on the mobile client side #13
  • The Report lost or damaged card menu item is disabled the moment the card status changes to needs_card.
  • When the status is needs_card, change the Report lost or damaged card menu text: Card ordered: the date the card status changed. e.g Card ordered: 14-05-2020.

When & How to set the does_not_need_card status

  1. After the card is scanned during the search through the scan QR code functionality.
  • When the status is does_not_need_card, the menu text goes back to Report lost or damaged card
@AnnieMungai AnnieMungai added the Card Support Issues around card support feature label Nov 3, 2020
@AnnieMungai AnnieMungai changed the title Implement Order New Card Status Implement Card Statuses Nov 3, 2020
@AnnieMungai AnnieMungai added OpenSRP Web Issue relates to OpenSRP Web and removed OpenSRP Web Issue relates to OpenSRP Web labels Nov 7, 2020
@kelvin-muchiri
Copy link

kelvin-muchiri commented Nov 9, 2020

@dubdabasoduba Is the filter for the date range available?

@kelvin-muchiri
Copy link

kelvin-muchiri commented Nov 9, 2020

I have a couple of questions:

  1. What about the date range query params for the start date and end date?
  2. What will the URL be like if I would want to make a request for multiple card statuses e.g I would to both those who need card and those who do not need card?
  3. What is the source of the location id being used?

@ellykits
Copy link
Collaborator

@dubdabasoduba @kelvin-muchiri The search endpoint was updated to this https://unicef-tunisia-stage.smartregister.org/opensrp/rest/client/search?attribute=card_status:needs_card&locationIds=e2b4a441-21b5-4d03-816b-09d45b17cad7

NOTE: you can pass a list of comma separated location ids also update the card_status accordingly

@AnnieMungai
Copy link
Contributor Author

debug-v0.1.5
Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Card Support Issues around card support feature
Projects
None yet
Development

No branches or pull requests

4 participants