pub struct Substance {Show 17 fields
pub id: Option<Id>,
pub meta: Option<Meta>,
pub implicit_rules: Option<UriDt>,
pub language: Option<CodeDt>,
pub text: Option<Narrative>,
pub contained: Option<Vec<AnyResource>>,
pub extension: Option<Vec<Extension>>,
pub modifier_extension: Option<Vec<Extension>>,
pub identifier: Option<Vec<Identifier>>,
pub instance: Option<BooleanDt>,
pub status: Option<CodeDt>,
pub category: Option<Vec<CodeableConcept>>,
pub code: Option<CodeableReference>,
pub description: Option<MarkdownDt>,
pub expiry: Option<DateTimeDt>,
pub quantity: Option<Quantity>,
pub ingredient: Option<Vec<SubstanceIngredientBackboneElement>>,
}
Fields§
§id: Option<Id>
Logical id of this artifact
meta: Option<Meta>
Metadata about the resource
implicit_rules: Option<UriDt>
A set of rules under which this content was created
language: Option<CodeDt>
Language of the resource content
text: Option<Narrative>
Text summary of the resource, for human interpretation
contained: Option<Vec<AnyResource>>
Contained, inline Resources
extension: Option<Vec<Extension>>
Additional content defined by implementations
modifier_extension: Option<Vec<Extension>>
Extensions that cannot be ignored
identifier: Option<Vec<Identifier>>
Unique identifier
instance: Option<BooleanDt>
Is this an instance of a substance or a kind of one
status: Option<CodeDt>
active | inactive | entered-in-error
category: Option<Vec<CodeableConcept>>
What class/type of substance this is
code: Option<CodeableReference>
What substance this is
description: Option<MarkdownDt>
Textual description of the substance, comments
expiry: Option<DateTimeDt>
When no longer valid to use
quantity: Option<Quantity>
Amount of substance in the package
ingredient: Option<Vec<SubstanceIngredientBackboneElement>>
Composition information about the substance
Implementations§
Source§impl Substance
impl Substance
pub fn set_identifier(self, v: Vec<Identifier>) -> Self
pub fn add_identifier(self, v: Identifier) -> Self
pub fn set_instance<T: Into<BooleanDt>>(self, v: T) -> Self
pub fn set_status<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_category(self, v: Vec<CodeableConcept>) -> Self
pub fn add_category(self, v: CodeableConcept) -> Self
pub fn set_code(self, v: CodeableReference) -> Self
pub fn set_description<T: Into<MarkdownDt>>(self, v: T) -> Self
pub fn set_expiry<T: Into<DateTimeDt>>(self, v: T) -> Self
pub fn set_quantity(self, v: Quantity) -> Self
pub fn set_ingredient(self, v: Vec<SubstanceIngredientBackboneElement>) -> Self
pub fn add_ingredient(self, v: SubstanceIngredientBackboneElement) -> Self
Trait Implementations§
Source§impl Convert for Substance
impl Convert for Substance
fn to_integer(&self) -> Result<Integer>
fn to_decimal(&self) -> Result<Decimal>
fn to_strings(&self) -> Result<String>
fn to_datetime(&self) -> Result<DateTime>
fn to_boolean(&self) -> Result<Boolean>
Source§impl<'de> Deserialize<'de> for Substance
impl<'de> Deserialize<'de> for Substance
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
Source§impl DomainResource for Substance
impl DomainResource for Substance
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
fn modifier_extension(&self) -> &Option<Vec<Extension>>
fn set_modifier_extension(self, ext: Vec<Extension>) -> Self
fn add_modifier_extension(self, ext: Extension) -> Self
Source§impl Executor for Substance
impl Executor for Substance
fn element(&self, symbol: &String, index: &Option<usize>) -> Result<Collection>
fn to_collection(&self, index: &Option<usize>) -> Collection
fn child(&self, _index: usize) -> Result<Collection>
Auto Trait Implementations§
impl Freeze for Substance
impl RefUnwindSafe for Substance
impl Send for Substance
impl Sync for Substance
impl Unpin for Substance
impl UnwindSafe for Substance
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