摘要:
A medical device or medical software is provided that supports system extensibility for diabetes care. The medical device or software is comprised of an application and particular data structures that support diabetes care. The data structures include: a patient class that has attributes and methods associated with a person receiving medical treatment for diabetes; a patient log class that has a composition relationship with the patient class and attributes and methods that log actions taken by the patient; a treatment plan class that has a composition relationship with the patient class and attributes and methods that define a series of planned actions related to medical treatment of the patient; and an adherence class that has a composition relationship with the patient log class and attributes and methods define relationships between actions planned for the patient and actions taken by the patient. The application instantiates an object from at least one of the patient log class, the adherence class and the treatment plan class, having only external-to-the-composition knowledge of which objects are instantiated, and performs a function using the instantiated object.