care.facility.models.ambulance module

class Ambulance(id, external_id, created_date, modified_date, deleted, vehicle_number, owner_name, owner_phone_number, owner_is_smart_phone, primary_district, secondary_district, third_district, has_oxygen, has_ventilator, has_suction_machine, has_defibrillator, insurance_valid_till_year, ambulance_type, price_per_km, has_free_service, created_by)

Bases: FacilityBaseModel

vehicle_number_regex = <django.core.validators.RegexValidator object>
INSURANCE_YEAR_CHOICES = ((2020, 2020), (2021, 2021), (2022, 2022))
vehicle_number

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

owner_name

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

owner_phone_number

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

owner_is_smart_phone

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

primary_district

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 a ForwardManyToOneDescriptor instance.

secondary_district

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 a ForwardManyToOneDescriptor instance.

third_district

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 a ForwardManyToOneDescriptor instance.

has_oxygen

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

has_ventilator

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

has_suction_machine

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

has_defibrillator

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

insurance_valid_till_year

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

ambulance_type

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

price_per_km

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

has_free_service

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

created_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 a ForwardManyToOneDescriptor instance.

property drivers
static has_read_permission(request)
has_object_read_permission(request)
static has_write_permission(request)
has_object_write_permission(request)
has_object_update_permission(request)
exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

ambulancedriver_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 a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

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

get_ambulance_type_display(*, field=<django.db.models.fields.IntegerField: ambulance_type>)
get_insurance_valid_till_year_display(*, field=<django.db.models.fields.IntegerField: insurance_valid_till_year>)
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.

primary_district_id
secondary_district_id
third_district_id
class AmbulanceDriver(id, external_id, created_date, modified_date, deleted, ambulance, name, phone_number, is_smart_phone)

Bases: FacilityBaseModel

ambulance

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 a ForwardManyToOneDescriptor instance.

name

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

phone_number

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

is_smart_phone

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

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

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.