Skip to content

ProtocolFactoryService

Factory methods to create a StudyProtocol according to predefined templates.

Constructors

ProtocolFactoryService

ProtocolFactoryService()

Constants

API_VERSION

String const API_VERSION

Methods

createCustomProtocol

Future<StudyProtocol> createCustomProtocol(
  1. String ownerId,
  2. String name,
  3. String description,
  4. String customProtocol,
)

Create a study protocol to be deployed to a single device which has its own way of describing study protocols that deviates from the CARP core study protocol model.

The customProtocol is stored in a single CustomProtocolTask which in the CARP study protocol model is described as being triggered at the start of the study for a CustomProtocolDevice with role name "Custom device".