m3resp.DataModelStore#
- class m3resp.DataModelStore[source]#
A dict-of-id-to-entity table per entity type, plus relational lookups.
Methods
Store and return a processing run after checking its file references.
Return whether a quality annotation target exists in this store.
- add_clinical_event(event)[source]#
- Parameters:
event (ClinicalEvent)
- Return type:
- add_derived_feature(feature)[source]#
- Parameters:
feature (DerivedFeature)
- Return type:
- add_eit_configuration(config)[source]#
- Parameters:
config (EITConfiguration)
- Return type:
EITConfiguration
- add_processing_run(run)[source]#
Store and return a processing run after checking its file references.
- Parameters:
run (ProcessingRun) – Run whose input and array-results file identifiers must already appear in
data_files. An existing run with the same identifier is replaced.- Returns:
The supplied run, stored under its identifier.
- Return type:
- Raises:
DataModelStoreError – If any referenced file record is missing.
- add_quality_annotation(annotation)[source]#
- Parameters:
annotation (QualityAnnotation)
- Return type:
- add_session(session)[source]#
- Parameters:
session (RecordingSession)
- Return type:
- add_signal_stream(stream)[source]#
- Parameters:
stream (SignalStream)
- Return type:
- add_ventilator_setting(setting)[source]#
- Parameters:
setting (VentilatorSetting)
- Return type:
VentilatorSetting
- has_quality_annotation_target(target_type, target_id)[source]#
Return whether a quality annotation target exists in this store.