Source code for imednet.endpoints.forms
"""Endpoint for managing forms (eCRFs) in a study."""
from imednet.core.endpoint.edc_mixin import EdcAsyncListGetEndpoint, EdcSyncListGetEndpoint
from imednet.core.endpoint.strategies import PopStudyKeyStrategy
from imednet.models.forms import Form
[docs]class FormsOperationDef:
"""Definition for Form operations."""
PATH = "forms"
MODEL = Form
_id_param = "formId"
STUDY_KEY_STRATEGY = PopStudyKeyStrategy()
PAGE_SIZE = 500
[docs]class FormsEndpoint(FormsOperationDef, EdcSyncListGetEndpoint[Form]): # type: ignore[misc]
"""Synchronous endpoint for managing Forms."""
[docs]class AsyncFormsEndpoint(FormsOperationDef, EdcAsyncListGetEndpoint[Form]): # type: ignore[misc]
"""Asynchronous endpoint for managing Forms."""