Skip to content

Commit

Permalink
Merge branch 'develop' into MAT-8070
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcphillips authored Jan 14, 2025
2 parents bdefe80 + adf8a6a commit 837ae63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ describe("TerminologyServiceApi Tests", () => {
id: "mu2-update-2015-05-01",
},
activeOnly: "true",
profile: "",
valueSetParams: [
{ oid: "2.16.840.1.113883.3.666.5.307" },
{ oid: "2.16.840.1.113883.3.464.1003.103.12.1001" },
Expand All @@ -125,7 +124,6 @@ describe("TerminologyServiceApi Tests", () => {
includeDraft: "yes",
manifestExpansion: null,
activeOnly: "false",
profile: "",
valueSetParams: [
{ oid: "2.16.840.1.113883.3.666.5.307" },
{ oid: "2.16.840.1.113883.3.464.1003.103.12.1001" },
Expand Down Expand Up @@ -153,7 +151,6 @@ describe("TerminologyServiceApi Tests", () => {
id: "mu2-update-2015-05-01",
},
activeOnly: "true",
profile: "",
valueSetParams: [
{ oid: "2.16.840.1.113883.3.666.5.307" },
{ oid: "2.16.840.1.113883.3.464.1003.103.12.1001" },
Expand Down Expand Up @@ -252,8 +249,8 @@ describe("TerminologyServiceApi Tests", () => {
}
});

it("test getQdmValueSetsExpansion no search param", () => {
const result = terminologyService.getQdmValueSetsExpansion(
it("test getQdmValueSetsExpansion no search param", async () => {
const result = await terminologyService.getQdmValueSetsExpansion(
testCqmMeasure,
testManifestExpansion,
true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type ValueSetSearchParams = {
};

type ValueSetsSearchCriteria = {
profile: string;
includeDraft: "yes" | "no";
activeOnly: string;
manifestExpansion: ManifestExpansion;
Expand All @@ -36,6 +35,8 @@ export class TerminologyServiceApi {
}
const searchCriteria = {
includeDraft: "yes", // always yes for now
activeOnly: "false",
manifestExpansion: null, // always latest until we support manifest for QICore
valueSetParams: this.getValueSetsOIdsFromBundle(measureBundle),
} as ValueSetsSearchCriteria;
if (searchCriteria.valueSetParams.length == 0) {
Expand All @@ -44,7 +45,7 @@ export class TerminologyServiceApi {

try {
const response = await axios.put(
`${this.baseUrl}/vsac/value-sets/searches`,
`${this.baseUrl}/terminology/value-sets/expansion/fhir`,
searchCriteria,
{
headers: {
Expand Down Expand Up @@ -80,7 +81,6 @@ export class TerminologyServiceApi {
const searchCriteria: ValueSetsSearchCriteria = {
includeDraft: "yes", // always yes for now
activeOnly: manifestExpansion ? "true" : "false",
profile: "",
manifestExpansion: manifestExpansion,
valueSetParams: this.getValueSetsOIDsFromCqmMeasure(
JSON.parse(JSON.stringify(cqmMeasure))
Expand Down

0 comments on commit 837ae63

Please sign in to comment.