@medicus.ai/medicus-report-pdf-generator 1.0.313 → 1.0.314

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3173,7 +3173,7 @@ div#screenshot {
3173
3173
  }
3174
3174
 
3175
3175
  .row.score-section {
3176
- padding: 13px 8px;
3176
+ padding: 13px 18px;
3177
3177
  border: 1px solid;
3178
3178
  color: #0092d2;
3179
3179
  border-radius: 16px;
@@ -3255,9 +3255,10 @@ div#screenshot {
3255
3255
  float: right;
3256
3256
  clear: both;
3257
3257
  background: rgba(0, 0, 153, 0.05);
3258
- padding: 11px 37px 30px 20px;
3258
+ padding: 20px 17px 20px 37px;
3259
3259
  box-sizing: border-box;
3260
- border-top-left-radius: 16px;
3260
+ border-radius: 16px;
3261
+ border: 1px solid #0092d2;
3261
3262
  direction: ltr;
3262
3263
  }
3263
3264
 
@@ -3320,11 +3321,11 @@ h5.recommended-tips-title {
3320
3321
  float: left;
3321
3322
  margin: 0;
3322
3323
  padding: 0;
3323
- color: rgb(0, 0, 153);
3324
+ color: #124374;
3324
3325
  font-weight: 600;
3325
3326
  font-size: 18px;
3326
3327
  float: right;
3327
- padding: 10px 0 7px 40px;
3328
+ padding: 10px 0 7px 0;
3328
3329
  box-sizing: border-box;
3329
3330
  display: block;
3330
3331
  clear: both;
@@ -3416,7 +3417,7 @@ h5.recommended-tips-title {
3416
3417
  }
3417
3418
 
3418
3419
  .physical-score-section .speedometer-value {
3419
- right: 14px;
3420
+ /* right: 14px; */
3420
3421
  }
3421
3422
 
3422
3423
  .physical-score-section .score-header {
@@ -3705,6 +3706,8 @@ div[key="mind"] .score-details-title {
3705
3706
  flex-wrap: wrap;
3706
3707
  }
3707
3708
 
3709
+
3710
+
3708
3711
  .details-column {
3709
3712
  flex: 1;
3710
3713
  min-width: 250px;
@@ -3781,13 +3784,13 @@ div[key="mind"] .score-details-title {
3781
3784
  }
3782
3785
 
3783
3786
  .insight-icon img {
3784
- width: 18px;
3785
- height: 20px;
3787
+ width: 25px;
3788
+ height: 28px;
3786
3789
  }
3787
3790
 
3788
3791
  .insight-title {
3789
3792
  color: #124374;
3790
- font-size: 10px;
3793
+ font-size: 12px;
3791
3794
  font-family: "Open Sans", sans-serif;
3792
3795
  font-weight: 600;
3793
3796
  margin-left: 10%;
@@ -3797,7 +3800,7 @@ div[key="mind"] .score-details-title {
3797
3800
  margin-top: 5%;
3798
3801
  text-align: justify;
3799
3802
  color: #124374;
3800
- font-size: 7.5px;
3803
+ font-size: 11.5px;
3801
3804
  font-family: "Metropolis", sans-serif;
3802
3805
  font-weight: 400;
3803
3806
  word-wrap: break-word;
@@ -4843,6 +4846,7 @@ each col width is 130px
4843
4846
  vertical-align: top;
4844
4847
  padding-bottom: 8px;
4845
4848
  padding-right: 8px;
4849
+ word-break: break-word;
4846
4850
  }
4847
4851
 
4848
4852
  .biom-bar .labels td.current {
@@ -5051,10 +5055,10 @@ div#summary,
5051
5055
  .detailed-list-wrapper,
5052
5056
  .detailed-list-title-wrapper,
5053
5057
  .insight-card,
5054
- .section.panel.first-panel,
5055
5058
  .bio-without-container,
5056
5059
  .panel-bio-container,
5057
- .all-details-section .grid-col.size3 {
5060
+ .all-details-section,
5061
+ .doctor-details {
5058
5062
  page-break-inside: avoid !important;
5059
5063
  page-break-after: avoid;
5060
5064
  page-break-before: avoid;
@@ -5774,6 +5778,7 @@ img.biomarker-attachment-item {
5774
5778
  width: 100%;
5775
5779
  }
5776
5780
  .compact-view-content .range-placeholder {
5781
+
5777
5782
  float: left;
5778
5783
  overflow: hidden;
5779
5784
  }
@@ -5785,7 +5790,6 @@ img.biomarker-attachment-item {
5785
5790
  .biom-bar.big .labels td {
5786
5791
  transform: rotate(52deg);
5787
5792
  -webkit-transform: rotate(52deg);
5788
- white-space: pre;
5789
5793
  padding-top: 23px;
5790
5794
  padding-bottom: 22px;
5791
5795
  }
@@ -6005,6 +6009,8 @@ tfoot {
6005
6009
  }
6006
6010
 
6007
6011
  .all-details-section {
6012
+ page-break-before: always;
6013
+ break-before: page;
6008
6014
  float: left;
6009
6015
  width: 100%;
6010
6016
  clear: both;
@@ -6192,3 +6198,17 @@ span.allergy-classes-unit {
6192
6198
  word-wrap: break-word;
6193
6199
  margin-left: 2%;
6194
6200
  }
6201
+
6202
+ .page-break {
6203
+ page-break-before: always;
6204
+ break-before: page;
6205
+ }
6206
+
6207
+ .doctor-details {
6208
+ page-break-before: always;
6209
+ break-before: page;
6210
+ gap: 25px;
6211
+ width: 100%;
6212
+ flex-wrap: wrap;
6213
+
6214
+ }
@@ -699,7 +699,7 @@ let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clien
699
699
  let tips = wellbeingData.insights.tips
700
700
 
701
701
  if(!empty(tips))
702
- $('#content').after("<h5 class='recommended-tips-title first-level-font-color'>" + localeService.t('weRecommend') + "</h5>");
702
+ $('#content').after("<h5 class='recommended-tips-title'>" + localeService.t('weRecommend') + "</h5>");
703
703
  // $('.footer').append(footerTemplateHTML);
704
704
  /*tips*/
705
705
  let allTips = []
@@ -799,7 +799,6 @@ let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clien
799
799
  }
800
800
 
801
801
  const finalHTML = `
802
- <div class="patient-details">
803
802
  <p class="resume-title"> Quiz Answers</p>
804
803
  <div class="details-column">
805
804
  ${details1HTML}
@@ -807,10 +806,9 @@ let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clien
807
806
  <div class="details-column" style="margin-left: 1%">
808
807
  ${details2HTML}
809
808
  </div>
810
- </div>
811
809
  `;
812
810
 
813
- $('.doctor-table').html(finalHTML);
811
+ $('.doctor-details').html(finalHTML);
814
812
  }
815
813
  $('.report-info').html(headerData);
816
814
 
@@ -919,6 +917,15 @@ const generatePDFReport = async (data) => {
919
917
  try {
920
918
  let contentHtml = data.html;
921
919
  let profileInfo = data.profileInfo;
920
+ const footerTemplate = `
921
+ <div style="width: 100%; font-size:7.3px; font-family: Inter, sans-serif; color: #B5B5B5; padding: 0 20px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center;">
922
+ <div style="display: flex; align-items: center;">
923
+ <span style="font-style: italic;">Page <span class="pageNumber"></span> of <span class="totalPages"></span></span>
924
+ </div>
925
+ <div style="width: 1px; height: 16px; background: #9DA9B4; margin: 0 8px;"></div>
926
+ <div>https://www.mediclinic.ae/hra</div>
927
+ </div>
928
+ `;
922
929
 
923
930
  const OUT_FILE = data.outputFile;
924
931
  const browser = await puppeteer.launch({
@@ -952,13 +959,12 @@ const generatePDFReport = async (data) => {
952
959
 
953
960
  const buffer1 = await page.pdf({
954
961
  format: 'A4',
955
- width: "210mm",
956
- height: "330mm",
957
962
  printBackground: true,
958
963
  displayHeaderFooter: true,
964
+ footerTemplate,
959
965
  margin: {
960
- top: '120px', // Adjust top margin to accommodate header
961
- bottom: '50px', // Adjust bottom margin to accommodate footer
966
+ top: '20px', // Adjust top margin to accommodate header
967
+ bottom: '40px', // Adjust bottom margin to accommodate footer
962
968
  left: '20px',
963
969
  right: '20px'
964
970
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicus.ai/medicus-report-pdf-generator",
3
- "version": "1.0.313",
3
+ "version": "1.0.314",
4
4
  "description": "Nasco corporate report - latest update in 12/10/2023 - Fix HRC for bionext",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -149,7 +149,7 @@
149
149
  </style>
150
150
  <div id="screenshot">
151
151
  <div class="speedometer-container">
152
- <svg width="150" height="120" viewBox="0 0 90 90" fill="none" xmlns="http://www.w3.org/2000/svg">
152
+ <svg width="150" height="120" viewBox="0 -1 90 90" fill="none" xmlns="http://www.w3.org/2000/svg">
153
153
  <path d="M48.0693 1.10718C48.1078 0.556242 48.5859 0.139702 49.1359 0.190458C57.2942 0.943409 65.0992 3.9104 71.7039 8.77979C78.3085 13.6492 83.4508 20.2278 86.5826 27.7986C86.7937 28.3089 86.5372 28.8888 86.0223 29.0885L82.0133 30.6435C81.4984 30.8432 80.9202 30.5871 80.7073 30.0775C78.0091 23.621 73.6077 18.0105 67.9653 13.8506C62.3229 9.69069 55.6619 7.14521 48.6962 6.47691C48.1465 6.42417 47.7308 5.94765 47.7693 5.39671L48.0693 1.10718Z"
154
154
  fill="{{thirdLevelColor}}" stroke="{{thirdLevelColor}}" stroke-width="0"/>
155
155
 
@@ -195,9 +195,9 @@
195
195
  </div>
196
196
 
197
197
  <div class="score-description">
198
- {{depressionRiskScoreStatement}}
198
+ {{psychologicalScoreStatement}}
199
199
  </div>
200
- <div style="width: 188px; height: 18px; display: flex; align-items: center;margin-top: 10px;margin-left: 5%;">
200
+ <div style="width: 188px; height: 18px; display: flex; align-items: center;margin-top: 10px;">
201
201
  <div data-svg-wrapper>
202
202
  <svg width="25" height="25" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
203
203
  <path d="M12.816 11.2807C12.6497 11.2854 12.5359 11.3466 12.4642 11.4785C12.3887 11.6181 12.4088 11.7739 12.5015 11.8733C12.6707 12.0511 12.8342 12.2395 13.0359 12.3838C13.1267 12.4498 13.2376 12.4746 13.3408 12.423C13.6591 12.2643 13.6429 11.9728 13.4488 11.773C13.3198 11.6391 13.1831 11.513 13.0473 11.3858C12.9785 11.3208 12.8992 11.2711 12.816 11.2807ZM5.81284 4.28133C5.82049 4.17427 5.76982 4.09684 5.69717 4.0261C5.5404 3.87506 5.40083 3.70586 5.22685 3.57299C5.08155 3.46401 4.88272 3.47644 4.76323 3.59975C4.63991 3.72498 4.59403 3.93242 4.71256 4.07772C4.86551 4.26413 5.03662 4.43141 5.21825 4.58819C5.33965 4.69047 5.48782 4.69525 5.63026 4.62069C5.766 4.54995 5.80902 4.42377 5.81284 4.28133ZM8.74755 2.42013C8.74755 2.58646 8.74182 2.70118 8.74851 2.81589C8.75807 2.99369 8.90528 3.12944 9.08786 3.14091C9.29912 3.1562 9.45399 3.03384 9.47788 2.85221C9.51134 2.59985 9.50656 2.3427 9.47597 2.09034C9.45877 1.94026 9.32111 1.82363 9.16721 1.80738C8.99227 1.78826 8.84697 1.86856 8.78005 2.01482C8.71314 2.16394 8.75998 2.31976 8.74755 2.42013ZM3.62662 7.60033C3.52243 7.60033 3.41823 7.59842 3.31499 7.60033C3.10182 7.60511 2.94887 7.75901 2.946 7.96836C2.94409 8.1672 3.10851 8.34309 3.30925 8.34787C3.51382 8.35265 3.71744 8.35169 3.92201 8.34882C4.12371 8.345 4.28717 8.17676 4.29195 7.97505C4.29673 7.77335 4.13709 7.60702 3.92774 7.60033C3.82737 7.59746 3.727 7.60033 3.62662 7.60033ZM14.6189 8.345V8.34882C14.7269 8.34882 14.834 8.35265 14.941 8.34787C15.1179 8.34118 15.2861 8.16337 15.288 7.98748C15.2909 7.77909 15.1485 7.60893 14.9525 7.60224C14.7336 7.59555 14.5147 7.59555 14.2967 7.6032C14.0941 7.60989 13.9421 7.77049 13.9411 7.96263C13.9392 8.16337 14.0855 8.32875 14.2862 8.34404C14.3962 8.35265 14.508 8.345 14.6189 8.345ZM9.13088 15.3816V15.3797C8.99418 15.3797 8.85748 15.3759 8.72174 15.3807C8.54011 15.3864 8.35753 15.3606 8.17686 15.4189C7.91685 15.5021 7.8203 15.851 8.01053 16.0479C8.11759 16.1597 8.2476 16.198 8.39768 16.198C8.88616 16.198 9.37369 16.1903 9.86217 16.2009C10.0256 16.2037 10.1795 16.1425 10.2694 15.9848C10.3602 15.8261 10.342 15.678 10.2273 15.5365C10.1346 15.4227 10.0094 15.3864 9.87364 15.3835C9.62701 15.3778 9.37847 15.3816 9.13088 15.3816ZM9.12037 12.7748C8.6749 12.7748 8.23039 12.7738 7.78588 12.7757C7.72566 12.7757 7.66352 12.7805 7.60426 12.7939C7.34615 12.8541 7.21424 13.16 7.34998 13.377C7.44748 13.5328 7.59661 13.5892 7.76963 13.5892C8.67012 13.5902 9.56965 13.5902 10.4701 13.5892C10.496 13.5892 10.5208 13.5892 10.5457 13.5854C10.7636 13.5596 10.9347 13.3904 10.9395 13.1992C10.9452 12.9602 10.756 12.7757 10.4969 12.7757C10.0381 12.7738 9.57921 12.7748 9.12037 12.7748ZM7.45322 14.788C7.52778 14.8645 7.62433 14.895 7.72566 14.896C8.65387 14.8979 9.58304 14.8989 10.5122 14.895C10.7846 14.8941 10.9672 14.6819 10.9385 14.4247C10.9156 14.2259 10.7149 14.072 10.4768 14.071C9.59451 14.071 8.71218 14.071 7.82986 14.072C7.75816 14.0729 7.68455 14.0739 7.61668 14.0911C7.45035 14.1303 7.3366 14.2326 7.29931 14.4027C7.26968 14.5375 7.29836 14.658 7.4102 14.7497C7.41211 14.7765 7.42645 14.7899 7.45322 14.788ZM11.9738 5.4275L11.97 5.42463C11.9576 5.39213 11.9413 5.36249 11.9098 5.34529C11.905 5.33859 11.8993 5.33477 11.8916 5.33477C11.884 5.32808 11.8763 5.32139 11.8677 5.31374C11.7454 5.16079 11.6029 5.03174 11.4366 4.92754C11.4299 4.90938 11.4156 4.9046 11.3984 4.90364C11.3831 4.87306 11.3649 4.8482 11.3267 4.85203C11.3267 4.84629 11.3228 4.84342 11.3171 4.84342C11.3028 4.81092 11.2789 4.78989 11.2425 4.78798C11.2253 4.77746 11.2091 4.76695 11.1928 4.75643C11.0925 4.6704 10.9797 4.60635 10.8544 4.56333L10.8525 4.56142C10.6384 4.43046 10.408 4.33965 10.1633 4.28707L10.1595 4.2842C9.99982 4.2364 9.84209 4.17905 9.67194 4.18383C9.649 4.18192 9.62605 4.18 9.60311 4.17714C9.39185 4.12074 9.17772 4.12743 8.96359 4.14272C8.94639 4.14368 8.92918 4.14464 8.91197 4.14655C8.83263 4.11882 8.75711 4.15611 8.68064 4.16375C8.50666 4.18192 8.32694 4.18478 8.16539 4.26699C8.14914 4.26891 8.13384 4.27082 8.11855 4.27177C7.97803 4.29472 7.84611 4.3406 7.71992 4.40656L7.71323 4.40465L7.70845 4.40943C7.6683 4.41325 7.63198 4.42663 7.60139 4.4534C7.59087 4.45914 7.5794 4.46583 7.56984 4.47156C7.55837 4.47539 7.54786 4.47826 7.53734 4.48208C7.49337 4.48973 7.45417 4.50502 7.42072 4.53561C6.98099 4.744 6.60244 5.03461 6.27742 5.39404C5.77747 5.94561 5.45914 6.58895 5.33487 7.32693C5.24693 7.84983 5.26413 8.3689 5.37789 8.88606C5.48687 9.38314 5.69622 9.83625 5.97726 10.2559C6.21242 10.6077 6.49633 10.9222 6.76304 11.2491C6.96474 11.4967 7.15975 11.7443 7.21232 12.0779C7.24196 12.2748 7.40733 12.3829 7.60043 12.3809C7.79736 12.38 7.93883 12.2758 7.99332 12.0903C8.03538 11.9441 7.98854 11.8055 7.9503 11.6678C7.84133 11.2749 7.58896 10.9633 7.33755 10.6564C7.11291 10.383 6.88157 10.1163 6.677 9.82574C6.28985 9.27703 6.09388 8.67097 6.09484 8.00373C6.09675 7.08699 6.43706 6.31556 7.12629 5.70472C7.63198 5.25734 8.2237 5.01167 8.89763 4.961C9.3039 4.92946 9.69679 4.98394 10.083 5.11204C10.559 5.27072 10.9701 5.53456 11.3114 5.89686C11.7033 6.31365 11.9595 6.80404 12.0761 7.37186C12.1774 7.86895 12.1545 8.35647 12.0274 8.84113C11.8763 9.41947 11.5408 9.89648 11.1622 10.3458C10.8994 10.6574 10.6174 10.9547 10.4271 11.3199C10.3248 11.5168 10.2359 11.7223 10.2283 11.9508C10.2254 12.0674 10.2541 12.1764 10.3392 12.2653C10.5399 12.4756 10.9691 12.4048 11.0294 12.0502C11.0657 11.8408 11.1565 11.6563 11.2817 11.4862C11.5523 11.1201 11.8687 10.7912 12.1382 10.4242C12.642 9.73779 12.9288 8.974 12.9565 8.12131C12.9804 7.38142 12.8103 6.68646 12.4298 6.04694C12.3361 5.82803 12.1937 5.64258 12.0207 5.48007C12.0197 5.47338 12.0168 5.4686 12.0101 5.46669C12.0082 5.4447 11.9958 5.43132 11.9738 5.4275ZM5.20965 12.3771C5.22303 12.3781 5.22877 12.3743 5.22685 12.3609L5.23163 12.3561C5.26509 12.3446 5.2995 12.3331 5.31193 12.294C5.43238 12.1639 5.57386 12.0559 5.68952 11.9192C5.85872 11.7194 5.8549 11.5369 5.66085 11.3476C5.65893 11.338 5.65416 11.3323 5.64364 11.338C5.63312 11.3342 5.62357 11.3304 5.61305 11.3275C5.4687 11.2405 5.32531 11.2549 5.20869 11.3677C5.202 11.3724 5.19435 11.3763 5.1867 11.3801C5.17523 11.3763 5.17332 11.381 5.17619 11.3906C5.17045 11.3916 5.16854 11.3954 5.1695 11.4011C5.14082 11.4088 5.12266 11.425 5.11979 11.4566C5.10736 11.468 5.09398 11.4805 5.08155 11.4929C5.03089 11.49 5.00317 11.511 5.00221 11.5627L4.97353 11.598C4.95537 11.598 4.94963 11.6095 4.94868 11.6248L4.94963 11.6238C4.93147 11.6248 4.92 11.6325 4.91809 11.6516C4.9114 11.6516 4.90853 11.6554 4.90853 11.6611L4.90088 11.6602L4.90184 11.6669C4.8961 11.6745 4.89037 11.6812 4.88463 11.6889L4.86169 11.7118C4.855 11.7156 4.8483 11.7194 4.84257 11.7233C4.83014 11.7204 4.82823 11.7252 4.8311 11.7357C4.82536 11.7366 4.82345 11.7395 4.82441 11.7443C4.80529 11.7462 4.79955 11.7596 4.79764 11.7768C4.79095 11.7816 4.78521 11.7864 4.77948 11.7921C4.7508 11.7969 4.73933 11.815 4.7355 11.8418H4.73455C4.64278 11.9221 4.60932 12.1085 4.67337 12.228C4.69344 12.2643 4.6858 12.336 4.76036 12.3303L4.76227 12.3351H4.76801C4.84735 12.4603 4.99839 12.4985 5.11501 12.423C5.12648 12.4201 5.137 12.4163 5.14847 12.4144C5.15994 12.4201 5.16472 12.4144 5.16759 12.4039C5.17523 12.401 5.18288 12.3982 5.18957 12.3953C5.202 12.3982 5.20678 12.3934 5.20582 12.3809L5.20965 12.3771ZM12.7252 3.8483L12.7261 3.84734C12.7185 3.85499 12.7118 3.86264 12.7042 3.87028L12.7051 3.86933C12.6975 3.87697 12.6898 3.88367 12.6822 3.89131L12.6831 3.89036C12.6764 3.898 12.6688 3.90565 12.6611 3.9133V3.91234C12.5904 3.95727 12.5359 4.0175 12.491 4.08728C12.4709 4.10353 12.4623 4.12456 12.4652 4.15037C12.3954 4.29472 12.425 4.44862 12.5206 4.55186C12.6592 4.7029 12.9374 4.70863 13.0731 4.54039C13.1171 4.48495 13.1773 4.44193 13.2232 4.38744C13.337 4.2517 13.5043 4.16471 13.5702 3.98595C13.6171 3.8569 13.5578 3.64755 13.4402 3.5749C13.25 3.45828 13.1009 3.47548 12.9307 3.63512C12.9269 3.64182 12.924 3.64851 12.9202 3.65424C12.8915 3.66858 12.8667 3.68674 12.8552 3.71829C12.8475 3.72594 12.8409 3.73263 12.8342 3.74028C12.8265 3.74792 12.8189 3.75461 12.8122 3.76226V3.76131C12.7931 3.76704 12.7816 3.77756 12.7816 3.79763L12.7845 3.79859C12.7692 3.79859 12.7606 3.80815 12.7567 3.82249L12.75 3.8244C12.7414 3.83205 12.7338 3.84065 12.7252 3.8483ZM17.9962 9.20056C17.8155 14.723 13.2032 18.1318 8.81638 17.9961C3.2691 17.824 -0.170339 13.1782 0.0065085 8.73311C0.108793 6.15783 1.10965 3.98404 3.03108 2.27005C4.80911 0.683205 6.92459 -0.0863209 9.30486 0.0102291C14.6762 0.226269 18.131 4.70863 17.9962 9.20056Z" fill="#0092D2"/>
@@ -25,11 +25,11 @@
25
25
  <div class="all-tips"></div>
26
26
  </div>
27
27
 
28
- <div id="smart-report">
28
+ <div id="smart-report">
29
29
 
30
30
  </div>
31
31
 
32
- <div class="doctor-table"></div>
32
+ <div class="doctor-details"></div>
33
33
 
34
34
 
35
35
 
package/test.js CHANGED
@@ -21,249 +21,7 @@ const data = {
21
21
  { "title": "Blood Pressure", "value": "" },
22
22
  { "title": "Waist Circumference", "value": "" }
23
23
  ],
24
- "wellbeing": {
25
- "PartScoresHighestValues": {
26
- "body": [
27
- {
28
- "icon": "wellbeing_element_blue_mood.png",
29
- "isPredictiveElement": false,
30
- "name": "Patient Health Questionnaire-9 (PHQ-9)",
31
- "partId": 2,
32
- "predictiveAnswer": null,
33
- "score": 0.0,
34
- "scoreText": null
35
- }
36
- ],
37
- "healthRisk": [],
38
- "lifeStyle": [
39
- {
40
- "icon": "wellbeing_element_alcohol.png",
41
- "isPredictiveElement": false,
42
- "name": "Alcohol",
43
- "partId": 1,
44
- "predictiveAnswer": null,
45
- "score": 9.5,
46
- "scoreText": null
47
- }
48
- ],
49
- "mind": [
50
- {
51
- "icon": "wellbeing_element_bodymeasurements.png",
52
- "isPredictiveElement": false,
53
- "name": "Body Measurements",
54
- "partId": 3,
55
- "predictiveAnswer": null,
56
- "score": 10.0,
57
- "scoreText": null
58
- }
59
- ]
60
- },
61
- "age": "18",
62
- "calculation": {
63
- "anxietyRiskScore": 20.0,
64
- "anxietyRiskScoreStatement": "",
65
- "depressionRiskScore": 40.0,
66
- "depressionRiskScoreStatement": "",
67
- "physicalScore": 40.0,
68
- "physicalScoreStatement": "Your <strong>physical wellbeing score</strong> shows that you are just getting started, and your healthy practices are in a good position to go even further.",
69
- "psychologicalScore": 0.0,
70
- "psychologicalScoreStatement": ""
71
- },
72
- "email": "diab@gmail.com",
73
- "gender": "Male",
74
- "genderId": 89,
75
- "insights": { "elementScores": [], "tips": [] },
76
- "lingualReading": {
77
- "color": null,
78
- "lingualReading": null,
79
- "statement": null
80
- },
81
- "lowestElementScore": {
82
- "icon": "wellbeing_element_blue_mood.png",
83
- "isPredictiveElement": false,
84
- "name": "Patient Health Questionnaire-9 (PHQ-9)",
85
- "partId": 2,
86
- "predictiveAnswer": null,
87
- "score": 0.0,
88
- "scoreText": null
89
- },
90
- "name": "Deepu",
91
- "partsScore": {
92
- "mind": [
93
- {
94
- "icon": "wellbeing_element_bodymeasurements.png",
95
- "isPredictiveElement": false,
96
- "name": "Body Measurements",
97
- "partId": 3,
98
- "predictiveAnswer": null,
99
- "score": 10.0,
100
- "scoreText": null
101
- },
102
- {
103
- "icon": "wellbeing_element_heart_health.png",
104
- "isPredictiveElement": false,
105
- "name": "Heart Health",
106
- "partId": 3,
107
- "predictiveAnswer": null,
108
- "score": 4.0,
109
- "scoreText": null
110
- },
111
- {
112
- "icon": "wellbeing_element_kidney_health.png",
113
- "isPredictiveElement": false,
114
- "name": "Kidney Health",
115
- "partId": 3,
116
- "predictiveAnswer": null,
117
- "score": 10.0,
118
- "scoreText": null
119
- },
120
- {
121
- "icon": "wellbeing_element_sugar_balance.png",
122
- "isPredictiveElement": false,
123
- "name": "Sugar Balance",
124
- "partId": 3,
125
- "predictiveAnswer": null,
126
- "score": 10.0,
127
- "scoreText": null
128
- },
129
- {
130
- "icon": "wellbeing_element_lungs_health.png",
131
- "isPredictiveElement": false,
132
- "name": "Lungs Health",
133
- "partId": 3,
134
- "predictiveAnswer": null,
135
- "score": 7.0,
136
- "scoreText": null
137
- },
138
- {
139
- "icon": "wellbeing_element_cognitive_functions.png",
140
- "isPredictiveElement": false,
141
- "name": "Cognitive Functions",
142
- "partId": 3,
143
- "predictiveAnswer": null,
144
- "score": 6.0,
145
- "scoreText": null
146
- },
147
- {
148
- "icon": "",
149
- "isPredictiveElement": false,
150
- "name": "Pre-existing Conditions",
151
- "partId": 3,
152
- "predictiveAnswer": null,
153
- "score": 0.0,
154
- "scoreText": null
155
- },
156
- {
157
- "icon": "",
158
- "isPredictiveElement": false,
159
- "name": "Health Risk Questions",
160
- "partId": 3,
161
- "predictiveAnswer": null,
162
- "score": 0.0,
163
- "scoreText": null
164
- },
165
- {
166
- "icon": "wellbeing_element_thyroid_health.png",
167
- "isPredictiveElement": false,
168
- "name": "Thyroid Health",
169
- "partId": 3,
170
- "predictiveAnswer": null,
171
- "score": 10.0,
172
- "scoreText": null
173
- }
174
- ],
175
- "body": [
176
- {
177
- "icon": "wellbeing_element_blue_mood.png",
178
- "isPredictiveElement": false,
179
- "name": "Patient Health Questionnaire-9 (PHQ-9)",
180
- "partId": 2,
181
- "predictiveAnswer": null,
182
- "score": 0.0,
183
- "scoreText": null
184
- },
185
- {
186
- "icon": "wellbeing_element_aggressiveness.png",
187
- "isPredictiveElement": false,
188
- "name": "Generalized Anxiety Disorder-7 (GAD-7)",
189
- "partId": 2,
190
- "predictiveAnswer": null,
191
- "score": 0.0,
192
- "scoreText": null
193
- }
194
- ],
195
- "healthRisk": [],
196
- "lifeStyle": [
197
- {
198
- "icon": "wellbeing_element_diet.png",
199
- "isPredictiveElement": false,
200
- "name": "Diet",
201
- "partId": 1,
202
- "predictiveAnswer": null,
203
- "score": 8.75,
204
- "scoreText": null
205
- },
206
- {
207
- "icon": "wellbeing_element_physical_activity.png",
208
- "isPredictiveElement": false,
209
- "name": "Physical Activity",
210
- "partId": 1,
211
- "predictiveAnswer": null,
212
- "score": 1.6,
213
- "scoreText": null
214
- },
215
- {
216
- "icon": "wellbeing_element_smoking.png",
217
- "isPredictiveElement": false,
218
- "name": "Smoking",
219
- "partId": 1,
220
- "predictiveAnswer": null,
221
- "score": 8.5,
222
- "scoreText": null
223
- },
224
- {
225
- "icon": "wellbeing_element_alcohol.png",
226
- "isPredictiveElement": false,
227
- "name": "Alcohol",
228
- "partId": 1,
229
- "predictiveAnswer": null,
230
- "score": 9.5,
231
- "scoreText": null
232
- },
233
- {
234
- "icon": "wellbeing_element_sleep.png",
235
- "isPredictiveElement": false,
236
- "name": "Sleep",
237
- "partId": 1,
238
- "predictiveAnswer": null,
239
- "score": 6.5,
240
- "scoreText": null
241
- },
242
- {
243
- "icon": "wellbeing_element_social_life.png",
244
- "isPredictiveElement": false,
245
- "name": "Social Life",
246
- "partId": 1,
247
- "predictiveAnswer": null,
248
- "score": 5.0,
249
- "scoreText": null
250
- },
251
- {
252
- "icon": "wellbeing_element_hydration_level.png",
253
- "isPredictiveElement": false,
254
- "name": "Hydration Level",
255
- "partId": 1,
256
- "predictiveAnswer": null,
257
- "score": 7.0,
258
- "scoreText": null
259
- }
260
- ],
261
-
262
- },
263
- "patientNumber": "0903037",
264
- "photo": null,
265
- "wellbeingQuizFinishDate": null
266
- }
24
+ "wellbeing":{"PartScoresHighestValues":{"body":[{"icon":"wellbeing_element_liver_health.png","isPredictiveElement":false,"name":"Liver Health","partId":3,"predictiveAnswer":null,"score":10.0,"scoreText":null}],"healthRisk":[],"lifeStyle":[{"icon":"wellbeing_element_alcohol.png","isPredictiveElement":false,"name":"Alcohol","partId":1,"predictiveAnswer":null,"score":10.0,"scoreText":null}],"mind":[{"icon":"wellbeing_element_aggressiveness.png","isPredictiveElement":false,"name":"Generalized Anxiety Disorder-7 (GAD-7)","partId":2,"predictiveAnswer":null,"score":3.8095238095238093,"scoreText":null}]},"age":"51","calculation":{"anxietyRiskScore":38.095238095238095,"anxietyRiskScoreStatement":"","depressionRiskScore":25.925925925925927,"depressionRiskScoreStatement":"","physicalScore":58.264999999999986,"physicalScoreStatement":"Your <strong>physical wellbeing score</strong> shows that your health is in a good place, and your daily practices are building a strong base for a healthy lifestyle.","psychologicalScore":75.0,"psychologicalScoreStatement":"Your depression risk score shows that you might be experiencing mild challenges, and your anxiety risk score shows that you're building a stronger base for managing stress effectively."},"email":"sara.rijjal+20@medicus.ai","gender":"Male","genderId":89,"insights":{"elementScores":[{"icon":"wellbeing_element_alcohol.png","isPredictiveElement":true,"name":"Alcohol","partId":1,"predictiveAnswer":null,"score":10.0,"scoreText":null},{"icon":"wellbeing_element_blue_mood.png","isPredictiveElement":true,"name":"Patient Health Questionnaire-9 (PHQ-9)","partId":2,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_aggressiveness.png","isPredictiveElement":true,"name":"Generalized Anxiety Disorder-7 (GAD-7)","partId":2,"predictiveAnswer":null,"score":8.0,"scoreText":null},{"icon":"wellbeing_element_lungs_health.png","isPredictiveElement":true,"name":"Lungs Health","partId":3,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_cognitive_functions.png","isPredictiveElement":true,"name":"Cognitive Functions","partId":3,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_hydration_level.png","isPredictiveElement":true,"name":"Hydration Level","partId":1,"predictiveAnswer":null,"score":2.0,"scoreText":null}],"tips":[{"content":"Sobriety pays off! Seems like you might be putting yourself out of harm's way by consuming alcohol in moderation. Drinking alcohol is associated with a risk of developing health problems such as mental and behavioural disorders.","icon":"wellbeing_element_alcohol.png","id":1891,"isPositive":true,"isTip":true,"partId":1,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3120,"insightId":1891,"source":"https://www.who.int/news-room/fact-sheets/detail/alcohol","title":"WHO: Alcohol"},{"id":3121,"insightId":1891,"source":"https://www.cdc.gov/alcohol/fact-sheets/alcohol-use.htm","title":"CDC: Alcohol Use and Your Health"}]},{"content":"What do you know about the mind-body connection? Here is a piece of information. Dynamic people, like you, can have a stronger immune system.","icon":"wellbeing_element_blue_mood.png","id":2119,"isPositive":true,"isTip":true,"partId":2,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3506,"insightId":2119,"source":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2475648/","title":"NCBI: Stress, Energy, and Immunity"},{"id":3507,"insightId":2119,"source":"https://pubmed.ncbi.nlm.nih.gov/18589562/","title":"NCBI: The Mind-Body Connection: Not Just a Theory Anymore"},{"id":3508,"insightId":2119,"source":"https://www.health.harvard.edu/staying-healthy/how-to-boost-your-immune-system","title":"How to Boost Your Immune System"},{"id":3509,"insightId":2119,"source":"https://www.mayoclinichealthsystem.org/hometown-health/speaking-of-health/7-tips-to-live-a-happier-life","title":"7 Tips to Live a Happier Life"}]},{"content":"Your ability to stay composed is a skill worth maintaining. Whether it’s regular exercise, positive self-talk, or a consistent routine, continue doing what helps you feel in control.","icon":"wellbeing_element_aggressiveness.png","id":2073,"isPositive":true,"isTip":true,"partId":2,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3431,"insightId":2073,"source":"https://www.nhs.uk/every-mind-matters/mental-wellbeing-tips/self-help-cbt-techniques/tackling-your-worries/","title":"Tackling your worries"}]},{"content":"Clean hands, healthy lungs! Whether before preparing or having a meal or after coughing or sneezing, if you do not have access to soap and water, use alcohol-based hand sanitizers.","icon":"wellbeing_element_lungs_health.png","id":2029,"isPositive":true,"isTip":true,"partId":3,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3345,"insightId":2029,"source":"https://www.canada.ca/en/public-health/services/chronic-diseases/chronic-respiratory-diseases/keep-lungs-healthy.html","title":"How Can I Keep My Lungs Healthy?"},{"id":3346,"insightId":2029,"source":"https://www.health.state.mn.us/people/handhygiene/how/bestsoap.html#:~:text=Antibacterial%20soaps%20are%20no%20more,home%20or%20in%20public%20places.","title":"Which Soap Is Best?"}]},{"content":"How many neurons does your brain contain? The answer is approximately 100 billion neurons. Keep them busy with this exercise. Say the months of the year in alphabetical order and then in reverse alphabetical order.","icon":"wellbeing_element_cognitive_functions.png","id":2047,"isPositive":true,"isTip":true,"partId":3,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3372,"insightId":2047,"source":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2776484/","title":"NCBI: The Human Brain in Numbers"},{"id":3373,"insightId":2047,"source":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6646088/","title":"NCBI: Cognitive Training as a Strategy to Improve Neurocognitive Outcomes in Heart Failure"}]},{"content":"Lunchbox ready for tomorrow? What about the water bottle? Just like you get your meals ready for the next day, make sure you do not forget your water bottle. This is a handy tool that reminds you to drink water.","icon":"wellbeing_element_hydration_level.png","id":1936,"isPositive":false,"isTip":true,"partId":1,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3199,"insightId":1936,"source":"https://www.cdc.gov/healthyweight/healthy_eating/water-and-healthier-drinks.html?CDC_AA_refVal=https%3A%2F%2Fwww.cdc.gov%2Fhealthywater%2Fdrinking%2Fnutrition%2Findex.html","title":"CDC: Water and Healthier Drinks"}]}]},"lingualReading":{"color":null,"lingualReading":null,"statement":null},"lowestElementScore":{"icon":"wellbeing_element_physical_activity.png","isPredictiveElement":false,"name":"Physical Activity","partId":1,"predictiveAnswer":null,"score":1.6,"scoreText":null},"name":"Sara 20","partsScore":{"body":[{"icon":"wellbeing_element_heart_health.png","isPredictiveElement":false,"name":"Heart Health","partId":3,"predictiveAnswer":null,"score":7.2,"scoreText":null},{"icon":"wellbeing_element_kidney_health.png","isPredictiveElement":false,"name":"Kidney Health","partId":3,"predictiveAnswer":null,"score":8.0,"scoreText":null},{"icon":"wellbeing_element_liver_health.png","isPredictiveElement":false,"name":"Liver Health","partId":3,"predictiveAnswer":null,"score":10.0,"scoreText":null},{"icon":"wellbeing_element_sugar_balance.png","isPredictiveElement":false,"name":"Sugar Balance","partId":3,"predictiveAnswer":null,"score":10.0,"scoreText":null},{"icon":"wellbeing_element_lungs_health.png","isPredictiveElement":false,"name":"Lungs Health","partId":3,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_cognitive_functions.png","isPredictiveElement":false,"name":"Cognitive Functions","partId":3,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_diabetes_health_risk.png","isPredictiveElement":false,"name":"Diabetes Health Risk","partId":3,"predictiveAnswer":null,"score":4.0,"scoreText":null},{"icon":"wellbeing_element_thyroid_health.png","isPredictiveElement":false,"name":"Thyroid Health","partId":3,"predictiveAnswer":null,"score":2.0,"scoreText":null},{"icon":"wellbeing_element_vitamin_balance.png","isPredictiveElement":false,"name":"Vitamin Balance","partId":3,"predictiveAnswer":null,"score":2.0,"scoreText":null}],"healthRisk":[],"lifeStyle":[{"icon":"wellbeing_element_diet.png","isPredictiveElement":false,"name":"Diet","partId":1,"predictiveAnswer":null,"score":5.875,"scoreText":null},{"icon":"wellbeing_element_physical_activity.png","isPredictiveElement":false,"name":"Physical Activity","partId":1,"predictiveAnswer":null,"score":1.6,"scoreText":null},{"icon":"wellbeing_element_smoking.png","isPredictiveElement":false,"name":"Smoking","partId":1,"predictiveAnswer":null,"score":8.0,"scoreText":null},{"icon":"wellbeing_element_alcohol.png","isPredictiveElement":false,"name":"Alcohol","partId":1,"predictiveAnswer":null,"score":10.0,"scoreText":null},{"icon":"wellbeing_element_sleep.png","isPredictiveElement":false,"name":"Sleep","partId":1,"predictiveAnswer":null,"score":5.0,"scoreText":null},{"icon":"wellbeing_element_social_life.png","isPredictiveElement":false,"name":"Social Life","partId":1,"predictiveAnswer":null,"score":6.0,"scoreText":null},{"icon":"wellbeing_element_hydration_level.png","isPredictiveElement":false,"name":"Hydration Level","partId":1,"predictiveAnswer":null,"score":2.0,"scoreText":null}],"mind":[{"icon":"wellbeing_element_blue_mood.png","isPredictiveElement":false,"name":"Patient Health Questionnaire-9 (PHQ-9)","partId":2,"predictiveAnswer":null,"score":2.5925925925925926,"scoreText":null},{"icon":"wellbeing_element_aggressiveness.png","isPredictiveElement":false,"name":"Generalized Anxiety Disorder-7 (GAD-7)","partId":2,"predictiveAnswer":null,"score":3.8095238095238093,"scoreText":null}]},"patientNumber":"00906231234","photo":null,"wellbeingQuizFinishDate":null}
267
25
  }
268
26
 
269
27
  const doctorData = {
@@ -282,249 +40,7 @@ const doctorData = {
282
40
  { "title": "Blood Pressure", "value": "" },
283
41
  { "title": "Waist Circumference", "value": "" }
284
42
  ],
285
- "wellbeing": {
286
- "PartScoresHighestValues": {
287
- "body": [
288
- {
289
- "icon": "wellbeing_element_blue_mood.png",
290
- "isPredictiveElement": false,
291
- "name": "Patient Health Questionnaire-9 (PHQ-9)",
292
- "partId": 2,
293
- "predictiveAnswer": null,
294
- "score": 0.0,
295
- "scoreText": null
296
- }
297
- ],
298
- "healthRisk": [],
299
- "lifeStyle": [
300
- {
301
- "icon": "wellbeing_element_alcohol.png",
302
- "isPredictiveElement": false,
303
- "name": "Alcohol",
304
- "partId": 1,
305
- "predictiveAnswer": null,
306
- "score": 9.5,
307
- "scoreText": null
308
- }
309
- ],
310
- "mind": [
311
- {
312
- "icon": "wellbeing_element_bodymeasurements.png",
313
- "isPredictiveElement": false,
314
- "name": "Body Measurements",
315
- "partId": 3,
316
- "predictiveAnswer": null,
317
- "score": 10.0,
318
- "scoreText": null
319
- }
320
- ]
321
- },
322
- "age": "18",
323
- "calculation": {
324
- "anxietyRiskScore": 20.0,
325
- "anxietyRiskScoreStatement": "",
326
- "depressionRiskScore": 40.0,
327
- "depressionRiskScoreStatement": "",
328
- "physicalScore": 40.0,
329
- "physicalScoreStatement": "Your <strong>physical wellbeing score</strong> shows that you are just getting started, and your healthy practices are in a good position to go even further.",
330
- "psychologicalScore": 0.0,
331
- "psychologicalScoreStatement": ""
332
- },
333
- "email": "diab@gmail.com",
334
- "gender": "Male",
335
- "genderId": 89,
336
- "insights": { "elementScores": [], "tips": [] },
337
- "lingualReading": {
338
- "color": null,
339
- "lingualReading": null,
340
- "statement": null
341
- },
342
- "lowestElementScore": {
343
- "icon": "wellbeing_element_blue_mood.png",
344
- "isPredictiveElement": false,
345
- "name": "Patient Health Questionnaire-9 (PHQ-9)",
346
- "partId": 2,
347
- "predictiveAnswer": null,
348
- "score": 0.0,
349
- "scoreText": null
350
- },
351
- "name": "Deepu",
352
- "partsScore": {
353
- "mind": [
354
- {
355
- "icon": "wellbeing_element_bodymeasurements.png",
356
- "isPredictiveElement": false,
357
- "name": "Body Measurements",
358
- "partId": 3,
359
- "predictiveAnswer": null,
360
- "score": 10.0,
361
- "scoreText": null
362
- },
363
- {
364
- "icon": "wellbeing_element_heart_health.png",
365
- "isPredictiveElement": false,
366
- "name": "Heart Health",
367
- "partId": 3,
368
- "predictiveAnswer": null,
369
- "score": 4.0,
370
- "scoreText": null
371
- },
372
- {
373
- "icon": "wellbeing_element_kidney_health.png",
374
- "isPredictiveElement": false,
375
- "name": "Kidney Health",
376
- "partId": 3,
377
- "predictiveAnswer": null,
378
- "score": 10.0,
379
- "scoreText": null
380
- },
381
- {
382
- "icon": "wellbeing_element_sugar_balance.png",
383
- "isPredictiveElement": false,
384
- "name": "Sugar Balance",
385
- "partId": 3,
386
- "predictiveAnswer": null,
387
- "score": 10.0,
388
- "scoreText": null
389
- },
390
- {
391
- "icon": "wellbeing_element_lungs_health.png",
392
- "isPredictiveElement": false,
393
- "name": "Lungs Health",
394
- "partId": 3,
395
- "predictiveAnswer": null,
396
- "score": 7.0,
397
- "scoreText": null
398
- },
399
- {
400
- "icon": "wellbeing_element_cognitive_functions.png",
401
- "isPredictiveElement": false,
402
- "name": "Cognitive Functions",
403
- "partId": 3,
404
- "predictiveAnswer": null,
405
- "score": 6.0,
406
- "scoreText": null
407
- },
408
- {
409
- "icon": "",
410
- "isPredictiveElement": false,
411
- "name": "Pre-existing Conditions",
412
- "partId": 3,
413
- "predictiveAnswer": null,
414
- "score": 0.0,
415
- "scoreText": null
416
- },
417
- {
418
- "icon": "",
419
- "isPredictiveElement": false,
420
- "name": "Health Risk Questions",
421
- "partId": 3,
422
- "predictiveAnswer": null,
423
- "score": 0.0,
424
- "scoreText": null
425
- },
426
- {
427
- "icon": "wellbeing_element_thyroid_health.png",
428
- "isPredictiveElement": false,
429
- "name": "Thyroid Health",
430
- "partId": 3,
431
- "predictiveAnswer": null,
432
- "score": 10.0,
433
- "scoreText": null
434
- }
435
- ],
436
- "body": [
437
- {
438
- "icon": "wellbeing_element_blue_mood.png",
439
- "isPredictiveElement": false,
440
- "name": "Patient Health Questionnaire-9 (PHQ-9)",
441
- "partId": 2,
442
- "predictiveAnswer": null,
443
- "score": 0.0,
444
- "scoreText": null
445
- },
446
- {
447
- "icon": "wellbeing_element_aggressiveness.png",
448
- "isPredictiveElement": false,
449
- "name": "Generalized Anxiety Disorder-7 (GAD-7)",
450
- "partId": 2,
451
- "predictiveAnswer": null,
452
- "score": 0.0,
453
- "scoreText": null
454
- }
455
- ],
456
- "healthRisk": [],
457
- "lifeStyle": [
458
- {
459
- "icon": "wellbeing_element_diet.png",
460
- "isPredictiveElement": false,
461
- "name": "Diet",
462
- "partId": 1,
463
- "predictiveAnswer": null,
464
- "score": 8.75,
465
- "scoreText": null
466
- },
467
- {
468
- "icon": "wellbeing_element_physical_activity.png",
469
- "isPredictiveElement": false,
470
- "name": "Physical Activity",
471
- "partId": 1,
472
- "predictiveAnswer": null,
473
- "score": 1.6,
474
- "scoreText": null
475
- },
476
- {
477
- "icon": "wellbeing_element_smoking.png",
478
- "isPredictiveElement": false,
479
- "name": "Smoking",
480
- "partId": 1,
481
- "predictiveAnswer": null,
482
- "score": 8.5,
483
- "scoreText": null
484
- },
485
- {
486
- "icon": "wellbeing_element_alcohol.png",
487
- "isPredictiveElement": false,
488
- "name": "Alcohol",
489
- "partId": 1,
490
- "predictiveAnswer": null,
491
- "score": 9.5,
492
- "scoreText": null
493
- },
494
- {
495
- "icon": "wellbeing_element_sleep.png",
496
- "isPredictiveElement": false,
497
- "name": "Sleep",
498
- "partId": 1,
499
- "predictiveAnswer": null,
500
- "score": 6.5,
501
- "scoreText": null
502
- },
503
- {
504
- "icon": "wellbeing_element_social_life.png",
505
- "isPredictiveElement": false,
506
- "name": "Social Life",
507
- "partId": 1,
508
- "predictiveAnswer": null,
509
- "score": 5.0,
510
- "scoreText": null
511
- },
512
- {
513
- "icon": "wellbeing_element_hydration_level.png",
514
- "isPredictiveElement": false,
515
- "name": "Hydration Level",
516
- "partId": 1,
517
- "predictiveAnswer": null,
518
- "score": 7.0,
519
- "scoreText": null
520
- }
521
- ],
522
-
523
- },
524
- "patientNumber": "0903037",
525
- "photo": null,
526
- "wellbeingQuizFinishDate": null
527
- }
43
+ "wellbeing":{"PartScoresHighestValues":{"body":[{"icon":"wellbeing_element_liver_health.png","isPredictiveElement":false,"name":"Liver Health","partId":3,"predictiveAnswer":null,"score":10.0,"scoreText":null}],"healthRisk":[],"lifeStyle":[{"icon":"wellbeing_element_alcohol.png","isPredictiveElement":false,"name":"Alcohol","partId":1,"predictiveAnswer":null,"score":10.0,"scoreText":null}],"mind":[{"icon":"wellbeing_element_aggressiveness.png","isPredictiveElement":false,"name":"Generalized Anxiety Disorder-7 (GAD-7)","partId":2,"predictiveAnswer":null,"score":3.8095238095238093,"scoreText":null}]},"age":"51","calculation":{"anxietyRiskScore":38.095238095238095,"anxietyRiskScoreStatement":"","depressionRiskScore":25.925925925925927,"depressionRiskScoreStatement":"","physicalScore":58.264999999999986,"physicalScoreStatement":"Your <strong>physical wellbeing score</strong> shows that your health is in a good place, and your daily practices are building a strong base for a healthy lifestyle.","psychologicalScore":75.0,"psychologicalScoreStatement":"Your depression risk score shows that you might be experiencing mild challenges, and your anxiety risk score shows that you're building a stronger base for managing stress effectively."},"email":"sara.rijjal+20@medicus.ai","gender":"Male","genderId":89,"insights":{"elementScores":[{"icon":"wellbeing_element_alcohol.png","isPredictiveElement":true,"name":"Alcohol","partId":1,"predictiveAnswer":null,"score":10.0,"scoreText":null},{"icon":"wellbeing_element_blue_mood.png","isPredictiveElement":true,"name":"Patient Health Questionnaire-9 (PHQ-9)","partId":2,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_aggressiveness.png","isPredictiveElement":true,"name":"Generalized Anxiety Disorder-7 (GAD-7)","partId":2,"predictiveAnswer":null,"score":8.0,"scoreText":null},{"icon":"wellbeing_element_lungs_health.png","isPredictiveElement":true,"name":"Lungs Health","partId":3,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_cognitive_functions.png","isPredictiveElement":true,"name":"Cognitive Functions","partId":3,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_hydration_level.png","isPredictiveElement":true,"name":"Hydration Level","partId":1,"predictiveAnswer":null,"score":2.0,"scoreText":null}],"tips":[{"content":"Sobriety pays off! Seems like you might be putting yourself out of harm's way by consuming alcohol in moderation. Drinking alcohol is associated with a risk of developing health problems such as mental and behavioural disorders.","icon":"wellbeing_element_alcohol.png","id":1891,"isPositive":true,"isTip":true,"partId":1,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3120,"insightId":1891,"source":"https://www.who.int/news-room/fact-sheets/detail/alcohol","title":"WHO: Alcohol"},{"id":3121,"insightId":1891,"source":"https://www.cdc.gov/alcohol/fact-sheets/alcohol-use.htm","title":"CDC: Alcohol Use and Your Health"}]},{"content":"What do you know about the mind-body connection? Here is a piece of information. Dynamic people, like you, can have a stronger immune system.","icon":"wellbeing_element_blue_mood.png","id":2119,"isPositive":true,"isTip":true,"partId":2,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3506,"insightId":2119,"source":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2475648/","title":"NCBI: Stress, Energy, and Immunity"},{"id":3507,"insightId":2119,"source":"https://pubmed.ncbi.nlm.nih.gov/18589562/","title":"NCBI: The Mind-Body Connection: Not Just a Theory Anymore"},{"id":3508,"insightId":2119,"source":"https://www.health.harvard.edu/staying-healthy/how-to-boost-your-immune-system","title":"How to Boost Your Immune System"},{"id":3509,"insightId":2119,"source":"https://www.mayoclinichealthsystem.org/hometown-health/speaking-of-health/7-tips-to-live-a-happier-life","title":"7 Tips to Live a Happier Life"}]},{"content":"Your ability to stay composed is a skill worth maintaining. Whether it’s regular exercise, positive self-talk, or a consistent routine, continue doing what helps you feel in control.","icon":"wellbeing_element_aggressiveness.png","id":2073,"isPositive":true,"isTip":true,"partId":2,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3431,"insightId":2073,"source":"https://www.nhs.uk/every-mind-matters/mental-wellbeing-tips/self-help-cbt-techniques/tackling-your-worries/","title":"Tackling your worries"}]},{"content":"Clean hands, healthy lungs! Whether before preparing or having a meal or after coughing or sneezing, if you do not have access to soap and water, use alcohol-based hand sanitizers.","icon":"wellbeing_element_lungs_health.png","id":2029,"isPositive":true,"isTip":true,"partId":3,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3345,"insightId":2029,"source":"https://www.canada.ca/en/public-health/services/chronic-diseases/chronic-respiratory-diseases/keep-lungs-healthy.html","title":"How Can I Keep My Lungs Healthy?"},{"id":3346,"insightId":2029,"source":"https://www.health.state.mn.us/people/handhygiene/how/bestsoap.html#:~:text=Antibacterial%20soaps%20are%20no%20more,home%20or%20in%20public%20places.","title":"Which Soap Is Best?"}]},{"content":"How many neurons does your brain contain? The answer is approximately 100 billion neurons. Keep them busy with this exercise. Say the months of the year in alphabetical order and then in reverse alphabetical order.","icon":"wellbeing_element_cognitive_functions.png","id":2047,"isPositive":true,"isTip":true,"partId":3,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3372,"insightId":2047,"source":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2776484/","title":"NCBI: The Human Brain in Numbers"},{"id":3373,"insightId":2047,"source":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6646088/","title":"NCBI: Cognitive Training as a Strategy to Improve Neurocognitive Outcomes in Heart Failure"}]},{"content":"Lunchbox ready for tomorrow? What about the water bottle? Just like you get your meals ready for the next day, make sure you do not forget your water bottle. This is a handy tool that reminds you to drink water.","icon":"wellbeing_element_hydration_level.png","id":1936,"isPositive":false,"isTip":true,"partId":1,"ruleInsight":false,"ruleInsightType":null,"sources":[{"id":3199,"insightId":1936,"source":"https://www.cdc.gov/healthyweight/healthy_eating/water-and-healthier-drinks.html?CDC_AA_refVal=https%3A%2F%2Fwww.cdc.gov%2Fhealthywater%2Fdrinking%2Fnutrition%2Findex.html","title":"CDC: Water and Healthier Drinks"}]}]},"lingualReading":{"color":null,"lingualReading":null,"statement":null},"lowestElementScore":{"icon":"wellbeing_element_physical_activity.png","isPredictiveElement":false,"name":"Physical Activity","partId":1,"predictiveAnswer":null,"score":1.6,"scoreText":null},"name":"Sara 20","partsScore":{"body":[{"icon":"wellbeing_element_heart_health.png","isPredictiveElement":false,"name":"Heart Health","partId":3,"predictiveAnswer":null,"score":7.2,"scoreText":null},{"icon":"wellbeing_element_kidney_health.png","isPredictiveElement":false,"name":"Kidney Health","partId":3,"predictiveAnswer":null,"score":8.0,"scoreText":null},{"icon":"wellbeing_element_liver_health.png","isPredictiveElement":false,"name":"Liver Health","partId":3,"predictiveAnswer":null,"score":10.0,"scoreText":null},{"icon":"wellbeing_element_sugar_balance.png","isPredictiveElement":false,"name":"Sugar Balance","partId":3,"predictiveAnswer":null,"score":10.0,"scoreText":null},{"icon":"wellbeing_element_lungs_health.png","isPredictiveElement":false,"name":"Lungs Health","partId":3,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_cognitive_functions.png","isPredictiveElement":false,"name":"Cognitive Functions","partId":3,"predictiveAnswer":null,"score":7.0,"scoreText":null},{"icon":"wellbeing_element_diabetes_health_risk.png","isPredictiveElement":false,"name":"Diabetes Health Risk","partId":3,"predictiveAnswer":null,"score":4.0,"scoreText":null},{"icon":"wellbeing_element_thyroid_health.png","isPredictiveElement":false,"name":"Thyroid Health","partId":3,"predictiveAnswer":null,"score":2.0,"scoreText":null},{"icon":"wellbeing_element_vitamin_balance.png","isPredictiveElement":false,"name":"Vitamin Balance","partId":3,"predictiveAnswer":null,"score":2.0,"scoreText":null}],"healthRisk":[],"lifeStyle":[{"icon":"wellbeing_element_diet.png","isPredictiveElement":false,"name":"Diet","partId":1,"predictiveAnswer":null,"score":5.875,"scoreText":null},{"icon":"wellbeing_element_physical_activity.png","isPredictiveElement":false,"name":"Physical Activity","partId":1,"predictiveAnswer":null,"score":1.6,"scoreText":null},{"icon":"wellbeing_element_smoking.png","isPredictiveElement":false,"name":"Smoking","partId":1,"predictiveAnswer":null,"score":8.0,"scoreText":null},{"icon":"wellbeing_element_alcohol.png","isPredictiveElement":false,"name":"Alcohol","partId":1,"predictiveAnswer":null,"score":10.0,"scoreText":null},{"icon":"wellbeing_element_sleep.png","isPredictiveElement":false,"name":"Sleep","partId":1,"predictiveAnswer":null,"score":5.0,"scoreText":null},{"icon":"wellbeing_element_social_life.png","isPredictiveElement":false,"name":"Social Life","partId":1,"predictiveAnswer":null,"score":6.0,"scoreText":null},{"icon":"wellbeing_element_hydration_level.png","isPredictiveElement":false,"name":"Hydration Level","partId":1,"predictiveAnswer":null,"score":2.0,"scoreText":null}],"mind":[{"icon":"wellbeing_element_blue_mood.png","isPredictiveElement":false,"name":"Patient Health Questionnaire-9 (PHQ-9)","partId":2,"predictiveAnswer":null,"score":2.5925925925925926,"scoreText":null},{"icon":"wellbeing_element_aggressiveness.png","isPredictiveElement":false,"name":"Generalized Anxiety Disorder-7 (GAD-7)","partId":2,"predictiveAnswer":null,"score":3.8095238095238093,"scoreText":null}]},"patientNumber":"00906231234","photo":null,"wellbeingQuizFinishDate":null}
528
44
  }
529
45
 
530
46
  // const data={