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:
Daniel Kraus
2015-08-25 20:25:29 +02:00
parent 8eefb8a6f2
commit cf01130491
6 changed files with 89 additions and 23 deletions

View File

@ -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