App State Profile¶
| Canonical | ../StructureDefinition/nexus-emr-core-appstate |
|---|---|
| Status | active · 1.26.0 |
| Base | Basic (constraint) |
| Source | FSH · JSON |
A profile for representing external application state in Nexus EMR.
TypedFhir API / Pydantic schema
The typed accessor surface Basic exposes for Basic — generated from this IG's compiled profile; each typed accessor has a validating raw-FHIR twin (xRaw) where marked. The three ports are parity-enforced.
The AI-facing shape: from typed_fhir.facade.generated.schemas import BasicSchema — model_json_schema() is a structured-output / tool definition; instantiating validates an extraction. Generated source.
class BasicSchema(BaseModel):
"""AI-facing shape of the Basic profile: the facade's typed accessor
surface (curated + salient fields) as a pydantic model. `model_json_schema()` is a
structured-output / tool schema; instantiating validates an extraction."""
model_config = ConfigDict(extra="forbid")
code: Concept | None = Field(
None,
description=(
"Type and namespace of application state. Identifies what kind of application state "
"this represents and which application namespace it belongs to. Note: The code acts "
"as both a type discriminator and namespace identifier for the state data. Basic.code "
"— 1..1"
),
)
subject: Reference | None = Field(
None,
description=(
"Resource this state is associated with. The FHIR resource (Patient, "
"PractitionerRole, Organization, etc.) that this application state is associated "
"with. Note: Application state is always linked to a specific resource for context. "
"Basic.subject — 1..1"
),
)