FHIR Chat · incorrect error message · IG creation

Stream: IG creation

Topic: incorrect error message


view this post on Zulip Brian Reinhold (Nov 24 2018 at 11:55):

I am getting this error

Profile http://hl7.org/fhir/uv/phd/StructureDefinition/PhdCoincidentTimeStampObservation, Element matches more than one slice - , wallClockTime

The example has a valueDateTime which is of type dateTime. The value[x] is being sliced on its type which is either a dateTime or Quantity (or dataAbsentReason). The slicing details are below. I have tried several variants and they all lead to the same error. (If there is a syntax error ... which there must be it would help if there were an example of slicing on a value[x] situation). I know I could solve this by splitting the profile into two which should not be necessary!

    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Time line of PHD. Absent if a time fault; dataAbsentReason will have 'unknown' " />
      <max value="1" />
      <type> <!-- removed these two entries to no effect -->
        <code value="dateTime" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
    </element>

    <!-- Wall clock time -->
    <element id="Observation.value[x]:wallClockTime">
      <path value="Observation.valueDateTime" />
      <sliceName value="wallClockTime" />
      <short value="Value when PHD reports an absolute or base offset time." />
      <type>
        <code value="dateTime" />
      </type>
    </element>

    <!-- Relative time --When a relative time we have elements in the valueQuantity which must be populated -->
    <element id="Observation.value[x]:relativeTime">
      <path value="Observation.valueQuantity" />
      <sliceName value="relativeTime" />
      <short value="Value when PHD reports a relative type of time." />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="Observation.value[x]:relativeTime.valueQuantity.value">
      <path value="Observation.valueQuantity.value" />
      <min value="1" />
    </element>
    <element id="Observation.value[x]:relativeTime.valueQuantity.system">
      <path value="Observation.valueQuantity.system" />
      <definition value="Identifies the UCUM coding system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.value[x]:relativeTime.valueQuantity.code">
      <path value="Observation.valueQuantity.code" />
      <definition value="The UCUM code for microseconds which is 'us'." />
      <comment value="The MDC code is translated to UCUM." />
      <min value="1" />
      <fixedCode value="us" />
    </element>

view this post on Zulip Lloyd McKenzie (Nov 24 2018 at 20:11):

Can you commit so we can test?

view this post on Zulip Brian Reinhold (Nov 24 2018 at 20:54):

Can you commit so we can test?

Committed


Last updated: Apr 12 2022 at 19:14 UTC