Comments (17)
@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.
@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.
@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.
@jkleinsc I forked today a few hours ago
from hospitalrun-frontend.
@LennonR what tests are failing?
from hospitalrun-frontend.
@jkleinsc 1, 4-7, 10-13, 16-33, 36-40, 43-45, 48, 51-54, 57-65, 68-76, 79, 622
from hospitalrun-frontend.
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.
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.
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.
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.
Correct.
from hospitalrun-frontend.
@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.
@tangollama Sorry about this. You can change the status to help wanted.
from hospitalrun-frontend.
no worries @LennonR. Thanks for replying back to confirm.
from hospitalrun-frontend.
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:
- a payment profile type
- 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.
from hospitalrun-frontend.
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.
Resolved in master
from hospitalrun-frontend.
Related Issues (20)
- Imaging Request - requestedBy should store the currently logged in user id HOT 7
- Duplicate Patient Modal cannot be triggered HOT 10
- ReportIncident save button always rendered HOT 8
- shortid is deprecated HOT 6
- Lab - In the Request Lab routine make the visit field required HOT 5
- New Imaging Request - required visit not enforced HOT 7
- New Lab Request - required visit not enforced HOT 2
- Focus of menu item "Visits" disappears when I view the details HOT 2
- ViewAppointments Tests Have a Console Error HOT 4
- Test patients/care-goals/CareGoalTab.test.tsx on MacOS runner fails HOT 4
- Lack of Visible Focus - WCAG Success Criterion 2.4.7
- NewLabRequest.test.tsx is flaky HOT 4
- Creating new patient - validation of the phone number is wrong HOT 1
- Creating new patient - validation messages not appropriate HOT 5
- Cancel Button HOT 5
- Update Portuguese translation HOT 8
- Type 'unknown' is not assignable to type '(prevState: ImagingRequestError | undefined) => ImagingRequestError | undefined'.
- Live demo is not working.
- Imrpove UI in sidebar HOT 11
- Error occur in while install and run Hospital Run Frontend HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hospitalrun-frontend.