diff --git a/pyorthanc/orthanc.py b/pyorthanc/orthanc.py index 8e7b18d464b2cdbd42b0a2697d4546714bc1b58c..e386957b0402d19ac9856c9dbf703fb7d2fd466b 100644 --- a/pyorthanc/orthanc.py +++ b/pyorthanc/orthanc.py @@ -850,7 +850,7 @@ class Orthanc: Examples -------- - >>> o = Orthanc('http://localhost:8080') + >>> o = Orthanc('http://localhost:8042') >>> o.get_instance_content_by_group_element('0040-a730/6/0040-a730/0/0040-a160') """ return self.get_request( @@ -3507,7 +3507,7 @@ class Orthanc: params ) - def get_studies(self) -> List[str]: + def get_studies(self, params: Optional[Dict] = None) -> List[str]: """Get studies identifiers "since" and "limit" arguments + "expand" argument to retrieve the content of the studies. @@ -3516,6 +3516,11 @@ class Orthanc: ------- List[str] List of the studies identifiers. + Examples + -------- + >>> o = Orthanc('http://localhost:8042') + >>> params = {'expand': 'true'} + >>> o.get_studies(params=params) """ return self.get_request( f'{self._orthanc_url}/studies'