Skip to content

Commit ebba92a

Browse files
author
hackermd
committed
Add stow-rs example to user guide
1 parent bfbaff8 commit ebba92a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docs/usage.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The client can be used with any DICOMweb server, such as `dcm4che <http://www.dc
88
.. _api:
99

1010
Application Programming Interface (API)
11-
----------------------------------
11+
---------------------------------------
1212

1313
To interact with a publicly accessible server, you only need to provide the ``url`` for the server address.
1414

@@ -61,6 +61,23 @@ To interact with server requiring certificate-based authentication, you can prov
6161
)
6262
6363
64+
.. _storeinstances:
65+
66+
STOW-RS StoreInstances
67+
++++++++++++++++++++++
68+
69+
Store a single dataset obtained from a PS3.10 file:
70+
71+
.. code-block:: python
72+
73+
from dicomweb_client.api import DICOMwebClient
74+
import pydicom
75+
76+
filename = "/path/to/file.dcm"
77+
dataset = pydicom.dcmread(filename)
78+
client.store_instances(datasets=[dataset])
79+
80+
6481
.. _searchforstudies:
6582

6683
QIDO-RS SeachForStudies

0 commit comments

Comments
 (0)