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

Change ValueSet insertion function to overwrite rather than error if duplicate entries are inserted #81

Closed linear[bot] closed 3 weeks ago

linear[bot] commented 3 weeks ago

Continuing with the work outlined in this document, we want our inserts to be idempotent and failure resilient, so that any errors that occur during database creation don't break the process completely. One minor change that will be needed to accomplish this is making the insertValueSet function use an UPSERT rather than a true INSERT, so that if duplicate values are created during valueset initialization the DB migration can continue. Follow the syntax here to modify this function to use an INSERT … ON CONFLICT pattern to resolve any duplications in the uniquely identifying OID + Version number field.

linear[bot] commented 3 weeks ago

QUE-36 Change ValueSet insertion function to overwrite rather than error if duplicate entries are inserted