"""Endpoint for managing intervals (visit definitions) in a study."""
from imednet.core.endpoint.edc_mixin import EdcAsyncListGetEndpoint, EdcSyncListGetEndpoint
from imednet.core.endpoint.strategies import PopStudyKeyStrategy
from imednet.models.intervals import Interval
[docs]class IntervalsEndpoint(EdcSyncListGetEndpoint[Interval]):
"""
API endpoint for interacting with intervals (visit definitions) in an iMedNet study.
Provides methods to list and retrieve individual intervals.
"""
PATH = "intervals"
MODEL = Interval
_id_param = "intervalId"
STUDY_KEY_STRATEGY = PopStudyKeyStrategy()
PAGE_SIZE = 500
[docs]class AsyncIntervalsEndpoint(EdcAsyncListGetEndpoint[Interval]):
PATH = "intervals"
MODEL = Interval
_id_param = "intervalId"
STUDY_KEY_STRATEGY = PopStudyKeyStrategy()
PAGE_SIZE = 500