Commit Graph

230 Commits

Author SHA1 Message Date
Jason Kulatunga f903c38b55
adding support for Composition resource type (Custom grouping) (#20) 2023-01-10 19:23:47 -08:00
Jason Kulatunga ba333fce42 make sure sortTitle and sortDate is stored with every resource in the database. 2023-01-07 09:41:43 -08:00
Jason Kulatunga d0f87c4381 added tests to ensure that implementation stays in sync with interfaces from fasten-sources lib. 2023-01-03 20:50:43 -08:00
Jason Kulatunga efe5f0a0a8
update fasten-sources library. (#16) 2023-01-03 11:11:04 -08:00
Jason Kulatunga 918c856338 adding allow_unsafe_endpoints config option.
adding flattend resource graph.
adding Reciprocal resources
adding a report labs page.
2022-12-21 19:51:02 -08:00
Jason Kulatunga 6fd69575d1
Better Reporting (#12) 2022-12-17 15:10:19 -08:00
Jason Kulatunga f67c369a22 make SyncSourceResources exposed, so it can be used in Cloud version. 2022-12-03 22:33:27 -08:00
Jason Kulatunga e8981ff9bb simplify the Source-patient query to work in Postgres.
Make sure that we can handle auth_username provided by context object (in cloud).
2022-12-03 19:16:32 -08:00
Jason Kulatunga 1a18319c8c tweaks to jwt to be consistent. 2022-12-03 17:15:19 -08:00
Jason Kulatunga 0d57a75890 updating database interface.
Using public database fields.
2022-12-03 12:48:35 -08:00
Jason Kulatunga 492d2a7efb make the SqliteRepository accessible so we can inherit. 2022-12-03 11:08:14 -08:00
Jason Kulatunga e360369706
begin restoring Sqlite functionality. (#11) 2022-12-02 19:40:58 -08:00
Jason Kulatunga c79dc02a1d cleanup unnecessary constants.
adding anthem sourcetypes.
2022-11-08 19:45:05 -08:00
Jason Kulatunga bcb3f58d6e get full name information, make sure its displayed in the UI.
added a white on transparent banner image.
2022-11-03 22:24:30 -07:00
Jason Kulatunga 032946100c
working backend changes to generate JWT tokens during signin and signup. (#9) 2022-11-02 00:12:54 -07:00
Jason Kulatunga f0f37cd738 adding a new configuration for "cloud_sandbox" - used for AWS bucket.
consistent couchdb creds.
removed metadata endpoint and config.
ensure that the couchdb endpoint can be relative or absolute url. added tests for relative vs abs urls.
2022-10-28 19:01:20 -07:00
Jason Kulatunga 947586c71d fixing genreated mock database.
fixing time on toasts.
2022-10-12 19:01:43 -07:00
Jason Kulatunga 4f90a9eedb provide a consistent way to retrun results from WebWorkers.
fixed Username field in login page.
added support for CORS relay
fixed spec files.
2022-10-12 18:47:12 -07:00
Jason Kulatunga d89cb920af remove web.jwt.encryptionkey requirement
when running just CouchDB, make sure fasten services are not present.
added auth interceptor when session has expired.
2022-10-09 12:59:09 -07:00
Jason Kulatunga 8f933e626d cleanup config files and messages. 2022-10-09 12:30:26 -07:00
Jason Kulatunga a7daae9047 working couchdb reverse proxy behind webapp binary. 2022-10-09 09:34:57 -07:00
Jason Kulatunga f2bb44e8be refactor backend to remove all storage logic. Just auth and metadata endpoints now.
Adding docker image for couchdb and addign docker-compose file.
2022-10-08 19:40:33 -07:00
Jason Kulatunga 349b627845 remove the CreateSource endpoint from backend api. 2022-10-06 17:57:31 -07:00
Jason Kulatunga bca11bdf87 adding test for logica. 2022-09-26 20:50:34 -07:00
Jason Kulatunga 631bb9bdcd fixing db path in tests. 2022-09-26 19:50:00 -07:00
Jason Kulatunga d765b03808 added ci. 2022-09-26 18:42:33 -07:00
Jason Kulatunga 61ed115dae fixing breadcrumbs
make sure patient is sent with SourceSummary.
2022-09-25 18:35:36 -07:00
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