- Diagnosis
- X-Ray
- Blood Test
- ECG
- Vaccine
- Diagnosis £60
- X-Ray £150
- Blood Test £78
- ECG £200.40
- Vaccine £27.50 (service) + £15 (for each vaccine)
- Senior citizens (between 65 and 70) receive a 60% discount
- Senior citizens (over 70) receive a 90% discount
- Children under 5 receive 40% discount
- Patients with "MediHealth Health insurance" get additional 15% discount on Blood test when they are diagnosed by a MediHealth practitioner
The basis of a new billing engine using the rules detailed above. MediHealth is expecting the solution to be written in a TDD style using Java or Scala.
Enter Patient Details
$> Patient 66 True
Enter Services
$> service diagnosis
$> service bloodtest
$> service vaccine
$> service vaccine
$> service xray
Get Bill
$> getBill