Class CocoClinicalTrialBaseService

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, GovernanceActionService
Direct Known Subclasses:
CocoClinicalTrialCertifyHospitalService, CocoClinicalTrialHospitalOnboardingService, CocoClinicalTrialNominateHospitalService, CocoClinicalTrialSetUpDataLakeService, CocoClinicalTrialSetUpService

public class CocoClinicalTrialBaseService extends GeneralGovernanceActionService
Provides shared functions for the clinical trial services.

The services are written to be re-runnable: if a run fails part way through, or a clinical trial is set up a second time, each element and relationship that the earlier run created is found and reused rather than created again. Without this, the second run fails on the first element it tries to create, since its qualified name is already taken (OMAG-COMMON-409-001), and the elements the earlier run left behind have to be removed by hand before the service can be run again. The find-or-create methods below provide this behaviour.