Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Fix business logic around pricing #18

Open
cschlessinger opened this issue Mar 5, 2017 · 6 comments
Open

Fix business logic around pricing #18

cschlessinger opened this issue Mar 5, 2017 · 6 comments

Comments

@cschlessinger
Copy link
Collaborator

Two parts:

  1. Easy: The weeks in the gestational helper file should round down (.floor rather than .ceil); if you're 9 weeks and 2 days, you should be considered at 9 weeks

  2. Harder: The pricing model is actually more complicated than a handful of predefined pricing schedule tiers. Each clinic measures cost differently, and can vary week to week. The case statements should be refactored to something else that handles whatever data the clinic generates (sorry, super vague, hopefully @colinxfleming can upload a chart and expand on this)

@colinxfleming
Copy link
Member

colinxfleming commented Mar 7, 2017 via email

@lwaldsc
Copy link
Collaborator

lwaldsc commented Mar 7, 2017 via email

@colinxfleming
Copy link
Member

colinxfleming commented Mar 7, 2017 via email

@lomky
Copy link
Member

lomky commented Mar 7, 2017

I'll bring a white board :D

@lwaldsc
Copy link
Collaborator

lwaldsc commented Mar 8, 2017

YES COMPLEX PROBLEMS AND A WHITE BOARD INTO IT

@colinxfleming
Copy link
Member

re: the harder ticket flagged by @cschlessinger, team code for dc sat down and decided that it was appropriate to do this dirty, so we're going to just roll out individual fields per week. A case manager pull request is in DARIAEngineering/dcaf_case_management#961 .

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

No branches or pull requests

4 participants