Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 229231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:44:54+00:00 2026-05-11T19:44:54+00:00

I’m writing a medical billing application and am using MVC (Spring) for the first

  • 0

I’m writing a medical billing application and am using MVC (Spring) for the first time so I’m struggling to get an approach that feels right. Thoughts/comments would be appreciated.

My “domain” classes

  • Doctor
  • Patient
  • Claim
  • BusinessLogic

My controller classes

  • ListPatients
  • EditPatients
  • FindPatients
  • SubmitClaim

My repository classes

  • IPatientDao
  • IDoctorDao
  • IClaimDao

My application is very “rule heavy”. For example, doctors can’t delete the patients of other doctors. Patients can’t be deleted if they have been billed for something.

I think these rules should not be captured in Controllers, which feels dirty, especially if a rule needed to be utilised in several controllers. Similarly, I feel my DAO objects are for reading & writing only, not validation. As a consequence, I have made a BusinessLogic object which has the brains. So I can call something like:

businessLogic.deletePatient(patient,doctor); //returns true/false and sets a message

This does a check to see if the logged-in doctor has the right to delete a specific patient.

To me this seems the best way of keeping everything tidy.

Good or bad? What would be better?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:44:55+00:00Added an answer on May 11, 2026 at 7:44 pm

    I feel for a MVC architecture… here should be the flow of LAyers….

    a) Action class..like we have in Struts…all the parameters from webpage should be handled in this class… all validations should be handled by validators of forms…

    b) from this action class call your business class which does all the busniess logic for a given action …. say billing patients … this will get the doctors associated with it and say give some comission to doctors for that …

    c) DTO layers…getter setter for all classes in ur application … can be used by all the layers … patients, Bills, doctors, etc can be few example…

    d) DAO layer..the oe whihc interacts with the databse… it can be interacting using hibernate, JDBC etc … has all the queries written in them … do all the caching stuff etc…

    So the layers are

    Action calls the Business layer call the DAO layer ..DTO can used by all layers and can be also send as a request object back to the JSP page for displyaing data…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.