Skip to content

Commit 6700b2d

Browse files
authored
Add docs for expiry
1 parent c10d608 commit 6700b2d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

articles/healthcare-apis/dicom/dicom-services-conformance-statement-v2.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@ If an attribute is padded with nulls, the attribute is indexed when searchable a
112112

113113
The [external metadata](external-metadata.md#store-stow-rs) documentation explains the ability to store DICOM file with external metadata.
114114

115+
#### Store DICOM file with Expiry
116+
When storing a DICOM file, users can specify a deletion time in the future through the usage of expiry headers.
117+
118+
In order to set an expiry time, the following headers must be set on POST or PUT requests.
119+
120+
| Header | Accepted Values | Description |
121+
| :------------------------------------ | :----------------- | :------------------------------------------------------------------------------------------- |
122+
| `msdicom-expiry-option` | `RelativeToNow` | How the deletion time is calculated. Currently the only supported option is `RelativeToNow` |
123+
| `msdicom-expiry-level` | `Study` | The level at which the expiry should be set. Currently only supported at the `Study` level. |
124+
| `msdicom-expiry-time-milliseconds` | Integer values > 0 | The number of milliseconds after which the study should be deleted |
125+
126+
At this time, expiry is only supported at the study level, meaning that all instances of a study will be deleted at the same time. If multiple instances are stored for the same study in seperate requests, the deletion will be based on the expiry headers sent in the last STOW request. In the case that the last STOW request does not specify expiry headers, the study will not be scheduled for deletion and any previously sent expiry headers will be ignored.
127+
128+
When using the `RelativeToNow` expiry option, the deletion time will be calulcated based on the time the request is recieved by the DICOM service. The deletion may not happen at the exact time calculated, but within a few hours of the calculated time.
129+
115130
#### Store response status codes
116131

117132
| Code | Description |

0 commit comments

Comments
 (0)