cardea.fhir.DataRequirement

class cardea.fhir.DataRequirement(dict_values=None)

Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.

Parameters
  • type – The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile.

  • profile – The profile of the required data, specified as the uri of the profile definition.

  • mustSupport – Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available. Note that the value for this element can be a path to allow references to nested elements. In that case, all the elements along the path must be supported.

  • codeFilter – Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data.

  • dateFilter – Date filters specify additional constraints on the data in terms of the applicable date range for specific elements.

__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.