Skip to content

Commit 0425753

Browse files
committed
Update usage section of documentation
1 parent e05b596 commit 0425753

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/usage.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,14 @@ A common use for this is translating metadata received from a ``RetrieveMetadata
557557

558558
.. code-block:: python
559559
560-
from dicomweb_client.api import load_json_dataset
560+
from pydicom.dataset import Dataset
561561
562562
metadata = client.retrieve_study_metadata('1.2.826.0.1.3680043.8.1055.1.20111103111148288.98361414.79379639')
563-
metadata_datasets = [load_json_dataset(ds) for ds in metadata]
563+
metadata_datasets = [Dataset.from_json(ds) for ds in metadata]
564+
565+
Note that the metadata may include references to BulkData elements.
566+
By default, BulkData elements will not be handled and the values not be automatically retrieved.
567+
To handle BulkData elements and retrieve their values, one has to provide a ``bulk_data_uri_handler`` callable to the `pydicom.dataset.Dataset.from_json() <https://pydicom.github.io/pydicom/dev/reference/generated/pydicom.dataset.Dataset.html#pydicom.dataset.Dataset.from_json>`_ method.
564568

565569

566570
Command Line Interface (CLI)

0 commit comments

Comments
 (0)