Blood Docs
Fall 2024
API

# o1.blood1

package o1.blood1

## Members list

### Type members

#### Classlikes

class BloodType(val `abo`: String, val `rhesus`: Boolean)

An instance of this class corresponds to a single blood type in an ABO+Rh blood group system. A person’s blood type affects who they can donate blood to; the blood types of the donor and the recipient must be compatible.

An instance of this class corresponds to a single blood type in an ABO+Rh blood group system. A person’s blood type affects who they can donate blood to; the blood types of the donor and the recipient must be compatible.

As represented here, a blood type consists of two components, ABO and rhesus. For any person, the ABO component has one of the following values: "A", "B", "AB", or "O" (the letter O, not zero). The rhesus component is either positive or negative. These components describe the presence or absence of particular antigens in human blood; for further reading, see Wikipedia.

This class represents the ABO component as a string and the rhesus component as a boolean so that `true` corresponds to positive and `false` to negative.

## Parameters

abo

  the ABO component of the blood type; this must be one of the strings "A", "B", "AB", or "O", or the class will malfunction

rhesus

  the rhesus component of the blood type; `true` stands positive, `false` for negative

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any