Directories
¶
| Path | Synopsis |
|---|---|
|
Package auth provides the generic TokenSource abstraction and shared OAuth2 primitives (JWKS, discovery, scope builder) used by every authenticated SDK call.
|
Package auth provides the generic TokenSource abstraction and shared OAuth2 primitives (JWKS, discovery, scope builder) used by every authenticated SDK call. |
|
basic
Package basic implements HTTP Basic authentication (RFC 7617) as an auth.TokenSource for openEHR REST deployments that accept a static username and password on each request.
|
Package basic implements HTTP Basic authentication (RFC 7617) as an auth.TokenSource for openEHR REST deployments that accept a static username and password on each request. |
|
clientcreds
Package clientcreds implements the OAuth2 Client Credentials grant (RFC 6749 § 4.4) as an auth.TokenSource — for service-to-service callers (benchmark, seeder, MCP server backend, federator) that do not run an interactive user flow.
|
Package clientcreds implements the OAuth2 Client Credentials grant (RFC 6749 § 4.4) as an auth.TokenSource — for service-to-service callers (benchmark, seeder, MCP server backend, federator) that do not run an interactive user flow. |
|
introspect
Package introspect provides an opt-in RFC 7662 token introspection client for SDK consumers acting as resource servers or MCP gateways.
|
Package introspect provides an opt-in RFC 7662 token introspection client for SDK consumers acting as resource servers or MCP gateways. |
|
jwtbearer
Package jwtbearer implements the OAuth2 JWT Bearer (RFC 7523) grant as an auth.TokenSource — for systems that already hold a signed assertion and want to exchange it for an access token without an interactive flow.
|
Package jwtbearer implements the OAuth2 JWT Bearer (RFC 7523) grant as an auth.TokenSource — for systems that already hold a signed assertion and want to exchange it for an access token without an interactive flow. |
|
smart
Package smart implements the SMART-on-openEHR auth provider: PKCE, authorization-code launch flow, token refresh, and JWKS rotation, returning a TokenSource compatible with the parent auth package.
|
Package smart implements the SMART-on-openEHR auth provider: PKCE, authorization-code launch flow, token refresh, and JWKS rotation, returning a TokenSource compatible with the parent auth package. |
|
Package cadasto is the namespace for Cadasto-platform extras — application-specific layers shipped in the same module in v1 for adoption convenience.
|
Package cadasto is the namespace for Cadasto-platform extras — application-specific layers shipped in the same module in v1 for adoption convenience. |
|
admin
Package admin is the client for tenant, environment, system info, and healthcheck endpoints on a Cadasto deployment.
|
Package admin is the client for tenant, environment, system info, and healthcheck endpoints on a Cadasto deployment. |
|
care
Package care exposes opinionated application aggregates over EHR and Demographic resources: Patient, User, CaseLoad, CareTeam, Episode.
|
Package care exposes opinionated application aggregates over EHR and Demographic resources: Patient, User, CaseLoad, CareTeam, Episode. |
|
datamap
Package datamap is the client and builder for Datamap V2 — the Cadasto-specific format for resource-free read and write of clinical and demographic data across the openEHR REST API surface.
|
Package datamap is the client and builder for Datamap V2 — the Cadasto-specific format for resource-free read and write of clinical and demographic data across the openEHR REST API surface. |
|
extra
Package extra is the client for the Cadasto Extra API — endpoints that complement openEHR REST on a Cadasto deployment.
|
Package extra is the client for the Cadasto Extra API — endpoints that complement openEHR REST on a Cadasto deployment. |
|
mpi
Package mpi exposes the minimal Master Patient Index search surface — a preview shape pending the Cadasto MPI / identity resolution / trust federation research outcome.
|
Package mpi exposes the minimal Master Patient Index search surface — a preview shape pending the Cadasto MPI / identity resolution / trust federation research outcome. |
|
cmd
|
|
|
bmmdiff
command
bmmdiff is a small CLI that compares two BMM JSON files and prints a human-readable "what changed" summary.
|
bmmdiff is a small CLI that compares two BMM JSON files and prints a human-readable "what changed" summary. |
|
bmmgen
command
bmmgen is the BMM-driven code generator CLI.
|
bmmgen is the BMM-driven code generator CLI. |
|
examples
Package examples hosts worked, runnable example programs for each named SDK use case (benchmark, seeder, MCP server, federator).
|
Package examples hosts worked, runnable example programs for each named SDK use case (benchmark, seeder, MCP server, federator). |
|
examples/aql-build
command
Example: build an AQL query two ways — the struct-builder and the verb-functions — and show that both emit byte-identical, canonical AQL (REQ-055, PROBE-020).
|
Example: build an AQL query two ways — the struct-builder and the verb-functions — and show that both emit byte-identical, canonical AQL (REQ-055, PROBE-020). |
|
examples/aql-parse-structured
command
Example: parse an AQL query into the SDK-GAP-17 Tier-2 structured AST (parse.Query, REQ-113) and walk its shape.
|
Example: parse an AQL query into the SDK-GAP-17 Tier-2 structured AST (parse.Query, REQ-113) and walk its shape. |
|
examples/canonical_json
command
Example: decode a canonical-JSON Composition cassette and print a few key fields.
|
Example: decode a canonical-JSON Composition cassette and print a few key fields. |
|
examples/canxml_roundtrip
command
Example: JSON → struct → XML → struct → JSON round-trip.
|
Example: JSON → struct → XML → struct → JSON round-trip. |
|
examples/compile-build-validate
command
Example: the full clinical pipeline driven entirely through PUBLIC SDK packages (REQ-111) — parse an OPT, compile it with the public openehr/templatecompile bridge, build a *rm.Composition with the REQ-101 builder, serialise it to canonical JSON, round-trip it, and validate it against the same compiled template.
|
Example: the full clinical pipeline driven entirely through PUBLIC SDK packages (REQ-111) — parse an OPT, compile it with the public openehr/templatecompile bridge, build a *rm.Composition with the REQ-101 builder, serialise it to canonical JSON, round-trip it, and validate it against the same compiled template. |
|
examples/ehr_create
command
Example: end-to-end EHR creation against an in-process httptest server.
|
Example: end-to-end EHR creation against an in-process httptest server. |
|
examples/generate-example
command
Example: synthesise an RM instance from a compiled OPT and emit the canonical JSON to stdout.
|
Example: synthesise an RM instance from a compiled OPT and emit the canonical JSON to stdout. |
|
examples/lint-aql
command
Example: statically lint AQL with openehr/aql/lint and the validation.ValidateAQL bridge (REQ-109).
|
Example: statically lint AQL with openehr/aql/lint and the validation.ValidateAQL bridge (REQ-109). |
|
examples/opt-parse
command
Example: parse an ADL 1.4 operational template (OPT) and print identity, OPT metadata, and path-resolved nodes.
|
Example: parse an ADL 1.4 operational template (OPT) and print identity, OPT metadata, and path-resolved nodes. |
|
examples/primitive-validate
command
Example: parse a minimal OPT with a DV_QUANTITY primitive constraint, resolve a path, and call PrimitiveConstraint.Validate (REQ-103).
|
Example: parse a minimal OPT with a DV_QUANTITY primitive constraint, resolve a path, and call PrimitiveConstraint.Validate (REQ-103). |
|
examples/smart-launch
command
Example: standalone SMART-on-openEHR launch with PKCE (public client).
|
Example: standalone SMART-on-openEHR launch with PKCE (public client). |
|
examples/template-explore
command
Example: introspect a compiled operational template through the public REQ-111 surface — walk the templatecompile.CompiledNode tree to print the template structure (the seed of a form generator) and the addressable primitive-leaf paths (the seed of path discovery / Builder.Set targets).
|
Example: introspect a compiled operational template through the public REQ-111 surface — walk the templatecompile.CompiledNode tree to print the template structure (the seed of a form generator) and the addressable primitive-leaf paths (the seed of path discovery / Builder.Set targets). |
|
examples/validate-composition
command
Example: parse an OPT, compile it, and validate an in-memory *rm.Composition with openehr/validation (REQ-102).
|
Example: parse an OPT, compile it, and validate an in-memory *rm.Composition with openehr/validation (REQ-102). |
|
examples/validate-from-json
command
Example: decode canonical-JSON Composition bytes with canjson, compile vital_signs.opt, and validate (REQ-052 + REQ-102).
|
Example: decode canonical-JSON Composition bytes with canjson, compile vital_signs.opt, and validate (REQ-052 + REQ-102). |
|
Package internal hosts implementation helpers that are explicitly excluded from the module's backwards-compatibility promises (per Go convention: anything under internal/ is invisible to external consumers).
|
Package internal hosts implementation helpers that are explicitly excluded from the module's backwards-compatibility promises (per Go convention: anything under internal/ is invisible to external consumers). |
|
bmmdiff
Package bmmdiff computes a structured, human-readable diff between two loaded BMM schemas.
|
Package bmmdiff computes a structured, human-readable diff between two loaded BMM schemas. |
|
bmmgen
Package bmmgen is the BMM-driven code generator for the SDK.
|
Package bmmgen is the BMM-driven code generator for the SDK. |
|
templatecompile
Package templatecompile turns a parsed OPT (openehr/template's wire representation) into a walker-friendly compiled form that the composition builder (REQ-101), validator (REQ-102), and example generator consume.
|
Package templatecompile turns a parsed OPT (openehr/template's wire representation) into a walker-friendly compiled form that the composition builder (REQ-101), validator (REQ-102), and example generator consume. |
|
templatecompile/walk
Package walk provides a Visitor abstraction over the compiled OPT tree produced by internal/templatecompile.Compile.
|
Package walk provides a Visitor abstraction over the compiled OPT tree produced by internal/templatecompile.Compile. |
|
templatecompile/walk/templatedump
Package templatedump provides reference walk.Visitor implementations: a pretty-printer that renders a compiled OPT as an indented tree, and a path collector that accumulates every node's canonical AQL path.
|
Package templatedump provides reference walk.Visitor implementations: a pretty-printer that renders a compiled OPT as an indented tree, and a path collector that accumulates every node's canonical AQL path. |
|
templateinstance/rmwrite
Package rmwrite writes RM attribute values by name without reflection.
|
Package rmwrite writes RM attribute values by name without reflection. |
|
Package openehr is a namespace marker — generic openEHR primitives live in its sub-packages (rm, serialize, validation, template, aql, composition, client).
|
Package openehr is a namespace marker — generic openEHR primitives live in its sub-packages (rm, serialize, validation, template, aql, composition, client). |
|
aom/aom14
Package aom14 holds Go types generated from the openEHR Archetype Object Model 1.4 (BMM source: openehr_am_1.4.0.bmm.json + openehr_base_1.3.0.bmm.json).
|
Package aom14 holds Go types generated from the openEHR Archetype Object Model 1.4 (BMM source: openehr_am_1.4.0.bmm.json + openehr_base_1.3.0.bmm.json). |
|
aql
Package aql provides:
|
Package aql provides: |
|
aql/lint
Package lint statically checks AQL (REQ-109) over the SDK grammar profile.
|
Package lint statically checks AQL (REQ-109) over the SDK grammar profile. |
|
aql/parse
Package parse turns an AQL string into a syntax-checked, generated-type-free view (REQ-109).
|
Package parse turns an AQL string into a syntax-checked, generated-type-free view (REQ-109). |
|
bmm
Package bmm loads openEHR Basic Meta-Model (BMM) schemas — the P_BMM JSON files pinned under resources/bmm/ — into an in-memory model.
|
Package bmm loads openEHR Basic Meta-Model (BMM) schemas — the P_BMM JSON files pinned under resources/bmm/ — into an in-memory model. |
|
client
Package client groups REST clients per openEHR resource — each sub-package corresponds to an openEHR REST 1.1.0-development surface.
|
Package client groups REST clients per openEHR resource — each sub-package corresponds to an openEHR REST 1.1.0-development surface. |
|
client/admin
Package admin is the ITS-REST `/admin/*` client (REQ-099).
|
Package admin is the ITS-REST `/admin/*` client (REQ-099). |
|
client/definition
Package definition is the openEHR REST 1.1.0-development Definition API client.
|
Package definition is the openEHR REST 1.1.0-development Definition API client. |
|
client/demographic
Package demographic is the openEHR REST client for the Demographic API — the PARTY hierarchy (PERSON, ORGANISATION, GROUP, AGENT, ROLE) with versioned CRUD.
|
Package demographic is the openEHR REST client for the Demographic API — the PARTY hierarchy (PERSON, ORGANISATION, GROUP, AGENT, ROLE) with versioned CRUD. |
|
client/ehr
Package ehr is the openEHR REST client for the EHR resource and its sub-resources: Composition, Contribution, Directory, EHR_STATUS, and ItemTags.
|
Package ehr is the openEHR REST client for the EHR resource and its sub-resources: Composition, Contribution, Directory, EHR_STATUS, and ItemTags. |
|
client/ehr/composition
Package composition is the openEHR REST 1.1.0-development Composition sub-resource client.
|
Package composition is the openEHR REST 1.1.0-development Composition sub-resource client. |
|
client/ehr/contribution
Package contribution is the openEHR REST 1.1.0-development Contribution sub-resource client — multi-version atomic commits against an EHR.
|
Package contribution is the openEHR REST 1.1.0-development Contribution sub-resource client — multi-version atomic commits against an EHR. |
|
client/ehr/directory
Package directory is the openEHR REST 1.1.0-development Directory (folder hierarchy) sub-resource client.
|
Package directory is the openEHR REST 1.1.0-development Directory (folder hierarchy) sub-resource client. |
|
client/ehr/ehrstatus
Package ehrstatus is the openEHR REST 1.1.0-development EHR_STATUS sub-resource client.
|
Package ehrstatus is the openEHR REST 1.1.0-development EHR_STATUS sub-resource client. |
|
client/ehr/itemtags
Package itemtags implements openEHR REST 1.1.0 ItemTag operations via the openehr-item-tag and openehr-version-item-tag headers (REQ-059).
|
Package itemtags implements openEHR REST 1.1.0 ItemTag operations via the openehr-item-tag and openehr-version-item-tag headers (REQ-059). |
|
client/query
Package query is the openEHR REST AQL executor.
|
Package query is the openEHR REST AQL executor. |
|
client/system
Package system is the openEHR REST 1.1.0-development System API client.
|
Package system is the openEHR REST 1.1.0-development System API client. |
|
composition
Package composition is the generic, OPT-driven Composition builder (REQ-101).
|
Package composition is the generic, OPT-driven Composition builder (REQ-101). |
|
instance
Package instance synthesises an RM object graph from a compiled operational template (REQ-107).
|
Package instance synthesises an RM object graph from a compiled operational template (REQ-107). |
|
internal/jsonpoly
Package jsonpoly provides canonical-JSON marshalling helpers for polymorphic (interface-typed) RM fields.
|
Package jsonpoly provides canonical-JSON marshalling helpers for polymorphic (interface-typed) RM fields. |
|
rm
Package rm models the openEHR Reference Model.
|
Package rm models the openEHR Reference Model. |
|
rm/rminfo
Package rminfo answers "what does the openEHR Reference Model declare about RM class X?" — required attributes, attribute RM types, multi-cardinality flags, and the universe of known concrete class names.
|
Package rminfo answers "what does the openEHR Reference Model declare about RM class X?" — required attributes, attribute RM types, multi-cardinality flags, and the universe of known concrete class names. |
|
rm/rmpath
Package rmpath provides read navigation of an in-memory openEHR RM instance by an openEHR path — the PATHABLE read operations (item_at_path, items_at_path, path_exists, path_unique) over the actual object tree (REQ-121).
|
Package rmpath provides read navigation of an in-memory openEHR RM instance by an openEHR path — the PATHABLE read operations (item_at_path, items_at_path, path_exists, path_unique) over the actual object tree (REQ-121). |
|
rm/typereg
Package typereg holds the central type registry that maps the openEHR _type discriminator to concrete Go RM types for JSON decoding.
|
Package typereg holds the central type registry that maps the openEHR _type discriminator to concrete Go RM types for JSON decoding. |
|
serialize
Package serialize provides codecs for openEHR data: canonical JSON, canonical XML, FLAT, and STRUCTURED formats.
|
Package serialize provides codecs for openEHR data: canonical JSON, canonical XML, FLAT, and STRUCTURED formats. |
|
serialize/canjson
Package canjson implements the openEHR canonical JSON codec for the SDK's generated Reference Model types.
|
Package canjson implements the openEHR canonical JSON codec for the SDK's generated Reference Model types. |
|
serialize/canxml
Package canxml implements the openEHR canonical XML codec for the SDK's generated Reference Model types — the symmetric sibling of github.com/cadasto/openehr-sdk-go/openehr/serialize/canjson.
|
Package canxml implements the openEHR canonical XML codec for the SDK's generated Reference Model types — the symmetric sibling of github.com/cadasto/openehr-sdk-go/openehr/serialize/canjson. |
|
serialize/internal/poly
Package poly holds shared helpers for polymorphic discrimination across the canjson and canxml codecs.
|
Package poly holds shared helpers for polymorphic discrimination across the canjson and canxml codecs. |
|
template
Package template parses ADL 1.4 operational templates (OPT) into an in-memory model with openEHR path utilities.
|
Package template parses ADL 1.4 operational templates (OPT) into an in-memory model with openEHR path utilities. |
|
template/constraints
Package constraints carries the typed primitive constraint values REQ-103 attaches to leaf OPT nodes.
|
Package constraints carries the typed primitive constraint values REQ-103 attaches to leaf OPT nodes. |
|
templatecompile
Package templatecompile is the public bridge that turns a parsed ADL 1.4 operational template into the compiled form consumed by the composition builder, the RM instance synthesiser, the validator, and the AQL static lint — REQ-111.
|
Package templatecompile is the public bridge that turns a parsed ADL 1.4 operational template into the compiled form consumed by the composition builder, the RM instance synthesiser, the validator, and the AQL static lint — REQ-111. |
|
validation
Package validation checks in-memory openEHR Reference Model artefacts against a compiled OPT and reports every issue in one pass — REQ-102 (COMPOSITION) and REQ-110 (any archetypeable root).
|
Package validation checks in-memory openEHR Reference Model artefacts against a compiled OPT and reports every issue in one pass — REQ-102 (COMPOSITION) and REQ-110 (any archetypeable root). |
|
validation/rmread
Package rmread reads RM attribute values by name without reflection.
|
Package rmread reads RM attribute values by name without reflection. |
|
Package sandbox provides in-memory and recorded-fixture transports that implement the same client interfaces as the production REST clients — for fast, hermetic tests of applications built on the SDK.
|
Package sandbox provides in-memory and recorded-fixture transports that implement the same client interfaces as the production REST clients — for fast, hermetic tests of applications built on the SDK. |
|
Package smart is the application-level SMART launch surface (REQ-064, REQ-067): typed LaunchContext, ID-token claim parsing, and platform principal claims.
|
Package smart is the application-level SMART launch surface (REQ-064, REQ-067): typed LaunchContext, ID-token claim parsing, and platform principal claims. |
|
discovery
Package discovery resolves the SMART-on-openEHR service catalog: fetches the SMART configuration document, validates that required services (org.openehr.rest, Cadasto extras when present) are advertised, and exposes a cached, refresh-able ServiceCatalog to the typed clients.
|
Package discovery resolves the SMART-on-openEHR service catalog: fetches the SMART configuration document, validates that required services (org.openehr.rest, Cadasto extras when present) are advertised, and exposes a cached, refresh-able ServiceCatalog to the typed clients. |
|
Package testkit provides test doubles, fluent builders, recorder/replay helpers, and conformance probes for SDK consumers and for the SDK's own test suite.
|
Package testkit provides test doubles, fluent builders, recorder/replay helpers, and conformance probes for SDK consumers and for the SDK's own test suite. |
|
fixtures
Package fixtures resolves vendored cassette paths under testkit/cassettes/.
|
Package fixtures resolves vendored cassette paths under testkit/cassettes/. |
|
probes/aql
Package aqlprobes hosts the openEHR conformance probes for openehr/aql — the AQL builders (REQ-055) and the AQL lint pipeline (REQ-109).
|
Package aqlprobes hosts the openEHR conformance probes for openehr/aql — the AQL builders (REQ-055) and the AQL lint pipeline (REQ-109). |
|
probes/auth
Package authprobes hosts the openEHR conformance probes for authentication and token-refresh behaviour.
|
Package authprobes hosts the openEHR conformance probes for authentication and token-refresh behaviour. |
|
probes/composition
Package compositionprobes hosts the openEHR conformance probes for openehr/composition/ — the OPT-driven composition builder (REQ-101).
|
Package compositionprobes hosts the openEHR conformance probes for openehr/composition/ — the OPT-driven composition builder (REQ-101). |
|
probes/definition
Package definitionprobes hosts the openEHR conformance probes for the openEHR REST Definition API (PROBE-067 today; more follow alongside ADL 2 and stored-AQL surfaces).
|
Package definitionprobes hosts the openEHR conformance probes for the openEHR REST Definition API (PROBE-067 today; more follow alongside ADL 2 and stored-AQL surfaces). |
|
probes/demographic
Package demographicprobes hosts the openEHR conformance probes for the Demographic REST client (openehr/client/demographic).
|
Package demographicprobes hosts the openEHR conformance probes for the Demographic REST client (openehr/client/demographic). |
|
probes/discovery
Package discoveryprobes hosts the openEHR conformance probes for the openEHR service-discovery layer.
|
Package discoveryprobes hosts the openEHR conformance probes for the openEHR service-discovery layer. |
|
probes/instance
Package instanceprobes hosts the openEHR conformance probes for openehr/instance/ — template-driven RM instance synthesis (REQ-107).
|
Package instanceprobes hosts the openEHR conformance probes for openehr/instance/ — template-driven RM instance synthesis (REQ-107). |
|
probes/serialize
Package serializeprobes hosts the openEHR conformance probes for the openEHR serialization codecs.
|
Package serializeprobes hosts the openEHR conformance probes for the openEHR serialization codecs. |
|
probes/template
Package templateprobes hosts the openEHR conformance probes for the openehr/template/ surface — local ADL 1.4 operational template parsing and path resolution (PROBE-022).
|
Package templateprobes hosts the openEHR conformance probes for the openehr/template/ surface — local ADL 1.4 operational template parsing and path resolution (PROBE-022). |
|
probes/validation
Package validationprobes hosts the openEHR conformance probes for openehr/validation/ — template-driven RM validation against a compiled OPT (REQ-102, REQ-110).
|
Package validationprobes hosts the openEHR conformance probes for openehr/validation/ — template-driven RM validation against a compiled OPT (REQ-102, REQ-110). |
|
probes/versioned
Package versionedprobes hosts the openEHR conformance probes for the openEHR REST versioned-write contract (REQ-054).
|
Package versionedprobes hosts the openEHR conformance probes for the openEHR REST versioned-write contract (REQ-054). |
|
Package transport is the HTTP client wrapper around an injected *http.Client.
|
Package transport is the HTTP client wrapper around an injected *http.Client. |
Click to show internal directories.
Click to hide internal directories.