NewDataElement

class pydelfini.delfini_core.models.new_data_element.NewDataElement(data_type, name, concepts=Unset, definition=Unset, permissible_values=Unset, permit_null=False, sensitivity=Unset)[source]

Bases: object

Delfini Data Element

Parameters:
data_type

The data type valid for this data element.

Type:

NewDataElementDataType

name

The title or name of the data element.

Type:

str

concepts

Linked concepts for the data element.

Type:

Union[Unset, List[‘DataElementConcept’]]

definition

Any definitions that describe or inform the context of the data element.

Type:

Union[Unset, List[‘DataElementDefinition’]]

permissible_values (Union[Unset, List[Union['DataElementPermissibleValuesDateTimeFormat',

‘DataElementPermissibleValuesExternalReference’, ‘DataElementPermissibleValuesNumberRange’, ‘DataElementPermissibleValuesTextRange’, ‘DataElementPermissibleValuesValueSet’]]]): Describes the values that this data element properly represents.

permit_null

If true, nulls will not cause validation failures. Default: False.

Type:

Union[Unset, bool]

sensitivity

Whether this data element references sensitive data (PHI, PII, etc.)

Type:

Union[Unset, bool]

Attributes

data_type

name

concepts

definition

permissible_values

permit_null

sensitivity

classmethod from_dict(src_dict)[source]

Create an instance of NewDataElement from a dict

Parameters:

src_dict (Dict[str, Any])

Return type:

T

to_dict()[source]

Convert to a dict

Return type:

Dict[str, Any]