-
Type:
Change Request
-
Resolution: Duplicate
-
Priority:
Medium
-
FHIR Core (FHIR)
-
STU3
-
FHIR Infrastructure
-
Bundle
-
Enhancement
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 ->- 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> <!
<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>
- duplicates
-
FHIR-16198 Add delete/purge REST operation
-
- Resolved - change required
-