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
Copy file name to clipboardExpand all lines: docs/posts/2026-03-12-typescript-us-core-profiles-quick.md
+22-16Lines changed: 22 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,24 @@
1
-
# `@atomic-ehr/codegen`adds US Core profile support
1
+
# `@atomic-ehr/codegen`v0.0.9 — FHIR profile class generation
2
2
3
-
New release of [`@atomic-ehr/codegen`](https://github.com/atomic-ehr/codegen) generates typed profile classes for **US Core IG**. Extensions get a flat, typed API -- no manual `extension[]` wrangling:
3
+
Hey @**everyone**!
4
4
5
-
Import a profiled Patient from an API response and read extensions via typed getters:
5
+
We're excited to share **[`@atomic-ehr/codegen` v0.0.9](https://github.com/atomic-ehr/codegen/releases/tag/v0.0.9)** — this release adds **FHIR profile class generation** for TypeScript. We demonstrate it on the **[US Core IG](https://www.hl7.org/fhir/us/core/)** package.
6
+
7
+
Each profile class provides:
8
+
9
+
-**Slices** -- category and component slices with discriminator values applied automatically
10
+
-**Extensions** -- flat API for complex and simple extensions, multi-form setters (flat input, profile instance, raw Extension)
11
+
-**Field accessors** -- typed get/set for profiled fields with fluent chaining
12
+
-**Fixed values** -- `code`, `meta.profile` auto-set on `create()`
13
+
-**Choice types** -- `effective[x]`, `value[x]` with per-branch accessors
-**Validation** -- `validate()` returns `{ errors, warnings }` — checks required fields, choice constraints, and must-support field population
83
-
84
90
See the [generate script](https://github.com/atomic-ehr/codegen/blob/main/examples/typescript-us-core/generate.ts) and [example README](https://github.com/atomic-ehr/codegen/blob/main/examples/typescript-us-core/README.md) for setup.
85
91
86
92
Working examples:
@@ -92,4 +98,4 @@ Working examples:
92
98
93
99
Feedback welcome on [GitHub](https://github.com/atomic-ehr/codegen).
0 commit comments