#[non_exhaustive]pub enum PatientLookup {
RequestNamed,
Found(Vec<PatientIdentifier>),
NotFound,
Unavailable,
NotConfigured,
Unsupported,
}Expand description
Whether the patient behind an ehr_id is named, so a search by the
patient’s identifier finds the access (Art 9(1)).
Debug shows the outcome and how many identifiers were found, never one.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RequestNamed
The request named the patient, so the record names them already.
Found(Vec<PatientIdentifier>)
The identity service holds these identifiers for the patient.
NotFound
The identity service holds no identifier for the patient in a namespace asked.
The identity service could not be asked, or did not answer.
NotConfigured
The recording system names no namespace to ask in.
Unsupported
The recording system has no identity service that names a patient
by an ehr_id.
Implementations§
Trait Implementations§
Source§impl Clone for PatientLookup
impl Clone for PatientLookup
Auto Trait Implementations§
impl Freeze for PatientLookup
impl RefUnwindSafe for PatientLookup
impl Send for PatientLookup
impl Sync for PatientLookup
impl Unpin for PatientLookup
impl UnsafeUnpin for PatientLookup
impl UnwindSafe for PatientLookup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more