Skip to content

Commit

Permalink
fix: cr
Browse files Browse the repository at this point in the history
  • Loading branch information
itayshavitOB committed Mar 31, 2024
1 parent b9ccb06 commit 2894096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
29 changes: 0 additions & 29 deletions docker-compose.yml

This file was deleted.

8 changes: 4 additions & 4 deletions src/helpers/jsonataExpr/createRawPackageIndexObject.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* © Copyright Outburn Ltd. 2022-2023 All Rights Reserved
* Project name: FUME
* © Copyright Outburn Ltd. 2022-2024 All Rights Reserved
* Project name: FUME-COMMUNITY
*/

import fs from 'fs';
Expand Down Expand Up @@ -49,9 +49,9 @@ export const createRawPackageIndexObject = (packageIndexArray: any): any => {
const codeSystems = files.filter((file) => file.resourceType === 'CodeSystem');
const conceptMaps = files.filter((file) => file.resourceType === 'ConceptMap');

const fhirVersions = [...new Set(files.map((file) => file.fhirVersion))];
const fhirVersions = [...new Set(files.map((file) => file ? file.fhirVersion : undefined))];

const minorVersions = [...new Set(fhirVersions.map((version: any) => `${version.split('.')[0]}.${version.split('.')[1]}`))];
const minorVersions = [...new Set(fhirVersions.map((version: any) => version ? `${version.split('.')[0]}.${version.split('.')[1]}` : undefined))];

return minorVersions.map((mv) => {
const filteredFiles = files.filter((file) => `${file.fhirVersion.split('.')[0]}.${file.fhirVersion.split('.')[1] === mv}`);
Expand Down

0 comments on commit 2894096

Please sign in to comment.