OperationOutcome

Enum OperationOutcome 

Source
pub enum OperationOutcome {
Show 51 variants DELETE_MULTIPLE_MATCHES(Option<Element>), MSG_AUTH_REQUIRED(Option<Element>), MSG_BAD_FORMAT(Option<Element>), MSG_BAD_SYNTAX(Option<Element>), MSG_CANT_PARSE_CONTENT(Option<Element>), MSG_CANT_PARSE_ROOT(Option<Element>), MSG_CREATED(Option<Element>), MSG_DATE_FORMAT(Option<Element>), MSG_DELETED(Option<Element>), MSG_DELETED_DONE(Option<Element>), MSG_DELETED_ID(Option<Element>), MSG_DUPLICATE_ID(Option<Element>), MSG_ERROR_PARSING(Option<Element>), MSG_ID_INVALID(Option<Element>), MSG_ID_TOO_LONG(Option<Element>), MSG_INVALID_ID(Option<Element>), MSG_JSON_OBJECT(Option<Element>), MSG_LOCAL_FAIL(Option<Element>), MSG_NO_EXIST(Option<Element>), MSG_NO_MATCH(Option<Element>), MSG_NO_MODULE(Option<Element>), MSG_NO_SUMMARY(Option<Element>), MSG_OP_NOT_ALLOWED(Option<Element>), MSG_PARAM_CHAINED(Option<Element>), MSG_PARAM_INVALID(Option<Element>), MSG_PARAM_MODIFIER_INVALID(Option<Element>), MSG_PARAM_NO_REPEAT(Option<Element>), MSG_PARAM_UNKNOWN(Option<Element>), MSG_RESOURCE_EXAMPLE_PROTECTED(Option<Element>), MSG_RESOURCE_ID_FAIL(Option<Element>), MSG_RESOURCE_ID_MISMATCH(Option<Element>), MSG_RESOURCE_ID_MISSING(Option<Element>), MSG_RESOURCE_NOT_ALLOWED(Option<Element>), MSG_RESOURCE_REQUIRED(Option<Element>), MSG_RESOURCE_TYPE_MISMATCH(Option<Element>), MSG_SORT_UNKNOWN(Option<Element>), MSG_TRANSACTION_DUPLICATE_ID(Option<Element>), MSG_TRANSACTION_MISSING_ID(Option<Element>), MSG_UNHANDLED_NODE_TYPE(Option<Element>), MSG_UNKNOWN_CONTENT(Option<Element>), MSG_UNKNOWN_OPERATION(Option<Element>), MSG_UNKNOWN_TYPE(Option<Element>), MSG_UPDATED(Option<Element>), MSG_VERSION_AWARE(Option<Element>), MSG_VERSION_AWARE_CONFLICT(Option<Element>), MSG_VERSION_AWARE_URL(Option<Element>), MSG_WRONG_NS(Option<Element>), SEARCH_MULTIPLE(Option<Element>), SEARCH_NONE(Option<Element>), UPDATE_MULTIPLE_MATCHES(Option<Element>), Null(Option<Element>),
}

Variants§

§

DELETE_MULTIPLE_MATCHES(Option<Element>)

Error: Multiple matches exist for the conditional delete

§

MSG_AUTH_REQUIRED(Option<Element>)

You must authenticate before you can use this service

§

MSG_BAD_FORMAT(Option<Element>)

Bad Syntax: “%s” must be a %s’

§

MSG_BAD_SYNTAX(Option<Element>)

Bad Syntax in %s

§

MSG_CANT_PARSE_CONTENT(Option<Element>)

Unable to parse feed (entry content type = “%s”)

§

MSG_CANT_PARSE_ROOT(Option<Element>)

Unable to parse feed (root element name = “%s”)

§

MSG_CREATED(Option<Element>)

New resource created

§

MSG_DATE_FORMAT(Option<Element>)

The Date value %s is not in the correct format (Xml Date Format required)

§

MSG_DELETED(Option<Element>)

This resource has been deleted

§

MSG_DELETED_DONE(Option<Element>)

Resource deleted

§

MSG_DELETED_ID(Option<Element>)

The resource “%s” has been deleted

§

MSG_DUPLICATE_ID(Option<Element>)

Duplicate Id %s for resource type %s

§

MSG_ERROR_PARSING(Option<Element>)

Error parsing resource Xml (%s)

§

MSG_ID_INVALID(Option<Element>)

Id “%s” has an invalid character “%s”

§

MSG_ID_TOO_LONG(Option<Element>)

Id “%s” too long (length limit 36)

§

MSG_INVALID_ID(Option<Element>)

Id not accepted

§

MSG_JSON_OBJECT(Option<Element>)

Json Source for a resource should start with an object

§

MSG_LOCAL_FAIL(Option<Element>)

Unable to resolve local reference to resource %s

§

MSG_NO_EXIST(Option<Element>)

Resource Id “%s” does not exist

§

MSG_NO_MATCH(Option<Element>)

No Resource found matching the query “%s”

§

