cardea.fhir.Provenance

class cardea.fhir.Provenance(dict_values=None)

Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies.

Parameters
  • resourceType – This is a Provenance resource

  • target – The Reference(s) that were generated or updated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity.

  • period – The period during which the activity occurred.

  • recorded – The instant of time at which the activity was recorded.

  • policy – Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc.

  • location – Where the activity occurred, if relevant.

  • reason – The reason that the activity was taking place.

  • activity – An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities.

  • agent – An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.

  • entity – An entity used in this activity.

  • signature – A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.

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