Skip to content

Instantly share code, notes, and snippets.

@dannymcc
Created November 21, 2012 20:43
Show Gist options
  • Select an option

  • Save dannymcc/4127535 to your computer and use it in GitHub Desktop.

Select an option

Save dannymcc/4127535 to your computer and use it in GitHub Desktop.
Possible Models:
Healthplan
Claim
Conditions
Workflow:
1) Client creates a new healthplan where they are presented with a list of conditions. The user then ticks which conditions are excluded. They then save the healthplan record.
2) Client creates a new claim, which belongs_to a healthplan. The claim shows a list of possible conditions the client can claim for (excluding any excluded conditions set by the healthplan). Alongside each included condition is an input box where they enter the £ value that is being claimed under this Claim.
3) The client can see a list of all conditions in their healtplan page. The conditions have an X if excluded, and if they're not excluded then they show the £ sum total of all claims made for this condition.
4) If a client has claims that equal more than £2,000 per condition then that condition then becomes excluded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment