Deliver portable native Architecture B deployment and final verification
This commit is contained in:
1 parent
f451b55de1
commit
36740d2492
92 files changed
+10939
-926
No files matched your search
@@ -1,14 +1,15 @@
|
||||
using System.Globalization;
|
||||
using HealthApp.Contracts;
|
||||
namespace HealthApp.Analytics;
|
||||
|
||||
internal sealed class ClinicalPolicy(ReferenceCatalog catalog)
|
||||
{
|
||||
internal const string GeneralLimits = "General reference thresholds are not individual treatment targets. " +
|
||||
"This is a descriptive assessment, not a diagnosis or medication recommendation. " +
|
||||
"Symptoms, treatment, training, risk factors and measurement technique are not established by these observations.";
|
||||
|
||||
internal (ClinicalReference? Reference,string Comparison,string Interpretation,string Hint) Apply(string metric,string unit,IReadOnlyList<ObservationDto> observations,ComparabilityAssessment comparability,(DateTime Time,decimal Value)[] points,string direction,int reversals,decimal mean,Func<ObservationDto,int> value)
|
||||
{
|
||||
internal (ClinicalReference? Reference, string Comparison, string Interpretation, string Hint) Apply(string metric, string unit, IReadOnlyList<ObservationDto> observations, ComparabilityAssessment comparability, (DateTime Time, decimal Value)[] points, string direction, int reversals, decimal mean, Func<ObservationDto, int> value)
|
||||
{
|
||||
var reference = SelectReference(metric, observations, comparability);
|
||||
var comparison = "Unavailable: known, non-conflicting resting conditions" +
|
||||
(metric == "Pulse" ? "" : " and a single Home or Clinic setting") + " are required; recorded inadequate preparation also limits applicability.";
|
||||
@@ -64,8 +65,8 @@ internal sealed class ClinicalPolicy(ReferenceCatalog catalog)
|
||||
"missing or differing conditions limit interpretation of the combined trajectory. ") +
|
||||
"An outside-reference value is not dismissed because preparation information is incomplete.";
|
||||
}
|
||||
return (reference,comparison,interpretation,hint);
|
||||
}
|
||||
return (reference, comparison, interpretation, hint);
|
||||
}
|
||||
private ClinicalReference? SelectReference(string metric, IReadOnlyList<ObservationDto> observations,
|
||||
ComparabilityAssessment comparability)
|
||||
{
|
||||
@@ -79,7 +80,7 @@ internal sealed class ClinicalPolicy(ReferenceCatalog catalog)
|
||||
if (observations.Any(o => !string.IsNullOrWhiteSpace(o.MeasurementContext?.BodyPosition) &&
|
||||
!new[] { "seated", "sitting", "siddende" }.Contains(o.MeasurementContext!.BodyPosition!.Trim(), StringComparer.OrdinalIgnoreCase)))
|
||||
return null;
|
||||
return catalog.Pressure(metric,settings[0]!);
|
||||
return catalog.Pressure(metric, settings[0]!);
|
||||
}
|
||||
|
||||
private static bool IsHigh(decimal value, ClinicalReference reference) =>
|
||||
|
||||
Reference in new issue
Block a user