cardea.fhir.Substance

class cardea.fhir.Substance(dict_values=None)

A homogeneous material with a definite composition.

Parameters
  • resourceType – This is a Substance resource

  • identifier – Unique identifier for the substance.

  • status – A code to indicate if the substance is actively used.

  • category – A code that classifies the general type of substance. This is used for searching, sorting and display purposes.

  • code – A code (or set of codes) that identify this substance.

  • description – A description of the substance - its appearance, handling requirements, and other usage notes.

  • instance – Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.

  • ingredient – A substance can be composed of other substances.

__init__(dict_values=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([dict_values])

Initialize self.

assert_type()

Checks class values follow set possible enumerations.

get_dataframe()

Returns dataframe from class attribute values.

get_eligible_relationships()

Returns class relationships for attributes that are used.

get_id()

Returns fhir class identifier.

get_relationships()

Returns class relationships.

set_attributes(dict_values)

Sets values to class attributes.