FHIR Chat · meta profile not rendered in diff · IG creation

Stream: IG creation

Topic: meta profile not rendered in diff


view this post on Zulip Brian Reinhold (Sep 18 2018 at 12:12):

I do not know if this is expected behavior but in a BaseObservation I define and slice the meta element. I state there must be at least one element. The slicing is on the meta.profile value as follows:

    <element id="Observation.meta">
      <path value="Observation.meta" />
      <min value="1" />
    </element>
    <element id="Observation.meta.profile">
      <path value="Observation.meta.profile" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="Observation.meta.profile" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>

In my Observation that inherits the BaseObservation I specify what the profile is

    <element id="Observation.meta.profile:phdProfile">
      <path value="Observation.meta.profile" />
      <sliceName value="phdProfile" />
      <short value="The PHD profile URL" />
      <min value="1" />
      <max value="1" />
      <fixedUri value="PhdNumericObservation" />
    </element>

However, upon rendering, I do not see the meta.profile value in the diff field. It IS in the snapshot. I would have expected it to be in the diff field since it is part of the Observation differential. Is it not because the meta is not in the Observation per se, just the Resource?

view this post on Zulip Lloyd McKenzie (Sep 18 2018 at 15:38):

Again, it looks like your differential is too sparse. You have to represent the full hierarchy . So you have to have Observation, Observation.meta and Observation.meta.profile in your differential, even if you're not going to say anything about it

view this post on Zulip Brian Reinhold (Sep 18 2018 at 19:32):

Again, it looks like your differential is too sparse. You have to represent the full hierarchy . So you have to have Observation, Observation.meta and Observation.meta.profile in your differential, even if you're not going to say anything about it

@Lloyd McKenzie It IS in the differential, its just part of it is in the Base, and the rest (the value of meta.profile) is in the Observation inheriting from the base.

view this post on Zulip Lloyd McKenzie (Sep 18 2018 at 19:53):

It has to be in the derived resource's differential - being in the base doesn't count

view this post on Zulip Brian Reinhold (Sep 18 2018 at 19:56):

It has to be in the derived resource's differential - being in the base doesn't count

Okay, in that case I guess there is no reason to put it in the base at all. I will just define the entire thing in the derived resource.


Last updated: Apr 12 2022 at 19:14 UTC