Struct orthanc::entity::Patient[][src]

pub struct Patient {
    pub id: String,
    pub is_stable: bool,
    pub last_update: NaiveDateTime,
    pub main_dicom_tags: HashMap<String, String>,
    pub studies: Vec<String>,
    pub entity: EntityKind,
    pub anonymized_from: Option<String>,
}

Patient

Fields

id: Stringis_stable: boollast_update: NaiveDateTimemain_dicom_tags: HashMap<String, String>studies: Vec<String>entity: EntityKindanonymized_from: Option<String>

Trait Implementations

impl Debug for Patient[src]

impl<'de> Deserialize<'de> for Patient[src]

impl Entity for Patient[src]

fn kind() -> EntityKind[src]

Returns the EntityKind::Patient variant

fn id(&self) -> &str[src]

The ID of the patient

fn children_kind_name(&self) -> Option<&str>[src]

Returns “studies”

fn main_dicom_tag(&self, tag: &str) -> Option<&str>[src]

Get the value of a DICOM tag from main_dicom_tags

fn children(&self) -> &[String][src]

Returns the list of IDs of all studies that belong to this patient

fn children_len(&self) -> usize[src]

Number of studies that belong to this patient

impl Eq for Patient[src]

impl PartialEq<Patient> for Patient[src]

impl Serialize for Patient[src]

impl StructuralEq for Patient[src]

impl StructuralPartialEq for Patient[src]

Auto Trait Implementations

impl RefUnwindSafe for Patient

impl Send for Patient

impl Sync for Patient

impl Unpin for Patient

impl UnwindSafe for Patient

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]