Open vedxyz opened 2 years ago
If anyone wants to implement this, it'll be pretty much identical to the DomainUser
situation as far as the models go: Abstract main class, inherited by the various insurance types.
There should be a new service method within ProfileService
that deals with updating the insurance details of a patient user. This service should be exposed through the ProfileController
. Later on, the frontend will need an update to allow a staff member to change insurance details.
The insurance integration for health center management software is not as fancy as it sounds, see the two sources below:
I am guessing the university health center follows a similar flow. In which case, this integration can be implemented into BilHealth through these two functional requirements:
Patient
user should have insurance details saved to their profile.The former is already a requirement of BilHealth, albeit being unimplemented so far: #28. The latter requires that we create an
InsuranceDetails
table/model, which will be embedded into the existingPatient
model. Similar to ourDomainUser
class, we might want to split theInsuranceDetails
class into multiple classes likeStudentInsuranceDetails
,ExternalInsuranceDetails
, etc.Pursuing an insurance integration further than this would venture into the domain of accounting software, which is not essential for this project in my opinion. We should explicitly assume in our analysis report that the health center will use dedicated accounting software.