pub struct Medication {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 code: Option<CodeableConcept>,
pub status: Option<CodeDt>,
pub marketing_authorization_holder: Option<Reference>,
pub dose_form: Option<CodeableConcept>,
pub total_volume: Option<Quantity>,
pub ingredient: Option<Vec<MedicationIngredientBackboneElement>>,
pub batch: Option<MedicationBatchBackboneElement>,
pub definition: Option<Reference>,
}
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>>
Business identifier for this medication
code: Option<CodeableConcept>
Codes that identify this medication
status: Option<CodeDt>
active | inactive | entered-in-error
Organization that has authorization to market medication
dose_form: Option<CodeableConcept>
powder | tablets | capsule +
total_volume: Option<Quantity>
When the specified product code does not infer a package size, this is the specific amount of drug in the product
ingredient: Option<Vec<MedicationIngredientBackboneElement>>
Active or inactive ingredient
batch: Option<MedicationBatchBackboneElement>
Details about packaged medications
definition: Option<Reference>
Knowledge about this medication
Implementations§
Source§impl Medication
impl Medication
pub fn set_identifier(self, v: Vec<Identifier>) -> Self
pub fn add_identifier(self, v: Identifier) -> Self
pub fn set_code(self, v: CodeableConcept) -> Self
pub fn set_status<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_dose_form(self, v: CodeableConcept) -> Self
pub fn set_total_volume(self, v: Quantity) -> Self
pub fn set_ingredient(self, v: Vec<MedicationIngredientBackboneElement>) -> Self
pub fn add_ingredient(self, v: MedicationIngredientBackboneElement) -> Self
pub fn set_batch(self, v: MedicationBatchBackboneElement) -> Self
pub fn set_definition(self, v: Reference) -> Self
Trait Implementations§
Source§impl Clone for Medication
impl Clone for Medication
Source§fn clone(&self) -> Medication
fn clone(&self) -> Medication
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Compare for Medication
impl Compare for Medication
Source§impl Convert for Medication
impl Convert for Medication
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 Debug for Medication
impl Debug for Medication
Source§impl Default for Medication
impl Default for Medication
Source§fn default() -> Medication
fn default() -> Medication
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Medication
impl<'de> Deserialize<'de> for Medication
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
Source§impl DomainResource for Medication
impl DomainResource for Medication
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 Medication
impl Executor for Medication
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>
Source§impl Resource for Medication
impl Resource for Medication
Source§impl Serialize for Medication
impl Serialize for Medication
Auto Trait Implementations§
impl Freeze for Medication
impl RefUnwindSafe for Medication
impl Send for Medication
impl Sync for Medication
impl Unpin for Medication
impl UnwindSafe for Medication
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