cardea.fhir.Basic

class cardea.fhir.Basic(dict_values=None)

Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don’t map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.

Parameters
  • resourceType – This is a Basic resource

  • identifier – Identifier assigned to the resource for business purposes, outside the context of FHIR.

  • code – Identifies the ‘type’ of resource - equivalent to the resource name for other resources.

  • subject – Identifies the patient, practitioner, device or any other resource that is the “focus” of this resource.

  • created – Identifies when the resource was first created.

  • author – Indicates who was responsible for creating the resource instance.

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