pub enum TaskCode {
Abort,
Approve,
Change,
Fulfill,
Instantiate,
Replace,
Resume,
Suspend,
}
Expand description
TaskCode. Codes indicating the type of action that is expected to be performed
FHIR version: 5.0.0.
Variants§
Abort
abort
Mark the focal resource as no longer active. Abort, cancel or withdraw the focal resource, as appropriate for the type of resource.
Approve
approve
Activate/approve the focal resource. Take what actions are needed to transition the focus resource from ‘draft’ to ‘active’ or ‘in-progress’, as appropriate for the resource type. This may involve additing additional content, approval, validation, etc.
Change
change
Change the focal resource. Update the focal resource of the owning system to reflect the content specified as the Task.focus
Fulfill
fulfill
Fulfill the focal request. Act to perform the actions described in the focus request. This might result in a ‘more assertive’ request (order for a plan or proposal, filler order for a placer order), but is intend to eventually result in events. The degree of fulfillment requested might be limited by Task.restriction.
Instantiate
instantiate
Instantiate the focal definition. Act to perform the actions defined in the focus definition resource (ActivityDefinition, PlanDefinition, Questionnaire, etc.) For PlanDefinition or ActivityDefinition, this might result in a ‘more assertive’ request (order for a plan or proposal, filler order for a placer order), but is intend to eventually result in events. For Questionnaire, this would result in a QuestionnaireResponse - and possibly resources constructed using data extracted from the response. The degree of fulfillment requested might be limited by Task.restriction.
Replace
replace
Replace the focal resource with the input resource. Replace the focal resource with the specified input resource
Resume
resume
Re-activate the focal resource. Transition the focal resource from ‘suspended’ to ‘active’ or ‘in-progress’ as appropriate for the resource type.
Suspend
suspend
Suspend the focal resource. Transition the focal resource from ‘active’ or ‘in-progress’ to ‘suspended’
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskCode
impl<'de> Deserialize<'de> for TaskCode
Source§fn deserialize<D>(
deserializer: D,
) -> Result<TaskCode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<TaskCode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl From<TaskCode> for CodeableConcept
impl From<TaskCode> for CodeableConcept
Source§fn from(code: TaskCode) -> CodeableConcept
fn from(code: TaskCode) -> CodeableConcept
Source§impl Serialize for TaskCode
impl Serialize for TaskCode
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl Copy for TaskCode
impl Eq for TaskCode
impl StructuralPartialEq for TaskCode
Auto Trait Implementations§
impl Freeze for TaskCode
impl RefUnwindSafe for TaskCode
impl Send for TaskCode
impl Sync for TaskCode
impl Unpin for TaskCode
impl UnwindSafe for TaskCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.