Skip to content

Commit

Permalink
Fix problem with contentReference and Logic Models
Browse files Browse the repository at this point in the history
When unfolding a contentReference, include fishing for Logical Models
  • Loading branch information
bkaney committed Aug 30, 2023
1 parent 1666d88 commit aa9d93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fhirtypes/ElementDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,7 @@ export class ElementDefinition {
if (this.contentReference) {
// Get the original resource JSON so we unfold unconstrained reference
const type = this.structDef.type;
const json = fisher.fishForFHIR(type, Type.Resource);
const json = fisher.fishForFHIR(type, Type.Resource, Type.Logical);
// contentReference elements will not contain a type field, so we must fish for the StructDef and
// check the differential
const profileJson = fisher.fishForFHIR(this.structDef.id, Type.Profile);
Expand Down

0 comments on commit aa9d93a

Please sign in to comment.