Skip to content

Commit 5d6fb2c

Browse files
committed
test(typescript): update
1 parent eead53c commit 5d6fb2c

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

test/aidbox_sdk/fixtures/patient_ir_schema.edn

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:derivation "specialization",
44
:name "Patient",
55
:type "Patient",
6+
:kind "resource"
67
:resource-name "Patient"
78
:elements
89
[{:name "multipleBirthBoolean",

test/aidbox_sdk/generator/typescript_test.clj

+1-9
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@
141141
"};"]))
142142

143143
(testing "empty elements"
144-
(is (= "export type Base = {
145-
resourceType: 'Base'
146-
};"
144+
(is (= "export type Base = {};"
147145
(gen.typescript/generate-class {:package "hl7.fhir.r5.core",
148146
:derivation nil,
149147
:type "Base",
@@ -162,19 +160,16 @@
162160
(map gen.typescript/generate-class (:backbone-elements (fixt/get-data :patient-ir-schema)))))
163161

164162
["export type PatientLink = BackboneElement & {"
165-
" resourceType: 'PatientLink'"
166163
" type: string;"
167164
" other: Reference;"
168165
"};"
169166
""
170167
"export type PatientCommunication = BackboneElement & {"
171-
" resourceType: 'PatientCommunication'"
172168
" language: CodeableConcept;"
173169
" preferred?: boolean;"
174170
"};"
175171
""
176172
"export type PatientContact = BackboneElement & {"
177-
" resourceType: 'PatientContact'"
178173
" name?: HumanName;"
179174
" gender?: string;"
180175
" period?: Period;"
@@ -237,19 +232,16 @@
237232
"import { AdministrativeGender } from './valuesets';"
238233
""
239234
"export type PatientLink = BackboneElement & {"
240-
" resourceType: 'PatientLink'"
241235
" type: string;"
242236
" other: Reference;"
243237
"};"
244238
""
245239
"export type PatientCommunication = BackboneElement & {"
246-
" resourceType: 'PatientCommunication'"
247240
" language: CodeableConcept;"
248241
" preferred?: boolean;"
249242
"};"
250243
""
251244
"export type PatientContact = BackboneElement & {"
252-
" resourceType: 'PatientContact'"
253245
" name?: HumanName;"
254246
" gender?: string;"
255247
" period?: Period;"

0 commit comments

Comments
 (0)