typelevel / squants

The Scala API for Quantities, Units of Measure and Dimensional Analysis
https://www.squants.com
Apache License 2.0
923 stars 122 forks source link

More Units for medical needings #596

Open ASchmidt84 opened 1 year ago

ASchmidt84 commented 1 year ago

Hi,

for a few medical neddings I need more units. I have a labor report and need to"understand" that values and to be able to calculate the differnences to an special value and also to show the normal range. Also are their a few mor units which not be their. Maybe do you have a workaround or a way to enhance them.

  1. I need femtoliters and picograms

    object Picograms extends MassUnit with SiUnit {
    val conversionFactor = MetricSystem.Pico
    val symbol = "pg"
    }
    object Femtoliters extends VolumeUnit {
    val symbol = "fl"
    val conversionFactor = Litres.conversionFactor * MetricSystem.Femto
    }
  2. Also their exists a unit called Unit. The Unit comes a long with the possible to set it to U/l (Units/liters). Their is no conversion to any other Unit. But it could be calculated to kiloUnits/liter or so on. What would be their the best way.

  3. Their a also a "range" of counted items on µl (like 4.73 Mio/µl) => this means 4.730.000 / µl

    4730000 / milliliter //Leads to Any and not a specific Type

    Do anyone have an idea?

Thanks a lot