Commit Graph

250 Commits

Author SHA1 Message Date
Jason Kulatunga d23af018e7
Timeline based Manual Entry form (#330) 2023-12-03 18:40:16 -08:00
packagrio-bot a8be7f33ca (v0.2.2) Automated packaging of release by Packagr 2023-11-26 03:02:05 +00:00
Jason Kulatunga 2061684aed
WIP adding medical history timeline view. (#325) 2023-11-23 08:51:01 -08:00
Jason Kulatunga a161f41998
make sure we migrate the database models. 2023-11-20 09:23:00 -08:00
Jason Kulatunga dbd868c796
adding meta prefix to all relevant meta keys. (#323)
* adding meta prefix to all relevant meta keys.
moved extractor functions into reusable script.

* adding comprensive tests and types for extracted data stored in tables.

* update with README.

* using choiceTypePaths to correctly append types to the search parameter queries.

* adding comment or `keyword` types

* better extraction of Date information.

* fix tests.
2023-11-19 11:09:23 -08:00
Jason Kulatunga d37fb12f89
adding tests for condition and encounter. 2023-11-17 17:16:36 -08:00
packagrio-bot 6383aaa13e (v0.2.1) Automated packaging of release by Packagr 2023-11-14 12:35:07 +00:00
Mohanish Patel f2cb6a904c
added tests for resource_fhir_test.go -> ListResourceFhir (#302) 2023-11-14 04:32:53 -08:00
Akash Sampurnanand Pandey 7c8a118f40
update FhirPatient unit tests for most fields (#301)
Co-authored-by: Jason Kulatunga <jason@thesparktree.com>
2023-11-13 10:43:03 -08:00
Akash Sampurnanand Pandey a71c690241
update FhirObservation unit tests (#303) 2023-11-13 10:37:48 -08:00
packagrio-bot 1106d4e869 (v0.2.0) Automated packaging of release by Packagr 2023-11-09 16:13:55 +00:00
Jason Kulatunga 77cb81435c
Encryption At Rest (#284) 2023-11-07 15:17:00 -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
mohanish2504 ca450f5793 update:
sepated logic to hit invalid source,resource id during test case.
2023-10-30 23:30:37 +05:30
mohanish2504 f4a776d175 adding: resource_fhir_test.go
update: source_test.go moved test data creating to a common logic.
2023-10-29 19:27:25 +05:30
Akash b212e97d8e formatting stuff 2023-10-21 10:08:51 -05:00
Akash 79a5c20d06 unit test for identifier and telecom for example1 2023-10-21 02:14:24 -05:00
Jason Kulatunga 6f4067d179
adding unsafe selective sync endpoint for testing purposes. 2023-10-17 21:35:30 -07:00
Jason Kulatunga 145eea6d6a
update uuid.Nil reference for special placeholder reference. 2023-10-17 20:25:23 -07:00
packagrio-bot 6ed83e8afb (v0.1.8) Automated packaging of release by Packagr 2023-10-17 21:47:56 +00:00
Jason Kulatunga 6858ae8d4c
added database migration framework. 2023-10-17 11:46:08 -07:00
Jason Kulatunga 9087f590b2
fixing test suite. 2023-10-16 21:49:15 -07:00
Nicholas Murray d154d9e811 Merge main
Picked up on most recent change with DeleteSource func
2023-10-16 07:49:45 -07:00
Nicholas Murray 8be1e34e68 backend/pkg/database: add postgres package and postgres specific db instantiation 2023-10-14 10:52:17 -07:00
Nicholas Murray c90f3c0d88 backend/pkg/database: to squash, git add renamed files 2023-10-14 10:33:37 -07:00
Jason Kulatunga c25b164035
adding loading + empty panel support to the records summary widget. 2023-10-13 21:37:22 -07:00
Jason Kulatunga 8e999e6b79
adding records summary to dashboard. 2023-10-13 20:41:42 -07:00
Jason Kulatunga 1008b31ef6
adding a care team widget. 2023-10-13 18:26:33 -07:00
Jason Kulatunga d427f79ffc
adding icons and updated dashboard.
Added new way to register widgets with Gridstack (comes from widgetModule directly)
2023-10-13 18:26:32 -07:00
Nicholas Murray abbfa9a93e backend/pkg/database: move all common Gorm functionality to new files 2023-10-13 16:57:43 -07:00
Jason Kulatunga 13e21b580b
always update source credential when doing unsafe raw request. 2023-10-12 22:06:35 -07:00
Jason Kulatunga 504cd4264c
[WIP] adding factory pattern support to Database package.
Users can select database type using database.type configuration when calling NewRepository()
2023-10-12 14:19:12 -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
Nicholas Murray 83d90cc373 models/database: update generate.go with postgres db model
We need to swap out datetime with timestamptz in order to properly allow for a postgres DB provider
2023-10-10 12:25:52 -07:00
Jason Kulatunga e5f920c2ec
when server restarts, we should unlock all locked jobs, and set their status to failed
make sure we can customize the limit value for Background Job query.

fixes #267
2023-10-09 17:16:18 -07:00
Jason Kulatunga cae3afce72
adding ability to submit support tickets in-app.
added logos to the patient profile menu
added link to fundraising doc in-app
update fontawesome version.

fixes #272
2023-10-09 16:38:17 -07:00
Jason Kulatunga c1f057a15a
make sure api calls are not cached in the desktop app.
fixes #270
2023-10-09 10:51:38 -07:00
Jason Kulatunga dcabfc8cd9
Background Jobs (#266) 2023-10-08 16:29:26 -07:00
packagrio-bot 1435bbf53a (v0.1.7) Automated packaging of release by Packagr 2023-10-04 19:01:00 +00:00
Jason Kulatunga 597a80d381
fixing import path. 2023-10-03 19:12:54 -07:00
Jason Kulatunga 1fda51074e
finishing pagination for medical history page. 2023-10-03 17:27:08 -07:00
Jason Kulatunga 345b2d5cfd
working medical history pagination
- performance improvements by using placeholder ids for graph
- only inflating with real resources once we've calculated pagination window.
2023-10-03 17:25:30 -07:00
Jason Kulatunga 21dc5ebe92
WIP paginate graph (medical history view) 2023-10-03 17:19:13 -07:00
Jason Kulatunga 595541f3a0
correctly handle query for token with system but no code. 2023-10-02 16:07:25 -07:00
Jason Kulatunga 623c9ab663
adding tests for processing aggregation parameters.
make sure frontend code uses new aggregation parameter structure.
2023-10-02 14:27:35 -07:00
Jason Kulatunga 01c293bf40
provide mechanism to call functions when doing aggregations.
provide a standardized format for token aggregation ($.system|$.code)
2023-10-02 13:42:41 -07:00
Jason Kulatunga af2344ec00
add sort_date as a DB field that can be queried.
make sure that order_by is automatically desc for date fields.
2023-10-01 19:15:24 -07:00
Jason Kulatunga 6d831f6ee7
make sure we can send limit and offset when querying.
list the diagnostic reports in the dropdown for filtering.
2023-10-01 17:05:55 -07:00
Jason Kulatunga cce4a2577b fixed tests. 2023-09-20 14:57:05 -07:00
Jason Kulatunga c8718b2d8f adding NoopEventBus version. Fixing tests. 2023-09-20 14:57:05 -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 85986cf95c disabling eventbus on windows, causes deadlock. 2023-09-13 13:57:17 -07:00
Jason Kulatunga ce8efdb753 making all references to EventBusListeners pointers
adding a keepalive event type.
2023-09-13 13:57:17 -07:00
Jason Kulatunga 7078f784c4
fixing dashboard on windows - https://github.com/golang/go/issues/45230 2023-09-13 11:31:11 -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 74fc682dbf renamed sse endpoint to events. Using the technology name in the API isnt a good idea. 2023-09-10 09:25:15 -07:00
Jason Kulatunga 6a3afe150e working private event notifications. 2023-09-10 09:25:15 -07:00
Jason Kulatunga 862e3d6ea7 pass in the event bus to the DatabaseRepository for notifications. 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 b344469caa refactoring. Created EventBus singleton. 2023-09-10 09:25:15 -07:00
Jason Kulatunga 0fd78b7533 refactoring. Created EventBus singleton. 2023-09-10 09:25:15 -07:00
Jason Kulatunga 2027e898b3 using Server-sent-events (SSE) for notifications support (and background processing)
WIP.
2023-09-10 09:25:15 -07:00
Jason Kulatunga 00d0684b57
cache location 2023-08-29 16:05:36 -07:00
packagrio-bot 507cb12c0b (v0.1.6) Automated packaging of release by Packagr 2023-08-29 03:19:10 +00:00
packagrio-bot c4eb009e9d (v0.1.5) Automated packaging of release by Packagr 2023-08-29 03:11:28 +00:00
Jason Kulatunga a9cb793c8a split frontend routing config from backend config.
Added method to use embedded frontend routing.
rename desktop config to desktop_sandbox config.

adding desktop_mode (used for Wails Desktop app + hash based routing)
make sure all `window.location` parsing works correctly with desktop_mode
2023-08-28 18:36:32 -07:00
Jason Kulatunga 0a9eb88b1b
fixing module name (fasten-onprem vs fastenhealth-onprem) 2023-08-27 17:09:46 -07:00
Jason Kulatunga 9a4dcf9852 adding tests for dashboard settings
fixing database persistence for settings.
using reflection instead of abusing AppConfig for parsing UserSettingsEntries to UserSettings struct.
2023-08-25 08:36:12 -07:00
Jason Kulatunga cb6cb1d2c5 adding the ability to add one custom dashboard at a time.
make sure source information is automatically populated for remote dashboards
adding modals to add dashboard via UI
addign modals to edit
make sure we can switch between dashboards.
2023-08-25 08:36:12 -07:00
Jason Kulatunga 31479a4fc4 adding support for user settings (Remote Dashboard Locations) 2023-08-25 08:36:12 -07:00
Jason Kulatunga 3fe72918fd
adding ability to count by wildcard (source_resource_type).
internal fields like `id`, `source_id`, `source_resource_id` and `source_resource_type` are now queryable via keyword type.
2023-08-23 12:24:08 -07:00
Jason Kulatunga dd50faab57
update instructions for dashboard. 2023-08-22 15:58:20 -07:00
Jason Kulatunga 3db12ee4b8
adding information about the unsafe endpoints.
Dashboard locations should be added to settings table.
2023-08-21 17:20:17 -07:00
Jason Kulatunga 2a8b302319 fixing tests. 2023-08-17 17:19:26 -06:00
Jason Kulatunga 3c30298b7c fixing tests. 2023-08-17 17:19:26 -06:00
Jason Kulatunga 2f292397f7 where possible store the SourceURI with the resource.
requires updated version of Fasten sources (better Binary compatibility)
2023-08-17 17:19:26 -06:00
Jason Kulatunga b3a173df01 working aggregation code 2023-08-14 17:23:36 -06:00
Jason Kulatunga 6f56fa9c3b working aggregation code.
added tests for sql generation.
2023-08-14 17:23:36 -06:00
Jason Kulatunga 2c5133bef7 adding testing framework for Aggregation code.
WIP.
2023-08-14 17:23:36 -06:00
Jason Kulatunga 495fce5696 starting to work on GroupBy aggregations 2023-08-14 17:23:36 -06:00
Jason Kulatunga 1f113cdf63
make sure reference fields are correctly extracted and stored in the DB. 2023-08-13 15:28:03 -06:00
Jason Kulatunga 4dad809f19
removing Resource. segment of FHIRpath expressions (not supported) 2023-08-13 12:30:39 -06:00
Jason Kulatunga ddbf65080d
fixing Condition onset and abatement extraction. 2023-08-13 12:21:43 -06:00
Jason Kulatunga 410696c26f adding pagination to the explore page. fixes #216
simplified fallback component for table list
2023-08-12 10:27:46 -06:00
packagrio-bot 8c4e926d20 (v0.1.4) Automated packaging of release by Packagr 2023-08-09 04:12:38 +00:00
Jason Kulatunga cb1dab738d fix backend tests 2023-08-08 21:08:17 -07:00
Jason Kulatunga 0397a2f0cb sort all resources by "sort_date" column during query
return units when querying
rename all usages of "source" page to "explore"
adding new explore page.
fix dashboard widgets to correctly
2023-08-08 21:08:17 -07:00
Jason Kulatunga 28cb91817a
make sure sortTitle and SortDate are correctly set when extracting searchParamters
Failures during searchparameter extraction should not cause the resource to be skipped.
Update searchparameter extraction to correctly handle Time objects
Update searchparameter extraction to default to nil if empty list is returned during extraction.
2023-08-01 20:29:35 -07:00
Jason Kulatunga 9e776c60b8 make sure HumanName and Address types are correctly extracted as searchable strings.
Make sure they can be searched against using the query endpoint.
2023-07-31 18:46:52 -07:00
Jason Kulatunga 94fa479ff8 update the generator script for FhirResource storage. 2023-07-31 18:46:52 -07:00
Jason Kulatunga 0517f9b350 make sure we can handle HumanName and Address type objects (convert to string). 2023-07-31 18:46:52 -07:00
Jason Kulatunga 6433de8f25
make sure refreshed token is stored in the database when making raw unsafe requests. 2023-07-30 19:51:47 -07:00
packagrio-bot 60bedabe01 (v0.1.3) Automated packaging of release by Packagr 2023-07-21 05:39:54 +00:00
Jason Kulatunga 07d01fc33b
fixing tests. 2023-07-20 22:08:31 -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
packagrio-bot 879312a852 (v0.1.2) Automated packaging of release by Packagr 2023-07-16 19:57:20 +00:00