Skip to content

Commit d48e4e1

Browse files
committed
Regenerate examples with createResource assertion and base required fields
1 parent b516f2d commit d48e4e1

12 files changed

Lines changed: 24 additions & 24 deletions

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export class birthPlaceProfile {
2626
}
2727

2828
static createResource (args: birthPlaceProfileParams) : Extension {
29-
const resource: Extension = {
29+
const resource = {
3030
url: "http://hl7.org/fhir/StructureDefinition/patient-birthPlace",
3131
valueAddress: args.valueAddress,
32-
}
32+
} as unknown as Extension
3333
return resource
3434
}
3535

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ export class birthTimeProfile {
2525
}
2626

2727
static createResource (args: birthTimeProfileParams) : Extension {
28-
const resource: Extension = {
28+
const resource = {
2929
url: "http://hl7.org/fhir/StructureDefinition/patient-birthTime",
3030
valueDateTime: args.valueDateTime,
31-
}
31+
} as unknown as Extension
3232
return resource
3333
}
3434

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export class nationalityProfile {
2323
}
2424

2525
static createResource () : Extension {
26-
const resource: Extension = {
26+
const resource = {
2727
url: "http://hl7.org/fhir/StructureDefinition/patient-nationality",
28-
}
28+
} as unknown as Extension
2929
return resource
3030
}
3131

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ export class own_prefixProfile {
2525
}
2626

2727
static createResource (args: own_prefixProfileParams) : Extension {
28-
const resource: Extension = {
28+
const resource = {
2929
url: "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix",
3030
valueString: args.valueString,
31-
}
31+
} as unknown as Extension
3232
return resource
3333
}
3434

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ export class observation_bodyweightProfile {
4646
observation_bodyweightProfile.VSCatSliceMatch,
4747
)
4848

49-
const resource: Observation = {
49+
const resource = {
5050
resourceType: "Observation",
5151
code: {"coding":[{"code":"29463-7","system":"http://loinc.org"}]},
5252
category: categoryWithDefaults,
5353
status: args.status,
5454
subject: args.subject,
5555
meta: { profile: [observation_bodyweightProfile.canonicalUrl] },
56-
}
56+
} as unknown as Observation
5757
return resource
5858
}
5959

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ export class observation_bpProfile {
5757
observation_bpProfile.DiastolicBPSliceMatch,
5858
)
5959

60-
const resource: Observation = {
60+
const resource = {
6161
resourceType: "Observation",
6262
code: {"coding":[{"code":"85354-9","system":"http://loinc.org"}]},
6363
category: categoryWithDefaults,
6464
component: componentWithDefaults,
6565
status: args.status,
6666
subject: args.subject,
6767
meta: { profile: [observation_bpProfile.canonicalUrl] },
68-
}
68+
} as unknown as Observation
6969
return resource
7070
}
7171

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ export class observation_vitalsignsProfile {
4646
observation_vitalsignsProfile.VSCatSliceMatch,
4747
)
4848

49-
const resource: Observation = {
49+
const resource = {
5050
resourceType: "Observation",
5151
category: categoryWithDefaults,
5252
status: args.status,
5353
code: args.code,
5454
subject: args.subject,
5555
meta: { profile: [observation_vitalsignsProfile.canonicalUrl] },
56-
}
56+
} as unknown as Observation
5757
return resource
5858
}
5959

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ export class observation_vitalsignsProfile {
4646
observation_vitalsignsProfile.VSCatSliceMatch,
4747
)
4848

49-
const resource: Observation = {
49+
const resource = {
5050
resourceType: "Observation",
5151
category: categoryWithDefaults,
5252
status: args.status,
5353
code: args.code,
5454
subject: args.subject,
5555
meta: { profile: [observation_vitalsignsProfile.canonicalUrl] },
56-
}
56+
} as unknown as Observation
5757
return resource
5858
}
5959

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ export class USCoreBloodPressureProfileProfile {
6060
USCoreBloodPressureProfileProfile.diastolicSliceMatch,
6161
)
6262

63-
const resource: Observation = {
63+
const resource = {
6464
resourceType: "Observation",
6565
code: {"coding":[{"system":"http://loinc.org","code":"85354-9"}]},
6666
category: categoryWithDefaults,
6767
component: componentWithDefaults,
6868
status: args.status,
6969
subject: args.subject,
7070
meta: { profile: [USCoreBloodPressureProfileProfile.canonicalUrl] },
71-
}
71+
} as unknown as Observation
7272
return resource
7373
}
7474

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ export class USCoreBodyWeightProfileProfile {
4949
USCoreBodyWeightProfileProfile.VSCatSliceMatch,
5050
)
5151

52-
const resource: Observation = {
52+
const resource = {
5353
resourceType: "Observation",
5454
code: {"coding":[{"system":"http://loinc.org","code":"29463-7"}]},
5555
category: categoryWithDefaults,
5656
status: args.status,
5757
subject: args.subject,
5858
meta: { profile: [USCoreBodyWeightProfileProfile.canonicalUrl] },
59-
}
59+
} as unknown as Observation
6060
return resource
6161
}
6262

0 commit comments

Comments
 (0)