From 8a6b37cf84dae09b4db716206d7bc374c2835d19 Mon Sep 17 00:00:00 2001 From: ivanzavisic Date: Wed, 24 Apr 2024 14:06:05 +0200 Subject: [PATCH] feat: updated pre hypertension --- .../hypertension-risk.wc.svelte | 18 +- .../pre-hypertension.wc.svelte | 496 +++--------------- .../lib/src/shared/components/Arrow.svelte | 10 +- 3 files changed, 86 insertions(+), 438 deletions(-) diff --git a/packages/lib/src/hypertension-risk/hypertension-risk.wc.svelte b/packages/lib/src/hypertension-risk/hypertension-risk.wc.svelte index 14dd010..ec16f49 100644 --- a/packages/lib/src/hypertension-risk/hypertension-risk.wc.svelte +++ b/packages/lib/src/hypertension-risk/hypertension-risk.wc.svelte @@ -16,25 +16,25 @@ let showSummary = false; let counter = ''; let message = ''; - let perc1 = 0; // Bpercentile + let percentile = 0; // Bpercentile onMount(async () => { reportData = await service.getReport(report); - perc1 = Number(reportData.Bpercentile); + percentile = Number(reportData.Bpercentile); - if (perc1 < 32) { + if (percentile < 32) { counter = '0/1'; message = 'Lower than average'; showSummary = true; return; } - if (perc1 >= 32 && perc1 <= 68) { + if (percentile >= 32 && percentile <= 68) { counter = '0/1'; message = 'Around average'; showSummary = true; return; } - if (perc1 > 68) { + if (percentile > 68) { counter = '1/1'; message = 'Higher than average'; counter = '1/1'; @@ -63,7 +63,7 @@ fill="#12A195" d="m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"/> {/if} -  {overlap ? 'Some overlap' : 'No significant overlap'} +   {overlap ? 'Some overlap' : 'No significant overlap'} {:else if type === 'summary' && showSummary}
@@ -76,7 +76,7 @@ {/if}
- {perc1 > 68 ? 'Some overlap' : 'No significant overlap'} of glycan indexes between
your patient and this condition. + {percentile > 68 ? 'Some overlap' : 'No significant overlap'} of glycan indexes between
your patient and this condition.
@@ -99,14 +99,14 @@ {:else}
- +
Glycan Lifestyle (B)
{message}
- +
{/if} diff --git a/packages/lib/src/pre-hypertension/pre-hypertension.wc.svelte b/packages/lib/src/pre-hypertension/pre-hypertension.wc.svelte index 8e29a8e..c54fb4c 100644 --- a/packages/lib/src/pre-hypertension/pre-hypertension.wc.svelte +++ b/packages/lib/src/pre-hypertension/pre-hypertension.wc.svelte @@ -1,114 +1,44 @@ - + {#if type === 'header'}
+
+ {counter} +
{#if overlap} -
- {counter} -
- -   Some overlap - {/if} - {#if someOverlap} -
- {counter} -
- -   Minor overlap - {/if} - {#if noOverlap} -
- {counter} -
- + {:else} + -   No significant overlap + d="m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"/> {/if} +   {overlap ? 'Some overlap' : 'No significant overlap'}
-{:else if type === 'summary'} - {#if showSummary} - {#if noOverlap} -
-
-
- -
-
- There is no significant overlap of glycan indexes between
your patient and pre-hypertension patients. -
-
-
-
Symptoms to check for:
-
- Elevated blood pressure: Blood pressure readings consistently above -
normal but below hypertension thresholds are indicative of pre-
- hypertension -
-
- No notable symptoms: Often, pre-hypertension has no apparent symptoms,
- making regular blood pressure checks vital. -
-
- Mild headaches or dizziness: Occasionally, individuals might experience
- mild headaches or dizziness, which can be early signs.
-
-
- Possible follow-up tests: -
-
- Routine blood pressure checks: Essential for monitoring and managing -
blood pressure levels within the pre-hypertension range. -
-
- Lifestyle assessment: Evaluating diet, physical activity, and other lifestyle -
factors to identify areas for improvement. -
-
- Echocardiogram: To assess heart function and detect any early changes -
that may be associated with pre-hypertension. -
-
+{:else if type === 'summary' && showSummary} +
+
+
+ {#if overlap} + + {:else} + + {/if}
- {:else} -
-
-
- {#if overlap} - - {/if} - {#if someOverlap} - - {/if} -
-
- There is {getWording()} of glycan indexes between
your patient and pre-hypertension patients. -
-
-
-
Symptoms to check for:
-
- Elevated blood pressure: Blood pressure readings consistently above -
normal but below hypertension thresholds are indicative of pre-
- hypertension -
-
- No notable symptoms: Often, pre-hypertension has no apparent symptoms,
- making regular blood pressure checks vital. -
-
- Mild headaches or dizziness: Occasionally, individuals might experience
- mild headaches or dizziness, which can be early signs.
-
-
- Possible follow-up tests: -
-
- Routine blood pressure checks: Essential for monitoring and managing -
blood pressure levels within the pre-hypertension range. -
-
- Lifestyle assessment: Evaluating diet, physical activity, and other lifestyle -
factors to identify areas for improvement. -
-
- Echocardiogram: To assess heart function and detect any early changes -
that may be associated with pre-hypertension. -
-
+
+ {percentile < 32 ? 'Some overlap' : 'No significant overlap'} of glycan indexes between
your patient and this condition.
- {/if} - {/if} +
+
+
Signs and symptoms
+
    +
  • Usually asymptomatic
  • +
+ +
Possible follow-up tests
+
    +
  • Serial blood pressure (BP) measurements ± 24-hour BP monitoring
  • +
  • BMI and/or body composition check
  • +
  • Basic bloods (lipid profile, renal and liver function)
  • +
+
Related research papers
+ The Association Between Glycosylation of Immunoglobulin G and Hypertension: A Multiple Ethnic Cross-Sectional Study +

In an extensive study with 4757 participants, including 913 from the Chinese Han Beijing population, 985 from Croatian Korčula, 896 from Croatian Vis, and 1963 from Scottish Orkney, researchers investigated changes in IgG glycans associated with prehypertension and hypertension. The demographic composition of the study was approximately 40% female and 60% male participants. A notable observation was the decrease in G2 in the cohort with prehypertension.

+
+
{:else} -
-
-
Glycan
Youth
-
-
{min1}
-
{max1}
-
-
-
-
-
-
-
- {res1} ({perc1}{suffix(perc1)} percentile) -
-
-
-
-
+
+
+ = 32 ? '#12A195' : '#F2590D'} d="m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"/> +
+
Glycan Youth (G2)
+
{message}
-
-
-
Pre-hypertension
-
-
Your patient
+
+
{/if} + diff --git a/packages/lib/src/shared/components/Arrow.svelte b/packages/lib/src/shared/components/Arrow.svelte index 666149b..b4b7b1e 100644 --- a/packages/lib/src/shared/components/Arrow.svelte +++ b/packages/lib/src/shared/components/Arrow.svelte @@ -14,22 +14,22 @@
{#if type === 'left'} -
-
+
+
{/if}
-
+
{#if type === 'right'} -
-
+
+
{/if}