CDCgov / dibbs-query-connector

A FHIR client allowing public health agencies to query health care organizations directly or via a TEFCA QHIN
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

DB Creation Funcs #130

Closed bamader closed 1 week ago

bamader commented 1 week ago

Create DB Seeding Functions in TypeScript file

Summary

This PR adds in the functionality needed to execute database creation as a currently uncalled typescript file. Once Marcelle's PR for creating the button and page lands, we can link this code to that button and play it out. In the mean time, this code was tested using docker instrumentation hook setups.

Related Issue

Fixes #83 #85

Additional Information

Very minor point, but I personally like the logging I left in the functions because this is a more complex integration process across multiple APIs, with batching and async calls, as well as sleep times. I personally think it's nice to report the information since the whole process takes ~30 seconds and visual cues can be helpful during that time. Open to taking them out, just wanted to explain the rationale for leaving them in.