MSG_NO_MODULE(Option<Element>)

No module could be found to handle the request “%s”

§

MSG_NO_SUMMARY(Option<Element>)

No Summary for this resource

§

MSG_OP_NOT_ALLOWED(Option<Element>)

Operation %s not allowed for resource %s (due to local configuration)

§

MSG_PARAM_CHAINED(Option<Element>)

Unknown chained parameter name “%s”

§

MSG_PARAM_INVALID(Option<Element>)

Parameter “%s” content is invalid

§

MSG_PARAM_MODIFIER_INVALID(Option<Element>)

Parameter “%s” modifier is invalid

§

MSG_PARAM_NO_REPEAT(Option<Element>)

Parameter “%s” is not allowed to repeat

§

MSG_PARAM_UNKNOWN(Option<Element>)

Parameter “%s” not understood

§

MSG_RESOURCE_EXAMPLE_PROTECTED(Option<Element>)

Resources with identity “example” cannot be deleted (for testing/training purposes)

§

MSG_RESOURCE_ID_FAIL(Option<Element>)

unable to allocate resource id

§

MSG_RESOURCE_ID_MISMATCH(Option<Element>)

Resource Id Mismatch

§

MSG_RESOURCE_ID_MISSING(Option<Element>)

Resource Id Missing

§

MSG_RESOURCE_NOT_ALLOWED(Option<Element>)

Not allowed to submit a resource for this operation

§

MSG_RESOURCE_REQUIRED(Option<Element>)

A resource is required

§

MSG_RESOURCE_TYPE_MISMATCH(Option<Element>)

Resource Type Mismatch

§

MSG_SORT_UNKNOWN(Option<Element>)

Unknown sort parameter name “%s”

§

MSG_TRANSACTION_DUPLICATE_ID(Option<Element>)

Duplicate Identifier in transaction: %s

§

MSG_TRANSACTION_MISSING_ID(Option<Element>)

Missing Identifier in transaction - an entry.id must be provided

§

MSG_UNHANDLED_NODE_TYPE(Option<Element>)

Unhandled xml node type “%s”

§

MSG_UNKNOWN_CONTENT(Option<Element>)

Unknown Content (%s) at %s

§

MSG_UNKNOWN_OPERATION(Option<Element>)

unknown FHIR http operation

§

MSG_UNKNOWN_TYPE(Option<Element>)

Resource Type “%s” not recognised

§

MSG_UPDATED(Option<Element>)

existing resource updated

§

MSG_VERSION_AWARE(Option<Element>)

Version aware updates are required for this resource

§

MSG_VERSION_AWARE_CONFLICT(Option<Element>)

Update Conflict (server current version = “%s”, client version referenced = “%s”)

§

MSG_VERSION_AWARE_URL(Option<Element>)

Version specific URL not recognised

§

MSG_WRONG_NS(Option<Element>)

This does not appear to be a FHIR element or resource (wrong namespace “%s”)

§

SEARCH_MULTIPLE(Option<Element>)

Error: Multiple matches exist for %s search parameters “%s”

§

SEARCH_NONE(Option<Element>)

Error: no processable search found for %s search parameters “%s”

§

UPDATE_MULTIPLE_MATCHES(Option<Element>)

Error: Multiple matches exist for the conditional update

§

Null(Option<Element>)

If value is missing and just the element is present.

Trait Implementations§

Source§

impl Clone for OperationOutcome

Source§

fn clone(&self) -> OperationOutcome

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OperationOutcome

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OperationOutcome

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl FHIRJSONDeserializer for OperationOutcome

Source§

impl FHIRJSONSerializer for OperationOutcome

Source§

fn serialize_value( &self, writer: &mut dyn Write, ) -> Result<bool, SerializeError>

Source§

fn serialize_extension( &self, writer: &mut dyn Write, ) -> Result<bool, SerializeError>

Source§

fn serialize_field( &self, field: &str, writer: &mut dyn Write, ) -> Result<bool, SerializeError>

Source§

fn is_fp_primitive(&self) -> bool

Source§

impl Into<Option<String>> for &OperationOutcome

Source§

fn into(self) -> Option<String>

Converts this type into the (usually inferred) input type.
Source§

impl MetaValue for OperationOutcome

Source§

fn fields(&self) -> Vec<&'static str>

Source§

fn get_field<'a>(&'a self, field: &str) -> Option<&'a dyn MetaValue>

Source§

fn get_field_mut<'a>(&'a mut self, field: &str) -> Option<&'a mut dyn MetaValue>

Source§

fn get_index<'a>(&'a self, _index: usize) -> Option<&'a dyn MetaValue>

Source§

fn get_index_mut<'a>( &'a mut self, _index: usize, ) -> Option<&'a mut dyn MetaValue>

Source§

fn flatten(&self) -> Vec<&dyn MetaValue>

Source§

fn as_any(&self) -> &dyn Any

Source§

fn typename(&self) -> &'static str

Source§

impl TryFrom<String> for OperationOutcome

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(value: String) -> Result<Self, String>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more