Skip to content

feat: blood categories - #797

Open
kharmaodo wants to merge 1 commit into
DiUS:masterfrom
kharmaodo:master
Open

feat: blood categories#797
kharmaodo wants to merge 1 commit into
DiUS:masterfrom
kharmaodo:master

Conversation

@kharmaodo

@kharmaodo kharmaodo commented Aug 13, 2026

Copy link
Copy Markdown

Add Blood Category (Blood Type / Blood Group) Generation

Description

This pull request adds support for generating fake blood-related data within the Java Faker library. It includes:

Blood Group Generation:

  • Implemented a name() method that generates a random, complete blood group among the 8 valid combinations (A+, A-, B+, B-, AB+, AB-, O+, O-), following the ABO/Rh blood group system.

Motivation

This addition allows Java Faker to generate realistic data related to blood groups, which is useful for testing medical applications, patient records, blood donation forms, or any system handling this type of information.

Testing

Added unit tests to verify:

  • The correct format of generated blood groups (^(A|B|AB|O)[+-]$).
  • That name() returns one of the 4 expected ABO values.

Notes

Please let me know if any adjustments are needed, or if further tests and documentation updates are required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant