Skip to content
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

feat(native-app): add health overview #16333

Merged
merged 13 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added apps/native/app/src/assets/icons/health.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/native/app/src/assets/icons/health@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/native/app/src/assets/icons/health@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions apps/native/app/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ export const config = {
'@island.is/finance/schedule:read',
'@island.is/licenses:barcode',
'@island.is/auth/passkeys',
'@island.is/health/healthcare',
'@island.is/health/payments',
'@island.is/health/rights-status',
'@island.is/health/medicines',
'@island.is/health/vaccinations',
'@island.is/health/organ-donation',
'@island.is/licenses:barcode',
'@island.is/auth/passkeys',
],
cognitoUrl: 'https://cognito.shared.devland.is/login',
cognitoClientId: 'bre6r7d5e7imkcgbt7et1kqlc',
Expand Down
37 changes: 37 additions & 0 deletions apps/native/app/src/graphql/queries/health.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
query GetHealthInsuranceOverview {
rightsPortalInsuranceOverview {
isInsured
explanation
from
status {
display
code
}
maximumPayment
}
}

query GetHealthCenter($input: RightsPortalHealthCenterHistoryInput) {
rightsPortalHealthCenterRegistrationHistory(input: $input) {
current {
healthCenterName
doctor
}
}
}

query GetPaymentOverview($input: RightsPortalPaymentOverviewInput!) {
rightsPortalPaymentOverview(input: $input) {
items {
credit
debt
}
}
}

query GetPaymentStatus {
rightsPortalCopaymentStatus {
maximumPayment
maximumMonthlyPayment
}
}
24 changes: 23 additions & 1 deletion apps/native/app/src/messages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ export const en: TranslatedMessages = {
'profile.vehicles': 'Vehicles',
'profile.assets': 'Assets',
'profile.finance': 'Finance',
'profile.airDiscount': 'Air discount scheme',
'profile.airDiscount': 'Air discount',
thoreyjona marked this conversation as resolved.
Show resolved Hide resolved
'profile.health': 'Health',

// vehicles
'vehicles.screenTitle': 'Vehicles',
Expand Down Expand Up @@ -604,4 +605,25 @@ export const en: TranslatedMessages = {
'You are about to use an old version of the Island.is app. Please update the app to be able to continue.',
'updateApp.button': 'Update',
'updateApp.buttonSkip': 'Skip',

// health
'health.overview.screenTitle': 'Health',
'health.overview.title': 'My health',
'health.overview.description':
'Here you can find your health data, health center and health insurance.',
'health.overview.healthCenter': 'Health center',
'health.overview.noHealthCenterRegistered': 'No health center registered',
'health.overview.physician': 'Physician',
'health.overview.noPhysicianRegistered': 'No doctor registered',
'health.overview.statusOfRights': 'Status of rights',
'health.overview.insuredFrom': 'Insured from',
'health.overview.status': 'Status',
'health.overview.notInsured': 'You do not have health insurance',
'health.overview.payments': 'Payments',
'health.overview.maxMonthlyPayment': 'Max monthly payment',
'health.overview.paymentLimit': 'Payment Limit',
'health.overview.paymentCredit': 'Credit',
'health.overview.paymentDebt': 'Debt',
'health.overview.therapy': 'Therapy',
'health.overview.aidsAndNutrition': 'Aids and nutrition',
}
22 changes: 22 additions & 0 deletions apps/native/app/src/messages/is.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ export const is = {
'profile.assets': 'Fasteignir',
'profile.finance': 'Fjármál',
'profile.airDiscount': 'Loftbrú',
'profile.health': 'Heilsa',

// vehicles
'vehicles.screenTitle': 'Ökutæki',
Expand Down Expand Up @@ -604,4 +605,25 @@ export const is = {
'Þú ert að fara að nota gamla útgáfu af Ísland.is appinu. Vinsamlegast uppfærðu appið til að halda áfram.',
'updateApp.button': 'Uppfæra',
'updateApp.buttonSkip': 'Sleppa',

// health
'health.overview.screenTitle': 'Heilsa',
'health.overview.title': 'Heilsan mín',
'health.overview.description':
'Hér finnur þú þín heilsufarsgögn, heilsugæslu og sjúkratryggingar',
thoreyjona marked this conversation as resolved.
Show resolved Hide resolved
'health.overview.healthCenter': 'Heilsugæsla',
'health.overview.noHealthCenterRegistered': 'Engin heilsugæsla skráð',
'health.overview.physician': 'Heimilislæknir',
'health.overview.noPhysicianRegistered': 'Enginn læknir skráður',
'health.overview.statusOfRights': 'Réttindastaða',
'health.overview.insuredFrom': 'Sjúkratrygging frá',
'health.overview.status': 'Staða',
'health.overview.notInsured': 'Þú ert ekki með sjúkratryggingu',
'health.overview.payments': 'Greiðslur',
'health.overview.maxMonthlyPayment': 'Hámarksgreiðslan þín á mánuði',
'health.overview.paymentLimit': 'Greiðslumark',
'health.overview.paymentCredit': 'Inneign',
'health.overview.paymentDebt': 'Skuld',
'health.overview.therapy': 'Þjálfun',
'health.overview.aidsAndNutrition': 'Hjálpartæki og næring',
}
Loading