Skip to content

Commit

Permalink
Use regular metadata fishing when we remove the version
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-thompson committed Aug 4, 2023
1 parent 5228c9d commit ac986ca
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/fhirtypes/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
} from '../fshtypes';
import { FSHTank } from '../import';
import { Type, Fishable, Metadata } from '../utils/Fishable';
import { fishForMetadataBestVersion, fishInTankBestVersion, logger } from '../utils';
import { fishInTankBestVersion, logger } from '../utils';
import { buildSliceTree, calculateSliceTreeCounts } from './sliceTree';
import { InstanceExporter } from '../export';
import { MismatchedTypeError } from '../errors';
Expand Down Expand Up @@ -955,12 +955,7 @@ export function replaceReferences<T extends AssignmentRule | CaretValueRule>(
// the version on a CodeSystem resource is not the same as the system's actual version out in the world.
// so, they don't need to match.
const baseSystem = value.system?.split('|')[0];
const codeSystemMeta = fishForMetadataBestVersion(
fisher,
baseSystem,
rule.sourceInfo,
Type.CodeSystem
);
const codeSystemMeta = fisher.fishForMetadata(baseSystem, Type.CodeSystem);
if (codeSystemMeta) {
clone = cloneDeep(rule);
const assignedCode = getRuleValue(clone) as FshCode;
Expand Down

0 comments on commit ac986ca

Please sign in to comment.