care.facility.models.base module

pretty_boolean(val, a='YES', b='NO', c='Not Specified')
reverse_choices(choices)
covert_choice_dict(choices)
class FacilityBaseModel(*args, **kwargs)

Bases: BaseModel

class Meta

Bases: object

abstract = False
created_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

deleted

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

external_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

modified_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class PatientBaseModel(*args, **kwargs)

Bases: BaseModel

class Meta

Bases: object

abstract = False
created_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

deleted

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

external_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

modified_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.