prestoncabe / dmn-benefit-toolbox

Scaffolding for modeling public benefits' eligibility logic with Decision Model and Notation (DMN)
2 stars 1 forks source link

Add location eligibility checks #16

Closed prestoncabe closed 3 months ago

prestoncabe commented 3 months ago

(maybe something like mayLiveInPhiladelphiaPA and definitelyLivesInPhiladelphiaPA would be better?)

Open question: How will we actually do the lookup? Is there an existing DMN model out there for this?

prestoncabe commented 3 months ago

You can download zip code crosswalk spreadsheets from https://www.huduser.gov/apps/public/uspscrosswalk/home (after creating a free account).

This website also seems nifty, but I'm not sure if our use would be allowed under the free license?

prestoncabe commented 3 months ago

making headway... have a basic architecture down pretty good... need more tests and to flesh out the locations table. Also will probably need a more sophisticated way to provide the inputs? (a residential address structure perhaps?)

image

prestoncabe commented 3 months ago

I added a full list of all the locations (zip codes) to the DMN and it went about as well as one might expect :laughing: ...

It made the editor unresponsive, but my tests against the web API do work, albeit very slowly.

Looks like we might have pull out the power tools for this one to make it performant; get the list from a Java call to a sqlite db?

branch for in-progress work: https://github.com/prestoncabe/dmn-benefit-toolbox/tree/location-work

prestoncabe commented 3 months ago

I was able to get the Java/sqlite version of the county/state lookups working! I just have to clean up the mess I made and push things up over the next few days.

prestoncabe commented 3 months ago

I pushed the location.dmn + Java + sqlite solution to main.

There are still some related things to take care of (including connecting these new services to our existing benefits). We can tackle these in other issues.