Implement preferred precisions.
- NEU: Für bestimmte Laborwerte ist die bevorzugte Nachkommastellenzahl hinterlegt (z.B. Kreatinin mit nur einer Nachkommastelle).
This commit is contained in:
@ -89,6 +89,18 @@ namespace zaaReloaded2.Thesaurus
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the desired number of decimals for a given parameter.
|
||||
/// </summary>
|
||||
/// <param name="laurisName">Laboratory item to look up;
|
||||
/// this must be an original Lauris string.</param>
|
||||
/// <returns>Number of decimals for the parameter, or -1 if
|
||||
/// undefined.</returns>
|
||||
public int GetPrecision(string laurisName)
|
||||
{
|
||||
return LookUpValue(laurisName, 3, -1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns whether or not reference limits shall always
|
||||
/// be displayed for a given item, regardless whether it
|
||||
@ -99,7 +111,7 @@ namespace zaaReloaded2.Thesaurus
|
||||
/// <returns></returns>
|
||||
public bool GetForceReferenceDisplay(string laurisName)
|
||||
{
|
||||
return LookUpValue(laurisName, 3, false);
|
||||
return LookUpValue(laurisName, 4, false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -112,7 +124,7 @@ namespace zaaReloaded2.Thesaurus
|
||||
/// false if not. Default is false.</returns>
|
||||
public bool GetIsBlacklisted(string laurisName)
|
||||
{
|
||||
return LookUpValue(laurisName, 4, false);
|
||||
return LookUpValue(laurisName, 5, false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
Reference in New Issue
Block a user