GithubHelp home page GithubHelp logo

Comments (17)

LennonR avatar LennonR commented on May 4, 2024

@tangollama I'll give this a go. Are there any additional requirements besides adding "set fee" to the Pricing Profile forms and display pages in the Billing/Price Profiles section?

from hospitalrun-frontend.

LennonR avatar LennonR commented on May 4, 2024

@tangollama Also, when I run the tests on a newly cloned project, I get 60 test fails out of 684. Is that expected or is something wrong with my local build?

from hospitalrun-frontend.

jkleinsc avatar jkleinsc commented on May 4, 2024

@LennonR when did you fork? Yesterday I committed a fix for tests that were failing but they should be all passing now. Maybe try to rebase?

from hospitalrun-frontend.

LennonR avatar LennonR commented on May 4, 2024

@jkleinsc I forked today a few hours ago

from hospitalrun-frontend.

jkleinsc avatar jkleinsc commented on May 4, 2024

@LennonR what tests are failing?

from hospitalrun-frontend.

LennonR avatar LennonR commented on May 4, 2024

@jkleinsc 1, 4-7, 10-13, 16-33, 36-40, 43-45, 48, 51-54, 57-65, 68-76, 79, 622

from hospitalrun-frontend.

jkleinsc avatar jkleinsc commented on May 4, 2024

Is that happening running npm test/ember test ? Do you have phantomjs installed and if so what version? The command line tests rely on phantomjs v2. You can also run the tests in the browser by running ember serve and then going to localhost:4200/tests

from hospitalrun-frontend.

LennonR avatar LennonR commented on May 4, 2024

I had phantomjs < version 2 so that was probably the problem. I ran them in the browser and they all passed. Thanks for the help.

OK, so back to my original question:

Are there any additional requirements besides adding "set fee" to the Pricing Profile forms and display index page in the Price Profiles section?

from hospitalrun-frontend.

jkleinsc avatar jkleinsc commented on May 4, 2024

The intention for this feature is that a patient would only pay a set fee regardless of how much they were charged on an invoice. So the two places this needs to be addressed in are the crud for pricing profiles and then in the invoice section, when a patient with a pricing profile of this type is selected for an invoice, the total that the patient owes is pulled from the profile and the invoice reflects the amount as what the patient owes by applying a hospital discount for the difference. Does that make sense?

from hospitalrun-frontend.

LennonR avatar LennonR commented on May 4, 2024

I think so. Let me try an example.

We have an invoice for $2000. The pricing profile is chosen that has a set fee of $500. The invoice then needs to have a hospital discount of $1500 applied so that the final total is $500.

Is that correct?

from hospitalrun-frontend.

tangollama avatar tangollama commented on May 4, 2024

Correct.

from hospitalrun-frontend.

tangollama avatar tangollama commented on May 4, 2024

@LennonR, if you're going to work on this, great. If so, I'll change the status from Help Wanted to In Progress.

from hospitalrun-frontend.

LennonR avatar LennonR commented on May 4, 2024

@tangollama Sorry about this. You can change the status to help wanted.

from hospitalrun-frontend.

tangollama avatar tangollama commented on May 4, 2024

no worries @LennonR. Thanks for replying back to confirm.

from hospitalrun-frontend.

tangollama avatar tangollama commented on May 4, 2024

Discussing this with @worrlo and therefore updating the requirements. Ideally the edit interface would now include an option to describe what kind of payment profile this is: a discount or a capped amount. I'm guessing this involves two new attributes on a payment profile:

  1. a payment profile type
  2. a capped amount (this would be only be displayed in a scenario where capped amount was selected as the "type")

This information would then be applied when the involve is being built. If capped, do capped logic (i.e. the patient is only responsible up to a certain amount), else do the existing discount logic.

screen shot 2016-05-30 at 3 46 23 pm

from hospitalrun-frontend.

tangollama avatar tangollama commented on May 4, 2024

FYI, I've made some progress on this, but it's not done yet. I'll keep working on it and try to get in in for 1.0.

from hospitalrun-frontend.

tangollama avatar tangollama commented on May 4, 2024

Resolved in master

from hospitalrun-frontend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.