Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 38 additions & 2 deletions .github/workflows/sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:

- name: Repository contains actual csharp-sdk version
run: |
diff_result=$(git diff --exit-code --name-only example/csharp/aidbox || true)
diff_result=$(git diff --exit-code --name-only examples/csharp/generated || true)

if [ -z "$diff_result" ]; then
echo "✅ Generated SDK is identical to the one stored in repository."
else
echo "❌ Generated SDK differs from the one stored in repository."
echo "Differences:"
git diff example/csharp/aidbox
git diff examples/csharp/generated
Comment thread
ryukzak marked this conversation as resolved.
exit 1
fi

Expand Down Expand Up @@ -107,3 +107,39 @@ jobs:

- name: Run tests
run: make test-typescript-ccda-example

test-python-sdk-test:
runs-on: ubuntu-latest

strategy:
matrix:
bun-version: [ latest ]

steps:
- uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.bun-version }}

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Test Python SDK
run: |
export AIDBOX_LICENSE_ID="${{ secrets.AIDBOX_LICENSE_ID }}"
make test-python-sdk

- name: Repository contains actual python-sdk version
run: |
diff_result=$(git diff --exit-code --name-only examples/python/generated || true)

if [ -z "$diff_result" ]; then
echo "✅ Generated SDK is identical to the one stored in repository."
else
echo "❌ Generated SDK differs from the one stored in repository."
echo "Differences:"
git diff examples/python/generated
exit 1
fi
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,26 @@ test-csharp-sdk: typecheck format prepare-aidbox-runme lint
cd examples/csharp && dotnet restore
cd examples/csharp && dotnet build
cd examples/csharp && dotnet test

PYTHON=python3
PYTHON_SDK_EXAMPLE=./examples/python

test-python-sdk: typecheck format prepare-aidbox-runme lint
$(TYPECHECK) --project examples/python/tsconfig.json
bun run examples/python/generate.ts

@if [ ! -d "$(PYTHON_SDK_EXAMPLE)/venv" ]; then \
cd $(PYTHON_SDK_EXAMPLE) && \
$(PYTHON) -m venv venv && \
. venv/bin/activate && \
pip install -r generated/requirements.txt; \
fi

# Run mypy in strict mode
cd $(PYTHON_SDK_EXAMPLE) && \
. venv/bin/activate && \
mypy --strict generated

cd $(PYTHON_SDK_EXAMPLE) && \
. venv/bin/activate && \
python -m pytest test_sdk.py -v
Comment thread
MikhailArtemyev marked this conversation as resolved.
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Account.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/AdverseEvent.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Appointment.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/AuditEvent.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Basic.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Binary.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/BodyStructure.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Bundle.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/CarePlan.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/CareTeam.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/CatalogEntry.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/ChargeItem.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Claim.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/ClaimResponse.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/CodeSystem.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Communication.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Composition.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/ConceptMap.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Condition.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Consent.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Contract.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Coverage.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
14 changes: 0 additions & 14 deletions examples/csharp/generated/Hl7FhirR4Core/Definition.cs

This file was deleted.

2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/DetectedIssue.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/Device.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/DeviceMetric.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
2 changes: 1 addition & 1 deletion examples/csharp/generated/Hl7FhirR4Core/DeviceRequest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
// GitHub: https://github.com/orgs/atomic-ehr/repositories
// GitHub: https://github.com/atomic-ehr/codegen
// Any manual changes made to this file may be overwritten.


Expand Down
Loading