Skip to content

Retrieve

pyorthanc.retrieve

retrieve_and_write_patients(patients, path)

Retrieve and write patients to given path

Parameters:

Name Type Description Default
patients List[Patient]

List of patients.

required
path str

Path where you want to write the files.

required
Source code in pyorthanc/retrieve.py
10
11
12
13
14
15
16
17
18
19
20
21
def retrieve_and_write_patients(patients: List[Patient], path: str) -> None:
    """Retrieve and write patients to given path

    Parameters
    ----------
    patients
        List of patients.
    path
        Path where you want to write the files.
    """
    for patient in patients:
        retrieve_and_write_patient(patient, path)