-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check vaccinations in ISIN #333
Conversation
@@ -82,7 +82,8 @@ | |||
<app-patient-data-item> | |||
<mat-label>Validováno v ISIN:</mat-label> | |||
<mat-label> | |||
<app-chip [value]="!!patientData.isinId"></app-chip> | |||
<app-chip [value]="!!patientData.isinId && !!patientData.isinReady" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tady podle me ma byt OR. Pokud nemame id nebo neni ready, chceme ukazovat ze Validovano v ISIN: NE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!!
je negace negace. Když máme isin id && je to ready, ukazujeme ANO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A to jako Angular vyzaduje, kdyz chci pracovat s nejakou boolean, abych udelal negaci negace? patientData.isinReady
nefunguje, jo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ono to může být i null a tímhle se to převede na false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aha, ok. To jsou triky tedy...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A logika je tedy takova, ze isin_ready
zkousime jenom manualne, tesne pred ockovanim. Automaticky se to nedela. To je za me ok.
Na FE po najetí na Ano/Ne u Validováno v ISIN zobrazím tooltip s dalším infem.
Otestoval jsem provoláváním api, v tom testovacím prostředí to vždy našlo nějaké proběhlé očkování.
Closes #294