care.facility.models.patient_external_test module

class PatientExternalTest(id, external_id, created_date, modified_date, deleted, srf_id, name, age, age_in, gender, address, mobile_number, is_repeat, patient_status, ward, local_body, district, source, patient_category, lab_name, test_type, sample_type, result, sample_collection_date, result_date, patient_created)

Bases: FacilityBaseModel

srf_id

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

name

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

age

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

age_in

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

gender

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

address

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

mobile_number

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

is_repeat

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

patient_status

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

ward

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.

local_body

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.

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.

source

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

patient_category

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

lab_name

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

test_type

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

sample_type

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

result

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

sample_collection_date

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

result_date

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

patient_created

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

CSV_MAPPING = {'address': 'Patient Address', 'age': 'Age', 'age_in': 'Age In', 'district__name': 'District', 'gender': 'Gender', 'id': 'Care External Result ID', 'is_repeat': 'Is Repeat', 'lab_name': 'LabName', 'local_body__name': 'LSGD', 'mobile_number': 'Contact Number', 'name': 'Patient Name', 'patient_category': 'Patient Category', 'patient_status': 'Patient Status', 'result': 'Final Result', 'result_date': 'Result Date', 'sample_collection_date': 'Sample Collection Date', 'sample_type': 'Sample Type', 'source': 'Source', 'srf_id': 'SRF-ID', 'test_type': 'Testing Kit Used', 'ward__name': 'Ward Name', 'ward__number': 'Ward Number'}
CSV_MAKE_PRETTY = {'is_repeat': <function pretty_boolean>}
HEADER_CSV_MAPPING = {'address': 'Patient Address', 'age': 'Age', 'age_in': 'Age In', 'district': 'District', 'gender': 'Gender', 'is_repeat': 'Is Repeat', 'lab_name': 'LabName', 'local_body': 'LSGD', 'local_body_type': 'LSGD Type', 'mobile_number': 'Contact Number', 'name': 'Patient Name', 'patient_status': 'Patient Status', 'result': 'Final Result', 'result_date': 'Result Date', 'sample_collection_date': 'Sample Collection Date', 'sample_type': 'Sample Type', 'source': 'Source', 'srf_id': 'SRF-ID', 'test_type': 'Testing Kit Used', 'ward': 'Ward'}
exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

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.

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

local_body_id
modified_date

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

ward_id