:py:mod:`medkit.core.store`
===========================

.. py:module:: medkit.core.store


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   medkit.core.store.Store
   medkit.core.store.GlobalStore




.. py:class:: Store


   Bases: :py:obj:`typing_extensions.Protocol`

   
   Store protocol.
















   ..
       !! processed by numpydoc !!
   .. py:method:: store_data_item(data_item: medkit.core.data_item.IdentifiableDataItem, parent_id: str)


   .. py:method:: get_data_item(data_item_id: str) -> medkit.core.data_item.IdentifiableDataItem | None


   .. py:method:: get_parent_item(data_item) -> medkit.core.data_item.IdentifiableDataItem | None



.. py:class:: GlobalStore


   
   Global store.
















   ..
       !! processed by numpydoc !!
   .. py:attribute:: _store
      :type: Store | None

      

   .. py:method:: init_store(store: Store)
      :classmethod:

      
      Initialize the global store for your application.


      :Parameters:

          **store** : Store
              Store for all the data items





      :Raises:

          RuntimeError
              If global store is already set









      ..
          !! processed by numpydoc !!

   .. py:method:: get_store() -> Store
      :classmethod:

      
      Return the global store object.



      :Returns:

          Store
              the global store













      ..
          !! processed by numpydoc !!

   .. py:method:: del_store()
      :classmethod:

      
      Delete the global store object.
















      ..
          !! processed by numpydoc !!


