pharmaship.inventory.models¶
Inventory application models.
-
class
pharmaship.inventory.models.
Allowance
(*args, **kwargs)¶ Model for articles and medicines allowances.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
Article
(*args, **kwargs)¶ Article model, “child” of Equipment.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
BaseReqQty
(*args, **kwargs)¶ Model for required quantity of a medical equipment
-
class
pharmaship.inventory.models.
Equipment
(*args, **kwargs)¶ Model for medical equipment.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
order_info
()¶ Output a string for Purchase application.
-
exception
-
class
pharmaship.inventory.models.
EquipmentGroup
(*args, **kwargs)¶ Model for groups attached to a
pharmaship.inventory.models.Equipment
instance.-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
EquipmentManager
(*args, **kwargs)¶ Manager for class Equipment.
For deserialization purpose only.
-
class
pharmaship.inventory.models.
EquipmentReqQty
(*args, **kwargs)¶ Model for required quantity of a medical equipment
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
FirstAidKit
(*args, **kwargs)¶ Model for First Aid Kits.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
FirstAidKitItem
(id, name, exp_date, used, remark, packing_content, packing_name, kit, nc, content_type, object_id)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
FirstAidKitReqQty
(id, allowance, required_quantity, content_type, object_id)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
GroupManager
(*args, **kwargs)¶ Manager for class MedicineGroup and MaterialGroup.
For deserialization purpose only.
-
class
pharmaship.inventory.models.
LaboratoryReqQty
(id, allowance, required_quantity, base)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
Location
(*args, **kwargs)¶ Stores locations attached to a
pharmaship.inventory.models.Equipment
or model:pharmaship.inventory.models.Molecule instance.-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
Medicine
(*args, **kwargs)¶ Stores a medicine object, “child” of
pharmaship.inventory.models.Molecule
.-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
clean_fields
(exclude=None)¶ Clean all fields and raise a ValidationError containing a dict of all validation errors if any occur.
-
exception
-
class
pharmaship.inventory.models.
Molecule
(*args, **kwargs)¶ Store molecule objects used as referent in an
pharmaship.inventory.models.Allowance
.-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
order_info
()¶ Output a string for Purchase application.
-
exception
-
class
pharmaship.inventory.models.
MoleculeGroup
(*args, **kwargs)¶ Model for groups attached to a
pharmaship.inventory.models.Molecule
instance.-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
MoleculeManager
(*args, **kwargs)¶ Manager for
pharmaship.inventory.models.Molecule
.
-
class
pharmaship.inventory.models.
MoleculeReqQty
(*args, **kwargs)¶ Model for required quantity of a medicine
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
QtyTransaction
(*args, **kwargs)¶ Stores a quantity transaction related to
pharmaship.inventory.models.Article
orpharmaship.inventory.models.Medicine
.There are 5 types of transactions: * 1 IN: a material is added, * 2 USED: the material is used for a treatment, * 4 PERISHED: the material has expired, * 8 PHYSICAL_COUNT: the stock is refreshed after a human count, * 9 OTHER: other reason.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
RescueBag
(*args, **kwargs)¶ Model for rescue bags.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
RescueBagReqQty
(id, allowance, required_quantity, content_type, object_id)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
Tag
(*args, **kwargs)¶ Stores tags attached to a
pharmaship.inventory.models.Equipment
or model:pharmaship.inventory.models.Molecule instance.-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
exception
-
class
pharmaship.inventory.models.
TagManager
(*args, **kwargs)¶ Manager for class Tag.
For deserialization purpose only.