Skip to content

Instantly share code, notes, and snippets.

@anthonylusardi-da
Created March 16, 2021 11:29
Show Gist options
  • Save anthonylusardi-da/7864d6cfd401370c88da054e466232a0 to your computer and use it in GitHub Desktop.
Save anthonylusardi-da/7864d6cfd401370c88da054e466232a0 to your computer and use it in GitHub Desktop.
template ClinicalTrialNetwork
with
operator : Party
where
signatory operator
controller operator can
nonconsuming InviteRegulator : ContractId RegulatorInvitation
with
regulator : Party
do
create RegulatorInvitation with ..
template RegulatorInvitation
with
operator : Party
regulator : Party
where
signatory operator
controller regulator can
AcceptSponsorInvite: ContractId RegulatorRole
with
do create RegulatorRole with operator, regulator
template RegulatorRole
with
operator : Party
regulator : Party
where
signatory operator, regulator
template CROInvitation
with
cro : Party
operator : Party
where
signatory operator
controller cro can
AcceptInvite: ContractId CRORole
do create CRORole with ..
template CRORole
with
cro : Party
operator : Party
where
signatory cro, operator
controller cro can
nonconsuming InviteClinicalProvider : ContractId ClinicalProviderInvitation
with
providerId : Text
provider : Party
do
create ClinicalProviderInvitation with cro, provider, providerId
template ClinicalProviderInvitation
with
cro : Party
provider : Party
providerId : Text
where
signatory cro
controller provider can
AcceptProviderInvite : ContractId ProviderRole
do create ProviderRole with ..
template ProviderRole
with
cro : Party
provider : Party
providerId : Text
where
signatory cro, provider
template ParticipantInvitation
with
provider : Party
cro : Party
coordinator: Party
participant : Party
trialBrochure : ClinicalTrialBrochure
where
signatory provider
controller participant can
AcceptParticipantInvite : ContractId PartcipantRole
do
create PartcipantRole with provider, participant, trialBrochure, cro, coordinator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment