Commit Graph

203 Commits

Author SHA1 Message Date
Jason Kulatunga cd6a0fb68f working getResourceBySourceId query and api. 2022-09-25 16:57:30 -07:00
Jason Kulatunga 581d008f09 fix CareEvolution (now configured as a Confidential client)
fixes fastenhealth/docs#10
2022-09-25 16:13:06 -07:00
Jason Kulatunga 61d16cfb55 fixed error where the source ID was not populated whne source is first created, causing next SyncAll command to have invalid source_id values.
Created default SyncAll function (using $everything) and SyncAllByResourceName which can be used as a fallback.

cleaned up DB layer , dont use Model unless Gorm cannot figure out the table. Use pointers consistently.
When syncing resources, store errors in a map, so that all resources get synced before returing errors
2022-09-24 22:18:07 -07:00
Jason Kulatunga 8531a028c9 move sync logic to base FHIR401 class. 2022-09-24 19:30:46 -07:00
Jason Kulatunga 6b5ef7f71e for confidential sources, provide way to pass patient_id back to frontend.
When GetRequest fails, print the body (may have helpful messages)
Make sure we can set the headers used by the GetRequest method per Source (BlueButton doesnt work with application/json+fhir header)

Added BlueButton Client, WIP
2022-09-24 16:46:15 -07:00
Jason Kulatunga 5f2f99a202 handle authorize claim for confidential sources.
update BlueButton image to use Medicare logo.
2022-09-24 14:19:25 -07:00
Jason Kulatunga 4afbd6f834 fixing Athena client.
fixing popup for re-sync.
2022-09-23 23:21:57 -07:00
Jason Kulatunga 564fee9e90 added athena health client.
fixed header.
added a logout/signout function.
2022-09-23 22:42:01 -07:00
Jason Kulatunga 270abdc7af adding a generalpurpose GetResourceBundle method.
adding tests for cerner.
2022-09-22 22:32:20 -07:00
Jason Kulatunga 734dac28f6 fix oauth token refresh.
make sure raw request query params are passed in.
2022-09-21 22:02:55 -07:00
Jason Kulatunga 38dbc465bf added test recordings for logicahealth 2022-09-21 21:23:38 -07:00
Jason Kulatunga 356838fd97 working pagination.
added test recordings for logicahealth
2022-09-21 21:08:21 -07:00
Jason Kulatunga fa09bfafd6 adding docker image.
adding cerner client.
adding new images
using yarn for npm package management.
2022-09-21 18:57:38 -07:00
Jason Kulatunga 342cfa740b marketing updates.
make sure the oauth endpoints are configurable.
2022-09-19 20:21:22 -07:00
Jason Kulatunga 080379eabe adding more services. 2022-09-18 19:46:57 -07:00
Jason Kulatunga cc485a0615 support logica service.
update dashboard.
moved RAW API endpoint outside of the secure block.
2022-09-18 00:36:53 -07:00
Jason Kulatunga 02dcbcc507 working summary api 2022-09-17 10:14:59 -07:00
Jason Kulatunga 7bced71569 adding source summary endpoint
added generic resource list component
added resource-list outlet directive and component.
2022-09-17 00:12:12 -07:00
Jason Kulatunga 5f71891970 adding support for dropzone
adding support for manual  source
2022-09-15 22:26:37 -07:00
Jason Kulatunga 11605aae93 added a getResources and ListResourceFhir API endpoint 2022-09-14 21:56:32 -07:00
Jason Kulatunga 5ae77a0459 adding sourceDetail component.
make sure we 404 if an api endpoint doesn't exist.
2022-09-14 19:59:16 -07:00
Jason Kulatunga f845ae3716 make sure we wait for the token to be stored before reloading the page. 2022-09-14 08:19:28 -07:00
Jason Kulatunga edd8587ab2 make sure that the jwt encryption key is configurable by the end user. 2022-09-13 21:41:10 -04:00
Jason Kulatunga 129d728d34 consistently use source_type / sourceType instead of provider_id providerId.
using LighthouseService instead of PassportService.
2022-09-13 21:15:18 -04:00
Jason Kulatunga 360af5adee renamed usages of providerId to sourceType 2022-09-13 21:02:26 -04:00
Jason Kulatunga 1535f139c1 when making requests to the db, use the current user context. 2022-09-12 21:20:56 -04:00
Jason Kulatunga 87db3cf751 better error messages. 2022-09-12 17:34:03 -04:00
Jason Kulatunga d67650eaf1 make sure we parse the auth header.
make sure the token signing method is one we expect.
2022-09-12 01:03:20 -04:00
Jason Kulatunga 6aa92674bc working authentication check (via token presence in localstorage).
HTTP interceptor to always add token to header.
2022-09-12 00:58:19 -04:00
Jason Kulatunga 1a3dce77cb adding form validation on signup.
adding auth/signin and auth/signup api endpoints.
2022-09-11 23:59:13 -04:00
Jason Kulatunga aefe96c71e added a details page (unwired)
fixed logo
print more error messages.
added aetna client.
2022-09-10 23:12:29 -04:00
Jason Kulatunga e24ff1b8f6 fixing fonts.
tweaking dashboard UI
fixing medical sources component to be dynamically generated via list.
2022-09-10 14:59:13 -04:00
Jason Kulatunga 68eb18e64b update expired access token automatically (using refreshtoken). if updatedSource is returned from client, it must be stored in the DB. 2022-09-08 23:51:46 -07:00
Jason Kulatunga 187d72b085 added mechanism to query resources stored in DB.
Adding raw lookup from source.
2022-09-08 22:53:54 -07:00
Jason Kulatunga c9fc23e3a9 sync all resources on completion. 2022-09-08 21:14:03 -07:00
Jason Kulatunga 96465f23df adding test framework/recordings for client.
Adding generic upsert fuction for models.
2022-09-01 18:54:01 -07:00
Jason Kulatunga caa7315ad9 adding tests.
fixing go generate
updating FHIR models to version with comments.
2022-08-31 19:06:12 -07:00
Jason Kulatunga 79755d8e8b fixing composite unique index (when embedded the index is not unique).
creating a lookup table for retrieving Resource references (and generated UUIDs).
Adding organization processing.
2022-08-30 21:36:40 -07:00
Jason Kulatunga 9902daa75d make sure null is handled correctly. 2022-08-30 20:24:37 -07:00
Jason Kulatunga 05b13677a6 working serialization, storage in DB. 2022-08-30 19:55:27 -07:00
Jason Kulatunga 4c0d3c831d working on Gorm Serialization of structs. 2022-08-30 19:35:01 -07:00
Jason Kulatunga c8441086c8 added ModelBase and OriginBase which can be used as base classes for Gorm Models.
Updated BaseClient - use Source vs ProviderCredentials terminolgy.
Updated CignaClient
Added a raw request api endpoint which can
2022-08-30 19:03:24 -07:00
Jason Kulatunga e6944cb4ee reorganzing functions. 2022-08-28 21:32:13 -07:00
Jason Kulatunga fa714d6bff working hub with versioned fhir clients. 2022-08-28 19:09:39 -07:00
Jason Kulatunga 7a9fdfd1b9 working on Hub for retreiving data from Health Providers. 2022-08-28 10:51:58 -07:00
Jason Kulatunga 93f04802fe working. list provider credentials. 2022-08-27 19:34:48 -07:00
Jason Kulatunga cf24362806 working, on provider credential create, return created object. 2022-08-27 08:39:55 -07:00
Jason Kulatunga cc9c1277e0 when adding new medical provider, disable the button.
Add primary key constraint to th eProviderCredential.
Add ForeignKey/association to the ProviderCredntial.
2022-08-27 08:17:09 -07:00
Jason Kulatunga 41e60cd7d6 working frontend, after token swap store credential in SQLite db. 2022-08-25 21:57:29 -07:00
Jason Kulatunga e657d73e0e working frontend. adding database. 2022-08-25 18:26:29 -07:00
Jason Kulatunga 33390680c6 rename 2022-08-22 18:28:59 -07:00
Jason Kulatunga d46f12928e rename 2022-08-22 18:11:00 -07:00
Jason Kulatunga cc9948cd04 Initial commit 2022-08-22 17:51:46 -07:00