Skip to main content

CodeSystem

Struct CodeSystem 

Source
pub struct CodeSystem {
Show 34 fields pub id: Option<String>, pub meta: Option<Meta>, pub implicit_rules: Option<Primitive<String>>, pub language: Option<Primitive<String>>, pub text: Option<Narrative>, pub contained: Vec<Resource>, pub extension: Vec<Extension>, pub modifier_extension: Vec<Extension>, pub url: Option<Primitive<String>>, pub identifier: Vec<Identifier>, pub version: Option<Primitive<String>>, pub name: Option<Primitive<String>>, pub title: Option<Primitive<String>>, pub status: Option<Primitive<String>>, pub experimental: Option<Primitive<bool>>, pub date: Option<Primitive<String>>, pub publisher: Option<Primitive<String>>, pub contact: Vec<ContactDetail>, pub description: Option<Primitive<String>>, pub use_context: Vec<UsageContext>, pub jurisdiction: Vec<CodeableConcept>, pub purpose: Option<Primitive<String>>, pub copyright: Option<Primitive<String>>, pub case_sensitive: Option<Primitive<bool>>, pub value_set: Option<Primitive<String>>, pub hierarchy_meaning: Option<Primitive<String>>, pub compositional: Option<Primitive<bool>>, pub version_needed: Option<Primitive<bool>>, pub content: Option<Primitive<String>>, pub supplements: Option<Primitive<String>>, pub count: Option<Primitive<i32>>, pub filter: Vec<CodeSystemFilter>, pub property: Vec<CodeSystemProperty>, pub concept: Vec<CodeSystemConcept>,
}
Expand description

The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content.

FHIR path: CodeSystem.

Fields§

§id: Option<String>

id (0..1): Logical id of this artifact

§meta: Option<Meta>

meta (0..1): Metadata about the resource

§implicit_rules: Option<Primitive<String>>

implicitRules (0..1): A set of rules under which this content was created

§language: Option<Primitive<String>>

language (0..1): Language of the resource content

§text: Option<Narrative>

text (0..1): Text summary of the resource, for human interpretation

§contained: Vec<Resource>

contained (0..*): Contained, inline Resources

§extension: Vec<Extension>

extension (0..*): Additional content defined by implementations

§modifier_extension: Vec<Extension>

modifierExtension (0..*): Extensions that cannot be ignored

§url: Option<Primitive<String>>

url (0..1): Canonical identifier for this code system, represented as a URI (globally unique) (Coding.system)

§identifier: Vec<Identifier>

identifier (0..*): Additional identifier for the code system (business identifier)

§version: Option<Primitive<String>>

version (0..1): Business version of the code system (Coding.version)

§name: Option<Primitive<String>>

name (0..1): Name for this code system (computer friendly)

§title: Option<Primitive<String>>

title (0..1): Name for this code system (human friendly)

§status: Option<Primitive<String>>

status (1..1): draft | active | retired | unknown

§experimental: Option<Primitive<bool>>

experimental (0..1): For testing purposes, not real usage

§date: Option<Primitive<String>>

date (0..1): Date last changed

§publisher: Option<Primitive<String>>

publisher (0..1): Name of the publisher (organization or individual)

§contact: Vec<ContactDetail>

contact (0..*): Contact details for the publisher

§description: Option<Primitive<String>>

description (0..1): Natural language description of the code system

§use_context: Vec<UsageContext>

useContext (0..*): The context that the content is intended to support

§jurisdiction: Vec<CodeableConcept>

jurisdiction (0..*): Intended jurisdiction for code system (if applicable)

§purpose: Option<Primitive<String>>

purpose (0..1): Why this code system is defined

§copyright: Option<Primitive<String>>

copyright (0..1): Use and/or publishing restrictions

§case_sensitive: Option<Primitive<bool>>

caseSensitive (0..1): If code comparison is case sensitive

§value_set: Option<Primitive<String>>

valueSet (0..1): Canonical reference to the value set with entire code system

§hierarchy_meaning: Option<Primitive<String>>

hierarchyMeaning (0..1): grouped-by | is-a | part-of | classified-with

§compositional: Option<Primitive<bool>>

compositional (0..1): If code system defines a compositional grammar

§version_needed: Option<Primitive<bool>>

versionNeeded (0..1): If definitions are not stable

§content: Option<Primitive<String>>

content (1..1): not-present | example | fragment | complete | supplement

§supplements: Option<Primitive<String>>

supplements (0..1): Canonical URL of Code System this adds designations and properties to

§count: Option<Primitive<i32>>

count (0..1): Total concepts in the code system

§filter: Vec<CodeSystemFilter>

filter (0..*): Filter that can be used in a value set

§property: Vec<CodeSystemProperty>

property (0..*): Additional information supplied about each concept

§concept: Vec<CodeSystemConcept>

concept (0..*): Concepts in the code system

Trait Implementations§

Source§

impl Clone for CodeSystem

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for CodeSystem

Source§

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

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

impl Default for CodeSystem

Source§

fn default() -> Self

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

impl FhirJson for CodeSystem

Available on crate feature foundation only.
Source§

const TYPE_NAME: &'static str = "CodeSystem"

The FHIR type name, used as the path root when decoding on its own.
Source§

fn decode(v: &Json, d: &mut Decoder) -> Option<Self>

Read from JSON, reporting problems to d. None when the value was not usable at all (not an object, say).
Source§

fn encode(&self) -> Json

Write the JSON form.
Source§

impl PartialEq for CodeSystem

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CodeSystem

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.

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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.