@atomic-ehr/codegen 0.0.1-canary.20250924120719.44f2f7c → 0.0.1-canary.20250927094522.7f26cfe

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/api/builder.d.ts +7 -5
  2. package/dist/api/builder.js +8 -6
  3. package/dist/api/generators/base/BaseGenerator.d.ts +5 -5
  4. package/dist/api/generators/base/BaseGenerator.js +4 -4
  5. package/dist/api/generators/base/FileManager.d.ts +2 -2
  6. package/dist/api/generators/base/FileManager.js +1 -1
  7. package/dist/api/generators/base/PythonTypeMapper.d.ts +3 -3
  8. package/dist/api/generators/base/PythonTypeMapper.js +1 -1
  9. package/dist/api/generators/base/TemplateEngine.d.ts +1 -1
  10. package/dist/api/generators/base/TemplateEngine.js +1 -1
  11. package/dist/api/generators/base/TypeMapper.d.ts +2 -2
  12. package/dist/api/generators/base/TypeScriptTypeMapper.d.ts +3 -3
  13. package/dist/api/generators/base/TypeScriptTypeMapper.js +1 -1
  14. package/dist/api/generators/base/builders/DirectoryBuilder.d.ts +4 -4
  15. package/dist/api/generators/base/builders/FileBuilder.d.ts +2 -2
  16. package/dist/api/generators/base/builders/IndexBuilder.d.ts +2 -2
  17. package/dist/api/generators/base/enhanced-errors.d.ts +2 -2
  18. package/dist/api/generators/base/enhanced-errors.js +1 -1
  19. package/dist/api/generators/base/error-handler.d.ts +2 -2
  20. package/dist/api/generators/base/error-handler.js +1 -1
  21. package/dist/api/generators/base/errors.d.ts +2 -2
  22. package/dist/api/generators/base/index.d.ts +22 -22
  23. package/dist/api/generators/base/index.js +11 -11
  24. package/dist/api/generators/base/types.d.ts +4 -4
  25. package/dist/api/generators/typescript.d.ts +6 -6
  26. package/dist/api/generators/typescript.js +54 -46
  27. package/dist/api/index.d.ts +8 -8
  28. package/dist/api/index.js +3 -3
  29. package/dist/cli/commands/generate/typescript.d.ts +1 -1
  30. package/dist/cli/commands/generate/typescript.js +2 -2
  31. package/dist/cli/commands/generate.d.ts +1 -1
  32. package/dist/cli/commands/generate.js +4 -4
  33. package/dist/cli/commands/index.js +3 -3
  34. package/dist/cli/commands/typeschema/generate.js +3 -3
  35. package/dist/cli/commands/typeschema.js +2 -2
  36. package/dist/cli/index.js +55 -55
  37. package/dist/cli/utils/log.d.ts +2 -2
  38. package/dist/cli/utils/log.js +2 -2
  39. package/dist/config.d.ts +2 -2
  40. package/dist/config.js +5 -5
  41. package/dist/index.d.ts +2 -2
  42. package/dist/index.js +2 -2
  43. package/dist/typeschema/cache.d.ts +7 -7
  44. package/dist/typeschema/core/binding.d.ts +1 -1
  45. package/dist/typeschema/core/binding.js +6 -4
  46. package/dist/typeschema/core/field-builder.d.ts +3 -3
  47. package/dist/typeschema/core/field-builder.js +3 -3
  48. package/dist/typeschema/core/identifier.d.ts +5 -17
  49. package/dist/typeschema/core/identifier.js +15 -47
  50. package/dist/typeschema/core/nested-types.d.ts +2 -2
  51. package/dist/typeschema/core/nested-types.js +2 -2
  52. package/dist/typeschema/core/transformer.d.ts +3 -3
  53. package/dist/typeschema/core/transformer.js +20 -28
  54. package/dist/typeschema/generator.d.ts +3 -4
  55. package/dist/typeschema/generator.js +12 -14
  56. package/dist/typeschema/index.d.ts +4 -5
  57. package/dist/typeschema/index.js +4 -4
  58. package/dist/typeschema/parser.d.ts +5 -5
  59. package/dist/typeschema/profile/processor.d.ts +2 -3
  60. package/dist/typeschema/profile/processor.js +12 -10
  61. package/dist/typeschema/types.d.ts +66 -375
  62. package/dist/typeschema/types.js +14 -2
  63. package/dist/typeschema/value-set/processor.d.ts +1 -1
  64. package/dist/typeschema/value-set/processor.js +1 -1
  65. package/package.json +2 -2
  66. package/dist/typeschema/schema.d.ts +0 -485
  67. package/dist/typeschema/schema.js +0 -456
  68. package/dist/typeschema/type-schema.types.d.ts +0 -186
  69. package/dist/typeschema/type-schema.types.js +0 -39
  70. package/dist/typeschema/utils.d.ts +0 -6
  71. package/dist/typeschema/utils.js +0 -13
