Skip to content

Commit

Permalink
Accept internal vs representation
Browse files Browse the repository at this point in the history
  • Loading branch information
bamader committed Nov 1, 2024
1 parent 52a93b8 commit 13385db
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions query-connector/src/app/database-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,17 +461,12 @@ export async function insertQuery(input: QueryInput) {
* 2. Whether each concept included in that value set bundle was inserted
* 3. Whether these concepts are now mapped to this value set via foreign key
* If any data is found to be missing, it is collected and logged to the user.
* @param setToCheck The FHIR formatted value set to check.
* @param ersdConcept The eRSD concept this value set belongs to.
* @param vs The DIBBs internal representation of the value set to check.
* @returns A data structure reporting on missing concepts or value set links.
*/
export async function checkValueSetInsertion(
setToCheck: FhirValueSet,
ersdConcept: ErsdConceptType,
) {
export async function checkValueSetInsertion(vs: ValueSet) {
// Translate to our internal representation and begin accumulating
// missing data
const vs = await translateVSACToInternalValueSet(setToCheck, ersdConcept);
const missingData = {
missingValueSet: false,
missingConcepts: [] as Array<String>,
Expand Down

0 comments on commit 13385db

Please sign in to comment.