care.facility.models.events module¶
- class ChangeType(*values)¶
Bases:
TextChoices
- CREATED = 'CREATED'¶
- UPDATED = 'UPDATED'¶
- DELETED = 'DELETED'¶
- class EventType(id, parent, name, description, model, fields, created_date, is_active)¶
Bases:
Model
- parent¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- model¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fields¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_date¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- save(*args, **kwargs)¶
- get_descendants()¶
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- children¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- get_next_by_created_date(*, field=<django.db.models.fields.DateTimeField: created_date>, is_next=True, **kwargs)¶
- get_previous_by_created_date(*, field=<django.db.models.fields.DateTimeField: created_date>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- parent_id¶
- patientconsultationevent_set¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- class PatientConsultationEvent(id, external_id, consultation, caused_by, created_date, taken_at, object_model, object_id, event_type, is_latest, meta, value, change_type)¶
Bases:
Model
- external_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- consultation¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- caused_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- created_date¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- taken_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- object_model¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- object_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- event_type¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- is_latest¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- meta¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- value¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- change_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- caused_by_id¶
- consultation_id¶
- event_type_id¶
- get_change_type_display(*, field=<django.db.models.fields.CharField: change_type>)¶
- get_next_by_created_date(*, field=<django.db.models.fields.DateTimeField: created_date>, is_next=True, **kwargs)¶
- get_next_by_taken_at(*, field=<django.db.models.fields.DateTimeField: taken_at>, is_next=True, **kwargs)¶
- get_previous_by_created_date(*, field=<django.db.models.fields.DateTimeField: created_date>, is_next=False, **kwargs)¶
- get_previous_by_taken_at(*, field=<django.db.models.fields.DateTimeField: taken_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