You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[x]**Multi-Package Support** — Load packages from the [FHIR registry](examples/typescript-r4/), [remote TGZ files](examples/typescript-sql-on-fhir/), or a [local folder with custom StructureDefinitions](examples/local-package-folder/)
44
+
- Tested with hl7.fhir.r4.core, US Core, C-CDA, SQL on FHIR, etc.
// ["effective: at least one of effectiveDateTime, effectivePeriod is required"]
370
+
```
394
371
395
-
- [x] **Python generation**
396
-
- [x] **C# generation**
397
-
- [ ] **Rust generation**
398
-
- [ ] **GraphQL schema generation**
399
-
- [ ] **OpenAPI specification generation**
400
-
- [ ] **Validation functions**
401
-
- [ ] **Mock data generation**
372
+
See [examples/typescript-r4/](examples/typescript-r4/) for R4 profile tests and [examples/typescript-us-core/](examples/typescript-us-core/) for US Core profile examples.
# TypeScript Profile Classes in Atomic EHR Codegen
1
+
# Profile codegen for TypeScript
2
2
3
-
We've added FHIR profile support to the TypeScript generator in [Atomic EHR Codegen](https://github.com/atomic-ehr/codegen). Profiles generate as wrapper classes with typed accessors, automatic slice handling, and runtime validation -- all on top of plain FHIR JSON.
4
-
5
-
## Quick look
3
+
[@atomic-ehr/codegen](https://github.com/atomic-ehr/codegen) is an open-source toolkit that generates strongly-typed code from FHIR packages. We've added **FHIR profile support** for TypeScript (dev preview) -- propagation of fixed values, slice & extension getters/setters, and primitive client-side validation:
This is a **dev preview**. Our main focus right now is stabilization across different profile shapes and edge cases. We're using it ourselves for a FHIR-to-CCDA converter, which is a good stress test for the generator. After stabilization, the plan is to bring profile support to Python next.
56
52
57
-
This is an early iteration. We'd appreciate hearing about profiles that don't generate correctly, API patterns that feel awkward, or validation gaps.
53
+
We'd appreciate any feedback -- profiles that don't generate correctly, API patterns that feel awkward, validation gaps, or anything else. Issues and discussions welcome on [GitHub](https://github.com/atomic-ehr/codegen).
0 commit comments