@@ -4,7 +4,7 @@
4
4
  * Functions for transforming FHIR ValueSets into TypeSchema format
5
5
  */
6
6
  import type { CanonicalManager } from "@atomic-ehr/fhir-canonical-manager";
7
- import type { PackageInfo, TypeSchemaForValueSet } from "../types.js";
7
+ import type { PackageInfo, TypeSchemaForValueSet } from "../types";
8
8
  /**
9
9
  * Extract all concepts from a ValueSet
10
10
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Functions for transforming FHIR ValueSets into TypeSchema format
5
5
  */
6
- import { buildValueSetIdentifier } from "../core/identifier.js";
6
+ import { buildValueSetIdentifier } from "../core/identifier";
7
7
  /**
8
8
  * Extract concepts from a CodeSystem
9
9
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-ehr/codegen",
3
- "version": "0.0.1-canary.20250924120719.44f2f7c",
3
+ "version": "0.0.1-canary.20250927094522.7f26cfe",
4
4
  "description": "Code generation tools for FHIR resources and TypeSchema definitions",
5
5
  "keywords": [
6
6
  "fhir",
@@ -71,7 +71,7 @@
71
71
  "typescript": "^5.9.2"
72
72
  },
73
73
  "dependencies": {
74
- "@atomic-ehr/fhir-canonical-manager": "^0.0.10",
74
+ "@atomic-ehr/fhir-canonical-manager": "0.0.11-canary.355d62d.20250926143544",
75
75
  "@atomic-ehr/fhirschema": "^0.0.2",
76
76
  "@inquirer/prompts": "^7.8.1",
77
77
  "ajv": "^8.17.1",
@@ -1,485 +0,0 @@
1
- export declare const validationSchema: {
2
- $schema: string;
3
- $id: string;
4
- $comment: string;
5
- title: string;
6
- description: string;
7
- type: string;
8
- definitions: {
9
- "type-schema-identifier": {
10
- type: string;
11
- oneOf: {
12
- $ref: string;
13
- }[];
14
- properties: {
15
- kind: {
16
- type: string;
17
- };
18
- package: {
19
- type: string;
20
- description: string;
21
- };
22
- version: {
23
- type: string;
24
- description: string;
25
- };
26
- name: {
27
- type: string;
28
- description: string;
29
- };
30
- url: {
31
- type: string;
32
- pattern: string;
33
- description: string;
34
- };
35
- };
36
- required: string[];
37
- additionalProperties: boolean;
38
- };
39
- "with-primitive-type-kind": {
40
- type: string;
41
- description: string;
42
- properties: {
43
- kind: {
44
- const: string;
45
- };
46
- };
47
- };
48
- "with-valueset-kind": {
49
- type: string;
50
- description: string;
51
- properties: {
52
- kind: {
53
- const: string;
54
- };
55
- };
56
- };
57
- "with-binding-kind": {
58
- type: string;
59
- description: string;
60
- properties: {
61
- kind: {
62
- const: string;
63
- };
64
- };
65
- };
66
- "with-complex-type-kind": {
67
- type: string;
68
- description: string;
69
- properties: {
70
- kind: {
71
- const: string;
72
- };
73
- };
74
- };
75
- "with-resource-kind": {
76
- type: string;
77
- description: string;
78
- properties: {
79
- kind: {
80
- const: string;
81
- };
82
- };
83
- };
84
- "with-nested-kind": {
85
- type: string;
86
- description: string;
87
- properties: {
88
- kind: {
89
- const: string;
90
- };
91
- };
92
- };
93
- "with-logical-kind": {
94
- type: string;
95
- description: string;
96
- properties: {
97
- kind: {
98
- const: string;
99
- };
100
- };
101
- };
102
- "field.regular": {
103
- title: string;
104
- description: string;
105
- type: string;
106
- properties: {
107
- type: {
108
- $ref: string;
109
- description: string;
110
- };
111
- reference: {
112
- type: string;
113
- description: string;
114
- items: {
115
- $ref: string;
116
- };
117
- };
118
- required: {
119
- type: string;
120
- default: boolean;
121
- description: string;
122
- };
123
- excluded: {
124
- type: string;
125
- default: boolean;
126
- description: string;
127
- };
128
- array: {
129
- type: string;
130
- default: boolean;
131
- description: string;
132
- };
133
- binding: {
134
- allOf: {
135
- $ref: string;
136
- }[];
137
- };
138
- enum: {
139
- type: string;
140
- items: {
141
- type: string;
142
- };
143
- description: string;
144
- };
145
- min: {
146
- type: string;
147
- description: string;
148
- };
149
- max: {
150
- type: string;
151
- description: string;
152
- };
153
- };
154
- required: string[];
155
- additionalProperties: boolean;
156
- };
157
- "field.polymorphic-declaration": {
158
- title: string;
159
- description: string;
160
- type: string;
161
- properties: {
162
- choices: {
163
- type: string;
164
- items: {
165
- type: string;
166
- };
167
- description: string;
168
- };
169
- required: {
170
- type: string;
171
- default: boolean;
172
- description: string;
173
- };
174
- excluded: {
175
- type: string;
176
- default: boolean;
177
- description: string;
178
- };
179
- array: {
180
- type: string;
181
- default: boolean;
182
- description: string;
183
- };
184
- min: {
185
- type: string;
186
- description: string;
187
- };
188
- max: {
189
- type: string;
190
- description: string;
191
- };
192
- };
193
- required: string[];
194
- additionalProperties: boolean;
195
- };
196
- "field.polymorphic-instance": {
197
- title: string;
198
- description: string;
199
- type: string;
200
- properties: {
201
- choiceOf: {
202
- type: string;
203
- description: string;
204
- };
205
- type: {
206
- $ref: string;
207
- description: string;
208
- };
209
- required: {
210
- type: string;
211
- default: boolean;
212
- description: string;
213
- };
214
- excluded: {
215
- type: string;
216
- default: boolean;
217
- description: string;
218
- };
219
- array: {
220
- type: string;
221
- default: boolean;
222
- description: string;
223
- };
224
- reference: {
225
- type: string;
226
- description: string;
227
- items: {
228
- $ref: string;
229
- };
230
- };
231
- binding: {
232
- allOf: {
233
- $ref: string;
234
- }[];
235
- description: string;
236
- };
237
- enum: {
238
- type: string;
239
- items: {
240
- type: string;
241
- };
242
- description: string;
243
- };
244
- min: {
245
- type: string;
246
- description: string;
247
- };
248
- max: {
249
- type: string;
250
- description: string;
251
- };
252
- };
253
- required: string[];
254
- additionalProperties: boolean;
255
- };
256
- dependencies: {
257
- type: string;
258
- description: string;
259
- items: {
260
- $ref: string;
261
- };
262
- };
263
- };
264
- oneOf: ({
265
- title: string;
266
- description: string;
267
- type: string;
268
- properties: {
269
- identifier: {
270
- allOf: {
271
- $ref: string;
272
- }[];
273
- description: string;
274
- };
275
- description: {
276
- type: string;
277
- description: string;
278
- };
279
- base: {
280
- $ref: string;
281
- description: string;
282
- };
283
- dependencies: {
284
- $ref: string;
285
- description: string;
286
- type?: undefined;
287
- items?: undefined;
288
- };
289
- fields?: undefined;
290
- nested?: undefined;
291
- concept?: undefined;
292
- compose?: undefined;
293
- type?: undefined;
294
- strength?: undefined;
295
- enum?: undefined;
296
- valueset?: undefined;
297
- };
298
- required: string[];
299
- additionalProperties: boolean;
300
- } | {
301
- title: string;
302
- description: string;
303
- type: string;
304
- properties: {
305
- identifier: {
306
- allOf: ({
307
- $ref: string;
308
- oneOf?: undefined;
309
- } | {
310
- oneOf: {
311
- $ref: string;
312
- }[];
313
- $ref?: undefined;
314
- })[];
315
- description: string;
316
- };
317
- base: {
318
- $ref: string;
319
- description: string;
320
- };
321
- description: {
322
- type: string;
323
- description: string;
324
- };
325
- fields: {
326
- type: string;
327
- description: string;
328
- additionalProperties: {
329
- anyOf: {
330
- $ref: string;
331
- }[];
332
- };
333
- };
334
- nested: {
335
- type: string;
336
- description: string;
337
- items: {
338
- type: string;
339
- properties: {
340
- identifier: {
341
- allOf: {
342
- $ref: string;
343
- }[];
344
- description: string;
345
- };
346
- base: {
347
- $ref: string;
348
- description: string;
349
- };
350
- fields: {
351
- type: string;
352
- description: string;
353
- additionalProperties: {
354
- anyOf: {
355
- $ref: string;
356
- }[];
357
- };
358
- };
359
- };
360
- required: string[];
361
- additionalProperties: boolean;
362
- };
363
- };
364
- dependencies: {
365
- type: string;
366
- description: string;
367
- items: {
368
- $ref: string;
369
- };
370
- $ref?: undefined;
371
- };
372
- concept?: undefined;
373
- compose?: undefined;
374
- type?: undefined;
375
- strength?: undefined;
376
- enum?: undefined;
377
- valueset?: undefined;
378
- };
379
- required: string[];
380
- additionalProperties: boolean;
381
- } | {
382
- title: string;
383
- description: string;
384
- type: string;
385
- properties: {
386
- identifier: {
387
- allOf: {
388
- $ref: string;
389
- }[];
390
- description: string;
391
- };
392
- description: {
393
- type: string;
394
- description: string;
395
- };
396
- concept: {
397
- type: string;
398
- description: string;
399
- items: {
400
- type: string;
401
- properties: {
402
- code: {
403
- type: string;
404
- description: string;
405
- };
406
- display: {
407
- type: string;
408
- description: string;
409
- };
410
- system: {
411
- type: string;
412
- description: string;
413
- };
414
- };
415
- required: string[];
416
- additionalProperties: boolean;
417
- };
418
- };
419
- compose: {
420
- type: string;
421
- description: string;
422
- };
423
- base?: undefined;
424
- dependencies?: undefined;
425
- fields?: undefined;
426
- nested?: undefined;
427
- type?: undefined;
428
- strength?: undefined;
429
- enum?: undefined;
430
- valueset?: undefined;
431
- };
432
- required: string[];
433
- additionalProperties: boolean;
434
- } | {
435
- title: string;
436
- type: string;
437
- properties: {
438
- identifier: {
439
- allOf: {
440
- $ref: string;
441
- }[];
442
- description: string;
443
- };
444
- description: {
445
- type: string;
446
- description: string;
447
- };
448
- type: {
449
- $ref: string;
450
- };
451
- strength: {
452
- type: string;
453
- description: string;
454
- };
455
- enum: {
456
- type: string;
457
- items: {
458
- type: string;
459
- };
460
- description: string;
461
- };
462
- valueset: {
463
- allOf: {
464
- $ref: string;
465
- }[];
466
- };
467
- dependencies: {
468
- type: string;
469
- description: string;
470
- items: {
471
- $ref: string;
472
- };
473
- $ref?: undefined;
474
- };
475
- base?: undefined;
476
- fields?: undefined;
477
- nested?: undefined;
478
- concept?: undefined;
479
- compose?: undefined;
480
- };
481
- required: string[];
482
- additionalProperties: boolean;
483
- description?: undefined;
484
- })[];
485
- };