Skip to content

Commit

Permalink
jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Oct 21, 2024
1 parent 81210dc commit 4c40818
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions query-connector/src/app/database-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,19 @@ export async function getVSACValueSet(
}
}

/**
* Translates a VSAC FHIR bundle to our internal ValueSet struct
* @param fhirValueset - The FHIR ValueSet response from VSAC
* @param ersdConceptType - The associated clinical concept type from ERSD
* @returns An object of type InternalValueSet
*/
export function translateVSACToInternalValueSet(
fhirValueset: ValueSet,
ersdConceptType: ErsdConceptType,
) {
const id = fhirValueset.id;
// does this need any interpolation? ie example "version": "20230602",
// needs to be maped to v2 or v3?
// does this need any interpolation?
// ie example "version": "20230602" needs to be maped to v2 or v3?
const version = fhirValueset.version;

// would we prefer this over the less readable "name?"
Expand Down

0 comments on commit 4c40818

Please sign in to comment.