Skip to content

Commit 3a6b3f4

Browse files
committed
codegen us-core example: list in top-level README, tighten POST section
- Top-level README: add the new example to the Developer Experience section ("@atomic-ehr/codegen: US Core Profiles in TypeScript: CSV -> FHIR Bundle") so it's discoverable from the repo root. - Example README POST section: drop the long narrative about per-install BOX_ROOT_CLIENT_SECRET and the separate verification queries; the section is now one prose line + one command block doing the docker compose + curl POST in sequence.
1 parent 7c4a0a0 commit 3a6b3f4

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ A collection of examples on top of Aidbox FHIR platform
6060
- [Agentic FHIR Implementation Guide Development](developer-experience/agentic-coding-ig-development/)
6161
- [Aidbox Firely .NET Client](developer-experience/aidbox-firely-dotnet-client/)
6262
- [Aidbox HAPI FHIR Client](developer-experience/aidbox-hapi-client/)
63+
- [@atomic-ehr/codegen: US Core Profiles in TypeScript: CSV -> FHIR Bundle](developer-experience/atomic-ehr-codegen-typescript-us-core-profiles/)
6364

6465
## Documentation
6566

developer-experience/atomic-ehr-codegen-typescript-us-core-profiles/README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,17 @@ Avg BP: 125.2/82.0 mmHg (n=5)
4242

4343
## POST to a FHIR Server (Optional)
4444

45-
Any FHIR-compliant server accepts the generated `bundle.json` at its root endpoint. To try it end-to-end, [run Aidbox in Docker](https://www.health-samurai.io/docs/aidbox/getting-started/run-aidbox-locally) in two minutes; the setup writes a `docker-compose.yaml` with a per-install `BOX_ROOT_CLIENT_SECRET`. Read it back with `awk` so the curl commands keep working when the secret rotates:
45+
Run [Aidbox](https://www.health-samurai.io/fhir-server) locally and POST `bundle.json`:
4646

4747
```bash
48+
curl -JO https://aidbox.app/runme && docker compose up -d
4849
SECRET=$(awk '/BOX_ROOT_CLIENT_SECRET:/{print $2}' docker-compose.yaml)
4950

50-
curl -u "root:$SECRET" -X POST \
51-
-H "Content-Type: application/fhir+json" \
51+
curl -u "root:$SECRET" -X POST -H "Content-Type: application/fhir+json" \
5252
-d @bundle.json http://localhost:8080/fhir
5353
```
5454

55-
Aidbox resolves the `urn:uuid` references to concrete Patient IDs during the transaction commit -- check with:
56-
57-
```bash
58-
curl -u "root:$SECRET" "http://localhost:8080/fhir/Patient?family=Lovelace"
59-
curl -u "root:$SECRET" "http://localhost:8080/fhir/Observation?code=http://loinc.org|85354-9" \
60-
| jq '.entry[].resource.subject.reference'
61-
```
55+
Aidbox resolves the `urn:uuid` references during the transaction commit.
6256

6357
## Notes on the Code
6458

0 commit comments

Comments
 (0)