Skip to content

Commit 832ac02

Browse files
committed
chore: Regenerate examples for SliceFlatInput rename
1 parent 25a64ea commit 832ac02

10 files changed

Lines changed: 133 additions & 133 deletions

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import type { Period } from "../../hl7-fhir-r4-core/Period";
88
import type { Quantity } from "../../hl7-fhir-r4-core/Quantity";
99
import type { Reference } from "../../hl7-fhir-r4-core/Reference";
1010

11-
export type Observation_bodyweight_Category_VSCatSliceInput = Omit<CodeableConcept, "coding">;
12-
export type Observation_bodyweight_Category_VSCatSliceFlat = Observation_bodyweight_Category_VSCatSliceInput & { readonly coding: [{ code: "vital-signs"; system: "http://terminology.hl7.org/CodeSystem/observation-category" }] };
11+
export type Observation_bodyweight_Category_VSCatSliceFlatInput = Omit<CodeableConcept, "coding">;
12+
export type Observation_bodyweight_Category_VSCatSliceFlat = Observation_bodyweight_Category_VSCatSliceFlatInput & { readonly coding: [{ code: "vital-signs"; system: "http://terminology.hl7.org/CodeSystem/observation-category" }] };
1313

1414
import {
1515
ensureProfile,
@@ -156,7 +156,7 @@ export class observation_bodyweightProfile {
156156

157157
// Extensions
158158
// Slices
159-
public setVSCat (input?: Observation_bodyweight_Category_VSCatSliceInput | CodeableConcept): this {
159+
public setVSCat (input?: Observation_bodyweight_Category_VSCatSliceFlatInput | CodeableConcept): this {
160160
const match = observation_bodyweightProfile.VSCatSliceMatch
161161
if (input && matchesValue(input, match)) {
162162
setArraySlice(this.resource.category ??= [], match, input as CodeableConcept)
@@ -167,15 +167,15 @@ export class observation_bodyweightProfile {
167167
return this
168168
}
169169

170-
public getVSCat(mode: 'flat'): Observation_bodyweight_Category_VSCatSliceInput | undefined;
170+
public getVSCat(mode: 'flat'): Observation_bodyweight_Category_VSCatSliceFlatInput | undefined;
171171
public getVSCat(mode: 'raw'): CodeableConcept | undefined;
172-
public getVSCat(): Observation_bodyweight_Category_VSCatSliceInput | undefined;
173-
public getVSCat (mode: 'flat' | 'raw' = 'flat'): Observation_bodyweight_Category_VSCatSliceInput | CodeableConcept | undefined {
172+
public getVSCat(): Observation_bodyweight_Category_VSCatSliceFlatInput | undefined;
173+
public getVSCat (mode: 'flat' | 'raw' = 'flat'): Observation_bodyweight_Category_VSCatSliceFlatInput | CodeableConcept | undefined {
174174
const match = observation_bodyweightProfile.VSCatSliceMatch
175175
const item = getArraySlice(this.resource.category, match)
176176
if (!item) return undefined
177177
if (mode === 'raw') return item
178-
return stripMatchKeys<Observation_bodyweight_Category_VSCatSliceInput>(item, ["coding"])
178+
return stripMatchKeys<Observation_bodyweight_Category_VSCatSliceFlatInput>(item, ["coding"])
179179
}
180180

181181
// Validation

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import type { Period } from "../../hl7-fhir-r4-core/Period";
88
import type { Quantity } from "../../hl7-fhir-r4-core/Quantity";
99
import type { Reference } from "../../hl7-fhir-r4-core/Reference";
1010

11-
export type Observation_bp_Category_VSCatSliceInput = Omit<CodeableConcept, "coding">;
12-
export type Observation_bp_Category_VSCatSliceFlat = Observation_bp_Category_VSCatSliceInput & { readonly coding: [{ code: "vital-signs"; system: "http://terminology.hl7.org/CodeSystem/observation-category" }] };
13-
export type Observation_bp_Component_SystolicBPSliceInput = Omit<ObservationComponent, "code" | "value" | "valueQuantity" | "valueCodeableConcept" | "valueString" | "valueBoolean" | "valueInteger" | "valueRange" | "valueRatio" | "valueSampledData" | "valueTime" | "valueDateTime" | "valuePeriod"> & Quantity;
14-
export type Observation_bp_Component_SystolicBPSliceFlat = Observation_bp_Component_SystolicBPSliceInput;
15-
export type Observation_bp_Component_DiastolicBPSliceInput = Omit<ObservationComponent, "code" | "value" | "valueQuantity" | "valueCodeableConcept" | "valueString" | "valueBoolean" | "valueInteger" | "valueRange" | "valueRatio" | "valueSampledData" | "valueTime" | "valueDateTime" | "valuePeriod"> & Quantity;
16-
export type Observation_bp_Component_DiastolicBPSliceFlat = Observation_bp_Component_DiastolicBPSliceInput;
11+
export type Observation_bp_Category_VSCatSliceFlatInput = Omit<CodeableConcept, "coding">;
12+
export type Observation_bp_Category_VSCatSliceFlat = Observation_bp_Category_VSCatSliceFlatInput & { readonly coding: [{ code: "vital-signs"; system: "http://terminology.hl7.org/CodeSystem/observation-category" }] };
13+
export type Observation_bp_Component_SystolicBPSliceFlatInput = Omit<ObservationComponent, "code" | "value" | "valueQuantity" | "valueCodeableConcept" | "valueString" | "valueBoolean" | "valueInteger" | "valueRange" | "valueRatio" | "valueSampledData" | "valueTime" | "valueDateTime" | "valuePeriod"> & Quantity;
14+
export type Observation_bp_Component_SystolicBPSliceFlat = Observation_bp_Component_SystolicBPSliceFlatInput;
15+
export type Observation_bp_Component_DiastolicBPSliceFlatInput = Omit<ObservationComponent, "code" | "value" | "valueQuantity" | "valueCodeableConcept" | "valueString" | "valueBoolean" | "valueInteger" | "valueRange" | "valueRatio" | "valueSampledData" | "valueTime" | "valueDateTime" | "valuePeriod"> & Quantity;
16+
export type Observation_bp_Component_DiastolicBPSliceFlat = Observation_bp_Component_DiastolicBPSliceFlatInput;
1717

1818
import {
1919
ensureProfile,
@@ -185,7 +185,7 @@ export class observation_bpProfile {
185185

186186
// Extensions
187187
// Slices
188-
public setVSCat (input?: Observation_bp_Category_VSCatSliceInput | CodeableConcept): this {
188+
public setVSCat (input?: Observation_bp_Category_VSCatSliceFlatInput | CodeableConcept): this {
189189
const match = observation_bpProfile.VSCatSliceMatch
190190
if (input && matchesValue(input, match)) {
191191
setArraySlice(this.resource.category ??= [], match, input as CodeableConcept)
@@ -196,7 +196,7 @@ export class observation_bpProfile {
196196
return this
197197
}
198198

199-
public setSystolicBP (input?: Observation_bp_Component_SystolicBPSliceInput | ObservationComponent): this {
199+
public setSystolicBP (input?: Observation_bp_Component_SystolicBPSliceFlatInput | ObservationComponent): this {
200200
const match = observation_bpProfile.SystolicBPSliceMatch
201201
if (input && matchesValue(input, match)) {
202202
setArraySlice(this.resource.component ??= [], match, input as ObservationComponent)
@@ -208,7 +208,7 @@ export class observation_bpProfile {
208208
return this
209209
}
210210

211-
public setDiastolicBP (input?: Observation_bp_Component_DiastolicBPSliceInput | ObservationComponent): this {
211+
public setDiastolicBP (input?: Observation_bp_Component_DiastolicBPSliceFlatInput | ObservationComponent): this {
212212
const match = observation_bpProfile.DiastolicBPSliceMatch
213213
if (input && matchesValue(input, match)) {
214214
setArraySlice(this.resource.component ??= [], match, input as ObservationComponent)
@@ -220,37 +220,37 @@ export class observation_bpProfile {
220220
return this
221221
}
222222

223-
public getVSCat(mode: 'flat'): Observation_bp_Category_VSCatSliceInput | undefined;
223+
public getVSCat(mode: 'flat'): Observation_bp_Category_VSCatSliceFlatInput | undefined;
224224
public getVSCat(mode: 'raw'): CodeableConcept | undefined;
225-
public getVSCat(): Observation_bp_Category_VSCatSliceInput | undefined;
226-
public getVSCat (mode: 'flat' | 'raw' = 'flat'): Observation_bp_Category_VSCatSliceInput | CodeableConcept | undefined {
225+
public getVSCat(): Observation_bp_Category_VSCatSliceFlatInput | undefined;
226+
public getVSCat (mode: 'flat' | 'raw' = 'flat'): Observation_bp_Category_VSCatSliceFlatInput | CodeableConcept | undefined {
227227
const match = observation_bpProfile.VSCatSliceMatch
228228
const item = getArraySlice(this.resource.category, match)
229229
if (!item) return undefined
230230
if (mode === 'raw') return item
231-
return stripMatchKeys<Observation_bp_Category_VSCatSliceInput>(item, ["coding"])
231+
return stripMatchKeys<Observation_bp_Category_VSCatSliceFlatInput>(item, ["coding"])
232232
}
233233

234-
public getSystolicBP(mode: 'flat'): Observation_bp_Component_SystolicBPSliceInput | undefined;
234+
public getSystolicBP(mode: 'flat'): Observation_bp_Component_SystolicBPSliceFlatInput | undefined;
235235
public getSystolicBP(mode: 'raw'): ObservationComponent | undefined;
236-
public getSystolicBP(): Observation_bp_Component_SystolicBPSliceInput | undefined;
237-
public getSystolicBP (mode: 'flat' | 'raw' = 'flat'): Observation_bp_Component_SystolicBPSliceInput | ObservationComponent | undefined {
236+
public getSystolicBP(): Observation_bp_Component_SystolicBPSliceFlatInput | undefined;
237+
public getSystolicBP (mode: 'flat' | 'raw' = 'flat'): Observation_bp_Component_SystolicBPSliceFlatInput | ObservationComponent | undefined {
238238
const match = observation_bpProfile.SystolicBPSliceMatch
239239
const item = getArraySlice(this.resource.component, match)
240240
if (!item) return undefined
241241
if (mode === 'raw') return item
242-
return unwrapSliceChoice<Observation_bp_Component_SystolicBPSliceInput>(item, ["code"], "valueQuantity")
242+
return unwrapSliceChoice<Observation_bp_Component_SystolicBPSliceFlatInput>(item, ["code"], "valueQuantity")
243243
}
244244

245-
public getDiastolicBP(mode: 'flat'): Observation_bp_Component_DiastolicBPSliceInput | undefined;
245+
public getDiastolicBP(mode: 'flat'): Observation_bp_Component_DiastolicBPSliceFlatInput | undefined;
246246
public getDiastolicBP(mode: 'raw'): ObservationComponent | undefined;
247-
public getDiastolicBP(): Observation_bp_Component_DiastolicBPSliceInput | undefined;
248-
public getDiastolicBP (mode: 'flat' | 'raw' = 'flat'): Observation_bp_Component_DiastolicBPSliceInput | ObservationComponent | undefined {
247+
public getDiastolicBP(): Observation_bp_Component_DiastolicBPSliceFlatInput | undefined;
248+
public getDiastolicBP (mode: 'flat' | 'raw' = 'flat'): Observation_bp_Component_DiastolicBPSliceFlatInput | ObservationComponent | undefined {
249249
const match = observation_bpProfile.DiastolicBPSliceMatch
250250
const item = getArraySlice(this.resource.component, match)
251251
if (!item) return undefined
252252
if (mode === 'raw') return item
253-
return unwrapSliceChoice<Observation_bp_Component_DiastolicBPSliceInput>(item, ["code"], "valueQuantity")
253+
return unwrapSliceChoice<Observation_bp_Component_DiastolicBPSliceFlatInput>(item, ["code"], "valueQuantity")
254254
}
255255

256256
// Validation

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import type { Observation } from "../../hl7-fhir-r4-core/Observation";
77
import type { Period } from "../../hl7-fhir-r4-core/Period";
88
import type { Reference } from "../../hl7-fhir-r4-core/Reference";
99

10-
export type Observation_vitalsigns_Category_VSCatSliceInput = Omit<CodeableConcept, "coding">;
11-
export type Observation_vitalsigns_Category_VSCatSliceFlat = Observation_vitalsigns_Category_VSCatSliceInput & { readonly coding: [{ code: "vital-signs"; system: "http://terminology.hl7.org/CodeSystem/observation-category" }] };
10+
export type Observation_vitalsigns_Category_VSCatSliceFlatInput = Omit<CodeableConcept, "coding">;
11+
export type Observation_vitalsigns_Category_VSCatSliceFlat = Observation_vitalsigns_Category_VSCatSliceFlatInput & { readonly coding: [{ code: "vital-signs"; system: "http://terminology.hl7.org/CodeSystem/observation-category" }] };
1212

1313
import {
1414
ensureProfile,
@@ -149,7 +149,7 @@ export class observation_vitalsignsProfile {
149149

150150
// Extensions
151151
// Slices
152-
public setVSCat (input?: Observation_vitalsigns_Category_VSCatSliceInput | CodeableConcept): this {
152+
public setVSCat (input?: Observation_vitalsigns_Category_VSCatSliceFlatInput | CodeableConcept): this {
153153
const match = observation_vitalsignsProfile.VSCatSliceMatch
154154
if (input && matchesValue(input, match)) {
155155
setArraySlice(this.resource.category ??= [], match, input as CodeableConcept)
@@ -160,15 +160,15 @@ export class observation_vitalsignsProfile {
160160
return this
161161
}
162162

163-
public getVSCat(mode: 'flat'): Observation_vitalsigns_Category_VSCatSliceInput | undefined;
163+
public getVSCat(mode: 'flat'): Observation_vitalsigns_Category_VSCatSliceFlatInput | undefined;
164164
public getVSCat(mode: 'raw'): CodeableConcept | undefined;
165-
public getVSCat(): Observation_vitalsigns_Category_VSCatSliceInput | undefined;
166-
public getVSCat (mode: 'flat' | 'raw' = 'flat'): Observation_vitalsigns_Category_VSCatSliceInput | CodeableConcept | undefined {
165+
public getVSCat(): Observation_vitalsigns_Category_VSCatSliceFlatInput | undefined;
166+
public getVSCat (mode: 'flat' | 'raw' = 'flat'): Observation_vitalsigns_Category_VSCatSliceFlatInput | CodeableConcept | undefined {
167167
const match = observation_vitalsignsProfile.VSCatSliceMatch
168168
const item = getArraySlice(this.resource.category, match)
169169
if (!item) return undefined
170170
if (mode === 'raw') return item
171-
return stripMatchKeys<Observation_vitalsigns_Category_VSCatSliceInput>(item, ["coding"])
171+
return stripMatchKeys<Observation_vitalsigns_Category_VSCatSliceFlatInput>(item, ["coding"])
172172
}
173173

174174
// Validation

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import type { Observation } from "../../hl7-fhir-r4-core/Observation";
77
import type { Period } from "../../hl7-fhir-r4-core/Period";
88
import type { Reference } from "../../hl7-fhir-r4-core/Reference";
99

10-
export type Observation_vitalsigns_Category_VSCatSliceInput = Omit<CodeableConcept, "coding">;
11-
export type Observation_vitalsigns_Category_VSCatSliceFlat = Observation_vitalsigns_Category_VSCatSliceInput & { readonly coding: [{ code: "vital-signs"; system: "http://terminology.hl7.org/CodeSystem/observation-category" }] };
10+
export type Observation_vitalsigns_Category_VSCatSliceFlatInput = Omit<CodeableConcept, "coding">;
11+
export type Observation_vitalsigns_Category_VSCatSliceFlat = Observation_vitalsigns_Category_VSCatSliceFlatInput & { readonly coding: [{ code: "vital-signs"; system: "http://terminology.hl7.org/CodeSystem/observation-category" }] };
1212

1313
import {
1414
ensureProfile,
@@ -149,7 +149,7 @@ export class observation_vitalsignsProfile {
149149

150150
// Extensions
151151
// Slices
152-
public setVSCat (input?: Observation_vitalsigns_Category_VSCatSliceInput | CodeableConcept): this {
152+
public setVSCat (input?: Observation_vitalsigns_Category_VSCatSliceFlatInput | CodeableConcept): this {
153153
const match = observation_vitalsignsProfile.VSCatSliceMatch
154154
if (input && matchesValue(input, match)) {
155155
setArraySlice(this.resource.category ??= [], match, input as CodeableConcept)
@@ -160,15 +160,15 @@ export class observation_vitalsignsProfile {
160160
return this
161161
}
162162

163-
public getVSCat(mode: 'flat'): Observation_vitalsigns_Category_VSCatSliceInput | undefined;
163+
public getVSCat(mode: 'flat'): Observation_vitalsigns_Category_VSCatSliceFlatInput | undefined;
164164
public getVSCat(mode: 'raw'): CodeableConcept | undefined;
165-
public getVSCat(): Observation_vitalsigns_Category_VSCatSliceInput | undefined;
166-
public getVSCat (mode: 'flat' | 'raw' = 'flat'): Observation_vitalsigns_Category_VSCatSliceInput | CodeableConcept | undefined {
165+
public getVSCat(): Observation_vitalsigns_Category_VSCatSliceFlatInput | undefined;
166+
public getVSCat (mode: 'flat' | 'raw' = 'flat'): Observation_vitalsigns_Category_VSCatSliceFlatInput | CodeableConcept | undefined {
167167
const match = observation_vitalsignsProfile.VSCatSliceMatch
168168
const item = getArraySlice(this.resource.category, match)
169169
if (!item) return undefined
170170
if (mode === 'raw') return item
171-
return stripMatchKeys<Observation_vitalsigns_Category_VSCatSliceInput>(item, ["coding"])
171+
return stripMatchKeys<Observation_vitalsigns_Category_VSCatSliceFlatInput>(item, ["coding"])
172172
}
173173

174174
// Validation

0 commit comments

Comments
 (0)