Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-20332

Create a $restore operation

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • STU3
    • FHIR Infrastructure
    • Bundle
    • Enhancement

    Description

      I would like to add a $restore operation which would allow you to restore history versions of a resource. This would be in support of a backup/restore process using a Bundle resource. The $restore operation would create historical versions of the resource, persisting the .meta information as was specified in the $restore operation.

      This $restore operation could be both at the root (transaction) level of the server, and per each resource.

      POST /$restore (restores multiple resources' histories)
      POST /Composition/$restore (restores multiple composition's histories)
      POST /Composition/1/$restore (restore history for composition 1)

      For example:

      POST /$restore

      <Bundle xmlns="http://hl7.org/fhir">
      <id value="20160113160203" />
      <type value="transaction" />
      <entry>
      <resource>
      <Observation id="1">
      * <meta> <!-- everything in meta should be preserved as-is ->
      <lastUpdated value="20190102" />
      </meta>*
      <subject>
      <reference value="Patient?identifier=12345"/>
      </subject>
      </Observation>
      </resource>
      <request>
      <method value="PUT" />
      <url value="/Observation*/1/_history/1*" />
      </request>
      </entry>
      <entry>
      <resource>
      <Observation id="1">
      * <meta> <!
      - everything in meta should be preserved as-is -->
      <lastUpdated value="20190103" />
      </meta>*
      <subject>
      <reference value="Patient?identifier=1"/>
      </subject>
      </Observation>
      </resource>
      <request>
      <method value="PUT" />
      <url value="/Observation/1*/_history/2*" />
      </request>
      </entry>
      <Bundle>

      Attachments

        Activity

          People

            Unassigned Unassigned
            seanmcilvenna Sean McIlvenna
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: