Datatypes and objects¶
Datatypes and objects.
Classes:
| Name | Description |
|---|---|
ExportInfo |
The results of a download action. |
SeriesData |
Info for DICOM series. |
SeriesUidMap |
Map a SeriesInstanceUID to an index. |
Status |
Download status codes. |
StudyData |
Info for DICOM studies. |
ExportInfo
¶
ExportInfo(
series_uid: str = "NA",
study_uid: str = "NA",
status: Status = UNKNOWN,
destination: Path = Path(),
start: datetime | None = None,
end: datetime | None = None,
)
The results of a download action.
Methods:
| Name | Description |
|---|---|
column_names |
Get the column names. |
convert |
Convert a SeriesData to an ExportInfo. |
duration |
Get the duration of the export. |
to_dict |
Convert to dictionary. |
Attributes:
| Name | Type | Description |
|---|---|---|
destination |
Path
|
Download location. |
end |
datetime | None
|
End of download action. |
series_uid |
str
|
SeriesInstanceUID downloaded. |
start |
datetime | None
|
Start of download action. |
status |
Status
|
Download status. |
study_uid |
str
|
StudyInstanceUID downloaded. |
SeriesData
¶
Bases: BaseModel
Info for DICOM series.
Attributes:
| Name | Type | Description |
|---|---|---|
Modality |
str
|
Modality |
ProtocolName |
str
|
ProtocolName |
SeriesDescription |
str
|
SeriesDescription |
SeriesInstanceUID |
str
|
SeriesInstanceUID |
SeriesNumber |
int | None
|
SeriesNumber |
StudyInstanceUID |
str
|
StudyInstanceUID |
SeriesUidMap
¶
SeriesUidMap(series: list[SeriesData])
Status
¶
StudyData
¶
Bases: BaseModel
Info for DICOM studies.
Methods:
| Name | Description |
|---|---|
modalities_in_study_is_list |
Validator to make sure the ModalitiesInStudy is a list. |
set_patient_name |
Validator to decode the patient name from PersonName. |
Attributes:
| Name | Type | Description |
|---|---|---|
AccessionNumber |
str
|
AccessionNumber |
BodyPartExamined |
str
|
BodyPartExamined |
ModalitiesInStudy |
list[str]
|
ModalitiesInStudy |
PatientBirthDate |
str
|
PatientBirthDate |
PatientID |
str
|
PatientID |
PatientName |
str
|
PatientName |
PatientSex |
str
|
PatientSex |
StudyDate |
str
|
StudyDate |
StudyDescription |
str
|
StudyDescription |
StudyID |
str
|
StudyID |
StudyInstanceUID |
str
|
StudyInstanceUID |
StudyTime |
str
|
StudyTime |
series |
list[SeriesData]
|
series |
modalities_in_study_is_list
¶
Validator to make sure the ModalitiesInStudy is a list.
set_patient_name
¶
set_patient_name(value: PersonName | str) -> str
Validator to decode the patient name from PersonName.