Commit Graph

38 Commits

Author SHA1 Message Date
Jason Kulatunga c88751c5b7
make sure lighthouse environment is passed to the source credential. 2024-01-17 13:45:19 -08:00
Jason Kulatunga dec1914b91
adding version, and migrate cli.
adding better migration support.
migrate between legacy source type to brands,portals and endpoints.
2024-01-16 21:13:52 -08:00
Jason Kulatunga d23af018e7
Timeline based Manual Entry form (#330) 2023-12-03 18:40:16 -08:00
Jason Kulatunga bba1dde606
better error messages when dynamic client registration fails. 2023-11-05 10:53:30 -08:00
Sharif Nassar 11386dbf00
Spleling fix (#296) 2023-11-04 16:01:00 -07:00
Jason Kulatunga a6edb24aa0
move registration code into the sourceCredential.
Added ability to Reconnect/Update source
make sure re-connect function is disabled for manual sources.
2023-10-11 20:43:27 -07:00
Jason Kulatunga c590663537
adding ability to delete source + associated records. 2023-10-11 07:54:18 -07:00
Jason Kulatunga dcabfc8cd9
Background Jobs (#266) 2023-10-08 16:29:26 -07:00
Jason Kulatunga b6da493d62 removed singleton eventbus. Moved to application init.
Added interface for eventbus.
verified working.
2023-09-20 14:57:05 -07:00
Jason Kulatunga 70ca68a6ec
added background context todo 2023-09-13 09:43:56 -07:00
Jason Kulatunga 9e1c7455d1 moved event bus into its own package.
created models for event bus messaging.
added logger.
added source complete and sync events.
2023-09-10 09:25:15 -07:00
Jason Kulatunga 8ff42142fb deriving background context based on Gin Contex.
Removed testing message bus heartbeats -> moved to /health endpoint.
2023-09-10 09:25:15 -07:00
Jason Kulatunga 0a9eb88b1b
fixing module name (fasten-onprem vs fastenhealth-onprem) 2023-08-27 17:09:46 -07:00
Jason Kulatunga f1b7e80e13
make sure that we print the error response body if we can.
Added an update source method.
After sync, if sourcecredential access token/refresh token has been updated make sure we store it int he database.
2023-07-20 21:43:37 -07:00
Jason Kulatunga a5b37159c1
- make sure that we can generate offline tokens for Epic providers (using dynamic client registration - https://fhir.epic.com/Documentation?docId=Oauth2&section=Standalone-Oauth2-OfflineAccess-0)
- when SourceCredential is sent to the CreateSource API, we'll check if dynamic client regirstion is enabled. If it is, we'll use this token to register a new client, store the client information, and geneate a new Access Token using the key pair associated with this newly registered client.
- added additional fields to SourceCredential table (registration_endpoint, dynamic_client_registration_mode, dynamic_client_jwks, dynamic_client_id)
- renamed RefreshTokens to SetTokens in SourceCredential model - to have consistent naming
- added IsDynamicClient and RefreshDynamicClientAccessToken methods to SourceCredential Model

fixes #178
2023-07-19 22:45:14 -07:00
Jason Kulatunga 12cfcaee41
make sure that the sourcecredential interface is a pointer reciever. 2023-07-14 19:52:02 -07:00
Jason Kulatunga f903c38b55
adding support for Composition resource type (Custom grouping) (#20) 2023-01-10 19:23:47 -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 f67c369a22 make SyncSourceResources exposed, so it can be used in Cloud version. 2022-12-03 22:33:27 -08:00
Jason Kulatunga e360369706
begin restoring Sqlite functionality. (#11) 2022-12-02 19:40:58 -08: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 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 564fee9e90 added athena health client.
fixed header.
added a logout/signout function.
2022-09-23 22:42:01 -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 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 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 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 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 360af5adee renamed usages of providerId to sourceType 2022-09-13 21:02:26 -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 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 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