CDCgov / phdi

https://cdcgov.github.io/dibbs-site/
Creative Commons Zero v1.0 Universal
35 stars 14 forks source link

Add functionality to read core metadata from SQL Server #2946

Open angelathe opened 4 days ago

angelathe commented 4 days ago

What needs to be done

For our pilot partners (Philly) using SQL Server, we need to implement being able to read the metadata from SQL Server for the eCR Library. This ticket should ensure that the data from the ecr_data, ecr_rr_conditions, and ecr_rr_rule_summaries tables can populate the eCR Library table from SQL Server in the same way it currently works with Postgres.

We need to:

Why it needs to be done

Currently, the endpoint is only written using Postgres, so Philly isn't able to use/see anything in their eCR Library.

Acceptance Criteria

Technical Notes

# Metadata Config
METADATA_DATABASE_TYPE=sqlserver
METADATA_DATABASE_SCHEMA=extended
SQL_SERVER_USER=sa
SQL_SERVER_PASSWORD=Password1!
SQL_SERVER_SERVER=sqlserver

Additional context

See #2675 (PR that implemented saving the extended metadata to SQL Server)