Building FHIR Apps with Typescript
summary
Publishes TypeScript FHIR definitions to DefinitelyTyped (R2, R3, R4) using the FHIR COGEN generator, shows a working $extract implementation that compiles with ts‑node and outputs three Observations (two from a repeated answer, one from an A1c), and demonstrates editor autocompletion in VS Code/neovim. Uses r4 bundle types, installs types-fire and uuid, adds type predicate guard functions, and wires a Fastify CDS Hooks endpoint plus a Firekit client call that successfully fetches a Patient from a HAPI test server.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:38Typescript 101
- 3:48Why Typescript
- 6:00FHIR Type Library
- 9:34Editor IDE
- 10:47Examples
- 11:19Exercise 1 Dollar Sign Extract
- 12:13Requirements
- 14:21Typescript Example
- 16:01Typescript Signature
- 18:29Compile
- 19:49TypePredicate Guard
- 27:46Questionnaire
- 30:56CSHooks
- 37:41Firekit Client
- 44:04Browserbased smarts
- 45:49Handling extensions
related talks
22mTypeScript FHIR library
06mGenerate TypeScript definitions for DocTypes on the fly
33mTypeScript for APIs
17mWhy You Should Maintain Type Definitions for Your JavaScript Project
32mThe Road to TypeScript
30mTypeScript: Seeing Past the Hype
01h 03mTypeScript – JavaScript for C# devs
11mThe Joy of Typescript
