FHIR Chat · Reference to _history in STU3 · implementers

Stream: implementers

Topic: Reference to _history in STU3


view this post on Zulip Stefan Lang (Feb 28 2019 at 13:26):

The R4 documentation ( https://www.hl7.org/fhir/references.html#literal ) says:
"
References can be version specific - that is, a reference may point to a specific version of a resource. e.g.:

  <target>
    <reference value="http://example.org/fhir/Observation/1x2/_history/2" />
  </target>

"

This paragraph does not exist in STU3, but the Regex there allows to have the same ".../_history/2" reference.

However, using a HAPI STU3 endpoint, and POSTing a transaction Bundle containing

<Observation>
    ...
    <reference value="Patient/2/_history/1"/>
    ...
</Observation>
<request>
    <method value="POST"/>
    ...
</request>

the resulting Observation will cut the history part of the reference and only contain

<reference value="Patient/2"/>

Is this correct according to the STU3 spec, is it a bug/missing feature in HAPI or am I overlooking something?

view this post on Zulip Lloyd McKenzie (Feb 28 2019 at 15:42):

Being able to point to specific versions has existed at least as far back as DSTU2. @James Agnew ?

view this post on Zulip Maximilian Reith (Mar 04 2019 at 11:08):

You need to enable versioned references explicit...http://hapifhir.io/doc_resource_references.html#_toc_versioned_references

view this post on Zulip Stefan Lang (Mar 04 2019 at 11:21):

:+1:


Last updated: Apr 12 2022 at 19:14 UTC