Skip to content

Commit

Permalink
feat: update myocardial disease
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzavisic committed Apr 25, 2024
1 parent 3b0ce32 commit d12bd5d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
32 changes: 16 additions & 16 deletions packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-hypertension-risk report="1K4GyKDgsB9ATQflwio7"></ga-hypertension-risk></div>
<div style="height: 60px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-hypertension-risk report="1K4GyKDgsB9ATQflwio7" type="header"></ga-hypertension-risk></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-hypertension-risk report="1K4GyKDgsB9ATQflwio7" type="header"></ga-hypertension-risk></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-hypertension-risk style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-hypertension-risk></div>
Expand All @@ -47,7 +47,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-pre-hypertension report="1K4GyKDgsB9ATQflwio7"></ga-pre-hypertension></div>
<div style="height: 60px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-pre-hypertension type="header" report="1K4GyKDgsB9ATQflwio7"></ga-pre-hypertension></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-pre-hypertension type="header" report="1K4GyKDgsB9ATQflwio7"></ga-pre-hypertension></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-pre-hypertension style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-pre-hypertension></div>
Expand All @@ -62,7 +62,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-hypertension subtype="youth" report="1K4GyKDgsB9ATQflwio7"></ga-hypertension></div>
<div style="height: 60px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-hypertension type="header" report="1K4GyKDgsB9ATQflwio7"></ga-hypertension></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-hypertension type="header" report="1K4GyKDgsB9ATQflwio7"></ga-hypertension></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-hypertension style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-hypertension></div>
Expand All @@ -78,11 +78,11 @@
<div style="height: 20px;"></div>
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-myocardial subtype="lifestyle" report="1K4GyKDgsB9ATQflwio7"></ga-myocardial></div>
<div style="height: 20px;"></div>
female
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-myocardial subtype="peak" report="1K4GyKDgsB9ATQflwio7"></ga-myocardial></div>
<!-- female-->
<!-- <div style="width: 630px;height: 49px; border: 1px solid red;"><ga-myocardial subtype="peak" report="1K4GyKDgsB9ATQflwio7"></ga-myocardial></div>-->
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-myocardial type="header" report="1K4GyKDgsB9ATQflwio7"></ga-myocardial></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-myocardial type="header" report="1K4GyKDgsB9ATQflwio7"></ga-myocardial></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-myocardial style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-myocardial></div>
Expand All @@ -101,7 +101,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-atherosclerosis subtype="lifestyle" report="1K4GyKDgsB9ATQflwio7"></ga-atherosclerosis></div>
<div style="height: 40px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-atherosclerosis type="header" report="1K4GyKDgsB9ATQflwio7"></ga-atherosclerosis></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-atherosclerosis type="header" report="1K4GyKDgsB9ATQflwio7"></ga-atherosclerosis></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-atherosclerosis style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-atherosclerosis></div>
Expand All @@ -114,7 +114,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-coronary subtype="shield" report="1K4GyKDgsB9ATQflwio7"></ga-coronary></div>
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-coronary type="header" report="1K4GyKDgsB9ATQflwio7"></ga-coronary></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-coronary type="header" report="1K4GyKDgsB9ATQflwio7"></ga-coronary></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-coronary style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-coronary></div>
Expand All @@ -131,7 +131,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-arthritis subtype="shield" report="1K4GyKDgsB9ATQflwio7"></ga-arthritis></div>
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-arthritis type="header" report="1K4GyKDgsB9ATQflwio7"></ga-arthritis></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-arthritis type="header" report="1K4GyKDgsB9ATQflwio7"></ga-arthritis></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-arthritis style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-arthritis></div>
Expand All @@ -148,7 +148,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-colitis subtype="lifestyle" report="1K4GyKDgsB9ATQflwio7"></ga-colitis></div>
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-colitis type="header" report="1K4GyKDgsB9ATQflwio7"></ga-colitis></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-colitis type="header" report="1K4GyKDgsB9ATQflwio7"></ga-colitis></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-colitis style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-colitis></div>
Expand All @@ -167,7 +167,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-crohn subtype="lifestyle" report="1K4GyKDgsB9ATQflwio7"></ga-crohn></div>
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-crohn type="header" report="1K4GyKDgsB9ATQflwio7"></ga-crohn></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-crohn type="header" report="1K4GyKDgsB9ATQflwio7"></ga-crohn></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-crohn style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-crohn></div>
Expand All @@ -184,7 +184,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-lupus subtype="peak26" report="1K4GyKDgsB9ATQflwio7"></ga-lupus></div>
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-lupus type="header" report="1K4GyKDgsB9ATQflwio7"></ga-lupus></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-lupus type="header" report="1K4GyKDgsB9ATQflwio7"></ga-lupus></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-lupus style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-lupus></div>
Expand All @@ -203,7 +203,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-diabetes subtype="lifestyle" report="1K4GyKDgsB9ATQflwio7"></ga-diabetes></div>
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-diabetes type="header" report="1K4GyKDgsB9ATQflwio7"></ga-diabetes></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-diabetes type="header" report="1K4GyKDgsB9ATQflwio7"></ga-diabetes></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-diabetes style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-diabetes></div>
Expand All @@ -220,7 +220,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-dyslipidemia subtype="lifestyle" report="1K4GyKDgsB9ATQflwio7"></ga-dyslipidemia></div>
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-dyslipidemia type="header" report="1K4GyKDgsB9ATQflwio7"></ga-dyslipidemia></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-dyslipidemia type="header" report="1K4GyKDgsB9ATQflwio7"></ga-dyslipidemia></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-dyslipidemia style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-dyslipidemia></div>
Expand All @@ -234,7 +234,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-copd subtype="shield" report="1K4GyKDgsB9ATQflwio7"></ga-copd></div>
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-copd type="header" report="1K4GyKDgsB9ATQflwio7"></ga-copd></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-copd type="header" report="1K4GyKDgsB9ATQflwio7"></ga-copd></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-copd style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-copd></div>
Expand All @@ -252,7 +252,7 @@
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-menopause subtype="lifestyle" report="1K4GyKDgsB9ATQflwio7"></ga-menopause></div>
<div style="height: 20px;"></div>
header
<div style="width: 630px;height: 49px; border: 1px solid red;"><ga-menopause type="header" report="1K4GyKDgsB9ATQflwio7"></ga-menopause></div>
<div style="width: 240px;height: 49px; border: 1px solid red;"><ga-menopause type="header" report="1K4GyKDgsB9ATQflwio7"></ga-menopause></div>
</div>
<div style="width: 200px;"></div>
<div style="width: 520px;height: 928px;border: 1px solid red;"><ga-menopause style="width:50%;" report="1K4GyKDgsB9ATQflwio7" type="summary"></ga-menopause></div>
Expand Down
6 changes: 3 additions & 3 deletions packages/lib/src/myocardial/myocardial.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
function countOverlaps() {
if (gender === 'F') {
if (percF > 68) {
if (percF < 32) {
counter++;
}
return;
}
if (perc2 < 32) {
if (perc2 > 68) {
counter++;
}
if (perc3 < 32) {
Expand All @@ -77,11 +77,11 @@
onMount(async () => {
reportData = await service.getReport(report);
gender = reportData.sex;
if (details) {
percentile = Number(reportData[details.csvName]);
message = getHeaderMessage(percentile);
gender = reportData.sex;
}
percF = Number(reportData.P22percentile);
Expand Down

0 comments on commit d12bd5d

Please sign in to comment.