@@ -9,8 +9,15 @@ import type { Quantity } from "../../hl7-fhir-r4-core/Quantity";
99import type { Reference } from "../../hl7-fhir-r4-core/Reference" ;
1010
1111export type Observation_bp_Category_VSCatSliceFlat = Omit < CodeableConcept , "coding" > ;
12+ export type Observation_bp_Category_VSCatSliceFlatAll = Observation_bp_Category_VSCatSliceFlat & {
13+ readonly coding : [ { code : "vital-signs" ; system : "http://terminology.hl7.org/CodeSystem/observation-category" } ] ;
14+ }
15+
1216export type Observation_bp_Component_SystolicBPSliceFlat = Omit < ObservationComponent , "code" | "value" | "valueQuantity" | "valueCodeableConcept" | "valueString" | "valueBoolean" | "valueInteger" | "valueRange" | "valueRatio" | "valueSampledData" | "valueTime" | "valueDateTime" | "valuePeriod" > & Quantity ;
17+ export type Observation_bp_Component_SystolicBPSliceFlatAll = Observation_bp_Component_SystolicBPSliceFlat ;
18+
1319export type Observation_bp_Component_DiastolicBPSliceFlat = Omit < ObservationComponent , "code" | "value" | "valueQuantity" | "valueCodeableConcept" | "valueString" | "valueBoolean" | "valueInteger" | "valueRange" | "valueRatio" | "valueSampledData" | "valueTime" | "valueDateTime" | "valuePeriod" > & Quantity ;
20+ export type Observation_bp_Component_DiastolicBPSliceFlatAll = Observation_bp_Component_DiastolicBPSliceFlat ;
1421
1522import {
1623 ensureProfile ,
@@ -19,7 +26,6 @@ import {
1926 setArraySlice ,
2027 getArraySlice ,
2128 ensureSliceDefaults ,
22- stripMatchKeys ,
2329 wrapSliceChoice ,
2430 unwrapSliceChoice ,
2531 validateRequired ,
@@ -43,9 +49,15 @@ export type observation_bpProfileRaw = {
4349export class observation_bpProfile {
4450 static readonly canonicalUrl = "http://hl7.org/fhir/StructureDefinition/bp" ;
4551
46- private static readonly VSCatSliceMatch : Record < string , unknown > = { "coding" :[ { "code" :"vital-signs" , "system" :"http://terminology.hl7.org/CodeSystem/observation-category" } ] } ;
47- private static readonly SystolicBPSliceMatch : Record < string , unknown > = { "code" :{ "coding" :[ { "code" :"8480-6" , "system" :"http://loinc.org" } ] } } ;
48- private static readonly DiastolicBPSliceMatch : Record < string , unknown > = { "code" :{ "coding" :[ { "code" :"8462-4" , "system" :"http://loinc.org" } ] } } ;
52+ private static readonly VSCatSliceMatch : Record < string , unknown > = {
53+ "coding" : [ { "code" :"vital-signs" , "system" :"http://terminology.hl7.org/CodeSystem/observation-category" } ] ,
54+ }
55+ private static readonly SystolicBPSliceMatch : Record < string , unknown > = {
56+ "code" : { "coding" :[ { "code" :"8480-6" , "system" :"http://loinc.org" } ] } ,
57+ }
58+ private static readonly DiastolicBPSliceMatch : Record < string , unknown > = {
59+ "code" : { "coding" :[ { "code" :"8462-4" , "system" :"http://loinc.org" } ] } ,
60+ }
4961
5062 private resource : Observation ;
5163
@@ -217,37 +229,37 @@ export class observation_bpProfile {
217229 return this
218230 }
219231
220- public getVSCat ( mode : 'flat' ) : Observation_bp_Category_VSCatSliceFlat | undefined ;
232+ public getVSCat ( mode : 'flat' ) : Observation_bp_Category_VSCatSliceFlatAll | undefined ;
221233 public getVSCat ( mode : 'raw' ) : CodeableConcept | undefined ;
222- public getVSCat ( ) : Observation_bp_Category_VSCatSliceFlat | undefined ;
223- public getVSCat ( mode : 'flat' | 'raw' = 'flat' ) : Observation_bp_Category_VSCatSliceFlat | CodeableConcept | undefined {
234+ public getVSCat ( ) : Observation_bp_Category_VSCatSliceFlatAll | undefined ;
235+ public getVSCat ( mode : 'flat' | 'raw' = 'flat' ) : Observation_bp_Category_VSCatSliceFlatAll | CodeableConcept | undefined {
224236 const match = observation_bpProfile . VSCatSliceMatch
225237 const item = getArraySlice ( this . resource . category , match )
226238 if ( ! item ) return undefined
227239 if ( mode === 'raw' ) return item
228- return stripMatchKeys < Observation_bp_Category_VSCatSliceFlat > ( item , [ "coding" ] )
240+ return item as unknown as Observation_bp_Category_VSCatSliceFlatAll
229241 }
230242
231- public getSystolicBP ( mode : 'flat' ) : Observation_bp_Component_SystolicBPSliceFlat | undefined ;
243+ public getSystolicBP ( mode : 'flat' ) : Observation_bp_Component_SystolicBPSliceFlatAll | undefined ;
232244 public getSystolicBP ( mode : 'raw' ) : ObservationComponent | undefined ;
233- public getSystolicBP ( ) : Observation_bp_Component_SystolicBPSliceFlat | undefined ;
234- public getSystolicBP ( mode : 'flat' | 'raw' = 'flat' ) : Observation_bp_Component_SystolicBPSliceFlat | ObservationComponent | undefined {
245+ public getSystolicBP ( ) : Observation_bp_Component_SystolicBPSliceFlatAll | undefined ;
246+ public getSystolicBP ( mode : 'flat' | 'raw' = 'flat' ) : Observation_bp_Component_SystolicBPSliceFlatAll | ObservationComponent | undefined {
235247 const match = observation_bpProfile . SystolicBPSliceMatch
236248 const item = getArraySlice ( this . resource . component , match )
237249 if ( ! item ) return undefined
238250 if ( mode === 'raw' ) return item
239- return unwrapSliceChoice < Observation_bp_Component_SystolicBPSliceFlat > ( item , [ "code" ] , "valueQuantity" )
251+ return unwrapSliceChoice < Observation_bp_Component_SystolicBPSliceFlatAll > ( item , [ "code" ] , "valueQuantity" )
240252 }
241253
242- public getDiastolicBP ( mode : 'flat' ) : Observation_bp_Component_DiastolicBPSliceFlat | undefined ;
254+ public getDiastolicBP ( mode : 'flat' ) : Observation_bp_Component_DiastolicBPSliceFlatAll | undefined ;
243255 public getDiastolicBP ( mode : 'raw' ) : ObservationComponent | undefined ;
244- public getDiastolicBP ( ) : Observation_bp_Component_DiastolicBPSliceFlat | undefined ;
245- public getDiastolicBP ( mode : 'flat' | 'raw' = 'flat' ) : Observation_bp_Component_DiastolicBPSliceFlat | ObservationComponent | undefined {
256+ public getDiastolicBP ( ) : Observation_bp_Component_DiastolicBPSliceFlatAll | undefined ;
257+ public getDiastolicBP ( mode : 'flat' | 'raw' = 'flat' ) : Observation_bp_Component_DiastolicBPSliceFlatAll | ObservationComponent | undefined {
246258 const match = observation_bpProfile . DiastolicBPSliceMatch
247259 const item = getArraySlice ( this . resource . component , match )
248260 if ( ! item ) return undefined
249261 if ( mode === 'raw' ) return item
250- return unwrapSliceChoice < Observation_bp_Component_DiastolicBPSliceFlat > ( item , [ "code" ] , "valueQuantity" )
262+ return unwrapSliceChoice < Observation_bp_Component_DiastolicBPSliceFlatAll > ( item , [ "code" ] , "valueQuantity" )
251263 }
252264
253265 // Validation
0 commit comments