@@ -8,12 +8,12 @@ import type { Period } from "../../hl7-fhir-r4-core/Period";
88import type { Quantity } from "../../hl7-fhir-r4-core/Quantity" ;
99import 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
1818import {
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
0 commit comments