care.facility.models.prescription module¶
- class FrequencyEnum(*values)¶
Bases:
Enum- STAT = 'Immediately'¶
- OD = 'once daily'¶
- HS = 'Night only'¶
- BD = 'Twice daily'¶
- TID = '8th hourly'¶
- QID = '6th hourly'¶
- Q4H = '4th hourly'¶
- QOD = 'Alternate day'¶
- QWK = 'Once a week'¶
- class Routes(*values)¶
Bases:
Enum- ORAL = 'Oral'¶
- IV = 'IV'¶
- IM = 'IM'¶
- SC = 'S/C'¶
- INHALATION = 'Inhalation'¶
- NASOGASTRIC = 'Nasogastric/Gastrostomy tube'¶
- INTRATHECAL = 'intrathecal injection'¶
- TRANSDERMAL = 'Transdermal'¶
- RECTAL = 'Rectal'¶
- SUBLINGUAL = 'Sublingual'¶
- class PrescriptionDosageType(*values)¶
Bases:
TextChoices- REGULAR = 'REGULAR'¶
- TITRATED = 'TITRATED'¶
- PRN = 'PRN'¶
- generate_choices(enum_class)¶
- class MedibaseMedicine(id, external_id, created_date, modified_date, deleted, name, type, generic, company, contents, cims_class, atc_classification)¶
Bases:
BaseModel- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- generic¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- company¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- contents¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- cims_class¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- atc_classification¶
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
- 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_type_display(*, field=<django.db.models.fields.CharField: type>)¶
- 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.
- prescription_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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class Prescription(id, external_id, created_date, modified_date, deleted, consultation, prescription_type, medicine, medicine_old, route, base_dosage, dosage_type, target_dosage, instruction_on_titration, frequency, days, indicator, max_dosage, min_hours_between_doses, notes, meta, prescribed_by, discontinued, discontinued_reason, discontinued_date, 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.parentis aForwardManyToOneDescriptorinstance.
- prescription_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- medicine¶
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.parentis aForwardManyToOneDescriptorinstance.
- medicine_old¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- base_dosage¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- dosage_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- target_dosage¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- instruction_on_titration¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- frequency¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- days¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- indicator¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_dosage¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- min_hours_between_doses¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- notes¶
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.
- prescribed_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.parentis aForwardManyToOneDescriptorinstance.
- discontinued¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discontinued_reason¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discontinued_date¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_migrated¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property medicine_name¶
- property last_administration¶
- has_object_write_permission(request)¶
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- administrations¶
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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- consultation_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_dosage_type_display(*, field=<django.db.models.fields.CharField: dosage_type>)¶
- get_frequency_display(*, field=<django.db.models.fields.CharField: frequency>)¶
- get_prescription_type_display(*, field=<django.db.models.fields.CharField: prescription_type>)¶
- get_route_display(*, field=<django.db.models.fields.CharField: route>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- medicine_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.
- prescribed_by_id¶
- class MedicineAdministration(id, external_id, created_date, modified_date, deleted, prescription, dosage, notes, administered_by, administered_date, archived_on, archived_by)¶
Bases:
BaseModel,ConsultationRelatedPermissionMixin- prescription¶
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.parentis aForwardManyToOneDescriptorinstance.
- dosage¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- notes¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- administered_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.parentis aForwardManyToOneDescriptorinstance.
- administered_date¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- archived_on¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- archived_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.parentis aForwardManyToOneDescriptorinstance.
- has_object_write_permission(request)¶
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- administered_by_id¶
- archived_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_next_by_administered_date(*, field=<django.db.models.fields.DateTimeField: administered_date>, is_next=True, **kwargs)¶
- get_previous_by_administered_date(*, field=<django.db.models.fields.DateTimeField: administered_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.
- modified_date¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prescription_id¶