1
+ using Aidbox . FHIR . Base ;
2
+ using Aidbox . FHIR . Utils ;
3
+
4
+ namespace Aidbox . FHIR . Resource ;
5
+
6
+ public class ActivityDefinition : DomainResource , IResource
7
+ {
8
+ public Base . ResourceReference [ ] ? ObservationResultRequirement { get ; set ; }
9
+ public Base . Range ? TimingRange { get ; set ; }
10
+ public string ? Description { get ; set ; }
11
+ public string ? Date { get ; set ; }
12
+ public string ? Transform { get ; set ; }
13
+ public Base . ContactDetail [ ] ? Endorser { get ; set ; }
14
+ public string ? Publisher { get ; set ; }
15
+ public string ? ApprovalDate { get ; set ; }
16
+ public Base . CodeableConcept [ ] ? Jurisdiction { get ; set ; }
17
+ public string [ ] ? Dosage { get ; set ; }
18
+ public Base . ResourceReference [ ] ? ObservationRequirement { get ; set ; }
19
+ public string ? Purpose { get ; set ; }
20
+ public Base . CodeableConcept ? SubjectCodeableConcept { get ; set ; }
21
+ public Base . CodeableConcept ? ProductCodeableConcept { get ; set ; }
22
+ public string ? Name { get ; set ; }
23
+ public Base . ResourceReference ? ProductReference { get ; set ; }
24
+ public Base . Period ? TimingPeriod { get ; set ; }
25
+ public Base . UsageContext [ ] ? UseContext { get ; set ; }
26
+ public string ? Copyright { get ; set ; }
27
+ public bool ? Experimental { get ; set ; }
28
+ public Base . CodeableConcept [ ] ? Topic { get ; set ; }
29
+ public ActivityDefinition_Participant [ ] ? Participant { get ; set ; }
30
+ public string ? Title { get ; set ; }
31
+ public string [ ] ? Library { get ; set ; }
32
+ public Base . ContactDetail [ ] ? Author { get ; set ; }
33
+ public string ? TimingDateTime { get ; set ; }
34
+ public string ? TimingTiming { get ; set ; }
35
+ public object ? Product
36
+ {
37
+ get
38
+ {
39
+ if ( ProductCodeableConcept is not null )
40
+ {
41
+ return ProductCodeableConcept ;
42
+ }
43
+
44
+ if ( ProductReference is not null )
45
+ {
46
+ return ProductReference ;
47
+ }
48
+
49
+ return null ;
50
+ }
51
+
52
+ set
53
+ {
54
+ if ( value ? . GetType ( ) == typeof ( Base . CodeableConcept ) )
55
+ {
56
+ ProductCodeableConcept = ( Base . CodeableConcept ) value ; return ;
57
+ }
58
+
59
+ if ( value ? . GetType ( ) == typeof ( Base . ResourceReference ) )
60
+ {
61
+ ProductReference = ( Base . ResourceReference ) value ; return ;
62
+ }
63
+
64
+ throw new ArgumentException ( "Invalid type provided" ) ;
65
+ }
66
+ }
67
+ public string ? Usage { get ; set ; }
68
+ public string ? TimingDuration { get ; set ; }
69
+ public string ? Priority { get ; set ; }
70
+ public required string Status { get ; set ; }
71
+ public object ? Timing
72
+ {
73
+ get
74
+ {
75
+ if ( TimingRange is not null )
76
+ {
77
+ return TimingRange ;
78
+ }
79
+
80
+ if ( TimingPeriod is not null )
81
+ {
82
+ return TimingPeriod ;
83
+ }
84
+
85
+ if ( TimingDateTime is not null )
86
+ {
87
+ return TimingDateTime ;
88
+ }
89
+
90
+ if ( TimingTiming is not null )
91
+ {
92
+ return TimingTiming ;
93
+ }
94
+
95
+ if ( TimingDuration is not null )
96
+ {
97
+ return TimingDuration ;
98
+ }
99
+
100
+ if ( TimingAge is not null )
101
+ {
102
+ return TimingAge ;
103
+ }
104
+
105
+ return null ;
106
+ }
107
+
108
+ set
109
+ {
110
+ if ( value ? . GetType ( ) == typeof ( Base . Range ) )
111
+ {
112
+ TimingRange = ( Base . Range ) value ; return ;
113
+ }
114
+
115
+ if ( value ? . GetType ( ) == typeof ( Base . Period ) )
116
+ {
117
+ TimingPeriod = ( Base . Period ) value ; return ;
118
+ }
119
+
120
+ if ( value ? . GetType ( ) == typeof ( string ) )
121
+ {
122
+ TimingDateTime = ( string ) value ; return ;
123
+ }
124
+
125
+ if ( value ? . GetType ( ) == typeof ( string ) )
126
+ {
127
+ TimingTiming = ( string ) value ; return ;
128
+ }
129
+
130
+ if ( value ? . GetType ( ) == typeof ( string ) )
131
+ {
132
+ TimingDuration = ( string ) value ; return ;
133
+ }
134
+
135
+ if ( value ? . GetType ( ) == typeof ( string ) )
136
+ {
137
+ TimingAge = ( string ) value ; return ;
138
+ }
139
+
140
+ throw new ArgumentException ( "Invalid type provided" ) ;
141
+ }
142
+ }
143
+ public string ? Subtitle { get ; set ; }
144
+ public string ? Kind { get ; set ; }
145
+ public ActivityDefinition_DynamicValue [ ] ? DynamicValue { get ; set ; }
146
+ public string ? Url { get ; set ; }
147
+ public Base . CodeableConcept ? Code { get ; set ; }
148
+ public Base . Identifier [ ] ? Identifier { get ; set ; }
149
+ public string ? LastReviewDate { get ; set ; }
150
+ public Base . ContactDetail [ ] ? Editor { get ; set ; }
151
+ public bool ? DoNotPerform { get ; set ; }
152
+ public Base . CodeableConcept [ ] ? BodySite { get ; set ; }
153
+ public string ? TimingAge { get ; set ; }
154
+ public string ? Intent { get ; set ; }
155
+ public Base . ResourceReference [ ] ? SpecimenRequirement { get ; set ; }
156
+ public Base . ContactDetail [ ] ? Reviewer { get ; set ; }
157
+ public Base . Quantity ? Quantity { get ; set ; }
158
+ public string ? Version { get ; set ; }
159
+ public Base . RelatedArtifact [ ] ? RelatedArtifact { get ; set ; }
160
+ public Base . ResourceReference ? Location { get ; set ; }
161
+ public Base . ContactDetail [ ] ? Contact { get ; set ; }
162
+ public Base . ResourceReference ? SubjectReference { get ; set ; }
163
+ public object ? Subject
164
+ {
165
+ get
166
+ {
167
+ if ( SubjectCodeableConcept is not null )
168
+ {
169
+ return SubjectCodeableConcept ;
170
+ }
171
+
172
+ if ( SubjectReference is not null )
173
+ {
174
+ return SubjectReference ;
175
+ }
176
+
177
+ return null ;
178
+ }
179
+
180
+ set
181
+ {
182
+ if ( value ? . GetType ( ) == typeof ( Base . CodeableConcept ) )
183
+ {
184
+ SubjectCodeableConcept = ( Base . CodeableConcept ) value ; return ;
185
+ }
186
+
187
+ if ( value ? . GetType ( ) == typeof ( Base . ResourceReference ) )
188
+ {
189
+ SubjectReference = ( Base . ResourceReference ) value ; return ;
190
+ }
191
+
192
+ throw new ArgumentException ( "Invalid type provided" ) ;
193
+ }
194
+ }
195
+ public string ? Profile { get ; set ; }
196
+ public Base . Period ? EffectivePeriod { get ; set ; }
197
+
198
+ public class ActivityDefinition_Participant : BackboneElement
199
+ {
200
+ public Base . CodeableConcept ? Role { get ; set ; }
201
+ public required string Type { get ; set ; }
202
+ }
203
+
204
+ public class ActivityDefinition_DynamicValue : BackboneElement
205
+ {
206
+ public required string Path { get ; set ; }
207
+ public required Base . ResourceExpression Expression { get ; set ; }
208
+ }
209
+ }
0 commit comments