-
Notifications
You must be signed in to change notification settings - Fork 1
/
consentaur.slide
257 lines (148 loc) · 4.46 KB
/
consentaur.slide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
API
http://adaptechsolutions.net
* Service: Consentaur
*Commands:*
- Initiate( projectId, name )
- Request Data( projectId, dataRequestId, dataDescription )
- Record Data Review( projectId, dataRequestId, amended, allowable, consentRequired )
*Events:*
Project Initiated, Project Data Requested, Project Data Reviewed
*Commands:*
- Identify Candidate( projectId, candidateId, email )
- Verify Identity( candidateId, administratorId )
- Contact Candidate( candidateId, projectId )
- Enroll Candidate( candidateId, projectId, email, password )
- Record Consent( candidateId, projectId, dataRequestId )
- Record Data Collection( candidateId, projectId )
- Revoke Consent( candidateId, projectId, dataRequestId )
*Events:*
Candidate Identified, Candidate Identity Verified, Candidate Contacted, Candidate Enrolled, Candidate Consented, Candidate Data Collected, Candidate Consent Revoked
* Consentaur Service - project Aggregate
*Command:* Initiate
curl -X POST \
http://localhost:3001/api/v1/project/Initiate \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"projectId": "projectId-1"
, "name": "name-1"
}'
*Result:*
- ProjectInitiated
* Consentaur Service - project Aggregate
*Command:* Request Data
curl -X POST \
http://localhost:3001/api/v1/project/RequestData \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"projectId": "projectId-1"
, "dataRequestId": "dataRequestId-1"
, "dataDescription": "dataDescription-1"
}'
*Result:*
- ProjectDataRequested
* Consentaur Service - project Aggregate
*Command:* Record Data Review
curl -X POST \
http://localhost:3001/api/v1/project/RecordDataReview \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"projectId": "projectId-1"
, "dataRequestId": "dataRequestId-1"
, "amended": "amended-1"
, "allowable": "allowable-1"
, "consentRequired": "consentRequired-1"
}'
*Result:*
- ProjectDataReviewed
* Consentaur Service - candidate Aggregate
*Command:* Identify Candidate
curl -X POST \
http://localhost:3001/api/v1/candidate/IdentifyCandidate \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"projectId": "projectId-1"
, "candidateId": "candidateId-1"
, "email": "email-1"
}'
*Result:*
- CandidateIdentified
* Consentaur Service - candidate Aggregate
*Command:* Verify Identity
curl -X POST \
http://localhost:3001/api/v1/candidate/VerifyIdentity \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"candidateId": "candidateId-1"
, "administratorId": "administratorId-1"
}'
*Result:*
- CandidateIdentityVerified
* Consentaur Service - candidate Aggregate
*Command:* Contact Candidate
curl -X POST \
http://localhost:3001/api/v1/candidate/ContactCandidate \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"candidateId": "candidateId-1"
, "projectId": "projectId-1"
}'
*Result:*
- CandidateContacted
* Consentaur Service - candidate Aggregate
*Command:* Enroll Candidate
curl -X POST \
http://localhost:3001/api/v1/candidate/EnrollCandidate \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"candidateId": "candidateId-1"
, "projectId": "projectId-1"
, "email": "email-1"
, "password": "password-1"
}'
*Result:*
- CandidateEnrolled
* Consentaur Service - candidate Aggregate
*Command:* Record Consent
curl -X POST \
http://localhost:3001/api/v1/candidate/RecordConsent \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"candidateId": "candidateId-1"
, "projectId": "projectId-1"
, "dataRequestId": "dataRequestId-1"
}'
*Result:*
- CandidateConsented
* Consentaur Service - candidate Aggregate
*Command:* Record Data Collection
curl -X POST \
http://localhost:3001/api/v1/candidate/RecordDataCollection \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"candidateId": "candidateId-1"
, "projectId": "projectId-1"
}'
*Result:*
- CandidateDataCollected
* Consentaur Service - candidate Aggregate
*Command:* Revoke Consent
curl -X POST \
http://localhost:3001/api/v1/candidate/RevokeConsent \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"candidateId": "candidateId-1"
, "projectId": "projectId-1"
, "dataRequestId": "dataRequestId-1"
}'
*Result:*
- CandidateConsentRevoked