contraindications + various fixesÃ
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import {PageHomeComponent} from "./pages/page-home/page-home.component";
|
||||
import {PageFormComponent} from "./pages/page-form/page-form.component";
|
||||
|
||||
const routes: Routes = [];
|
||||
const routes: Routes = [
|
||||
|
||||
{ path: "", redirectTo: "home", pathMatch: "full" },
|
||||
{ path: "home", component: PageHomeComponent },
|
||||
{ path: "form", component: PageFormComponent },
|
||||
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
|
||||
@@ -1 +1,9 @@
|
||||
<app-page-form></app-page-form>
|
||||
<div class="app">
|
||||
<app-header></app-header>
|
||||
<div class="container">
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<app-made-by></app-made-by>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
.container {
|
||||
width: 60%;
|
||||
margin: 0 auto 100px;
|
||||
}
|
||||
|
||||
.app {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.container {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.footer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,10 @@ import {HttpClientModule} from "@angular/common/http";
|
||||
import { ResultsComponent } from './compos/results/results.component';
|
||||
import { TreatmentDetailsModalComponent } from './compos/treatment-details-modal/treatment-details-modal.component';
|
||||
import { FormattedLineComponent } from './compos/treatment-details-modal/formatted-line/formatted-line.component';
|
||||
import { PageHomeComponent } from './pages/page-home/page-home.component';
|
||||
import {ContraindicationsModalComponent} from "./compos/contraindications-modal/contraindications-modal.component";
|
||||
import { HeaderComponent } from './compos/header/header.component';
|
||||
import { MadeByComponent } from './compos/made-by/made-by.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
@@ -23,7 +27,11 @@ import { FormattedLineComponent } from './compos/treatment-details-modal/formatt
|
||||
LogoComponent,
|
||||
ResultsComponent,
|
||||
TreatmentDetailsModalComponent,
|
||||
ContraindicationsModalComponent,
|
||||
FormattedLineComponent,
|
||||
PageHomeComponent,
|
||||
HeaderComponent,
|
||||
MadeByComponent,
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
|
||||
@@ -0,0 +1,207 @@
|
||||
<div class="container">
|
||||
|
||||
<div class="modal">
|
||||
<div class="header">
|
||||
<h1>Contre-indications</h1>
|
||||
<button title="Fermer les contre-indications" (click)="onClose.emit()">X</button>
|
||||
</div>
|
||||
<div class="scrollable">
|
||||
|
||||
|
||||
<details class="section">
|
||||
<summary>Contraceptions oestroprogestatives</summary>
|
||||
<h3 class="warn">Contre-indications absolues:</h3>
|
||||
<div class="sub-section warn">
|
||||
<p>Accidents (ou antécédents d’accidents) thromboemboliques artériels ou veineux</p>
|
||||
<p>Antécédents familiaux du 1er degré (MVTE avant 50 ans ou IDM / AVC avant 55 ans pour les hommes ou 65 ans
|
||||
pour les femmes) (Vidal)</p>
|
||||
<p>Prédisposition héréditaire ou acquise aux thromboses veineuses ou artérielles:</p>
|
||||
<ul>
|
||||
<li>Thrombophilie héréditaire</li>
|
||||
<li>Résistance à la protéine C activée/facteur V Leiden</li>
|
||||
<li>Mutation du gène de la prothrombine</li>
|
||||
<li>Déficit en antithrombine 3, protéine C, protéine S</li>
|
||||
<li>SAPL</li>
|
||||
</ul>
|
||||
<p>Alitement prolongé ou situation à risque thromboembolique (chirurgies majeures)</p>
|
||||
<p>Pancréatite ou antécédents de pancréatite associée à une hypertriglycéridémie sévère</p>
|
||||
<p>Lupus évolutif, connectivites, porphyries, drépanocytose</p>
|
||||
<p>Migraine avec aura, migraine sans aura > 35 ans</p>
|
||||
<p>Cardiopathie ischémique ou thrombogène, valvulopathie compliquée</p>
|
||||
<p>Hypertension artérielle non contrôlée ou associée à d’autres facteurs de risques cardio-vasculaires.</p>
|
||||
<p>Diabète de type 1 en présence d’un seul des facteurs de risque suivants associé au diabète:</p>
|
||||
<ul>
|
||||
<li>tabagisme</li>
|
||||
<li>âge > 35 ans</li>
|
||||
<li>surpoids-obésité</li>
|
||||
<li>hypertension artérielle</li>
|
||||
<li>dyslipidémie (y compris contrôlée)</li>
|
||||
<li>migraine simple ou avec aura</li>
|
||||
<li>antécédent familial au 1er degré d’infarctus du myocarde ou d’AVC avant 55 ans chez les hommes ou avant
|
||||
65
|
||||
ans chez les femmes
|
||||
</li>
|
||||
<li>diabète connu depuis plus de 20 ans</li>
|
||||
<li>complication cardiovasculaire du diabète: rétinopathie proliférante, néphropathie avec insuffisance
|
||||
rénale, neuropathie, pathologie cardiovasculaire
|
||||
</li>
|
||||
</ul>
|
||||
<p>Diabète de type 2 quel que soit le stade de la maladie (car contexte à risque cardiovasculaire
|
||||
d’emblée)</p>
|
||||
<p>Tumeur maligne connue ou suspectée du sein, de l’utérus ou autre tumeur hormonodépendante</p>
|
||||
<p>Affections hépatiques sévères ou récentes</p>
|
||||
<p>Hyperplasie de l’endomètre, hémorragies génitales non diagnostiquées</p>
|
||||
<p>Association de plusieurs facteurs de risques cardiovasculaires (isolément sont des contre-indications
|
||||
relatives)</p>
|
||||
<p>Post partum < 6 semaines</p>
|
||||
<p>Antécédents de cholestase gravidique</p>
|
||||
<p>Tabac >35a</p>
|
||||
<p>Dyslipidémie sévère (LDL-c > 2.2 g/l ou TG > 2 g/l)</p>
|
||||
<p>Insuffisance rénale chronique sévère</p>
|
||||
<p>Hyperbilirubinémies familiales: maladie de Dubin-Johnson, syndrome de Rotor.</p>
|
||||
<p>Hépatite virale aiguë en évolution, Affections hépatiques sévères.</p>
|
||||
<p>Otosclérose.</p>
|
||||
</div>
|
||||
|
||||
<h3>Contre-indications relatives:</h3>
|
||||
<div class="sub-section">
|
||||
<p>Age > 40ans</p>
|
||||
<p>Post partum entre 6 et 12 sem</p>
|
||||
<p>Diabète de type 1 non compliqué</p>
|
||||
<p>Dyslipidémie non sévère, contrôlée (LDL < 2.2 g/l ET TG < 2 g/l) si pas d’autres facteurs de risque</p>
|
||||
<p>Obésité</p>
|
||||
<p>Diabète de type I</p>
|
||||
<p>Tumeurs bénignes du sein ou de l’utérus;</p>
|
||||
<p>Hyperprolactinémie sans diagnostic étiologique préalable;</p>
|
||||
<p>Inducteurs enzymatiques, interactions médicamenteuses: rifampicine, antiépileptiques, ampicilline,
|
||||
néomycine,
|
||||
tétracyclines, nitrofurantoïne, antidépresseurs, méthyldopa, troléandomycine, millepertuis.</p>
|
||||
<p>Maladies inflammatoires chroniques intestinales (MICI), syndrome hémolytique et urémique (SHU).</p>
|
||||
<p>Varices importantes</p>
|
||||
<p>Fibromes utérins volumineux, compressifs</p>
|
||||
<p>Epilepsie</p>
|
||||
<p>Dysplasie cervicale</p>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
|
||||
<details class="section">
|
||||
<summary>Contraceptions microprogestatives orales</summary>
|
||||
|
||||
<h3 class="warn">Contres indications absolues</h3>
|
||||
<div class="sub-section warn">
|
||||
<p>Cancers du sein ou de l’endomètre, cancer hormonodépendant</p>
|
||||
<p>Insuffisance hépatique, maladie hépatique sévère</p>
|
||||
<p>Accidents thromboemboliques veineux récents ou en cours</p>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
|
||||
<details class="section">
|
||||
<summary>Implant à l’étonorgestrel</summary>
|
||||
<h3 class="warn">Contres indications absolues</h3>
|
||||
<div class="sub-section warn">
|
||||
<p>Cancers du sein ou de l’endomètre, cancer hormonodépendant</p>
|
||||
<p>Insuffisance hépatique, maladie hépatique sévère</p>
|
||||
<p>Accidents thromboemboliques veineux récents ou en cours</p>
|
||||
</div>
|
||||
</details>
|
||||
<details class="section">
|
||||
<summary>Dispositif intra-utérin</summary>
|
||||
|
||||
<h3 class="warn">Contres indications absolues</h3>
|
||||
<div class="sub-section warn">
|
||||
<p>Cancers du sein ou de l’endomètre, cancer hormonodépendant</p>
|
||||
<p>Insuffisance hépatique, maladie hépatique sévère</p>
|
||||
<p>Accidents thromboemboliques veineux récents ou en cours</p>
|
||||
<p>IGH en cours ou récente</p>
|
||||
<p>Malformation utérine déformant la cavité utérine</p>
|
||||
<p>Saignement d’origine génitale inexpliqué</p>
|
||||
<p>Cardiopathie valvulaire</p>
|
||||
</div>
|
||||
|
||||
<h3>Contres indications relatives</h3>
|
||||
<div class="sub-section">
|
||||
<p>Antécédent de Grossesse extra-utérin</p>
|
||||
<p>Myomes utérins (fibromes) avec déformation de la cavité utérine</p>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="section">
|
||||
|
||||
<summary>Dispositif intra-utérin au cuivre</summary>
|
||||
|
||||
<h3 class="warn">Contres indications absolues</h3>
|
||||
<div class="sub-section warn">
|
||||
<p>IGH en cours ou récente</p>
|
||||
<p>Malformation utérine déformant la cavité utérine</p>
|
||||
<p>Saignement d’origine génitale inexpliqué</p>
|
||||
<p>Cardiopathie valvulaire (risque septique)</p>
|
||||
</div>
|
||||
|
||||
<h3>Contres indications relatives</h3>
|
||||
<div class="sub-section">
|
||||
<p>Antécédent de Grossesse extra-utérin ou d'IGH</p>
|
||||
<p>Myomes utérins (fibromes) avec déformation de la cavité utérine</p>
|
||||
<p>Hypersensibilité ou allergie au cuivre pour les DIU au cuivre (maladie de Wilson)</p>
|
||||
</div>
|
||||
|
||||
</details>
|
||||
<details class="section">
|
||||
<summary>Diaphragme cervical</summary>
|
||||
|
||||
<h3 class="warn">Contres indications absolues</h3>
|
||||
<div class="sub-section warn">
|
||||
<p>Malformation vaginale/cervicale</p>
|
||||
<p>Prolapsus génital</p>
|
||||
<p>Infection vaginale ou IGH en cours</p>
|
||||
<p>Post partum < 6 semaines</p>
|
||||
<p>Allergie au silicone (ou au latex pour les dispositifs à base de latex)</p>
|
||||
</div>
|
||||
|
||||
</details>
|
||||
<details class="section">
|
||||
<summary>Spermicide</summary>
|
||||
|
||||
<h3 class="warn">Contres indications absolues</h3>
|
||||
<div class="sub-section warn">
|
||||
<p>Allergie ou hypersensibilité à l’un des composants</p>
|
||||
</div>
|
||||
|
||||
</details>
|
||||
<details class="section">
|
||||
<summary>Stérilisation définitive féminine</summary>
|
||||
|
||||
<h3 class="warn">Contres indications absolues</h3>
|
||||
<div class="sub-section warn">
|
||||
<p>Post partum < 6 semaines (sauf si durant une césarienne)</p>
|
||||
<p>Âge < 18 ans</p>
|
||||
<p>Troubles sévères de la coagulation</p>
|
||||
</div>
|
||||
|
||||
<h3>Contres indications relatives</h3>
|
||||
<div class="sub-section">
|
||||
<p>Majeur sous tutelle ou curatelle (possible sous conditions)</p>
|
||||
</div>
|
||||
|
||||
</details>
|
||||
<details class="section">
|
||||
<summary>Stérilisation définitive masculine</summary>
|
||||
|
||||
<h3 class="warn">Contres indications absolues</h3>
|
||||
<div class="sub-section warn">
|
||||
<p>Âge < 18 ans</p>
|
||||
<p>Troubles sévères de la coagulation</p>
|
||||
<p>Hernie inguinale descendant dans le scrotum</p>
|
||||
<p>Antécédent de chirurgie au niveau des testicules empêchant de palper les canaux déférents.</p>
|
||||
</div>
|
||||
|
||||
<h3>Contres indications relatives</h3>
|
||||
<div class="sub-section">
|
||||
<p>Majeur sous tutelle ou curatelle (possible sous conditions)</p>
|
||||
</div>
|
||||
|
||||
</details>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,100 @@
|
||||
@import "../../../styles/variables.scss";
|
||||
|
||||
.container {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 999;
|
||||
background-color: #00000033;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.modal {
|
||||
position: relative;
|
||||
height: 80vh;
|
||||
width: 80vw;
|
||||
max-width: 80vw;
|
||||
background-color: #FFFFFF;
|
||||
padding: 32px;
|
||||
border-radius: 32px;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 32px;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 2px solid $border-color;
|
||||
|
||||
& button {
|
||||
border: none;
|
||||
background-color: $color-E;
|
||||
color: white;
|
||||
font-size: 2em;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($color-E, 10%);
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.scrollable {
|
||||
overflow-y: auto;
|
||||
max-height: 90%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
font-weight: 500;
|
||||
color: $color-B;
|
||||
}
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
color: $color-B;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1em;
|
||||
margin-bottom: 8px;
|
||||
font-weight: 500;
|
||||
margin-top: 36px;
|
||||
color: $color-E;
|
||||
|
||||
&.warn {
|
||||
color: $color-D;
|
||||
}
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: 16px;
|
||||
border-bottom: 2px solid $border-color;
|
||||
}
|
||||
|
||||
.sub-section {
|
||||
border-left: 4px solid $color-B;
|
||||
padding-left: 8px;
|
||||
line-height: 24px;
|
||||
|
||||
&.warn {
|
||||
border-color: $color-D;
|
||||
}
|
||||
}
|
||||
|
||||
p, ul {
|
||||
list-style: inherit;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-left: 12px;
|
||||
margin-bottom: 30px;
|
||||
padding-left: 24px;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import {Component, EventEmitter, HostListener, OnInit, Output} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-contraindications-modal',
|
||||
templateUrl: './contraindications-modal.component.html',
|
||||
styleUrls: ['./contraindications-modal.component.scss']
|
||||
})
|
||||
export class ContraindicationsModalComponent implements OnInit {
|
||||
|
||||
@Output() onClose: EventEmitter<void> = new EventEmitter();
|
||||
|
||||
@HostListener('document:keydown.escape', ['$event']) onKeydownHandler(event: KeyboardEvent) {
|
||||
this.onClose.emit();
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
10
src/app/compos/header/header.component.html
Normal file
10
src/app/compos/header/header.component.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<app-progress [progress]="currentProgress"></app-progress>
|
||||
<div class="container">
|
||||
<app-logo [routerLink]="['/home']"></app-logo>
|
||||
<button (click)="showContraindications()" class="btn primary">Contre-indications</button>
|
||||
</div>
|
||||
|
||||
|
||||
<ng-container *ngIf="contraindicationsShown">
|
||||
<app-contraindications-modal (onClose)="closeContraindications()"></app-contraindications-modal>
|
||||
</ng-container>
|
||||
12
src/app/compos/header/header.component.scss
Normal file
12
src/app/compos/header/header.component.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
.container {
|
||||
width: 60%;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 16px 0;
|
||||
}
|
||||
|
||||
app-logo {
|
||||
cursor: pointer;
|
||||
}
|
||||
29
src/app/compos/header/header.component.ts
Normal file
29
src/app/compos/header/header.component.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {ProgressService} from "../../services/progress.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-header',
|
||||
templateUrl: './header.component.html',
|
||||
styleUrls: ['./header.component.scss']
|
||||
})
|
||||
export class HeaderComponent implements OnInit {
|
||||
|
||||
currentProgress: number = 0;
|
||||
contraindicationsShown = false;
|
||||
|
||||
constructor(private progressService: ProgressService) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.progressService.currentProgress.subscribe((value) => {
|
||||
this.currentProgress = value;
|
||||
});
|
||||
}
|
||||
|
||||
closeContraindications() {
|
||||
this.contraindicationsShown = false;
|
||||
}
|
||||
|
||||
showContraindications() {
|
||||
this.contraindicationsShown = true;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
@import "../../../styles/variables.scss";
|
||||
|
||||
.logo {
|
||||
margin-top: 32px;
|
||||
font-weight: 500;
|
||||
color: $color-A;
|
||||
font-size: 32px;
|
||||
|
||||
1
src/app/compos/made-by/made-by.component.html
Normal file
1
src/app/compos/made-by/made-by.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<div>Made with ♥ by <a target="_blank" href="https://flusin.ovh">Jérémy Flusin</a> and <a target="_blank" href="https://angular.io">Angular</a></div>
|
||||
4
src/app/compos/made-by/made-by.component.scss
Normal file
4
src/app/compos/made-by/made-by.component.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
div {
|
||||
font-size: 0.8em;
|
||||
color: #bbb;
|
||||
}
|
||||
15
src/app/compos/made-by/made-by.component.ts
Normal file
15
src/app/compos/made-by/made-by.component.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-made-by',
|
||||
templateUrl: './made-by.component.html',
|
||||
styleUrls: ['./made-by.component.scss']
|
||||
})
|
||||
export class MadeByComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,8 +1,4 @@
|
||||
<app-progress [progress]="computeProgress()"></app-progress>
|
||||
|
||||
|
||||
<div class="container" *ngIf="question">
|
||||
<app-logo></app-logo>
|
||||
|
||||
<div class="hasTaken block">
|
||||
<h2>Question {{question.id}}</h2>
|
||||
|
||||
@@ -18,9 +18,6 @@ h2 {
|
||||
|
||||
.container {
|
||||
|
||||
width: 60%;
|
||||
margin: 0 auto;
|
||||
|
||||
.block {
|
||||
display: flex;
|
||||
gap: 32px;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
||||
import {Question, QUESTIONS, Symptom} from "../../questions.constants";
|
||||
import {AnswersService} from "../../services/answers.service";
|
||||
import {ProgressService} from "../../services/progress.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-question',
|
||||
@@ -16,6 +17,7 @@ export class QuestionComponent {
|
||||
@Input() set question(question: Question) {
|
||||
this._question = question;
|
||||
this.isFirstOrLast();
|
||||
this.computeProgress();
|
||||
}
|
||||
|
||||
@Output() onValidate: EventEmitter<void> = new EventEmitter<void>();
|
||||
@@ -26,7 +28,7 @@ export class QuestionComponent {
|
||||
isFirstQuestion: boolean = false;
|
||||
isLastQuestion: boolean = false;
|
||||
|
||||
constructor(private answerService: AnswersService) { }
|
||||
constructor(private progressService: ProgressService, private answerService: AnswersService) { }
|
||||
|
||||
setHasTaken = (hasTaken: boolean) => {
|
||||
this.hasTaken = hasTaken;
|
||||
@@ -50,7 +52,7 @@ export class QuestionComponent {
|
||||
}
|
||||
|
||||
computeProgress() {
|
||||
return (this.question.id - 1) * 100 / (QUESTIONS.length - 1);
|
||||
this.progressService.currentProgress.next((this.question.id - 1) * 100 / (QUESTIONS.length));
|
||||
}
|
||||
|
||||
addAnswer = (symptom: Symptom) => {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<app-progress [progress]="100"></app-progress>
|
||||
<div class="container">
|
||||
<app-logo></app-logo>
|
||||
<h2>Résultats</h2>
|
||||
|
||||
<div class="explanation">
|
||||
@@ -13,7 +11,7 @@
|
||||
<div class="treatment" [style.border-color]="computeScoreColor(r.score)" [style.color]="computeScoreColor(r.score)" (click)="openTreatmentDetails(r.treatment.code)">{{r.treatment.label}} ({{r.score}})</div>
|
||||
</div>
|
||||
|
||||
<button class="btn" (click)="onReset.emit()">Relancer le formulaire</button>
|
||||
<button class="btn" (click)="onReset.emit()">Relancer le questionnaire</button>
|
||||
</div>
|
||||
|
||||
<ng-container *ngIf="currentDetailsCode">
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
@import "../../../styles/variables.scss";
|
||||
|
||||
.container {
|
||||
width: 60%;
|
||||
margin: 0 auto;
|
||||
|
||||
h2 {
|
||||
font-weight: 500;
|
||||
color: $color-E;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import {Component, EventEmitter, OnInit, Output} from '@angular/core';
|
||||
import {EngineService, RecommendationModel} from "../../services/engine.service";
|
||||
import {AnswersService} from "../../services/answers.service";
|
||||
import {ProgressService} from "../../services/progress.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-results',
|
||||
@@ -16,9 +17,10 @@ export class ResultsComponent implements OnInit {
|
||||
|
||||
@Output() onReset: EventEmitter<void> = new EventEmitter<void>();
|
||||
|
||||
constructor(private engine: EngineService, private answers: AnswersService) { }
|
||||
constructor(private progressService: ProgressService, private engine: EngineService, private answers: AnswersService) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.progressService.currentProgress.next(100);
|
||||
const recommendations = this.engine.getRecommendations(this.answers.answersIndexes);
|
||||
this.recommendations = recommendations.filter((r) => r.score >= 0).sort((r1, r2) => r2.score - r1.score);
|
||||
this.discouragements = recommendations.filter((r) => r.score < 0);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import {AfterViewInit, Component, OnInit} from '@angular/core';
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Question, QUESTIONS} from "../../questions.constants";
|
||||
import {AnswersService} from "../../services/answers.service";
|
||||
import {TreatmentsService} from "../../services/treatments.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-page-form',
|
||||
@@ -37,4 +36,5 @@ export class PageFormComponent implements OnInit {
|
||||
this.currentStep = "questions";
|
||||
this.currentQuestionIndex = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
28
src/app/pages/page-home/page-home.component.html
Normal file
28
src/app/pages/page-home/page-home.component.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="container">
|
||||
<div class="subtitle">
|
||||
Questionnaire d'aide à l'adaptation de la contraception
|
||||
</div>
|
||||
<div class="box">
|
||||
<p>
|
||||
Ce questionnaire s'adresse aux praticiens libéraux ou hospitalier, médecins ou sages-femmes, lors d'une
|
||||
consultations ayant pour but d'adapter une contraception mal tolérée ou non adaptée au profil de la patiente.
|
||||
</p>
|
||||
<p>
|
||||
Il est à remplir avec l'aide de la patiente au cours de la dite consultation.
|
||||
</p>
|
||||
<p>
|
||||
Les résultats obtenus vont de la méthode la plus conseillée (en vert) à la moins conseillée (en rouge), sans tenir
|
||||
compte des contre-indications éventuelles.
|
||||
</p>
|
||||
<p>
|
||||
Vous pouvez cliquer directement sur chaque résultat pour en obtenir le détail (nom commercial, mode d'utilisation,
|
||||
nombre de comprimés etc...), ainsi que la bibliographie justifiant ce choix.
|
||||
</p>
|
||||
<p>
|
||||
Vous disposez également d'un onglet "CONTRE-INDICATIONS" que vous pouvez consulter pour étayer votre choix.
|
||||
</p>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<button class="btn" (click)="goToForm()">Commencer le questionnaire</button>
|
||||
</div>
|
||||
</div>
|
||||
32
src/app/pages/page-home/page-home.component.scss
Normal file
32
src/app/pages/page-home/page-home.component.scss
Normal file
@@ -0,0 +1,32 @@
|
||||
.container {
|
||||
width: 60%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 16px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
margin-top: 32px;
|
||||
font-size: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.box {
|
||||
background: rgb(126,197,187);
|
||||
background: linear-gradient(142deg, rgba(126,197,187,1) 0%, rgb(61, 141, 141) 100%);
|
||||
position: relative;
|
||||
box-shadow: #00000022 0px 0px 10px;
|
||||
padding: 64px 32px;
|
||||
|
||||
border-radius: 32px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
margin-top: 32px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
19
src/app/pages/page-home/page-home.component.ts
Normal file
19
src/app/pages/page-home/page-home.component.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {Router} from "@angular/router";
|
||||
|
||||
@Component({
|
||||
selector: 'app-page-home',
|
||||
templateUrl: './page-home.component.html',
|
||||
styleUrls: ['./page-home.component.scss']
|
||||
})
|
||||
export class PageHomeComponent implements OnInit {
|
||||
|
||||
constructor(private router: Router) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
goToForm() {
|
||||
this.router.navigate(['form']);
|
||||
}
|
||||
}
|
||||
@@ -22,9 +22,6 @@ export const QUESTIONS = [
|
||||
{ key: 'G', label: "Cholestase, Lithiase / cholécystite, Tumeur bénigne du foie", description: "HNF, adénome" }
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
|
||||
{
|
||||
id: 2,
|
||||
question: "La patiente a déjà pris une contraception *oestroprogestative par anneau vaginal",
|
||||
@@ -93,7 +90,7 @@ export const QUESTIONS = [
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
question: "La patiente a-t-elle déjà pris une contraception *microprogestative par dispositif intra-utérin au cuivre",
|
||||
question: "La patiente a-t-elle déjà pris une contraception *par dispositif intra-utérin au cuivre",
|
||||
symptoms: [
|
||||
{ key: 'B', label: "Ménométrorragies, Dysménorrhées" },
|
||||
{ key: 'C', label: "Expulsion" },
|
||||
@@ -112,5 +109,18 @@ export const QUESTIONS = [
|
||||
{ key: 'D', label: "Brûlures vaginales liées au spermicide" },
|
||||
{ key: 'E', label: "Douleurs locales liées au dispositif à taille unique" },
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
question: "La patiente présente-t-elle un *profil particulier",
|
||||
symptoms: [
|
||||
{ key: 'B', label: "Endométriose, dysménorrhées, ménorragies" },
|
||||
{ key: 'C', label: "Fibrome" },
|
||||
{ key: 'D', label: "SOPK, Hyperandrogénie" },
|
||||
{ key: 'E', label: "Obésité" },
|
||||
{ key: 'F', label: "Syndrome pré-menstruel invalidant" },
|
||||
{ key: 'G', label: "Souhait d'une contraception non-hormonale" },
|
||||
{ key: 'H', label: "Souhait d'une contraception de moyenne à longue durée d’action" },
|
||||
]
|
||||
},
|
||||
];
|
||||
|
||||
12
src/app/services/progress.service.ts
Normal file
12
src/app/services/progress.service.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {BehaviorSubject} from "rxjs";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ProgressService {
|
||||
|
||||
public currentProgress: BehaviorSubject<number> = new BehaviorSubject<number>(0);
|
||||
|
||||
constructor() { }
|
||||
}
|
||||
Reference in New Issue
Block a user