Skip to content

Commit

Permalink
more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Oct 30, 2024
1 parent 9d3c849 commit 7a00299
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions query-connector/src/app/database-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export async function translateVSACToInternalValueSet(
fhirValueset: FhirValueSet,
ersdConceptType: ErsdConceptType,
) {
const id = fhirValueset.id;
const oid = fhirValueset.id;
const version = fhirValueset.version;

const name = fhirValueset.title;
Expand All @@ -205,10 +205,10 @@ export async function translateVSACToInternalValueSet(
});

return {
valueSetId: "",
valueSetId: `${oid}_${version}`,
valueSetVersion: version,
valueSetName: name,
valueSetExternalId: id,
valueSetExternalId: oid,
author: author,
system: system,
ersdConceptType: ersdConceptType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { translateVSACToInternalValueSet } from "../../database-service";
import { ValueSet as FhirValueSet } from "fhir/r4";

const EXPECTED_INTERNAL_VALUESET: ValueSet = {
valueSetId: ExampleVsacValueSet.id,
valueSetId: `${ExampleVsacValueSet.id}_${ExampleVsacValueSet.version}`,
valueSetVersion: ExampleVsacValueSet.version,
valueSetName: ExampleVsacValueSet.title,
valueSetExternalId: ExampleVsacValueSet.id,
author: ExampleVsacValueSet.publisher,
system: ExampleVsacValueSet.compose.include[0].system,
ersdConceptType: "ostc",
Expand Down

0 comments on commit 7a00299

Please sign in to comment.