care.facility.models.icd11_diagnosis module

class ICD11ClassKind(*values)

Bases: TextChoices

CHAPTER = 'chapter'
BLOCK = 'block'
CATEGORY = 'category'
class ICD11Diagnosis(*args, **kwargs)

Bases: Model

Use ICDDiseases for in-memory search.

id

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

icd11_id

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

label

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

class_kind

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

is_leaf

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

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

average_depth

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

is_adopted_child

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

breadth_value

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

meta_hidden

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

meta_chapter

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

meta_chapter_short

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

meta_root_block

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

meta_root_category

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

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

get_class_kind_display(*, field=<django.db.models.fields.CharField: class_kind>)
icd11diagnosis_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.

objects = <django.db.models.manager.Manager object>
parent_id
class ConditionVerificationStatus(*values)

Bases: TextChoices

See: https://www.hl7.org/fhir/valueset-condition-ver-status.html

UNCONFIRMED = 'unconfirmed'
PROVISIONAL = 'provisional'
DIFFERENTIAL = 'differential'
CONFIRMED = 'confirmed'
REFUTED = 'refuted'
ENTERED_IN_ERROR = 'entered-in-error'
class ConsultationDiagnosis(id, external_id, created_date, modified_date, deleted, consultation, diagnosis, verification_status, is_principal, created_by, is_migrated)

Bases: BaseModel, ConsultationRelatedPermissionMixin

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

diagnosis

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.

verification_status

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

is_principal

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.

is_migrated

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

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

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

get_verification_status_display(*, field=<django.db.models.fields.CharField: verification_status>)
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.