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 FormsEndpoint(EdcSyncListGetEndpoint[Form]): """ API endpoint for interacting with forms (eCRFs) in an iMedNet study. Provides methods to list and retrieve individual forms. """ PATH = "forms" MODEL = Form _id_param = "formId" STUDY_KEY_STRATEGY = PopStudyKeyStrategy() PAGE_SIZE = 500
[docs]class AsyncFormsEndpoint(EdcAsyncListGetEndpoint[Form]): PATH = "forms" MODEL = Form _id_param = "formId" STUDY_KEY_STRATEGY = PopStudyKeyStrategy() PAGE_SIZE = 500