DataInterface.class.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. <?php
  2. namespace Models {
  3. require_once 'Config/Settings.class.php';
  4. require_once 'Config/Database.class.php';
  5. require_once 'External/PHPMailer/src/PHPMailer.php';
  6. require_once 'External/PHPMailer/src/SMTP.php';
  7. require_once 'External/PHPMailer/src/Exception.php';
  8. /*
  9. require_once 'Models/User.class.php';
  10. require_once 'Tools/FS.class.php';
  11. require_once 'Tools/UUID.class.php';
  12. require_once 'Tools/Random.class.php';
  13. require_once 'Tools/Crypto.class.php';
  14. require_once 'External/dompdf_0-8-6/autoload.inc.php';
  15. require_once 'Braintree.class.php';
  16. */
  17. class DataInterface {
  18. //
  19. public $Database;
  20. public $DatabaseConnection;
  21. /**
  22. *
  23. */
  24. public function __construct() {
  25. $this->Database = new \Config\Database('iimt_mathcloud');
  26. try {
  27. $this->DatabaseConnection = $this->Database->getConnection();
  28. }
  29. catch (Exception $e) {
  30. throw $e;
  31. }
  32. }
  33. /**
  34. * Test.
  35. */
  36. public function test() {
  37. return array('result' => 'OK');
  38. }
  39. /**
  40. * Ray update.
  41. */
  42. public function rayUpdate($rayId, $userAgent, $apiKey, $ipData, $locationData) {
  43. $userAgent = addslashes($userAgent);
  44. $ipData = addslashes(json_encode($ipData));
  45. $locationData = addslashes(json_encode($locationData));
  46. $statement = $this->DatabaseConnection->prepare(
  47. "SELECT stamp FROM iimt_mathcloud_audit.ray WHERE ID = $rayId"
  48. );
  49. if(!$statement->execute()) {
  50. return array('result' => 'ERROR', 'reason' => 'internal_error', 'message' => 'Database error', 'data' => $statement->errorInfo());
  51. }
  52. $stamp = strtotime($statement->fetchAll(\PDO::FETCH_ASSOC)[0]['stamp']);
  53. $now = time();
  54. if($now - $stamp > 60 * 60 * 1) { // 1h
  55. $statement = $this->DatabaseConnection->prepare(
  56. "INSERT INTO iimt_mathcloud_audit.ray(userAgent, apiKey, ipData, locationData, userData) VALUES('$userAgent', '$apiKey', '$ipData', '$locationData', '{}')"
  57. );
  58. if(!$statement->execute()) {
  59. return array('result' => 'ERROR', 'reason' => 'internal_error', 'message' => 'Database error', 'data' => $statement->errorInfo());
  60. }
  61. $rayId = $this->DatabaseConnection->lastInsertId();
  62. }
  63. return array(
  64. 'result' => 'OK',
  65. 'rayId' => $rayId,
  66. 'age' => $now - $stamp
  67. );
  68. }
  69. /**
  70. * Ray create.
  71. */
  72. public function rayCreate($userAgent, $apiKey, $ipData, $locationData) {
  73. $userAgent = addslashes($userAgent);
  74. $ipData = addslashes(json_encode($ipData));
  75. $locationData = addslashes(json_encode($locationData));
  76. $statement = $this->DatabaseConnection->prepare(
  77. "INSERT INTO iimt_mathcloud_audit.ray(userAgent, apiKey, ipData, locationData, userData) VALUES('$userAgent', '$apiKey', '$ipData', '$locationData', '{}')"
  78. );
  79. if(!$statement->execute()) {
  80. return array('result' => 'ERROR', 'reason' => 'internal_error', 'message' => 'Database error', 'data' => $statement->errorInfo());
  81. }
  82. return array(
  83. 'result' => 'OK',
  84. 'rayId' => $this->DatabaseConnection->lastInsertId()
  85. );
  86. }
  87. /**
  88. * Audit log.
  89. */
  90. public function auditLog($id_ray, $user_data, $activity_data) {
  91. $user_data = addslashes(json_encode($user_data));
  92. $activity_data = addslashes(json_encode($activity_data));
  93. $statement = $this->DatabaseConnection->prepare(
  94. "UPDATE iimt_mathcloud_audit.ray SET userData = '$user_data' WHERE ID = $id_ray"
  95. );
  96. if(!$statement->execute()) {
  97. return array('result' => 'ERROR', 'reason' => 'internal_error', 'message' => 'Database error', 'data' => $statement->errorInfo());
  98. }
  99. $statement = $this->DatabaseConnection->prepare(
  100. "INSERT INTO iimt_mathcloud_audit.activity(ID_ray, data) VALUES($id_ray, '$activity_data')"
  101. );
  102. if(!$statement->execute()) {
  103. return array('result' => 'ERROR', 'reason' => 'internal_error', 'message' => 'Database error', 'data' => $statement->errorInfo());
  104. }
  105. }
  106. /**
  107. *
  108. */
  109. public function sendMail($from, $to, $subject, $message, $attachment) {
  110. //Create a new PHPMailer instance
  111. $mail = new \PHPMailer\PHPMailer\PHPMailer;
  112. //Server settings
  113. $mail->isSMTP();
  114. //$mail->Timeout = 60;
  115. //$mail->SMTPDebug = 2;
  116. $mail->SMTPDebug = 0;
  117. $mail->CharSet = 'UTF-8';
  118. $mail->Host = 'pf-1002.whm.fr-par.scw.cloud';
  119. $mail->Port = 465;
  120. //$mail->SMTPSecure = 'tls';
  121. //$mail->Host = 'smtp.mailtrap.io';
  122. //$mail->Port = 587;
  123. $mail->SMTPSecure = 'ssl';
  124. $mail->SMTPAuth = true;
  125. $mail->Username = "postmaster@ipsocloud.com";//"support@ipsocloud.com";
  126. $mail->Password = "m,R7Cs0Vb~Gt";//"0;XusXr)5-J6";
  127. //$mail->Username = "24fde75e8c314d";
  128. //$mail->Password = "d9a75cea3ba2cf";
  129. // Recipients
  130. $mail->setFrom($from, '');
  131. $mail->addReplyTo($from, '');
  132. $mail->addAddress($to, '');
  133. // Content
  134. $mail->Subject = $subject;
  135. $mail->isHTML(true);
  136. $mail->msgHTML($message);
  137. $mail->AltBody = strip_tags($message);
  138. if($attachment) {
  139. $mail->addAttachment($attachment, basename($attachment));
  140. }
  141. // Send the message, check for errors
  142. if (!$mail->send()) {
  143. return ['result' => 'ERROR', 'message' => $mail->ErrorInfo];
  144. }
  145. return ['result' => 'OK'];
  146. }
  147. public static $translation = [
  148. 'fr' => [
  149. // page 1
  150. 'title2' => "Rapport échographique EIMC",
  151. 'title6' => "Rapport échographique 6 images",
  152. 'patientID' => "Identifiant",
  153. 'patientName' => "Nom patient",
  154. 'patientBirth' => "Date de naissance",
  155. 'visitID' => "Numéro de visite",
  156. 'institution' => "Etablissement",
  157. 'physician' => "Praticien",
  158. 'imt_avg' => "EIM moy",
  159. 'imt_max' => "EIM max",
  160. 'plaque' => "Plaque",
  161. 'thk_max' => "Epaisseur max",
  162. 'surface' => "Surface",
  163. 'thk' => "Epaisseur",
  164. 'thk_plaque' => "Epaisseur de plaque",
  165. 'diameter' => "Diamètre",
  166. 'left' => "Gauche",
  167. 'right' => "Droite",
  168. // carotid
  169. 'carotid_left_biffurcation' => "Bifurcation Carotide Gauche",
  170. 'carotid_left_commune' => "A.Carotide Commune Gauche",
  171. 'carotid_left_interne' => "A.Carotide Interne Gauche",
  172. 'carotid_left_subclaviere' => "A.Subclavière Gauche",
  173. 'carotid_left_tronc' => "Tronc Artériel Brachio Céphalique",
  174. 'carotid_left_v0' => "A.Vertèbrale Gauche: V0",
  175. 'carotid_left_v1' => "A.Vertèbrale Gauche: V1",
  176. 'carotid_left_v2' => "A.Vertèbrale Gauche: V2",
  177. 'carotid_left_externe' => "A.Carotide Externe Gauche",
  178. 'carotid_left_linguale' => "A.Faciale Gauche",
  179. 'carotid_left_thyroide' => "A.Temporale Superficielle Gauche",
  180. 'carotid_right_biffurcation' => "Bifurcation Carotide Droite",
  181. 'carotid_right_commune' => "A.Carotide Commune Droite",
  182. 'carotid_right_interne' => "A.Carotide Interne Droite",
  183. 'carotid_right_subclaviere' => "A.Subclavière Droite",
  184. 'carotid_right_tronc' => "Tronc Artériel Brachio Céphalique",
  185. 'carotid_right_v0' => "A.Vertèbrale Droite: V0",
  186. 'carotid_right_v1' => "A.Vertèbrale Droite: V1",
  187. 'carotid_right_v2' => "A.Vertèbrale Droite: V2",
  188. 'carotid_right_externe' => "A.Carotide Externe Droite",
  189. 'carotid_right_linguale' => "A.Faciale Droite",
  190. 'carotid_right_thyroide' => "A.Temporale Superficielle Droite",
  191. // mbsup
  192. 'mbsup_left_aradiale' => "A.Radiale Gauche",
  193. 'mbsup_left_ahumerale' => "A.Brachiale Gauche",
  194. 'mbsup_left_acubitale' => "A.Cubitale Gauche",
  195. 'mbsup_left_aaxillaire' => "A.Axilaire Gauche",
  196. 'mbsup_left_asubclav' => "A.Subclavière Gauche",
  197. 'mbsup_right_aradiale' => "A.Radiale Droite",
  198. 'mbsup_right_ahumerale' => "A.Brachiale Droite",
  199. 'mbsup_right_acubitale' => "A.Cubitale Droite",
  200. 'mbsup_right_aaxillaire' => "A.Axilaire Droite",
  201. 'mbsup_right_asubclav' => "A.Subclavière Droite",
  202. // mbinf
  203. 'mbinf_left_aorteabdo' => "Aorte abdominale",
  204. 'mbinf_left_ailiaque' => "A.Iliaque Gauche",
  205. 'mbinf_left_afemoralesup' => "A.Iliaque Externe Gauche",
  206. 'mbinf_left_afemoralesups' => "A.Fémorale Profonde Gauche",
  207. 'mbinf_left_afemoralepro' => "A.Iliaque Commune Gauche",
  208. 'mbinf_left_apoplitee' => "A.Poplitée Gauche",
  209. 'mbinf_left_apoplitees' => "A.Fémorale Commune Gauche",
  210. 'mbinf_left_atibialepost' => "A.Tibiale Postérieure Gauche",
  211. 'mbinf_right_aorteabdo' => "Aorte abdominale",
  212. 'mbinf_right_ailiaque' => "A.Iliaque Droite",
  213. 'mbinf_right_afemoralesup' => "A.Iliaque Externe Droite",
  214. 'mbinf_right_afemoralesups' => "A.Fémorale Profonde Droite",
  215. 'mbinf_right_afemoralepro' => "A.Iliaque Commune Droite",
  216. 'mbinf_right_apoplitee' => "A.Poplitée Droite",
  217. 'mbinf_right_apoplitees' => "A.Fémorale Commune Droite",
  218. 'mbinf_right_atibialepost' => "A.Tibiale Postérieure Droite",
  219. // abdo
  220. 'abdo__hepatic' => "A.Hépatique",
  221. 'abdo__splenic' => "A.Splénique",
  222. 'abdo__hepaticpropre' => "A.Hépatique propre",
  223. 'abdo__renaledroite' => "A.Rénale droite",
  224. 'abdo__renalegauche' => "A.Rénale gauche",
  225. 'abdo__mesentericsup' => "A.Mésentérique supérieure",
  226. 'abdo__mesentericinf' => "A.Mésentérique inférieure",
  227. 'abdo__aorte' => "Aorte",
  228. // incidence
  229. 'anterior' => "Antérieure",
  230. 'lateral' => "Latérale",
  231. 'posterior' => "Postérieure",
  232. // page 2
  233. 'p2_title' => "Valeurs de référence",
  234. 'M' => 'Homme',
  235. 'F' => 'Femme',
  236. 'age' => "Age",
  237. '25percent' => "25ème pctle",
  238. '50percent' => "50ème pctle",
  239. '75percent' => "75ème pctle",
  240. 'imt_mean_distal' => "EIM Moyen Distale (mm)",
  241. 'indications' => "Indications",
  242. 'clinical' => "Signes clinique",
  243. 'report' => "Rapport",
  244. 'conclusion' => "Conclusion",
  245. 'PARC' => "Europe, France, 30-79 ans, PARC 2009 (Moyenne)",
  246. 'ARIC_CAUCASIAN' => "USA, 35-85 ans, Caucasien, ARIC 1993 (D+G). Valeurs extrapolés < à 45 et > à 65",
  247. 'ARIC_AFRICAN' => "USA, 35-85 ans, Afro Americain, ARIC 1993 (D+G). Valeurs extrapolés < à 45 et > à 65",
  248. 'disclaimer' => "Les informations et/ou les résultats fournis ici ne doivent pas être utilisés lors d'une urgence médicale ou pour le diagnostic ou le traitement de toute condition médicale. Un médecin agréé doit être consulté pour établir le diagnostic et le traitement éventuel. Votre médecin doit interpréter les résultats de cette mesure en conjonction avec vos autres facteurs de risque. Le traitement de vos éventuels facteurs de risque doit être prescription par votre médecin.",
  249. // page 3
  250. 'p3_title' => "La mesure de l'épaisseur intima média (EIM) : considérations générales",
  251. 'p3_subtitle1' => "Qu'est-ce que l'épaisseur intima média ?",
  252. 'p3_text1' => "Anatomiquement, comme son nom le dit, l'épaisseur intima média concerne les 2 premières couches formant la paroi artérielle : l'intima, formée d'une seule couche de cellules et la média couche formée de cellules musculaires lisses susceptibles de se multiplier sous l'effet de stimulations mécaniques telle que l'augmentation de la pression artérielle.<br>Sur l'image échographique on différencie l'EIM de la plaque :<br>L'épaisseur Intima média est une structure caractéristique des parois de l'artère carotide commune visualisée par échographie et formant un liseré bien délimité. La plaque est un décrochage observé dans la lumière artérielle du à un dépôt d'une épaisseur au moins égale à 0.5 mm.",
  253. 'p3_subtitle2' => "Pourquoi est ce important ?",
  254. 'p3_text2' => "Les travaux menés par de nombreuses équipes à travers le monde ont largement démontré la valeur de ce marqueur pour prédire le risque de survenue d'un infarctus du myocarde ou d'une attaque cérébrale.<br>L'épaisseur intima média est également associée de façon significative aux principaux facteurs de risque d'athérosclérose au premier rang desquels l'hypertension artérielle. Celle ci participe pour plus de 50% à l'augmentation de l'EIM et reste le facteur modifiable le plus important après l'âge. Elle contribue à l'évaluation du risque cardio-vasculaire chez un individu.",
  255. 'p3_subtitle3' => "Comment la mesure t-on ?",
  256. 'p3_text3' => "Les conclusions d'un consensus d'experts internationaux initié en 2004 et repris en 2006 ont permis de définir précisément l'EIM et la plaque carotides. Ce même consensus recommande de mesurer l'EIM au niveau de la partie basse de l'artère.<br>En pratique l'examen échographique de l'artère carotide permet de figer une image de cette artère et de pratiquer sa mesure automatiquement à l'aide d'un logiciel",
  257. 'p3_subtitle4' => "Quand pratiquer une mesure de l'épaisseur intima média ?",
  258. 'p3_text4' => "La présence de facteurs de risque d'athérosclérose c'est à dire principalement de l'hypertension artérielle, d'une dyslipidémie, d'un diabète, d'une consommation de tabac ou d'une surcharge pondérale s'accompagne d'une augmentation de l'EIM dans bon nombre de cas et ce d'autant qu'ils sont associés.<br>Cette mesure procure une information pertinente chez des sujets présentant un ou plusieurs facteurs de risque, car elle met en évidence lorsqu'elle est augmentée l'atteinte d'un organe cible et permet de mieux évaluer le risque cardio vasculaire individuel. Il n'y a toutefois aucun intérêt pour le patient à surveiller son évolution en dehors d'une étude épidémiologique ou médicamenteuse.",
  259. 'p3_subtitle5' => "Suggestions pour maintenir votre système vasculaire en bonne santé :",
  260. 'p3_text5' => "- Arrêter de fumer<br>- Manger une nourriture saine et pauvre en graisse<br>- Si vous êtes en surpoids, parlez-en à votre médecin afin de traiter votre surcharge pondérale<br>- Faites surveiller votre pression artérielle et votre cholestérol<br>- Pratiquez une activité physique régulière",
  261. ],
  262. 'en' => [
  263. // page 1
  264. 'title2' => "CIMT ultrasound report",
  265. 'title6' => "Six images report",
  266. 'patientID' => "Patient ID",
  267. 'patientName' => "Patient name",
  268. 'patientBirth' => "Date of birth",
  269. 'visitID' => "Visit number",
  270. 'institution' => "Organization",
  271. 'physician' => "Physician",
  272. 'imt_avg' => "IMT avg",
  273. 'imt_max' => "IMT max",
  274. 'plaque' => "Plaque",
  275. 'thk_max' => "Thickness max",
  276. 'surface' => "Surface",
  277. 'thk' => "Thickness",
  278. 'thk_plaque' => "Plaque thickness",
  279. 'diameter' => "Diameter",
  280. 'left' => "Left",
  281. 'right' => "Right",
  282. // carotid
  283. 'carotid_left_biffurcation' => "Left Carotid Bifurcation",
  284. 'carotid_left_commune' => "Left Common Carotid Artery",
  285. 'carotid_left_interne' => "Left Internal Carotid Artery",
  286. 'carotid_left_subclaviere' => "Left Subclavian Artery",
  287. 'carotid_left_tronc' => "Brachio Cephalic Arterial Trunk",
  288. 'carotid_left_v0' => "Left V0 Vertebral Segment",
  289. 'carotid_left_v1' => "Left V1 Vertebral Segment",
  290. 'carotid_left_v2' => "Left V2 Vertebral Segment",
  291. 'carotid_left_externe' => "Left External Carotid Artery",
  292. 'carotid_left_linguale' => "Left Facial Artery",
  293. 'carotid_left_thyroide' => "Left Superficial Temporal Artery",
  294. 'carotid_right_biffurcation' => "Right Carotid Bifurcation",
  295. 'carotid_right_commune' => "Right Common Carotid Artery",
  296. 'carotid_right_interne' => "Right Internal Carotid Artery",
  297. 'carotid_right_subclaviere' => "Right Subclavian Artery",
  298. 'carotid_right_tronc' => "Brachio Cephalic Arterial Trunk",
  299. 'carotid_right_v0' => "Right V0 Vertebral Segment",
  300. 'carotid_right_v1' => "Right V1 Vertebral Segment",
  301. 'carotid_right_v2' => "Right V2 Vertebral Segment",
  302. 'carotid_right_externe' => "Right External Carotid Artery",
  303. 'carotid_right_linguale' => "Right Facial Artery",
  304. 'carotid_right_thyroide' => "Right Superficial Temporal Artery",
  305. // mbsup
  306. 'mbsup_left_aradiale' => "Left Radial Artery",
  307. 'mbsup_left_ahumerale' => "Left Brachial Artery",
  308. 'mbsup_left_acubitale' => "Left Cubital Artery",
  309. 'mbsup_left_aaxillaire' => "Left Axillary Artery",
  310. 'mbsup_left_asubclav' => "Left Subclavian Artery",
  311. 'mbsup_right_aradiale' => "Right Radial Artery",
  312. 'mbsup_right_ahumerale' => "Right Brachial Artery",
  313. 'mbsup_right_acubitale' => "Right Cubital Artery",
  314. 'mbsup_right_aaxillaire' => "Right Axillary Artery",
  315. 'mbsup_right_asubclav' => "Right Subclavian Artery",
  316. // mbinf
  317. 'mbinf_left_aorteabdo' => "Abdominal Aorta",
  318. 'mbinf_left_ailiaque' => "Left Iliac Artery",
  319. 'mbinf_left_afemoralesup' => "Left External Iliac Artery",
  320. 'mbinf_left_afemoralesups' => "Left Deep Femoral Artery",
  321. 'mbinf_left_afemoralepro' => "Left Common Iliac Artery",
  322. 'mbinf_left_apoplitee' => "Left Popliteal Artery",
  323. 'mbinf_left_apoplitees' => "Left Common Femoral Artery",
  324. 'mbinf_left_atibialepost' => "Left Posterior Tibial Artery",
  325. 'mbinf_right_aorteabdo' => "Abdominal Aorta",
  326. 'mbinf_right_ailiaque' => "Right Iliac Artery",
  327. 'mbinf_right_afemoralesup' => "Right External Iliac Artery",
  328. 'mbinf_right_afemoralesups' => "Right Deep Femoral Artery",
  329. 'mbinf_right_afemoralepro' => "Right Common Iliac Artery",
  330. 'mbinf_right_apoplitee' => "Right Popliteal Artery",
  331. 'mbinf_right_apoplitees' => "Right Common Femoral Artery",
  332. 'mbinf_right_atibialepost' => "Right Posterior Tibial Artery",
  333. // abdo
  334. 'abdo__hepatic' => "Hepatic Artery",
  335. 'abdo__splenic' => "Splenic Artery",
  336. 'abdo__hepaticpropre' => "Hepatic Artery Proper",
  337. 'abdo__renaledroite' => "Right renal Artery",
  338. 'abdo__renalegauche' => "Left renal Artery",
  339. 'abdo__mesentericsup' => "Superior Mesenteric Artery",
  340. 'abdo__mesentericinf' => "Inferior Mesenteric artery",
  341. 'abdo__aorte' => "Aorta",
  342. // incidence
  343. 'anterior' => "Anterior",
  344. 'lateral' => "Lateral",
  345. 'posterior' => "Posterior",
  346. // page 2
  347. 'p2_title' => "Reference values",
  348. 'M' => 'Male',
  349. 'F' => 'Female',
  350. 'age' => "Age",
  351. '25percent' => "25th pctle",
  352. '50percent' => "50th pctle",
  353. '75percent' => "75th pctle",
  354. 'imt_mean_distal' => "Distal Mean IMT (mm)",
  355. 'indications' => "Indications",
  356. 'clinical' => "Clinical signs",
  357. 'report' => "Report",
  358. 'conclusion' => "Conclusion",
  359. 'PARC' => "Europe, France, 30-79 years, PARC 2009 (Mean)",
  360. 'ARIC_CAUCASIAN' => "USA, 35-85 years, Caucasian, ARIC 1993 (R+L). Extrapolated values below 45 and over 65",
  361. 'ARIC_AFRICAN' => "USA, 35-85 years, African American, ARIC 1993 (R+L). Extrapolated values below 45 and over 65",
  362. 'disclaimer' => "The information and or results provided herein should not be used during any medical emergency or for the diagnosis or treatment of any medical condition. A licensed physician should be consulted for diagnosis and treatment of any and all medical conditions. Your Doctor should interpret this IMT results in conjunction with your other risk factors. Risk factor modifications should be made with the consultation of your Doctor. Call 911 for all medical emergencies.",
  363. // page 3
  364. 'p3_title' => "Intima media thickness measurement (IMT)",
  365. 'p3_subtitle1' => "What is IMT ?",
  366. 'p3_text1' => "Intima media thickness is made of the 2 first internal layers of the arterial wall: the intima, very thin layer which protects the artery from local deposits of blood components and the media composed of muscle cells which increase their number with high blood pressure. Its representation on ultrasound image a regular double line pattern well seen on the far wall of the common carotid artery.<br>Plaque is a focal encroachment into the arterial lumen.",
  367. 'p3_subtitle2' => "Why is it important ?",
  368. 'p3_text2' => "The non modifiable risk factors that may influence IMT values are age sex and genetics, High blood pressure, lipids, diabetes and smoking are the modifiable factors on which life style modifications and drugs can be recommended.<br>Increased IMT can predict clinical outcomes as myocardial infarction and stroke. This has been validated by many prospective studies.",
  369. 'p3_subtitle3' => "How is it measured ?",
  370. 'p3_text3' => "The conclusions of an international consensus of experts initiated in 2004 and revised in 2006 have precisely defined carotid IMT and plaque. This consensus recommends measuring IMT at the lower level of the carotid artery called common carotid.<br>In practice, the ultrasound examination of the carotid artery consists in freezing an image of this artery and automatically measuring it with a software. The results are expressed as the mean value over a 10mm segment of common carotid artery",
  371. 'p3_subtitle4' => "When to measure Intima Media Thickness ?",
  372. 'p3_text4' => "The presence of atherosclerosis risk factors, that is mainly arterial hypertension, dyslipemia, diabetes, smoking or overweight, comes with an increase of IMT in many cases and even more if they are associated.<br>This measurement shows great information on subjects who have one or more risk factors as it reveals when increased a target organ damage and facilitates the individual cardio-vascular risk evaluation. However, there is no need to watch its evolution outside of epidemiological or interventional studies.",
  373. 'p3_subtitle5' => "Suggestions for maintaining a healthy vascular system.",
  374. 'p3_text5' => "- Stop smoking.<br>- Eat a healthy, low fat diet.<br>- Talk to your doctor if you are overweight to plan the best weight loss strategy for you.<br>- Maintain good cholesterol levels.<br>- Maintain blood pressure in a normal range<br>- Exercise regularly - even a moderate walking program can be effective.",
  375. ]
  376. ];
  377. }
  378. }
  379. ?>