Skip to content

Commit 5772962

Browse files
committed
ts: regenerate profile examples and snapshot for choice mutual exclusion
1 parent f81e570 commit 5772962

8 files changed

Lines changed: 202 additions & 0 deletions

File tree

examples/typescript-r4/fhir-types/hl7-fhir-r4-core/profiles/Observation_observation_bodyweight.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export class observation_bodyweightProfile {
142142
}
143143

144144
setEffectiveDateTime (value: string) : this {
145+
this.clearEffective();
145146
Object.assign(this.resource, { effectiveDateTime: value });
146147
return this;
147148
}
@@ -151,6 +152,7 @@ export class observation_bodyweightProfile {
151152
}
152153

153154
setEffectivePeriod (value: Period) : this {
155+
this.clearEffective();
154156
Object.assign(this.resource, { effectivePeriod: value });
155157
return this;
156158
}
@@ -164,6 +166,11 @@ export class observation_bodyweightProfile {
164166
return this;
165167
}
166168

169+
clearEffective () : void {
170+
delete this.resource.effectiveDateTime;
171+
delete this.resource.effectivePeriod;
172+
}
173+
167174
// Extensions
168175
// Slices
169176
public setVSCat (input?: Observation_bodyweight_Category_VSCatSliceFlat | CodeableConcept): this {

examples/typescript-r4/fhir-types/hl7-fhir-r4-core/profiles/Observation_observation_bp.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ export class observation_bpProfile {
177177
}
178178

179179
setEffectiveDateTime (value: string) : this {
180+
this.clearEffective();
180181
Object.assign(this.resource, { effectiveDateTime: value });
181182
return this;
182183
}
@@ -186,6 +187,7 @@ export class observation_bpProfile {
186187
}
187188

188189
setEffectivePeriod (value: Period) : this {
190+
this.clearEffective();
189191
Object.assign(this.resource, { effectivePeriod: value });
190192
return this;
191193
}
@@ -199,6 +201,11 @@ export class observation_bpProfile {
199201
return this;
200202
}
201203

204+
clearEffective () : void {
205+
delete this.resource.effectiveDateTime;
206+
delete this.resource.effectivePeriod;
207+
}
208+
202209
// Extensions
203210
// Slices
204211
public setVSCat (input?: Observation_bp_Category_VSCatSliceFlat | CodeableConcept): this {

examples/typescript-r4/fhir-types/hl7-fhir-r4-core/profiles/Observation_observation_vitalsigns.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export class observation_vitalsignsProfile {
145145
}
146146

147147
setEffectiveDateTime (value: string) : this {
148+
this.clearEffective();
148149
Object.assign(this.resource, { effectiveDateTime: value });
149150
return this;
150151
}
@@ -154,10 +155,16 @@ export class observation_vitalsignsProfile {
154155
}
155156

156157
setEffectivePeriod (value: Period) : this {
158+
this.clearEffective();
157159
Object.assign(this.resource, { effectivePeriod: value });
158160
return this;
159161
}
160162

163+
clearEffective () : void {
164+
delete this.resource.effectiveDateTime;
165+
delete this.resource.effectivePeriod;
166+
}
167+
161168
// Extensions
162169
// Slices
163170
public setVSCat (input?: Observation_vitalsigns_Category_VSCatSliceFlat | CodeableConcept): this {

examples/typescript-us-core/fhir-types/hl7-fhir-r4-core/profiles/Observation_observation_vitalsigns.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export class observation_vitalsignsProfile {
145145
}
146146

147147
setEffectiveDateTime (value: string) : this {
148+
this.clearEffective();
148149
Object.assign(this.resource, { effectiveDateTime: value });
149150
return this;
150151
}
@@ -154,10 +155,16 @@ export class observation_vitalsignsProfile {
154155
}
155156

156157
setEffectivePeriod (value: Period) : this {
158+
this.clearEffective();
157159
Object.assign(this.resource, { effectivePeriod: value });
158160
return this;
159161
}
160162

163+
clearEffective () : void {
164+
delete this.resource.effectiveDateTime;
165+
delete this.resource.effectivePeriod;
166+
}
167+
161168
// Extensions
162169
// Slices
163170
public setVSCat (input?: Observation_vitalsigns_Category_VSCatSliceFlat | CodeableConcept): this {

examples/typescript-us-core/fhir-types/hl7-fhir-us-core/profiles/Observation_USCoreBloodPressureProfile.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ export class USCoreBloodPressureProfile {
180180
}
181181

182182
setEffectiveDateTime (value: string) : this {
183+
this.clearEffective();
183184
Object.assign(this.resource, { effectiveDateTime: value });
184185
return this;
185186
}
@@ -189,6 +190,7 @@ export class USCoreBloodPressureProfile {
189190
}
190191

191192
setEffectivePeriod (value: Period) : this {
193+
this.clearEffective();
192194
Object.assign(this.resource, { effectivePeriod: value });
193195
return this;
194196
}
@@ -198,6 +200,7 @@ export class USCoreBloodPressureProfile {
198200
}
199201

200202
setValueQuantity (value: Quantity) : this {
203+
this.clearValue();
201204
Object.assign(this.resource, { valueQuantity: value });
202205
return this;
203206
}
@@ -207,6 +210,7 @@ export class USCoreBloodPressureProfile {
207210
}
208211

209212
setValueCodeableConcept (value: CodeableConcept) : this {
213+
this.clearValue();
210214
Object.assign(this.resource, { valueCodeableConcept: value });
211215
return this;
212216
}
@@ -216,6 +220,7 @@ export class USCoreBloodPressureProfile {
216220
}
217221

218222
setValueString (value: string) : this {
223+
this.clearValue();
219224
Object.assign(this.resource, { valueString: value });
220225
return this;
221226
}
@@ -225,6 +230,7 @@ export class USCoreBloodPressureProfile {
225230
}
226231

227232
setValueBoolean (value: boolean) : this {
233+
this.clearValue();
228234
Object.assign(this.resource, { valueBoolean: value });
229235
return this;
230236
}
@@ -234,6 +240,7 @@ export class USCoreBloodPressureProfile {
234240
}
235241

236242
setValueInteger (value: number) : this {
243+
this.clearValue();
237244
Object.assign(this.resource, { valueInteger: value });
238245
return this;
239246
}
@@ -243,6 +250,7 @@ export class USCoreBloodPressureProfile {
243250
}
244251

245252
setValueRange (value: Range) : this {
253+
this.clearValue();
246254
Object.assign(this.resource, { valueRange: value });
247255
return this;
248256
}
@@ -252,6 +260,7 @@ export class USCoreBloodPressureProfile {
252260
}
253261

254262
setValueRatio (value: Ratio) : this {
263+
this.clearValue();
255264
Object.assign(this.resource, { valueRatio: value });
256265
return this;
257266
}
@@ -261,6 +270,7 @@ export class USCoreBloodPressureProfile {
261270
}
262271

263272
setValueSampledData (value: SampledData) : this {
273+
this.clearValue();
264274
Object.assign(this.resource, { valueSampledData: value });
265275
return this;
266276
}
@@ -270,6 +280,7 @@ export class USCoreBloodPressureProfile {
270280
}
271281

272282
setValueTime (value: string) : this {
283+
this.clearValue();
273284
Object.assign(this.resource, { valueTime: value });
274285
return this;
275286
}
@@ -279,6 +290,7 @@ export class USCoreBloodPressureProfile {
279290
}
280291

281292
setValueDateTime (value: string) : this {
293+
this.clearValue();
282294
Object.assign(this.resource, { valueDateTime: value });
283295
return this;
284296
}
@@ -288,10 +300,30 @@ export class USCoreBloodPressureProfile {
288300
}
289301

290302
setValuePeriod (value: Period) : this {
303+
this.clearValue();
291304
Object.assign(this.resource, { valuePeriod: value });
292305
return this;
293306
}
294307

308+
clearEffective () : void {
309+
delete this.resource.effectiveDateTime;
310+
delete this.resource.effectivePeriod;
311+
}
312+
313+
clearValue () : void {
314+
delete this.resource.valueQuantity;
315+
delete this.resource.valueCodeableConcept;
316+
delete this.resource.valueString;
317+
delete this.resource.valueBoolean;
318+
delete this.resource.valueInteger;
319+
delete this.resource.valueRange;
320+
delete this.resource.valueRatio;
321+
delete this.resource.valueSampledData;
322+
delete this.resource.valueTime;
323+
delete this.resource.valueDateTime;
324+
delete this.resource.valuePeriod;
325+
}
326+
295327
// Extensions
296328
// Slices
297329
public setVSCat (input?: USCoreBloodPressureProfile_Category_VSCatSliceFlat | CodeableConcept): this {

examples/typescript-us-core/fhir-types/hl7-fhir-us-core/profiles/Observation_USCoreBodyWeightProfile.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export class USCoreBodyWeightProfile {
145145
}
146146

147147
setEffectiveDateTime (value: string) : this {
148+
this.clearEffective();
148149
Object.assign(this.resource, { effectiveDateTime: value });
149150
return this;
150151
}
@@ -154,6 +155,7 @@ export class USCoreBodyWeightProfile {
154155
}
155156

156157
setEffectivePeriod (value: Period) : this {
158+
this.clearEffective();
157159
Object.assign(this.resource, { effectivePeriod: value });
158160
return this;
159161
}
@@ -163,6 +165,7 @@ export class USCoreBodyWeightProfile {
163165
}
164166

165167
setValueQuantity (value: Quantity) : this {
168+
this.clearValue();
166169
Object.assign(this.resource, { valueQuantity: value });
167170
return this;
168171
}
@@ -172,6 +175,7 @@ export class USCoreBodyWeightProfile {
172175
}
173176

174177
setValueCodeableConcept (value: CodeableConcept) : this {
178+
this.clearValue();
175179
Object.assign(this.resource, { valueCodeableConcept: value });
176180
return this;
177181
}
@@ -181,6 +185,7 @@ export class USCoreBodyWeightProfile {
181185
}
182186

183187
setValueString (value: string) : this {
188+
this.clearValue();
184189
Object.assign(this.resource, { valueString: value });
185190
return this;
186191
}
@@ -190,6 +195,7 @@ export class USCoreBodyWeightProfile {
190195
}
191196

192197
setValueBoolean (value: boolean) : this {
198+
this.clearValue();
193199
Object.assign(this.resource, { valueBoolean: value });
194200
return this;
195201
}
@@ -199,6 +205,7 @@ export class USCoreBodyWeightProfile {
199205
}
200206

201207
setValueInteger (value: number) : this {
208+
this.clearValue();
202209
Object.assign(this.resource, { valueInteger: value });
203210
return this;
204211
}
@@ -208,6 +215,7 @@ export class USCoreBodyWeightProfile {
208215
}
209216

210217
setValueRange (value: Range) : this {
218+
this.clearValue();
211219
Object.assign(this.resource, { valueRange: value });
212220
return this;
213221
}
@@ -217,6 +225,7 @@ export class USCoreBodyWeightProfile {
217225
}
218226

219227
setValueRatio (value: Ratio) : this {
228+
this.clearValue();
220229
Object.assign(this.resource, { valueRatio: value });
221230
return this;
222231
}
@@ -226,6 +235,7 @@ export class USCoreBodyWeightProfile {
226235
}
227236

228237
setValueSampledData (value: SampledData) : this {
238+
this.clearValue();
229239
Object.assign(this.resource, { valueSampledData: value });
230240
return this;
231241
}
@@ -235,6 +245,7 @@ export class USCoreBodyWeightProfile {
235245
}
236246

237247
setValueTime (value: string) : this {
248+
this.clearValue();
238249
Object.assign(this.resource, { valueTime: value });
239250
return this;
240251
}
@@ -244,6 +255,7 @@ export class USCoreBodyWeightProfile {
244255
}
245256

246257
setValueDateTime (value: string) : this {
258+
this.clearValue();
247259
Object.assign(this.resource, { valueDateTime: value });
248260
return this;
249261
}
@@ -253,10 +265,30 @@ export class USCoreBodyWeightProfile {
253265
}
254266

255267
setValuePeriod (value: Period) : this {
268+
this.clearValue();
256269
Object.assign(this.resource, { valuePeriod: value });
257270
return this;
258271
}
259272

273+
clearEffective () : void {
274+
delete this.resource.effectiveDateTime;
275+
delete this.resource.effectivePeriod;
276+
}
277+
278+
clearValue () : void {
279+
delete this.resource.valueQuantity;
280+
delete this.resource.valueCodeableConcept;
281+
delete this.resource.valueString;
282+
delete this.resource.valueBoolean;
283+
delete this.resource.valueInteger;
284+
delete this.resource.valueRange;
285+
delete this.resource.valueRatio;
286+
delete this.resource.valueSampledData;
287+
delete this.resource.valueTime;
288+
delete this.resource.valueDateTime;
289+
delete this.resource.valuePeriod;
290+
}
291+
260292
// Extensions
261293
// Slices
262294
public setVSCat (input?: USCoreBodyWeightProfile_Category_VSCatSliceFlat | CodeableConcept): this {

0 commit comments

Comments
 (0)