{
  "format": "usim-authoring-specification",
  "formatVersion": "1.5.0",
  "profile": {
    "id": "usim:scenario",
    "version": "2.0",
    "schemaId": "https://u-sim.app/schemas/usim/2.0/scenario.json"
  },
  "sections": [
    {
      "key": "metadata",
      "builderLabel": "Overview",
      "label": "Scenario details",
      "path": "metadata"
    },
    {
      "key": "patients",
      "builderLabel": "Patients",
      "label": "Patient",
      "path": "patients"
    },
    {
      "key": "observations",
      "builderLabel": "Findings",
      "label": "Observations",
      "path": "observations"
    },
    {
      "key": "environment",
      "builderLabel": "Environment",
      "label": "Setting & team",
      "path": "environment"
    },
    {
      "key": "education",
      "builderLabel": "Education",
      "label": "Learning",
      "path": "education"
    },
    {
      "key": "objects",
      "builderLabel": "Resources",
      "label": "Resources",
      "path": "resources"
    },
    {
      "key": "states",
      "builderLabel": "Events",
      "label": "States",
      "path": "events.states"
    },
    {
      "key": "schedules",
      "builderLabel": "Schedules",
      "label": "Schedules",
      "path": "events.schedules"
    },
    {
      "key": "actions",
      "builderLabel": "Interactions",
      "label": "Interactions",
      "path": "events.actions"
    }
  ],
  "builderSections": [
    {
      "key": "metadata",
      "builderLabel": "Overview",
      "label": "Overview",
      "path": "metadata",
      "id": "metadata"
    },
    {
      "key": "patients",
      "builderLabel": "Patients",
      "label": "Patients",
      "path": "patients",
      "id": "patients"
    },
    {
      "key": "environment",
      "builderLabel": "Environment",
      "label": "Environment",
      "path": "environment",
      "id": "environment"
    },
    {
      "key": "objects",
      "builderLabel": "Resources",
      "label": "Resources",
      "path": "resources",
      "id": "objects"
    },
    {
      "key": "states",
      "builderLabel": "Events",
      "label": "Events",
      "path": "events.states",
      "id": "events"
    },
    {
      "key": "education",
      "builderLabel": "Education",
      "label": "Education",
      "path": "education",
      "id": "education"
    }
  ],
  "schema": {
    "title": ".usim scenario",
    "additionalProperties": false,
    "x-usim": {
      "authoring": {}
    },
    "type": "object",
    "required": [
      "format",
      "formatVersion",
      "scenarioId",
      "metadata",
      "patients",
      "environment",
      "education",
      "events"
    ],
    "properties": {
      "format": {
        "const": "usim-scenario",
        "type": "string",
        "description": "Identifies the .usim scenario document used by all consumers."
      },
      "formatVersion": {
        "const": "2.0",
        "type": "string",
        "description": "Identifies the document format used for validation."
      },
      "scenarioId": {
        "minLength": 1,
        "maxLength": 128,
        "pattern": "\\S",
        "title": "Identifier",
        "x-usim": {
          "authoring": {
            "hidden": true
          }
        },
        "type": "string",
        "description": "Stable content identity. Publication revisions and delivery instances remain separate records."
      },
      "executionProfile": {
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "version",
          "requiredCapabilities",
          "optionalCapabilities"
        ],
        "properties": {
          "id": {
            "pattern": "^[A-Za-z][A-Za-z0-9+.-]*:",
            "type": "string",
            "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
          },
          "version": {
            "type": "string",
            "description": "The version for this entry. Omit optional information that has not been specified."
          },
          "requiredCapabilities": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "string",
              "description": "The required capabilities for this entry. Omit optional information that has not been specified."
            },
            "description": "Entries for required capabilities. An empty list means no entries have been authored."
          },
          "optionalCapabilities": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "string",
              "description": "The optional capabilities for this entry. Omit optional information that has not been specified."
            },
            "description": "Entries for optional capabilities. An empty list means no entries have been authored."
          }
        },
        "description": "Declares required and optional execution capabilities. Consumers also inspect populated behavioral fields before running a document."
      },
      "extensions": {
        "type": "object",
        "patternProperties": {
          "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$": {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "version",
              "required",
              "data"
            ],
            "properties": {
              "version": {
                "type": "string"
              },
              "required": {
                "type": "boolean"
              },
              "data": {
                "type": "object",
                "patternProperties": {
                  "^(.*)$": {
                    "$id": "T0",
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "T0"
                        }
                      },
                      {
                        "type": "object",
                        "patternProperties": {
                          "^(.*)$": {
                            "$ref": "T0"
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "description": "Namespaced vendor or profile additions. The namespace is the lookup key; version and required status determine whether a consumer can safely ignore, preserve, or reject the extension."
      },
      "vocabularies": {
        "type": "array",
        "items": {
          "additionalProperties": false,
          "type": "object",
          "required": [
            "id",
            "version",
            "kind",
            "sha256"
          ],
          "properties": {
            "id": {
              "pattern": "^[A-Za-z][A-Za-z0-9+.-]*:",
              "type": "string",
              "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
            },
            "version": {
              "type": "string",
              "description": "The version for this entry. Omit optional information that has not been specified."
            },
            "kind": {
              "anyOf": [
                {
                  "const": "concept",
                  "type": "string",
                  "description": "The required literal value \"concept\"."
                },
                {
                  "const": "value-type",
                  "type": "string",
                  "description": "The required literal value \"value-type\"."
                },
                {
                  "const": "unit",
                  "type": "string",
                  "description": "The required literal value \"unit\"."
                },
                {
                  "const": "dimension",
                  "type": "string",
                  "description": "The required literal value \"dimension\"."
                },
                {
                  "const": "value-set",
                  "type": "string",
                  "description": "The required literal value \"value-set\"."
                }
              ],
              "description": "Select one of the declared kind alternatives; use the fields belonging to that alternative."
            },
            "sha256": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string",
              "description": "The sha256 for this entry. Omit optional information that has not been specified."
            },
            "assetId": {
              "minLength": 1,
              "maxLength": 128,
              "pattern": "\\S",
              "title": "Identifier",
              "x-usim": {
                "reference": {
                  "collection": "assets",
                  "label": "description"
                }
              },
              "type": "string",
              "description": "Identifier of an existing assets entry. Preserve the referenced entry when editing this field."
            }
          },
          "description": "Pins the concept, value-type, unit, or dimensional definitions used by the document. Definitions must be bundled or resolved by a trusted profile; execution never fetches an untrusted URL."
        },
        "description": "Entries for vocabularies. An empty list means no entries have been authored."
      },
      "dependencies": {
        "type": "array",
        "items": {
          "additionalProperties": false,
          "type": "object",
          "required": [
            "id",
            "scenarioId",
            "revision",
            "sha256"
          ],
          "properties": {
            "id": {
              "minLength": 1,
              "maxLength": 128,
              "pattern": "\\S",
              "title": "Identifier",
              "x-usim": {
                "authoring": {
                  "hidden": true
                }
              },
              "type": "string",
              "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
            },
            "scenarioId": {
              "minLength": 1,
              "maxLength": 128,
              "pattern": "\\S",
              "title": "Identifier",
              "x-usim": {
                "authoring": {
                  "hidden": true
                }
              },
              "type": "string",
              "description": "The Identifier for this entry. Omit optional information that has not been specified."
            },
            "revision": {
              "minimum": 1,
              "type": "integer",
              "description": "Numeric revision, at least 1. Do not infer an omitted value."
            },
            "sha256": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string",
              "description": "The sha256 for this entry. Omit optional information that has not been specified."
            }
          },
          "description": "Pinned library content; digest is 64 lowercase hex characters. Floating latest dependencies are prohibited."
        },
        "description": "Entries for dependencies. An empty list means no entries have been authored."
      },
      "composition": {
        "additionalProperties": false,
        "type": "object",
        "required": [
          "overrides"
        ],
        "properties": {
          "overrides": {
            "type": "array",
            "items": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "targetId",
                "path",
                "value"
              ],
              "properties": {
                "targetId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "The Identifier for this entry. Omit optional information that has not been specified."
                },
                "path": {
                  "pattern": "^(?:/(?:[^~/]|~[01])*)*$",
                  "type": "string",
                  "description": "The path for this entry. Omit optional information that has not been specified."
                },
                "value": {
                  "$id": "T1",
                  "anyOf": [
                    {
                      "type": "null",
                      "description": "The value for this entry. Omit optional information that has not been specified."
                    },
                    {
                      "type": "boolean",
                      "description": "Whether value applies. Omitted optional values remain unspecified."
                    },
                    {
                      "type": "number",
                      "description": "Numeric value. Do not infer an omitted value."
                    },
                    {
                      "type": "string",
                      "description": "The value for this entry. Omit optional information that has not been specified."
                    },
                    {
                      "type": "array",
                      "items": {
                        "$ref": "T1",
                        "description": "The value for this entry. Omit optional information that has not been specified."
                      },
                      "description": "Entries for value. An empty list means no entries have been authored."
                    },
                    {
                      "type": "object",
                      "patternProperties": {
                        "^(.*)$": {
                          "$ref": "T1"
                        }
                      },
                      "description": "Structured value details. Omitted optional values remain unspecified."
                    }
                  ],
                  "description": "Select one of the declared value alternatives; use the fields belonging to that alternative."
                }
              },
              "description": "Explicit overrides against a resolved dependency. Paths must exist; object/array values replace in full. No inferred deep merge."
            },
            "description": "Entries for overrides. An empty list means no entries have been authored."
          }
        },
        "description": "Structured composition details. Omitted optional values remain unspecified."
      },
      "outputs": {
        "additionalProperties": false,
        "type": "object",
        "required": [
          "views"
        ],
        "properties": {
          "views": {
            "type": "array",
            "items": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "audience",
                "kind",
                "includeIds"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                },
                "audience": {
                  "anyOf": [
                    {
                      "const": "learner",
                      "type": "string",
                      "description": "The required literal value \"learner\"."
                    },
                    {
                      "const": "facilitator",
                      "type": "string",
                      "description": "The required literal value \"facilitator\"."
                    }
                  ],
                  "title": "Audience",
                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                },
                "kind": {
                  "anyOf": [
                    {
                      "const": "brief",
                      "type": "string",
                      "description": "The required literal value \"brief\"."
                    },
                    {
                      "const": "guide",
                      "type": "string",
                      "description": "The required literal value \"guide\"."
                    },
                    {
                      "const": "event-map",
                      "type": "string",
                      "description": "The required literal value \"event-map\"."
                    },
                    {
                      "const": "checklist",
                      "type": "string",
                      "description": "The required literal value \"checklist\"."
                    }
                  ],
                  "description": "Select one of the declared kind alternatives; use the fields belonging to that alternative."
                },
                "includeIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "*",
                        "label": "id"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing * entry. Preserve the referenced entry when editing this field."
                  },
                  "description": "Entries for include ids. An empty list means no entries have been authored."
                }
              },
              "description": "Explicit content selection filtered by audience. Learner views exclude facilitator-only content even when named in includeIds."
            },
            "description": "Entries for views. An empty list means no entries have been authored."
          }
        },
        "description": "Structured outputs details. Omitted optional values remain unspecified."
      },
      "metadata": {
        "additionalProperties": false,
        "x-usim": {
          "authoring": {
            "columns": 3
          }
        },
        "type": "object",
        "required": [
          "title",
          "summary",
          "contributors",
          "revision",
          "license",
          "review",
          "sources"
        ],
        "properties": {
          "title": {
            "title": "Title",
            "maxLength": 160,
            "x-usim": {
              "authoring": {
                "span": "full",
                "order": 0
              }
            },
            "type": "string",
            "description": "The internal case title used by authors. Campus uses the separate learner title."
          },
          "summary": {
            "title": "Description",
            "maxLength": 8000,
            "x-usim": {
              "authoring": {
                "editor": "textarea",
                "span": "full",
                "order": 1
              }
            },
            "type": "string",
            "description": "The internal scenario premise, scope, and intended learning activity. This summary is not shown in Campus."
          },
          "contributors": {
            "minItems": 1,
            "title": "Author",
            "x-usim": {
              "authoring": {
                "span": "full",
                "addLabel": "Add contributor",
                "editor": "credits",
                "order": 2
              }
            },
            "type": "array",
            "items": {
              "additionalProperties": false,
              "x-usim": {
                "authoring": {}
              },
              "type": "object",
              "required": [
                "id",
                "name",
                "roles"
              ],
              "properties": {
                "id": {
                  "title": "Identifier",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable contributor identifier used by review attribution."
                },
                "name": {
                  "title": "Name",
                  "maxLength": 160,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "string",
                  "description": "The person or team credited with creating this scenario."
                },
                "roles": {
                  "minItems": 1,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "title": "Role",
                    "maxLength": 160,
                    "x-usim": {
                      "authoring": {}
                    },
                    "type": "string",
                    "description": "One credited contribution role."
                  },
                  "description": "The roles this contributor performed for this content.",
                  "title": "Contribution roles"
                },
                "affiliation": {
                  "title": "Affiliation",
                  "maxLength": 240,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "string",
                  "description": "The contributor’s organization or institutional affiliation."
                }
              },
              "description": "A named contributor with stable identity and credited roles."
            },
            "description": "People and organizations credited for authorship, review, or other contributions."
          },
          "revision": {
            "minimum": 1,
            "title": "Content revision",
            "type": "integer",
            "description": "The authored content revision, independent of a storage revision identifier.",
            "x-usim": {
              "authoring": {
                "group": "Attribution and review",
                "defaultOpen": false,
                "order": 20,
                "span": "full"
              }
            }
          },
          "license": {
            "title": "License",
            "additionalProperties": false,
            "x-usim": {
              "authoring": {
                "group": "Attribution and review",
                "defaultOpen": false,
                "order": 21,
                "span": "full"
              }
            },
            "type": "object",
            "required": [
              "identifier"
            ],
            "properties": {
              "identifier": {
                "title": "License",
                "maxLength": 240,
                "x-usim": {
                  "authoring": {
                    "suggestions": [
                      "All rights reserved",
                      "CC BY 4.0",
                      "CC BY-SA 4.0",
                      "CC BY-NC 4.0",
                      "CC BY-NC-SA 4.0",
                      "CC BY-ND 4.0",
                      "CC BY-NC-ND 4.0",
                      "CC0 1.0"
                    ]
                  }
                },
                "type": "string",
                "description": "The license identifier or explicit rights statement. Suggested reuse licenses are advisory; preserve custom terms."
              },
              "textAssetId": {
                "title": "Identifier",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "\\S",
                "x-usim": {
                  "authoring": {
                    "hidden": true
                  }
                },
                "type": "string",
                "description": "An optional asset containing the complete license text."
              }
            },
            "description": "The terms under which this scenario may be reused."
          },
          "review": {
            "title": "Review status and evidence",
            "additionalProperties": false,
            "x-usim": {
              "authoring": {
                "group": "Attribution and review",
                "defaultOpen": false,
                "order": 22,
                "span": "full"
              }
            },
            "type": "object",
            "required": [
              "status",
              "reviewerIds",
              "sourceIds"
            ],
            "properties": {
              "status": {
                "type": "string",
                "title": "Review status",
                "enum": [
                  "draft",
                  "reviewed",
                  "needs-review"
                ],
                "description": "Review state stored as draft, reviewed, or needs-review. Builder displays Draft, Reviewed, and Needs review."
              },
              "reviewedAt": {
                "title": "Reviewed at",
                "maxLength": 80,
                "x-usim": {
                  "authoring": {}
                },
                "type": "string",
                "description": "The date and time the recorded review was completed. Builder displays local date and time and stores the selected instant as a UTC ISO 8601 timestamp; omission means unspecified."
              },
              "reviewerIds": {
                "uniqueItems": true,
                "type": "array",
                "items": {
                  "title": "Identifier",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "x-usim": {
                    "reference": {
                      "collection": "metadata.contributors",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "A contributor credited with reviewing this revision."
                },
                "description": "Contributor identifiers for the reviewers.",
                "title": "Reviewers"
              },
              "sourceIds": {
                "uniqueItems": true,
                "type": "array",
                "items": {
                  "title": "Identifier",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "x-usim": {
                    "reference": {
                      "collection": "metadata.sources",
                      "label": "citation"
                    }
                  },
                  "type": "string",
                  "description": "A source cited by this review."
                },
                "description": "Stable metadata.sources IDs selected as evidence for the recorded review. Citation edits and source reordering preserve these links.",
                "title": "Review sources",
                "x-usim": {
                  "authoring": {
                    "addLabel": "Add source"
                  }
                }
              }
            },
            "description": "Clinical review status, attribution, date, and supporting sources."
          },
          "sources": {
            "type": "array",
            "items": {
              "title": "Source",
              "additionalProperties": false,
              "x-usim": {
                "authoring": {}
              },
              "type": "object",
              "required": [
                "id",
                "citation"
              ],
              "properties": {
                "id": {
                  "title": "Identifier",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable source identifier used by review references."
                },
                "citation": {
                  "title": "Citation",
                  "maxLength": 8000,
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea"
                    }
                  },
                  "type": "string",
                  "description": "The complete bibliographic citation or source attribution."
                },
                "url": {
                  "pattern": "^https://",
                  "title": "Source URL",
                  "type": "string",
                  "description": "An HTTPS location where this source can be found."
                },
                "accessedAt": {
                  "title": "Accessed at",
                  "maxLength": 80,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "string",
                  "description": "The date the linked source was accessed."
                }
              },
              "description": "A source citation with stable identity and optional web location."
            },
            "description": "Citations supporting the scenario and its clinical content.",
            "title": "Sources",
            "x-usim": {
              "authoring": {
                "addLabel": "Add source",
                "hidden": true,
                "group": "Attribution and review",
                "defaultOpen": false,
                "order": 23,
                "span": "full"
              }
            }
          },
          "diagnosis": {
            "title": "Diagnosis or case theme",
            "maxLength": 1000,
            "x-usim": {
              "authoring": {
                "editor": "diagnosis",
                "span": "full",
                "group": "Scenario context",
                "order": 3
              }
            },
            "type": "string",
            "description": "The main diagnosis or case theme that guides the scenario."
          },
          "specialty": {
            "title": "Specialty",
            "maxLength": 1000,
            "x-usim": {
              "authoring": {
                "editor": "specialty",
                "group": "Scenario context",
                "order": 4
              }
            },
            "type": "string",
            "description": "The clinical specialty or specialties relevant to this scenario."
          },
          "level": {
            "title": "Learner level",
            "maxLength": 1000,
            "x-usim": {
              "authoring": {
                "editor": "level",
                "group": "Scenario context",
                "order": 5
              }
            },
            "type": "string",
            "description": "The intended learner level and experience."
          },
          "durationMinutes": {
            "title": "Suggested duration · minutes",
            "minimum": 1,
            "maximum": 1440,
            "x-usim": {
              "unit": "min",
              "authoring": {
                "group": "Scenario context",
                "order": 6
              }
            },
            "type": "number",
            "description": "The suggested scenario duration in minutes; this does not control the simulation clock."
          },
          "learnerTitle": {
            "title": "Learner title",
            "maxLength": 160,
            "x-usim": {
              "authoring": {
                "group": "Learner-facing details",
                "span": "full",
                "defaultOpen": true,
                "order": 7
              }
            },
            "type": "string",
            "description": "Spoiler-free title shown on Campus cards and in the scenario preview. For example: Penetrating chest injury. Copy chief complaint copies the first patient's complaint once; you can edit it without changing patient history. If omitted or blank, Campus shows Practice scenario."
          },
          "learnerDescription": {
            "title": "Learner description",
            "maxLength": 2000,
            "x-usim": {
              "authoring": {
                "editor": "textarea",
                "group": "Learner-facing details",
                "span": "full",
                "order": 8
              }
            },
            "type": "string",
            "description": "Brief introduction shown to learners before starting. Include only what they should know initially; omit diagnoses, expected actions, outcomes, and facilitator guidance. For example: A patient arrives after a penetrating injury to the right chest. If omitted, Campus shows no description."
          },
          "coverPhoto": {
            "title": "Cover photo",
            "additionalProperties": false,
            "x-usim": {
              "authoring": {
                "editor": "cover-photo",
                "group": "Learner-facing details",
                "span": "full",
                "order": 9
              },
              "import": false
            },
            "type": "object",
            "required": [
              "dataUrl",
              "description"
            ],
            "properties": {
              "dataUrl": {
                "title": "Cover photo",
                "maxLength": 12582912,
                "pattern": "^data:image/(png|jpeg|webp);base64,[A-Za-z0-9+/]+={0,2}$",
                "type": "string",
                "description": "Embedded PNG, JPEG, or WebP data URL populated by the cover photo upload control."
              },
              "description": {
                "title": "Photo description",
                "maxLength": 1000,
                "x-usim": {
                  "authoring": {}
                },
                "type": "string",
                "description": "Accessible description of the cover photo for learners who cannot see it. Describe visible content without revealing the teaching point."
              }
            },
            "description": "Optional learner-facing cover photo for Campus cards and scenario preview, separate from the patient portrait. Upload PNG, JPEG, or WebP; avoid images that reveal a diagnosis or expected action. Embedded bytes travel with the .usim file."
          }
        },
        "description": "Case identification, authorship, and the teaching context used to find and select this scenario."
      },
      "patients": {
        "minItems": 1,
        "title": "Patients",
        "type": "array",
        "items": {
          "additionalProperties": false,
          "x-usim": {
            "authoring": {}
          },
          "type": "object",
          "required": [
            "id",
            "name",
            "context"
          ],
          "properties": {
            "id": {
              "title": "Identifier",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "\\S",
              "x-usim": {
                "authoring": {
                  "hidden": true
                }
              },
              "type": "string",
              "description": "Stable patient identifier used by observations, actions, and other scenario references."
            },
            "name": {
              "title": "Patient name",
              "maxLength": 160,
              "x-usim": {
                "authoring": {
                  "order": 0
                }
              },
              "type": "string",
              "description": "The fictional patient's display name."
            },
            "preferredName": {
              "title": "Preferred name",
              "maxLength": 160,
              "x-usim": {
                "authoring": {
                  "order": 3,
                  "section": "communication"
                }
              },
              "type": "string",
              "description": "The name the patient asks others to use, when different from their display name. Omitted means unspecified. Builder displays this field in Communication while retaining its patient-level storage path."
            },
            "baselineFunction": {
              "title": "Baseline function",
              "maxLength": 2000,
              "x-usim": {
                "authoring": {
                  "editor": "textarea",
                  "order": 4,
                  "section": "demographics",
                  "detail": "expanded",
                  "span": "full"
                }
              },
              "type": "string",
              "description": "Usual mobility, cognition, self-care, and support. Distinguish baseline function from acute changes. Builder displays this field in expanded Demographics while retaining its patient-level storage path."
            },
            "communication": {
              "title": "Communication",
              "additionalProperties": false,
              "x-usim": {
                "authoring": {
                  "columns": 2,
                  "order": 40,
                  "defaultOpen": false
                }
              },
              "type": "object",
              "properties": {
                "preferredLanguage": {
                  "title": "Preferred language",
                  "maxLength": 160,
                  "x-usim": {
                    "authoring": {
                      "order": 0
                    }
                  },
                  "type": "string",
                  "description": "The patient's preferred language for this encounter. Do not infer fluency from ethnicity or name."
                },
                "interpreterNeeds": {
                  "title": "Interpreter needs",
                  "maxLength": 1000,
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea",
                      "order": 2
                    }
                  },
                  "type": "string",
                  "description": "Whether and how a qualified interpreter is needed, including spoken or signed language. Omitted means unspecified."
                },
                "method": {
                  "title": "Communication method",
                  "maxLength": 500,
                  "x-usim": {
                    "authoring": {
                      "order": 1
                    }
                  },
                  "type": "string",
                  "description": "How the patient communicates, such as speech, ASL, writing, or an augmentative device."
                },
                "supports": {
                  "title": "Communication supports",
                  "maxLength": 2000,
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea",
                      "order": 3
                    }
                  },
                  "type": "string",
                  "description": "Specific supports and interaction preferences, such as hearing aids, facing the patient, or caregiver participation."
                }
              },
              "description": "Authored language, communication methods, interpreter needs, and accessibility supports. Do not infer these from identity or appearance. Builder places preferred name first, then preferred language and communication method together, followed by interpreter needs and communication supports. Rows stack at narrow widths."
            },
            "demographics": {
              "title": "Demographics",
              "additionalProperties": false,
              "x-usim": {
                "authoring": {
                  "editor": "demographics",
                  "order": 5
                }
              },
              "type": "object",
              "properties": {
                "age": {
                  "additionalProperties": false,
                  "title": "Age",
                  "type": "object",
                  "required": [
                    "value",
                    "unit"
                  ],
                  "properties": {
                    "value": {
                      "minimum": 0,
                      "type": "number",
                      "description": "The authored age in the selected unit.",
                      "title": "Value"
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "const": "days",
                          "type": "string",
                          "description": "The required literal value \"days\"."
                        },
                        {
                          "const": "months",
                          "type": "string",
                          "description": "The required literal value \"months\"."
                        },
                        {
                          "const": "years",
                          "type": "string",
                          "description": "The required literal value \"years\"."
                        }
                      ],
                      "description": "Age unit; preserve days or months when appropriate.",
                      "title": "Unit"
                    }
                  },
                  "x-usim": {
                    "authoring": {
                      "editor": "age",
                      "order": 0,
                      "detail": "simple"
                    }
                  },
                  "description": "Patient age with an explicit unit. Retain days or months for young infants."
                },
                "weight": {
                  "additionalProperties": false,
                  "title": "Weight",
                  "type": "object",
                  "required": [
                    "value",
                    "unit"
                  ],
                  "properties": {
                    "value": {
                      "minimum": 0,
                      "maximum": 1000,
                      "type": "number",
                      "description": "Authored weight in kilograms.",
                      "title": "Value"
                    },
                    "unit": {
                      "const": "kg",
                      "type": "string",
                      "description": "Canonical mass unit.",
                      "title": "Unit"
                    }
                  },
                  "description": "Patient weight, stored in kilograms. The editor can also display pounds.",
                  "x-usim": {
                    "authoring": {
                      "order": 3,
                      "detail": "simple"
                    }
                  }
                },
                "height": {
                  "additionalProperties": false,
                  "title": "Height",
                  "type": "object",
                  "required": [
                    "value",
                    "unit"
                  ],
                  "properties": {
                    "value": {
                      "minimum": 0,
                      "maximum": 400,
                      "type": "number",
                      "description": "Authored height in centimeters.",
                      "title": "Value"
                    },
                    "unit": {
                      "const": "cm",
                      "type": "string",
                      "description": "Canonical length unit.",
                      "title": "Unit"
                    }
                  },
                  "description": "Patient height, stored in centimeters. The editor can also display feet and inches.",
                  "x-usim": {
                    "authoring": {
                      "order": 2,
                      "detail": "simple"
                    }
                  }
                },
                "gender": {
                  "title": "Gender",
                  "maxLength": 160,
                  "x-usim": {
                    "authoring": {
                      "editor": "gender",
                      "order": 1,
                      "detail": "simple"
                    }
                  },
                  "type": "string",
                  "description": "The patient's authored gender description."
                },
                "pronouns": {
                  "title": "Pronouns",
                  "maxLength": 160,
                  "x-usim": {
                    "authoring": {
                      "suggestions": [
                        "She/her",
                        "He/him",
                        "They/them",
                        "She/they",
                        "He/they",
                        "Use name",
                        "Not specified"
                      ],
                      "order": 4,
                      "detail": "expanded"
                    }
                  },
                  "type": "string",
                  "description": "The patient's authored pronouns. Never infer these from name, appearance, gender, or sex assigned at birth."
                },
                "sexualOrientation": {
                  "title": "Sexual orientation",
                  "maxLength": 160,
                  "x-usim": {
                    "authoring": {
                      "suggestions": [
                        "Straight / heterosexual",
                        "Gay",
                        "Lesbian",
                        "Bisexual",
                        "Pansexual",
                        "Asexual",
                        "Queer",
                        "Questioning",
                        "Not specified"
                      ],
                      "order": 5,
                      "detail": "expanded"
                    }
                  },
                  "type": "string",
                  "description": "Optional self-described sexual orientation. This does not specify sexual practices, anatomy, relationships, or pregnancy potential."
                },
                "sexAssignedAtBirth": {
                  "title": "Sex assigned at birth",
                  "maxLength": 160,
                  "x-usim": {
                    "authoring": {
                      "suggestions": [
                        "Female",
                        "Male",
                        "Intersex",
                        "Unknown",
                        "Not specified"
                      ],
                      "order": 6,
                      "detail": "expanded"
                    }
                  },
                  "type": "string",
                  "description": "Optional authored sex assigned at birth, separate from gender. Does not establish current anatomy, reproductive history, or treatment."
                },
                "heightUnit": {
                  "type": "string",
                  "title": "Height display unit",
                  "enum": [
                    "cm",
                    "in",
                    "ft-in"
                  ],
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "description": "Preferred height display unit in the scenario editor; the measurement remains stored in centimeters."
                },
                "weightUnit": {
                  "type": "string",
                  "title": "Weight display unit",
                  "enum": [
                    "kg",
                    "lb"
                  ],
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "description": "Preferred weight display unit in the scenario editor; the measurement remains stored in kilograms."
                }
              },
              "description": "Optional age, gender, pronouns, sexual orientation, sex assigned at birth, height, and weight. Unspecified fields remain unknown; identity does not determine clinical behavior."
            },
            "history": {
              "title": "History",
              "x-usim": {
                "authoring": {
                  "editor": "history",
                  "order": 7
                }
              },
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "content",
                      "disclosure",
                      "category"
                    ],
                    "properties": {
                      "id": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "authoring": {
                            "hidden": true
                          }
                        },
                        "type": "string",
                        "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                      },
                      "content": {
                        "type": "string",
                        "title": "Content",
                        "description": "The Content for this entry. Omit optional information that has not been specified."
                      },
                      "disclosure": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "audience",
                              "mode"
                            ],
                            "properties": {
                              "audience": {
                                "minItems": 1,
                                "uniqueItems": true,
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "const": "learner",
                                      "type": "string",
                                      "description": "The required literal value \"learner\"."
                                    },
                                    {
                                      "const": "facilitator",
                                      "type": "string",
                                      "description": "The required literal value \"facilitator\"."
                                    }
                                  ],
                                  "title": "Audience",
                                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                                },
                                "title": "Audience",
                                "description": "Authorized output audiences. UI hints do not replace output filtering."
                              },
                              "mode": {
                                "anyOf": [
                                  {
                                    "const": "initial",
                                    "type": "string",
                                    "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                                  },
                                  {
                                    "const": "facilitator",
                                    "type": "string",
                                    "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                                  }
                                ],
                                "title": "Mode",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              }
                            },
                            "description": "Structured disclosure details. Omitted optional values remain unspecified."
                          },
                          {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "audience",
                              "mode",
                              "resourceId"
                            ],
                            "properties": {
                              "audience": {
                                "minItems": 1,
                                "uniqueItems": true,
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "const": "learner",
                                      "type": "string",
                                      "description": "The required literal value \"learner\"."
                                    },
                                    {
                                      "const": "facilitator",
                                      "type": "string",
                                      "description": "The required literal value \"facilitator\"."
                                    }
                                  ],
                                  "title": "Audience",
                                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                                },
                                "title": "Audience",
                                "description": "Authorized output audiences. UI hints do not replace output filtering."
                              },
                              "mode": {
                                "const": "on-resource-response",
                                "type": "string",
                                "title": "Mode",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              },
                              "resourceId": {
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "\\S",
                                "title": "Identifier",
                                "x-usim": {
                                  "reference": {
                                    "collection": "resources",
                                    "label": "name"
                                  }
                                },
                                "type": "string",
                                "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                              }
                            },
                            "description": "Structured disclosure details. Omitted optional values remain unspecified."
                          },
                          {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "audience",
                              "mode",
                              "actionId"
                            ],
                            "properties": {
                              "audience": {
                                "minItems": 1,
                                "uniqueItems": true,
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "const": "learner",
                                      "type": "string",
                                      "description": "The required literal value \"learner\"."
                                    },
                                    {
                                      "const": "facilitator",
                                      "type": "string",
                                      "description": "The required literal value \"facilitator\"."
                                    }
                                  ],
                                  "title": "Audience",
                                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                                },
                                "title": "Audience",
                                "description": "Authorized output audiences. UI hints do not replace output filtering."
                              },
                              "mode": {
                                "const": "on-action",
                                "type": "string",
                                "title": "Mode",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              },
                              "actionId": {
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "\\S",
                                "title": "Identifier",
                                "x-usim": {
                                  "reference": {
                                    "collection": "events.actions",
                                    "label": "label"
                                  }
                                },
                                "type": "string",
                                "description": "Successful completion of this action reveals the entry."
                              }
                            },
                            "description": "Structured disclosure details. Omitted optional values remain unspecified."
                          },
                          {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "audience",
                              "mode",
                              "conditionId"
                            ],
                            "properties": {
                              "audience": {
                                "minItems": 1,
                                "uniqueItems": true,
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "const": "learner",
                                      "type": "string",
                                      "description": "The required literal value \"learner\"."
                                    },
                                    {
                                      "const": "facilitator",
                                      "type": "string",
                                      "description": "The required literal value \"facilitator\"."
                                    }
                                  ],
                                  "title": "Audience",
                                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                                },
                                "title": "Audience",
                                "description": "Authorized output audiences. UI hints do not replace output filtering."
                              },
                              "mode": {
                                "const": "on-condition",
                                "type": "string",
                                "title": "Mode",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              },
                              "conditionId": {
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "\\S",
                                "title": "Identifier",
                                "x-usim": {
                                  "reference": {
                                    "collection": "events.conditions",
                                    "label": "id"
                                  }
                                },
                                "type": "string",
                                "description": "Reveal when the condition first becomes true; reject unrelated trigger fields."
                              }
                            },
                            "description": "Structured disclosure details. Omitted optional values remain unspecified."
                          }
                        ],
                        "title": "Disclosure",
                        "description": "Select one of the declared Disclosure alternatives; use the fields belonging to that alternative."
                      },
                      "occurredAtSeconds": {
                        "type": "number",
                        "title": "Occurred at seconds",
                        "description": "Time relative to scenario start; negative values describe pre-arrival events."
                      },
                      "category": {
                        "anyOf": [
                          {
                            "const": "chief-complaint",
                            "type": "string",
                            "description": "The required literal value \"chief-complaint\"."
                          },
                          {
                            "const": "present-illness",
                            "type": "string",
                            "description": "The required literal value \"present-illness\"."
                          },
                          {
                            "const": "medical",
                            "type": "string",
                            "description": "The required literal value \"medical\"."
                          },
                          {
                            "const": "surgical",
                            "type": "string",
                            "description": "The required literal value \"surgical\"."
                          },
                          {
                            "const": "medication",
                            "type": "string",
                            "description": "The required literal value \"medication\"."
                          },
                          {
                            "const": "family",
                            "type": "string",
                            "description": "The required literal value \"family\"."
                          },
                          {
                            "const": "social",
                            "type": "string",
                            "description": "The required literal value \"social\"."
                          }
                        ],
                        "title": "Category",
                        "description": "Select one of the declared Category alternatives; use the fields belonging to that alternative."
                      }
                    },
                    "description": "Separate entries for chief-complaint, present-illness, medical, surgical, medication, allergy, family, and social history."
                  },
                  {
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "content",
                      "disclosure",
                      "category"
                    ],
                    "properties": {
                      "id": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "authoring": {
                            "hidden": true
                          }
                        },
                        "type": "string",
                        "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                      },
                      "content": {
                        "type": "string",
                        "title": "Content",
                        "description": "The Content for this entry. Omit optional information that has not been specified."
                      },
                      "disclosure": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "audience",
                              "mode"
                            ],
                            "properties": {
                              "audience": {
                                "minItems": 1,
                                "uniqueItems": true,
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "const": "learner",
                                      "type": "string",
                                      "description": "The required literal value \"learner\"."
                                    },
                                    {
                                      "const": "facilitator",
                                      "type": "string",
                                      "description": "The required literal value \"facilitator\"."
                                    }
                                  ],
                                  "title": "Audience",
                                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                                },
                                "title": "Audience",
                                "description": "Authorized output audiences. UI hints do not replace output filtering."
                              },
                              "mode": {
                                "anyOf": [
                                  {
                                    "const": "initial",
                                    "type": "string",
                                    "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                                  },
                                  {
                                    "const": "facilitator",
                                    "type": "string",
                                    "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                                  }
                                ],
                                "title": "Mode",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              }
                            },
                            "description": "Structured disclosure details. Omitted optional values remain unspecified."
                          },
                          {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "audience",
                              "mode",
                              "resourceId"
                            ],
                            "properties": {
                              "audience": {
                                "minItems": 1,
                                "uniqueItems": true,
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "const": "learner",
                                      "type": "string",
                                      "description": "The required literal value \"learner\"."
                                    },
                                    {
                                      "const": "facilitator",
                                      "type": "string",
                                      "description": "The required literal value \"facilitator\"."
                                    }
                                  ],
                                  "title": "Audience",
                                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                                },
                                "title": "Audience",
                                "description": "Authorized output audiences. UI hints do not replace output filtering."
                              },
                              "mode": {
                                "const": "on-resource-response",
                                "type": "string",
                                "title": "Mode",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              },
                              "resourceId": {
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "\\S",
                                "title": "Identifier",
                                "x-usim": {
                                  "reference": {
                                    "collection": "resources",
                                    "label": "name"
                                  }
                                },
                                "type": "string",
                                "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                              }
                            },
                            "description": "Structured disclosure details. Omitted optional values remain unspecified."
                          },
                          {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "audience",
                              "mode",
                              "actionId"
                            ],
                            "properties": {
                              "audience": {
                                "minItems": 1,
                                "uniqueItems": true,
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "const": "learner",
                                      "type": "string",
                                      "description": "The required literal value \"learner\"."
                                    },
                                    {
                                      "const": "facilitator",
                                      "type": "string",
                                      "description": "The required literal value \"facilitator\"."
                                    }
                                  ],
                                  "title": "Audience",
                                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                                },
                                "title": "Audience",
                                "description": "Authorized output audiences. UI hints do not replace output filtering."
                              },
                              "mode": {
                                "const": "on-action",
                                "type": "string",
                                "title": "Mode",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              },
                              "actionId": {
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "\\S",
                                "title": "Identifier",
                                "x-usim": {
                                  "reference": {
                                    "collection": "events.actions",
                                    "label": "label"
                                  }
                                },
                                "type": "string",
                                "description": "Successful completion of this action reveals the entry."
                              }
                            },
                            "description": "Structured disclosure details. Omitted optional values remain unspecified."
                          },
                          {
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "audience",
                              "mode",
                              "conditionId"
                            ],
                            "properties": {
                              "audience": {
                                "minItems": 1,
                                "uniqueItems": true,
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "const": "learner",
                                      "type": "string",
                                      "description": "The required literal value \"learner\"."
                                    },
                                    {
                                      "const": "facilitator",
                                      "type": "string",
                                      "description": "The required literal value \"facilitator\"."
                                    }
                                  ],
                                  "title": "Audience",
                                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                                },
                                "title": "Audience",
                                "description": "Authorized output audiences. UI hints do not replace output filtering."
                              },
                              "mode": {
                                "const": "on-condition",
                                "type": "string",
                                "title": "Mode",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              },
                              "conditionId": {
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "\\S",
                                "title": "Identifier",
                                "x-usim": {
                                  "reference": {
                                    "collection": "events.conditions",
                                    "label": "id"
                                  }
                                },
                                "type": "string",
                                "description": "Reveal when the condition first becomes true; reject unrelated trigger fields."
                              }
                            },
                            "description": "Structured disclosure details. Omitted optional values remain unspecified."
                          }
                        ],
                        "title": "Disclosure",
                        "description": "Select one of the declared Disclosure alternatives; use the fields belonging to that alternative."
                      },
                      "occurredAtSeconds": {
                        "type": "number",
                        "title": "Occurred at seconds",
                        "description": "Time relative to scenario start; negative values describe pre-arrival events."
                      },
                      "category": {
                        "const": "allergy",
                        "type": "string",
                        "title": "Category",
                        "description": "The required literal value \"allergy\"."
                      },
                      "allergy": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "substance"
                        ],
                        "properties": {
                          "substance": {
                            "maxLength": 1000,
                            "type": "string",
                            "title": "Substance",
                            "description": "The Substance for this entry. Omit optional information that has not been specified."
                          },
                          "reaction": {
                            "maxLength": 1000,
                            "type": "string",
                            "title": "Reaction",
                            "description": "The Reaction for this entry. Omit optional information that has not been specified."
                          },
                          "severity": {
                            "anyOf": [
                              {
                                "const": "mild",
                                "type": "string",
                                "description": "The required literal value \"mild\"."
                              },
                              {
                                "const": "moderate",
                                "type": "string",
                                "description": "The required literal value \"moderate\"."
                              },
                              {
                                "const": "severe",
                                "type": "string",
                                "description": "The required literal value \"severe\"."
                              },
                              {
                                "const": "unknown",
                                "type": "string",
                                "description": "The required literal value \"unknown\"."
                              }
                            ],
                            "title": "Severity",
                            "description": "Select one of the declared Severity alternatives; use the fields belonging to that alternative."
                          }
                        },
                        "title": "Allergy",
                        "description": "Structured allergy detail for category allergy only. Substance identifies the authored allergen; reaction describes the manifestation; severity describes that reaction, not future risk. Omitted reaction or severity remains unspecified."
                      }
                    },
                    "description": "Separate entries for chief-complaint, present-illness, medical, surgical, medication, allergy, family, and social history."
                  }
                ],
                "description": "Separate entries for chief-complaint, present-illness, medical, surgical, medication, allergy, family, and social history."
              },
              "description": "The history available about this patient, including symptoms, background, medications, and allergies."
            },
            "reviewOfSystems": {
              "type": "array",
              "items": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "system",
                  "observationIds"
                ],
                "properties": {
                  "system": {
                    "type": "string",
                    "title": "System",
                    "description": "The System for this entry. Omit optional information that has not been specified."
                  },
                  "observationIds": {
                    "minItems": 0,
                    "uniqueItems": true,
                    "type": "array",
                    "items": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "observations",
                          "label": "code"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing observations entry. Preserve the referenced entry when editing this field."
                    },
                    "title": "Observation ids",
                    "description": "Entries for Observation ids. An empty list means no entries have been authored."
                  }
                },
                "description": "Groups symptom observations by authored system heading without duplicating their values."
              },
              "title": "Structured system references",
              "x-usim": {
                "authoring": {
                  "group": "Additional patient definitions",
                  "defaultOpen": false,
                  "order": 30,
                  "span": "full",
                  "hidden": true
                }
              },
              "description": "Entries for Structured system references. An empty list means no entries have been authored."
            },
            "variables": {
              "title": "Physiologic variables",
              "x-usim": {
                "authoring": {
                  "editor": "variables",
                  "addLabel": "Add variable",
                  "order": 9
                }
              },
              "type": "array",
              "items": {
                "additionalProperties": false,
                "title": "Physiologic variable",
                "type": "object",
                "required": [
                  "id",
                  "concept",
                  "unit"
                ],
                "properties": {
                  "id": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "authoring": {
                        "hidden": true
                      }
                    },
                    "type": "string",
                    "description": "Stable variable identifier used by effects and observations."
                  },
                  "concept": {
                    "title": "Concept",
                    "type": "string",
                    "description": "The meaning of the variable, such as usim:hr for heart rate."
                  },
                  "value": {
                    "title": "Initial value",
                    "type": "number",
                    "description": "The initial numeric value in the declared unit."
                  },
                  "unit": {
                    "title": "Unit",
                    "type": "string",
                    "description": "The unit of this value; core concepts use the standard unit defined by the specification."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "concept": {
                          "const": "usim:hr"
                        }
                      },
                      "required": [
                        "concept"
                      ]
                    },
                    "then": {
                      "properties": {
                        "unit": {
                          "const": "beats/min"
                        },
                        "value": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "concept": {
                          "const": "usim:sbp"
                        }
                      },
                      "required": [
                        "concept"
                      ]
                    },
                    "then": {
                      "properties": {
                        "unit": {
                          "const": "mmHg"
                        },
                        "value": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "concept": {
                          "const": "usim:dbp"
                        }
                      },
                      "required": [
                        "concept"
                      ]
                    },
                    "then": {
                      "properties": {
                        "unit": {
                          "const": "mmHg"
                        },
                        "value": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "concept": {
                          "const": "usim:rr"
                        }
                      },
                      "required": [
                        "concept"
                      ]
                    },
                    "then": {
                      "properties": {
                        "unit": {
                          "const": "breaths/min"
                        },
                        "value": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "concept": {
                          "const": "usim:spo2"
                        }
                      },
                      "required": [
                        "concept"
                      ]
                    },
                    "then": {
                      "properties": {
                        "unit": {
                          "const": "%"
                        },
                        "value": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "concept": {
                          "const": "usim:temperature"
                        }
                      },
                      "required": [
                        "concept"
                      ]
                    },
                    "then": {
                      "properties": {
                        "unit": {
                          "const": "Cel"
                        },
                        "value": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "concept": {
                          "const": "usim:etco2"
                        }
                      },
                      "required": [
                        "concept"
                      ]
                    },
                    "then": {
                      "properties": {
                        "unit": {
                          "const": "mmHg"
                        },
                        "value": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "concept": {
                          "const": "usim:artSbp"
                        }
                      },
                      "required": [
                        "concept"
                      ]
                    },
                    "then": {
                      "properties": {
                        "unit": {
                          "const": "mmHg"
                        },
                        "value": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "concept": {
                          "const": "usim:artDbp"
                        }
                      },
                      "required": [
                        "concept"
                      ]
                    },
                    "then": {
                      "properties": {
                        "unit": {
                          "const": "mmHg"
                        },
                        "value": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        }
                      }
                    }
                  }
                ],
                "description": "One numeric physiologic variable belonging to this patient."
              },
              "description": "Numeric physiologic state with explicit concepts and units; observations describe when values are measured or disclosed."
            },
            "monitor": {
              "title": "Monitor",
              "additionalProperties": false,
              "x-usim": {
                "authoring": {
                  "editor": "monitor",
                  "order": 8
                }
              },
              "type": "object",
              "properties": {
                "rhythm": {
                  "type": "string",
                  "title": "Monitor rhythm",
                  "enum": [
                    "sinus",
                    "sinus_tachycardia",
                    "sinus_bradycardia",
                    "atrial_fibrillation",
                    "atrial_flutter",
                    "svt",
                    "ventricular_tachycardia",
                    "torsades",
                    "ventricular_fibrillation",
                    "asystole",
                    "av_block_1",
                    "av_block_2_mobitz_1",
                    "av_block_2_mobitz_2",
                    "av_block_3",
                    "junctional",
                    "ventricular_paced"
                  ],
                  "description": "The ECG rhythm displayed on the monitor. Select the rhythm separately from whether the patient has a palpable pulse."
                },
                "pulsePresent": {
                  "title": "Pulse present",
                  "type": "boolean",
                  "description": "Whether a palpable pulse is present. Use this to distinguish perfusing and pulseless presentations of the displayed rhythm."
                },
                "connections": {
                  "title": "Monitor connections",
                  "additionalProperties": false,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "object",
                  "properties": {
                    "ecg": {
                      "title": "ECG",
                      "type": "boolean",
                      "description": "ECG: connected exposes the available measurement; disconnected hides it without changing physiology."
                    },
                    "bloodPressure": {
                      "title": "Blood pressure cuff",
                      "type": "boolean",
                      "description": "Blood pressure cuff: connected exposes the available measurement; disconnected hides it without changing physiology."
                    },
                    "spo2": {
                      "title": "Pulse oximetry",
                      "type": "boolean",
                      "description": "Pulse oximetry: connected exposes the available measurement; disconnected hides it without changing physiology."
                    },
                    "respiration": {
                      "title": "Respiratory monitoring",
                      "type": "boolean",
                      "description": "Respiratory monitoring: connected exposes the available measurement; disconnected hides it without changing physiology."
                    },
                    "temperature": {
                      "title": "Temperature probe",
                      "type": "boolean",
                      "description": "Temperature probe: connected exposes the available measurement; disconnected hides it without changing physiology."
                    },
                    "capnography": {
                      "title": "Capnography",
                      "type": "boolean",
                      "description": "Capnography: connected exposes the available measurement; disconnected hides it without changing physiology."
                    },
                    "arterialPressure": {
                      "title": "Arterial pressure",
                      "type": "boolean",
                      "description": "Arterial pressure: connected exposes the available measurement; disconnected hides it without changing physiology."
                    }
                  },
                  "description": "Connected channels expose available measurements without changing physiology. An explicit empty patient connection map starts disconnected. Omitted event channels inherit their preceding connection. Omitting the patient connection map makes available channels connected."
                }
              },
              "description": "The monitor configuration used to present patient observations."
            },
            "airway": {
              "anyOf": [
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "const": "natural",
                      "type": "string",
                      "title": "Status",
                      "description": "The required literal value \"natural\"."
                    }
                  },
                  "description": "Non-natural airway requires a device reference; presence does not imply correct placement or function."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "status",
                    "deviceId"
                  ],
                  "properties": {
                    "status": {
                      "anyOf": [
                        {
                          "const": "adjunct",
                          "type": "string",
                          "description": "The required literal value \"adjunct\"."
                        },
                        {
                          "const": "intubated",
                          "type": "string",
                          "description": "The required literal value \"intubated\"."
                        },
                        {
                          "const": "surgical",
                          "type": "string",
                          "description": "The required literal value \"surgical\"."
                        }
                      ],
                      "title": "Status",
                      "description": "Select one of the declared Status alternatives; use the fields belonging to that alternative."
                    },
                    "deviceId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "resources",
                          "label": "name"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                    }
                  },
                  "description": "Non-natural airway requires a device reference; presence does not imply correct placement or function."
                }
              ],
              "title": "Airway support",
              "x-usim": {
                "authoring": {
                  "group": "Additional patient definitions",
                  "defaultOpen": false,
                  "order": 30,
                  "span": "full",
                  "hidden": true
                }
              },
              "description": "Non-natural airway requires a device reference; presence does not imply correct placement or function."
            },
            "context": {
              "title": "Patient context",
              "maxLength": 8000,
              "x-usim": {
                "authoring": {
                  "editor": "textarea",
                  "order": 1
                }
              },
              "type": "string",
              "description": "The patient's opening situation and the context available at the start of the scenario."
            },
            "photo": {
              "title": "Patient photo",
              "additionalProperties": false,
              "x-usim": {
                "authoring": {
                  "editor": "patient-photo",
                  "span": "full",
                  "order": 2
                }
              },
              "type": "object",
              "required": [
                "dataUrl",
                "description"
              ],
              "properties": {
                "dataUrl": {
                  "title": "Photo",
                  "maxLength": 12582912,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "string",
                  "description": "The patient photo encoded as a data URL. Use the photo upload control to populate it."
                },
                "description": {
                  "title": "Photo description",
                  "maxLength": 1000,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "string",
                  "description": "Describe the patient's appearance for readers who cannot see the photo."
                }
              },
              "description": "An optional embedded patient photo that travels with the scenario. Upload a PNG, JPEG, or WebP image."
            }
          },
          "description": "One fictional patient and their authored presentation, history, examination, and observations."
        },
        "description": "The fictional patient's presentation, history, examination, and starting observations.",
        "x-usim": {
          "execution": {
            "capability": "multiple-patients",
            "minimumItems": 2
          }
        }
      },
      "assets": {
        "type": "array",
        "items": {
          "anyOf": [
            {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "mediaType",
                "description",
                "license",
                "attribution",
                "path",
                "sha256"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable asset reference used by results and outputs."
                },
                "mediaType": {
                  "type": "string",
                  "description": "Declared content type must match decoded asset type; unsupported active content is rejected."
                },
                "description": {
                  "type": "string",
                  "description": "Accessible description of the learner-visible content without hidden diagnostic explanation."
                },
                "license": {
                  "type": "string",
                  "description": "Reuse terms for this asset, with attribution in a separate field."
                },
                "attribution": {
                  "type": "string",
                  "description": "Creator and source credit."
                },
                "label": {
                  "type": "string",
                  "description": "The label for this entry. Omit optional information that has not been specified."
                },
                "transcriptAssetId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "assets",
                      "label": "description"
                    }
                  },
                  "type": "string",
                  "description": "Packaged accessible transcript; role filtering matches the original media."
                },
                "path": {
                  "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\).+$",
                  "type": "string",
                  "description": "Path under assets/ within the package. Reject absolute paths, .. segments, symlinks, duplicate paths, and external fetches."
                },
                "sha256": {
                  "pattern": "^[a-f0-9]{64}$",
                  "type": "string",
                  "description": "Digest verified against bytes before use; integrity does not prove safety or authorship."
                }
              },
              "description": "Structured assets details. Omitted optional values remain unspecified."
            },
            {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "mediaType",
                "description",
                "license",
                "attribution",
                "dataUrl",
                "sha256"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable asset reference used by results and outputs."
                },
                "mediaType": {
                  "type": "string",
                  "description": "Declared content type must match decoded asset type; unsupported active content is rejected."
                },
                "description": {
                  "type": "string",
                  "description": "Accessible description of the learner-visible content without hidden diagnostic explanation."
                },
                "license": {
                  "type": "string",
                  "description": "Reuse terms for this asset, with attribution in a separate field."
                },
                "attribution": {
                  "type": "string",
                  "description": "Creator and source credit."
                },
                "label": {
                  "type": "string",
                  "description": "The label for this entry. Omit optional information that has not been specified."
                },
                "transcriptAssetId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "assets",
                      "label": "description"
                    }
                  },
                  "type": "string",
                  "description": "Packaged accessible transcript; role filtering matches the original media."
                },
                "dataUrl": {
                  "pattern": "^data:[^,]+;base64,",
                  "type": "string",
                  "description": "The data url for this entry. Omit optional information that has not been specified."
                },
                "sha256": {
                  "pattern": "^[a-f0-9]{64}$",
                  "type": "string",
                  "description": "Digest verified against bytes before use; integrity does not prove safety or authorship."
                }
              },
              "x-usim": {
                "import": false
              },
              "description": "Structured assets details. Omitted optional values remain unspecified."
            },
            {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "mediaType",
                "description",
                "license",
                "attribution",
                "uri"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable asset reference used by results and outputs."
                },
                "mediaType": {
                  "type": "string",
                  "description": "Declared content type must match decoded asset type; unsupported active content is rejected."
                },
                "description": {
                  "type": "string",
                  "description": "Accessible description of the learner-visible content without hidden diagnostic explanation."
                },
                "license": {
                  "type": "string",
                  "description": "Reuse terms for this asset, with attribution in a separate field."
                },
                "attribution": {
                  "type": "string",
                  "description": "Creator and source credit."
                },
                "label": {
                  "type": "string",
                  "description": "The label for this entry. Omit optional information that has not been specified."
                },
                "transcriptAssetId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "assets",
                      "label": "description"
                    }
                  },
                  "type": "string",
                  "description": "Packaged accessible transcript; role filtering matches the original media."
                },
                "uri": {
                  "minLength": 1,
                  "type": "string",
                  "description": "The uri for this entry. Omit optional information that has not been specified."
                },
                "sha256": {
                  "pattern": "^[a-f0-9]{64}$",
                  "type": "string",
                  "description": "Digest verified against bytes before use; integrity does not prove safety or authorship."
                }
              },
              "description": "Structured assets details. Omitted optional values remain unspecified."
            }
          ],
          "description": "Select one of the declared assets alternatives; use the fields belonging to that alternative."
        },
        "description": "Portable media manifest referenced by diagnostics and role outputs."
      },
      "observations": {
        "title": "Observations",
        "x-usim": {
          "authoring": {
            "editor": "observations"
          }
        },
        "type": "array",
        "items": {
          "anyOf": [
            {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "patientId",
                "code",
                "kind",
                "disclosure",
                "status",
                "value",
                "unit"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable finding or measurement identity; a repeat collection creates a new observation ID."
                },
                "patientId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "patients",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "Patient to whom the observation belongs."
                },
                "code": {
                  "type": "string",
                  "description": "Namespaced concept, such as usim:general-appearance; codes do not imply external terminology certification."
                },
                "kind": {
                  "anyOf": [
                    {
                      "const": "symptom",
                      "type": "string",
                      "description": "Separates reported experience, observed findings, and measured values."
                    },
                    {
                      "const": "finding",
                      "type": "string",
                      "description": "Separates reported experience, observed findings, and measured values."
                    },
                    {
                      "const": "measurement",
                      "type": "string",
                      "description": "Separates reported experience, observed findings, and measured values."
                    }
                  ],
                  "description": "Separates reported experience, observed findings, and measured values."
                },
                "collectedAtSeconds": {
                  "type": "number",
                  "description": "Time of authored assessment or acquisition, possibly before baseline."
                },
                "availableAtSeconds": {
                  "minimum": 0,
                  "type": "number",
                  "description": "Earliest simulated time for release; disclosure conditions must also be satisfied."
                },
                "method": {
                  "type": "string",
                  "description": "Method, location, or equipment used to obtain the finding."
                },
                "disclosure": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "anyOf": [
                            {
                              "const": "initial",
                              "type": "string",
                              "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                            },
                            {
                              "const": "facilitator",
                              "type": "string",
                              "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                            }
                          ],
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode",
                        "resourceId"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "const": "on-resource-response",
                          "type": "string",
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        },
                        "resourceId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "resources",
                              "label": "name"
                            }
                          },
                          "type": "string",
                          "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode",
                        "actionId"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "const": "on-action",
                          "type": "string",
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        },
                        "actionId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.actions",
                              "label": "label"
                            }
                          },
                          "type": "string",
                          "description": "Successful completion of this action reveals the entry."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode",
                        "conditionId"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "const": "on-condition",
                          "type": "string",
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        },
                        "conditionId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.conditions",
                              "label": "id"
                            }
                          },
                          "type": "string",
                          "description": "Reveal when the condition first becomes true; reject unrelated trigger fields."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    }
                  ],
                  "title": "Disclosure",
                  "description": "Select one of the declared Disclosure alternatives; use the fields belonging to that alternative."
                },
                "reportedByActorId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "environment.actors",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "Identifies the patient actor, relative, or colleague supplying the history."
                },
                "reliabilityNote": {
                  "type": "string",
                  "description": "Facilitator context on conflicting or incomplete history; visibility follows the observation's disclosure policy."
                },
                "variableId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "patients.*.variables",
                      "label": "id"
                    }
                  },
                  "type": "string",
                  "description": "On collection, snapshot this variable's current value into a new measurement; later trends do not rewrite past results."
                },
                "referenceInterval": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "context"
                  ],
                  "properties": {
                    "low": {
                      "type": "number",
                      "description": "Numeric low. Do not infer an omitted value."
                    },
                    "high": {
                      "type": "number",
                      "description": "Numeric high. Do not infer an omitted value."
                    },
                    "text": {
                      "type": "string",
                      "description": "The text for this entry. Omit optional information that has not been specified."
                    },
                    "unit": {
                      "type": "string",
                      "description": "The unit for this entry. Omit optional information that has not been specified."
                    },
                    "context": {
                      "type": "string",
                      "description": "The context for this entry. Omit optional information that has not been specified."
                    }
                  },
                  "description": "At least one bound or text description; numeric bounds require the observation's unit and low must not exceed high. Context describes the authored population/method."
                },
                "flag": {
                  "anyOf": [
                    {
                      "const": "low",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "high",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "critical",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "none",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "not-interpreted",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    }
                  ],
                  "description": "Explicit authored flag, never inferred from a generic source default."
                },
                "status": {
                  "const": "known",
                  "type": "string",
                  "description": "Known requires a value. Other statuses prohibit a value rather than using zero or an empty string as a sentinel."
                },
                "value": {
                  "type": "number",
                  "description": "Type must match the registered concept. Qualitative findings can be text or explicit booleans."
                },
                "unit": {
                  "type": "string",
                  "description": "Fixed by the concept definition; no inferred conversions."
                }
              },
              "description": "Structured observations details. Omitted optional values remain unspecified."
            },
            {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "patientId",
                "code",
                "kind",
                "disclosure",
                "status",
                "value"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable finding or measurement identity; a repeat collection creates a new observation ID."
                },
                "patientId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "patients",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "Patient to whom the observation belongs."
                },
                "code": {
                  "type": "string",
                  "description": "Namespaced concept, such as usim:general-appearance; codes do not imply external terminology certification."
                },
                "kind": {
                  "anyOf": [
                    {
                      "const": "symptom",
                      "type": "string",
                      "description": "Separates reported experience, observed findings, and measured values."
                    },
                    {
                      "const": "finding",
                      "type": "string",
                      "description": "Separates reported experience, observed findings, and measured values."
                    },
                    {
                      "const": "measurement",
                      "type": "string",
                      "description": "Separates reported experience, observed findings, and measured values."
                    }
                  ],
                  "description": "Separates reported experience, observed findings, and measured values."
                },
                "collectedAtSeconds": {
                  "type": "number",
                  "description": "Time of authored assessment or acquisition, possibly before baseline."
                },
                "availableAtSeconds": {
                  "minimum": 0,
                  "type": "number",
                  "description": "Earliest simulated time for release; disclosure conditions must also be satisfied."
                },
                "method": {
                  "type": "string",
                  "description": "Method, location, or equipment used to obtain the finding."
                },
                "disclosure": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "anyOf": [
                            {
                              "const": "initial",
                              "type": "string",
                              "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                            },
                            {
                              "const": "facilitator",
                              "type": "string",
                              "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                            }
                          ],
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode",
                        "resourceId"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "const": "on-resource-response",
                          "type": "string",
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        },
                        "resourceId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "resources",
                              "label": "name"
                            }
                          },
                          "type": "string",
                          "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode",
                        "actionId"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "const": "on-action",
                          "type": "string",
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        },
                        "actionId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.actions",
                              "label": "label"
                            }
                          },
                          "type": "string",
                          "description": "Successful completion of this action reveals the entry."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode",
                        "conditionId"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "const": "on-condition",
                          "type": "string",
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        },
                        "conditionId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.conditions",
                              "label": "id"
                            }
                          },
                          "type": "string",
                          "description": "Reveal when the condition first becomes true; reject unrelated trigger fields."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    }
                  ],
                  "title": "Disclosure",
                  "description": "Select one of the declared Disclosure alternatives; use the fields belonging to that alternative."
                },
                "reportedByActorId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "environment.actors",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "Identifies the patient actor, relative, or colleague supplying the history."
                },
                "reliabilityNote": {
                  "type": "string",
                  "description": "Facilitator context on conflicting or incomplete history; visibility follows the observation's disclosure policy."
                },
                "variableId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "patients.*.variables",
                      "label": "id"
                    }
                  },
                  "type": "string",
                  "description": "On collection, snapshot this variable's current value into a new measurement; later trends do not rewrite past results."
                },
                "referenceInterval": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "context"
                  ],
                  "properties": {
                    "low": {
                      "type": "number",
                      "description": "Numeric low. Do not infer an omitted value."
                    },
                    "high": {
                      "type": "number",
                      "description": "Numeric high. Do not infer an omitted value."
                    },
                    "text": {
                      "type": "string",
                      "description": "The text for this entry. Omit optional information that has not been specified."
                    },
                    "unit": {
                      "type": "string",
                      "description": "The unit for this entry. Omit optional information that has not been specified."
                    },
                    "context": {
                      "type": "string",
                      "description": "The context for this entry. Omit optional information that has not been specified."
                    }
                  },
                  "description": "At least one bound or text description; numeric bounds require the observation's unit and low must not exceed high. Context describes the authored population/method."
                },
                "flag": {
                  "anyOf": [
                    {
                      "const": "low",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "high",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "critical",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "none",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "not-interpreted",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    }
                  ],
                  "description": "Explicit authored flag, never inferred from a generic source default."
                },
                "status": {
                  "const": "known",
                  "type": "string",
                  "description": "Known requires a value. Other statuses prohibit a value rather than using zero or an empty string as a sentinel."
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Type must match the registered concept. Qualitative findings can be text or explicit booleans."
                    },
                    {
                      "type": "boolean",
                      "description": "Type must match the registered concept. Qualitative findings can be text or explicit booleans."
                    }
                  ],
                  "description": "Type must match the registered concept. Qualitative findings can be text or explicit booleans."
                },
                "unit": {
                  "type": "string",
                  "description": "Fixed by the concept definition; no inferred conversions."
                }
              },
              "description": "Structured observations details. Omitted optional values remain unspecified."
            },
            {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "patientId",
                "code",
                "kind",
                "disclosure",
                "status"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable finding or measurement identity; a repeat collection creates a new observation ID."
                },
                "patientId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "patients",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "Patient to whom the observation belongs."
                },
                "code": {
                  "type": "string",
                  "description": "Namespaced concept, such as usim:general-appearance; codes do not imply external terminology certification."
                },
                "kind": {
                  "anyOf": [
                    {
                      "const": "symptom",
                      "type": "string",
                      "description": "Separates reported experience, observed findings, and measured values."
                    },
                    {
                      "const": "finding",
                      "type": "string",
                      "description": "Separates reported experience, observed findings, and measured values."
                    },
                    {
                      "const": "measurement",
                      "type": "string",
                      "description": "Separates reported experience, observed findings, and measured values."
                    }
                  ],
                  "description": "Separates reported experience, observed findings, and measured values."
                },
                "collectedAtSeconds": {
                  "type": "number",
                  "description": "Time of authored assessment or acquisition, possibly before baseline."
                },
                "availableAtSeconds": {
                  "minimum": 0,
                  "type": "number",
                  "description": "Earliest simulated time for release; disclosure conditions must also be satisfied."
                },
                "method": {
                  "type": "string",
                  "description": "Method, location, or equipment used to obtain the finding."
                },
                "disclosure": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "anyOf": [
                            {
                              "const": "initial",
                              "type": "string",
                              "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                            },
                            {
                              "const": "facilitator",
                              "type": "string",
                              "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                            }
                          ],
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode",
                        "resourceId"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "const": "on-resource-response",
                          "type": "string",
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        },
                        "resourceId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "resources",
                              "label": "name"
                            }
                          },
                          "type": "string",
                          "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode",
                        "actionId"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "const": "on-action",
                          "type": "string",
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        },
                        "actionId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.actions",
                              "label": "label"
                            }
                          },
                          "type": "string",
                          "description": "Successful completion of this action reveals the entry."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "audience",
                        "mode",
                        "conditionId"
                      ],
                      "properties": {
                        "audience": {
                          "minItems": 1,
                          "uniqueItems": true,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "const": "learner",
                                "type": "string",
                                "description": "The required literal value \"learner\"."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "The required literal value \"facilitator\"."
                              }
                            ],
                            "title": "Audience",
                            "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                          },
                          "title": "Audience",
                          "description": "Authorized output audiences. UI hints do not replace output filtering."
                        },
                        "mode": {
                          "const": "on-condition",
                          "type": "string",
                          "title": "Mode",
                          "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                        },
                        "conditionId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.conditions",
                              "label": "id"
                            }
                          },
                          "type": "string",
                          "description": "Reveal when the condition first becomes true; reject unrelated trigger fields."
                        }
                      },
                      "description": "Structured disclosure details. Omitted optional values remain unspecified."
                    }
                  ],
                  "title": "Disclosure",
                  "description": "Select one of the declared Disclosure alternatives; use the fields belonging to that alternative."
                },
                "reportedByActorId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "environment.actors",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "Identifies the patient actor, relative, or colleague supplying the history."
                },
                "reliabilityNote": {
                  "type": "string",
                  "description": "Facilitator context on conflicting or incomplete history; visibility follows the observation's disclosure policy."
                },
                "variableId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "patients.*.variables",
                      "label": "id"
                    }
                  },
                  "type": "string",
                  "description": "On collection, snapshot this variable's current value into a new measurement; later trends do not rewrite past results."
                },
                "referenceInterval": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "context"
                  ],
                  "properties": {
                    "low": {
                      "type": "number",
                      "description": "Numeric low. Do not infer an omitted value."
                    },
                    "high": {
                      "type": "number",
                      "description": "Numeric high. Do not infer an omitted value."
                    },
                    "text": {
                      "type": "string",
                      "description": "The text for this entry. Omit optional information that has not been specified."
                    },
                    "unit": {
                      "type": "string",
                      "description": "The unit for this entry. Omit optional information that has not been specified."
                    },
                    "context": {
                      "type": "string",
                      "description": "The context for this entry. Omit optional information that has not been specified."
                    }
                  },
                  "description": "At least one bound or text description; numeric bounds require the observation's unit and low must not exceed high. Context describes the authored population/method."
                },
                "flag": {
                  "anyOf": [
                    {
                      "const": "low",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "high",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "critical",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "none",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    },
                    {
                      "const": "not-interpreted",
                      "type": "string",
                      "description": "Explicit authored flag, never inferred from a generic source default."
                    }
                  ],
                  "description": "Explicit authored flag, never inferred from a generic source default."
                },
                "status": {
                  "anyOf": [
                    {
                      "const": "unknown",
                      "type": "string",
                      "description": "Known requires a value. Other statuses prohibit a value rather than using zero or an empty string as a sentinel."
                    },
                    {
                      "const": "not-assessed",
                      "type": "string",
                      "description": "Known requires a value. Other statuses prohibit a value rather than using zero or an empty string as a sentinel."
                    },
                    {
                      "const": "pending",
                      "type": "string",
                      "description": "Known requires a value. Other statuses prohibit a value rather than using zero or an empty string as a sentinel."
                    },
                    {
                      "const": "unavailable",
                      "type": "string",
                      "description": "Known requires a value. Other statuses prohibit a value rather than using zero or an empty string as a sentinel."
                    }
                  ],
                  "description": "Known requires a value. Other statuses prohibit a value rather than using zero or an empty string as a sentinel."
                },
                "unit": {
                  "type": "string",
                  "description": "Fixed by the concept definition; no inferred conversions."
                }
              },
              "description": "Structured observations details. Omitted optional values remain unspecified."
            }
          ],
          "description": "Select one of the declared observations alternatives; use the fields belonging to that alternative."
        },
        "description": "Authored symptoms, findings, and measurements with provenance, visibility, and availability."
      },
      "environment": {
        "additionalProperties": false,
        "x-usim": {
          "authoring": {}
        },
        "type": "object",
        "required": [
          "setting",
          "requirements"
        ],
        "properties": {
          "setting": {
            "title": "Setting",
            "maxLength": 2000,
            "x-usim": {
              "authoring": {
                "editor": "textarea",
                "order": 0
              }
            },
            "type": "string",
            "description": "Where the scenario takes place and the relevant features of the care environment."
          },
          "teamRoles": {
            "type": "array",
            "items": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "name",
                "minCount",
                "maxCount",
                "brief"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                },
                "name": {
                  "type": "string",
                  "title": "Name",
                  "description": "The Name for this entry. Omit optional information that has not been specified."
                },
                "minCount": {
                  "minimum": 0,
                  "type": "integer",
                  "title": "Min count",
                  "description": "Numeric Min count, at least 0. Do not infer an omitted value."
                },
                "maxCount": {
                  "minimum": 0,
                  "type": "integer",
                  "title": "Max count",
                  "description": "Numeric Max count, at least 0. Do not infer an omitted value."
                },
                "brief": {
                  "type": "string",
                  "title": "Brief",
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea",
                      "span": "full"
                    }
                  },
                  "description": "The Brief for this entry. Omit optional information that has not been specified."
                }
              },
              "description": "Portable learner role requirements. Counts are nonnegative with maxCount ≥ minCount; actual assignments belong to delivery records."
            },
            "title": "Team roles",
            "x-usim": {
              "authoring": {
                "hidden": true
              }
            },
            "description": "Entries for Team roles. An empty list means no entries have been authored."
          },
          "requirements": {
            "title": "Preparation requirements",
            "maxItems": 32,
            "description": "Pre-session tasks for the simulation center, each with a concrete action and setup outcome. Equipment and supplies belong in equipment.",
            "x-usim": {
              "authoring": {
                "addLabel": "Add requirement",
                "editor": "requirements",
                "order": 1
              }
            },
            "type": "array",
            "items": {
              "additionalProperties": false,
              "title": "Preparation requirement",
              "type": "object",
              "required": [
                "id",
                "description"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                },
                "description": {
                  "title": "Requirement",
                  "maxLength": 240,
                  "type": "string",
                  "description": "One pre-session setup task with a concrete outcome, such as programming initial manikin observations or briefing an actor."
                },
                "resourceIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "resources",
                        "label": "name"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                  },
                  "title": "Resources",
                  "description": "Entries for Resources. An empty list means no entries have been authored."
                },
                "substitutions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "The substitutions for this entry. Omit optional information that has not been specified."
                  },
                  "title": "Substitutions",
                  "description": "Entries for Substitutions. An empty list means no entries have been authored."
                },
                "required": {
                  "default": true,
                  "type": "boolean",
                  "title": "Required",
                  "description": "Whether Required applies. Omitted optional values remain unspecified."
                }
              },
              "description": "One pre-session setup task with a concrete outcome, such as programming initial manikin observations or briefing an actor."
            }
          },
          "actors": {
            "title": "Scenario actors",
            "maxItems": 32,
            "x-usim": {
              "authoring": {
                "addLabel": "Add actor",
                "order": 3
              }
            },
            "type": "array",
            "items": {
              "title": "Actor",
              "additionalProperties": false,
              "x-usim": {
                "authoring": {}
              },
              "type": "object",
              "required": [
                "id",
                "name",
                "role",
                "brief"
              ],
              "properties": {
                "id": {
                  "title": "Identifier",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "A stable identifier used to reference this entry. Keep it unchanged when editing the entry's name or content."
                },
                "name": {
                  "title": "Actor name",
                  "maxLength": 160,
                  "x-usim": {
                    "authoring": {
                      "order": 0
                    }
                  },
                  "type": "string",
                  "description": "The character's name or role-player label used to identify this actor."
                },
                "role": {
                  "title": "Actor role",
                  "maxLength": 1000,
                  "x-usim": {
                    "authoring": {
                      "order": 1
                    }
                  },
                  "type": "string",
                  "description": "The character's relationship to the patient or care team, such as parent, bedside nurse, or consultant."
                },
                "opening": {
                  "type": "string",
                  "title": "Opening line",
                  "x-usim": {
                    "authoring": {
                      "group": "Additional actor guidance",
                      "defaultOpen": false,
                      "order": 20,
                      "editor": "textarea",
                      "span": "full"
                    }
                  },
                  "description": "The Opening line for this entry. Omit optional information that has not been specified."
                },
                "knowledge": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "The knowledge for this entry. Omit optional information that has not been specified."
                  },
                  "title": "Known information",
                  "x-usim": {
                    "authoring": {
                      "group": "Additional actor guidance",
                      "defaultOpen": false,
                      "order": 20
                    }
                  },
                  "description": "Entries for Known information. An empty list means no entries have been authored."
                },
                "affect": {
                  "type": "string",
                  "title": "Affect",
                  "x-usim": {
                    "authoring": {
                      "group": "Additional actor guidance",
                      "defaultOpen": false,
                      "order": 20,
                      "editor": "textarea",
                      "span": "full"
                    }
                  },
                  "description": "The Affect for this entry. Omit optional information that has not been specified."
                },
                "cues": {
                  "type": "array",
                  "items": {
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "conditionId",
                      "line",
                      "delivery",
                      "maxUses"
                    ],
                    "properties": {
                      "id": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "authoring": {
                            "hidden": true
                          }
                        },
                        "type": "string",
                        "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                      },
                      "conditionId": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.conditions",
                            "label": "id"
                          }
                        },
                        "type": "string",
                        "description": "Identifier of an existing events.conditions entry. Preserve the referenced entry when editing this field."
                      },
                      "line": {
                        "type": "string",
                        "title": "Line",
                        "x-usim": {
                          "authoring": {
                            "editor": "textarea",
                            "span": "full"
                          }
                        },
                        "description": "The Line for this entry. Omit optional information that has not been specified."
                      },
                      "delivery": {
                        "anyOf": [
                          {
                            "const": "facilitator",
                            "type": "string",
                            "description": "The required literal value \"facilitator\"."
                          },
                          {
                            "const": "display",
                            "type": "string",
                            "description": "The required literal value \"display\"."
                          }
                        ],
                        "title": "Delivery",
                        "description": "Select one of the declared Delivery alternatives; use the fields belonging to that alternative."
                      },
                      "maxUses": {
                        "minimum": 1,
                        "type": "integer",
                        "title": "Max uses",
                        "description": "Numeric Max uses, at least 1. Do not infer an omitted value."
                      }
                    },
                    "description": "Explicit trigger and repeat bound. Display sends authored text; facilitator means a prompt for a human actor."
                  },
                  "title": "Authored cues",
                  "x-usim": {
                    "authoring": {
                      "group": "Additional actor guidance",
                      "defaultOpen": false,
                      "order": 20
                    }
                  },
                  "description": "Entries for Authored cues. An empty list means no entries have been authored."
                },
                "brief": {
                  "title": "Actor brief",
                  "maxLength": 8000,
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea",
                      "order": 2,
                      "span": "full"
                    }
                  },
                  "type": "string",
                  "description": "Tell the actor what they know, how to behave, what to disclose, and how to respond to likely learner actions."
                },
                "demographics": {
                  "title": "Voice demographics",
                  "additionalProperties": false,
                  "x-usim": {
                    "authoring": {
                      "order": 3
                    }
                  },
                  "type": "object",
                  "properties": {
                    "age": {
                      "additionalProperties": false,
                      "title": "Age",
                      "type": "object",
                      "required": [
                        "value",
                        "unit"
                      ],
                      "properties": {
                        "value": {
                          "minimum": 0,
                          "type": "number",
                          "description": "The authored age in the selected unit.",
                          "title": "Value"
                        },
                        "unit": {
                          "anyOf": [
                            {
                              "const": "days",
                              "type": "string",
                              "description": "The required literal value \"days\"."
                            },
                            {
                              "const": "months",
                              "type": "string",
                              "description": "The required literal value \"months\"."
                            },
                            {
                              "const": "years",
                              "type": "string",
                              "description": "The required literal value \"years\"."
                            }
                          ],
                          "description": "Age unit; preserve days or months when appropriate.",
                          "title": "Unit"
                        }
                      },
                      "x-usim": {
                        "authoring": {
                          "editor": "age"
                        }
                      },
                      "description": "The character's authored age quantity, used to guide natural voice delivery without exaggeration."
                    },
                    "gender": {
                      "title": "Gender",
                      "maxLength": 160,
                      "x-usim": {
                        "authoring": {
                          "editor": "gender"
                        }
                      },
                      "type": "string",
                      "description": "The character's authored gender, used for default voice selection. Never inferred from their name or occupation."
                    }
                  },
                  "description": "Optional authored age and gender for voice casting. Omit unknown details; voice uses a neutral adult default."
                }
              },
              "description": "One role-player's identity, role in the case, and instructions for responding to learners."
            },
            "description": "The people portraying scenario roles, with their names, roles, and briefing instructions."
          },
          "resetSteps": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "The reset steps for this entry. Omit optional information that has not been specified."
            },
            "title": "Reset steps",
            "x-usim": {
              "authoring": {
                "group": "Reset steps",
                "defaultOpen": false,
                "order": 20
              }
            },
            "description": "Ordered steps to restore equipment, media, supplies, and actor starting conditions."
          },
          "equipment": {
            "title": "Equipment",
            "maxItems": 64,
            "x-usim": {
              "authoring": {
                "addLabel": "Add item",
                "order": 2
              }
            },
            "type": "array",
            "items": {
              "title": "Item",
              "maxLength": 1000,
              "x-usim": {
                "authoring": {}
              },
              "type": "string",
              "description": "One item of equipment or supplies needed for the session, with configuration or an acceptable substitute when useful."
            },
            "description": "The equipment and supplies needed to run the scenario."
          },
          "patientScene": {
            "title": "Patient scene",
            "additionalProperties": false,
            "x-usim": {
              "import": false,
              "authoring": {
                "editor": "scene",
                "order": 4
              }
            },
            "type": "object",
            "required": [
              "modelUrl",
              "attribution",
              "markers"
            ],
            "properties": {
              "modelUrl": {
                "title": "Patient model URL",
                "minLength": 1,
                "maxLength": 2000,
                "type": "string",
                "description": "The URL of the patient model to load in the 3D scene. Use a model accessible to the simulation viewer."
              },
              "attribution": {
                "title": "Model attribution",
                "maxLength": 2000,
                "x-usim": {
                  "authoring": {}
                },
                "type": "string",
                "description": "Credit the model creator and record the source and license or permission to use it."
              },
              "markers": {
                "maxItems": 128,
                "type": "array",
                "items": {
                  "additionalProperties": false,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "object",
                  "required": [
                    "actionId",
                    "position",
                    "normal"
                  ],
                  "properties": {
                    "actionId": {
                      "title": "Marker action",
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "\\S",
                      "x-usim": {
                        "reference": {
                          "collection": "events.actions",
                          "label": "label",
                          "excludeScheduled": true
                        },
                        "authoring": {}
                      },
                      "type": "string",
                      "description": "The existing learner action to invoke when this hotspot is selected; scheduled transitions cannot be selected."
                    },
                    "position": {
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^-?\\d+(?:\\.\\d+)?(?:m)?\\s+-?\\d+(?:\\.\\d+)?(?:m)?\\s+-?\\d+(?:\\.\\d+)?(?:m)?$",
                      "type": "string",
                      "description": "Hotspot location as three space-separated model-space coordinates (x y z), for example 0m 1m 0m.",
                      "title": "Position"
                    },
                    "normal": {
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^-?\\d+(?:\\.\\d+)?(?:m)?\\s+-?\\d+(?:\\.\\d+)?(?:m)?\\s+-?\\d+(?:\\.\\d+)?(?:m)?$",
                      "type": "string",
                      "description": "Hotspot surface direction as three space-separated vector components (x y z), for example 0 0 1.",
                      "title": "Normal"
                    }
                  },
                  "description": "One interaction hotspot with an action, a model-space position, and an outward-facing direction."
                },
                "description": "Clickable locations on the patient model, each linked to an existing learner interaction.",
                "title": "Markers"
              }
            },
            "description": "The patient model and scene configuration shown during the simulation."
          }
        },
        "description": "The location, preparation, equipment, and people needed to deliver the simulation."
      },
      "education": {
        "additionalProperties": false,
        "x-usim": {
          "authoring": {}
        },
        "type": "object",
        "required": [
          "objectives",
          "debriefPrompts"
        ],
        "properties": {
          "rationale": {
            "title": "Educational rationale",
            "maxLength": 8000,
            "x-usim": {
              "authoring": {
                "editor": "textarea",
                "group": "Teaching context",
                "order": 2
              }
            },
            "type": "string",
            "description": "Explain why this case is educationally useful and how its decisions and challenges support the learning objectives."
          },
          "preparation": {
            "title": "Preparation",
            "x-usim": {
              "authoring": {
                "editor": "preparation",
                "group": "Teaching context",
                "order": 4
              }
            },
            "type": "array",
            "items": {
              "additionalProperties": false,
              "title": "Preparation activity",
              "type": "object",
              "required": [
                "id",
                "audience",
                "instructions",
                "assetIds"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                },
                "audience": {
                  "anyOf": [
                    {
                      "const": "learner",
                      "type": "string",
                      "description": "The required literal value \"learner\"."
                    },
                    {
                      "const": "facilitator",
                      "type": "string",
                      "description": "The required literal value \"facilitator\"."
                    }
                  ],
                  "title": "Audience",
                  "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                },
                "instructions": {
                  "title": "Preparation instructions",
                  "x-usim": {
                    "authoring": {
                      "editor": "markdown",
                      "links": true
                    }
                  },
                  "type": "string",
                  "description": "Rich-text instructions stored as Markdown for knowledge, skills, modules, or preparation learners should complete before starting."
                },
                "assetIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "assets",
                        "label": "description"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing assets entry. Preserve the referenced entry when editing this field."
                  },
                  "title": "Supporting materials",
                  "description": "Entries for Supporting materials. An empty list means no entries have been authored."
                }
              },
              "description": "Preparation activities and packaged resources, with an explicit audience for each item. Instructions may use Markdown for formatted module directions and links; assetIds reference packaged learning documents. This describes preparation, not completion tracking or an enforced start gate. Builder presents prerequisite instructions and documents in Teaching context alongside the educational rationale."
            },
            "description": "Preparation activities and learner or facilitator materials. Asset references retain the source documents. Builder groups prerequisite instructions and documents in Teaching context alongside the educational rationale."
          },
          "objectives": {
            "title": "Learning objectives",
            "maxItems": 32,
            "x-usim": {
              "authoring": {
                "editor": "objectives",
                "order": 0
              }
            },
            "type": "array",
            "items": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "statement"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "A stable objective identifier. Preserve it when editing or reordering the objective."
                },
                "statement": {
                  "title": "Learning objective",
                  "maxLength": 1000,
                  "type": "string",
                  "description": "An observable learning outcome, using an action verb such as recognize, assess, communicate, or initiate."
                },
                "evidenceActionIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "events.actions",
                        "label": "label"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing events.actions entry. Preserve the referenced entry when editing this field."
                  },
                  "title": "Evidence actions",
                  "description": "Entries for Evidence actions. An empty list means no entries have been authored."
                },
                "acgmeCompetencies": {
                  "uniqueItems": true,
                  "maxItems": 6,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "const": "PC",
                        "type": "string",
                        "description": "The required literal value \"PC\"."
                      },
                      {
                        "const": "MK",
                        "type": "string",
                        "description": "The required literal value \"MK\"."
                      },
                      {
                        "const": "PBLI",
                        "type": "string",
                        "description": "The required literal value \"PBLI\"."
                      },
                      {
                        "const": "ICS",
                        "type": "string",
                        "description": "The required literal value \"ICS\"."
                      },
                      {
                        "const": "PROF",
                        "type": "string",
                        "description": "The required literal value \"PROF\"."
                      },
                      {
                        "const": "SBP",
                        "type": "string",
                        "description": "The required literal value \"SBP\"."
                      }
                    ],
                    "description": "One of the six ACGME core domain codes: PC, MK, PBLI, ICS, PROF, or SBP. Each code may appear only once per objective."
                  },
                  "description": "Optional author-selected ACGME core competency codes. Omitted or empty means unmapped. This is not a Milestone level or a judgment of competence. Do not infer mappings from source text that does not explicitly supply them.",
                  "title": "Acgme competencies"
                },
                "domain": {
                  "anyOf": [
                    {
                      "const": "knowledge",
                      "type": "string",
                      "description": "Optional classification for discovery; it does not select a scoring algorithm."
                    },
                    {
                      "const": "reasoning",
                      "type": "string",
                      "description": "Optional classification for discovery; it does not select a scoring algorithm."
                    },
                    {
                      "const": "technical-skill",
                      "type": "string",
                      "description": "Optional classification for discovery; it does not select a scoring algorithm."
                    },
                    {
                      "const": "communication",
                      "type": "string",
                      "description": "Optional classification for discovery; it does not select a scoring algorithm."
                    },
                    {
                      "const": "teamwork",
                      "type": "string",
                      "description": "Optional classification for discovery; it does not select a scoring algorithm."
                    },
                    {
                      "const": "professionalism",
                      "type": "string",
                      "description": "Optional classification for discovery; it does not select a scoring algorithm."
                    },
                    {
                      "const": "systems",
                      "type": "string",
                      "description": "Optional classification for discovery; it does not select a scoring algorithm."
                    }
                  ],
                  "title": "Domain",
                  "description": "Optional classification for discovery; it does not select a scoring algorithm."
                },
                "performance": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "context",
                    "expectedBehavior",
                    "successCriteria",
                    "scope"
                  ],
                  "properties": {
                    "context": {
                      "type": "string",
                      "title": "Context",
                      "description": "The Context for this entry. Omit optional information that has not been specified."
                    },
                    "expectedBehavior": {
                      "type": "string",
                      "title": "Expected behavior",
                      "description": "The Expected behavior for this entry. Omit optional information that has not been specified."
                    },
                    "successCriteria": {
                      "type": "string",
                      "title": "Success criteria",
                      "description": "The Success criteria for this entry. Omit optional information that has not been specified."
                    },
                    "scope": {
                      "anyOf": [
                        {
                          "const": "individual",
                          "type": "string",
                          "description": "The required literal value \"individual\"."
                        },
                        {
                          "const": "team",
                          "type": "string",
                          "description": "The required literal value \"team\"."
                        }
                      ],
                      "title": "Scope",
                      "description": "Select one of the declared Scope alternatives; use the fields belonging to that alternative."
                    }
                  },
                  "title": "Performance",
                  "description": "Observable behavior, conditions of performance, and acceptable standard. Team evidence cannot be attributed automatically to each individual."
                },
                "curriculumMappings": {
                  "type": "array",
                  "items": {
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "framework",
                      "version",
                      "code",
                      "label"
                    ],
                    "properties": {
                      "framework": {
                        "pattern": "^[A-Za-z][A-Za-z0-9+.-]*:",
                        "type": "string",
                        "title": "Framework",
                        "description": "The Framework for this entry. Omit optional information that has not been specified."
                      },
                      "version": {
                        "type": "string",
                        "title": "Version",
                        "description": "The Version for this entry. Omit optional information that has not been specified."
                      },
                      "code": {
                        "type": "string",
                        "title": "Code",
                        "description": "The Code for this entry. Omit optional information that has not been specified."
                      },
                      "label": {
                        "type": "string",
                        "title": "Label",
                        "description": "The Label for this entry. Omit optional information that has not been specified."
                      }
                    },
                    "description": "Curriculum or competency references; mappings are author assertions, not accreditation or equivalence. ACGME core competency mappings use framework https://www.acgme.org/programs-and-institutions/programs/common-program-requirements/, version core-competencies-2026-09, and codes PC, MK, PBLI, ICS, PROF, SBP. Specialty-specific Milestones require their own framework and version; do not infer levels from scenario scores."
                  },
                  "title": "Curriculum mappings",
                  "description": "Entries for Curriculum mappings. An empty list means no entries have been authored."
                },
                "learnerBrief": {
                  "type": "string",
                  "title": "Learner brief",
                  "description": "Learner-facing statement of the task or objective. Facilitator success criteria may contain spoilers and are not included implicitly."
                }
              },
              "description": "One observable learning goal, using an action verb such as recognize, assess, communicate, or initiate."
            },
            "description": "The observable knowledge, skills, or behaviors learners should demonstrate."
          },
          "debriefPrompts": {
            "title": "Debrief prompt",
            "type": "array",
            "items": {
              "additionalProperties": false,
              "title": "Debrief prompt",
              "type": "object",
              "required": [
                "id",
                "question"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                },
                "objectiveIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "education.objectives",
                        "label": "statement"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing education.objectives entry. Preserve the referenced entry when editing this field."
                  },
                  "title": "Learning objectives",
                  "description": "Entries for Learning objectives. An empty list means no entries have been authored."
                },
                "question": {
                  "title": "Debrief prompt",
                  "maxLength": 12000,
                  "type": "string",
                  "description": "A prompt for facilitated reflection after the scenario. Formatting is stored as Markdown."
                },
                "facilitatorRationale": {
                  "type": "string",
                  "title": "Facilitator rationale",
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea",
                      "span": "full"
                    }
                  },
                  "description": "The Facilitator rationale for this entry. Omit optional information that has not been specified."
                }
              },
              "description": "One reflection prompt with a stable ID and optional objective references and facilitator notes. Builder edits the primary question in the single Debrief prompt field and preserves additional existing questions and notes in scenario data without displaying them in the Builder."
            },
            "description": "Reflection prompts stored as a canonical array supporting multiple records. Builder provides a single primary Debrief prompt editor without add/remove controls. Additional existing records retain their IDs, questions, objective references, and facilitator notes; these additional details are preserved in scenario data and are not displayed in the Builder.",
            "x-usim": {
              "authoring": {
                "order": 1,
                "editor": "debrief"
              }
            }
          },
          "assessment": {
            "title": "Assessment",
            "maxItems": 64,
            "x-usim": {
              "authoring": {
                "editor": "assessment",
                "order": 3
              }
            },
            "type": "array",
            "items": {
              "additionalProperties": false,
              "x-usim": {
                "authoring": {}
              },
              "type": "object",
              "required": [
                "id",
                "label",
                "actionId",
                "points",
                "feedback"
              ],
              "properties": {
                "objectiveId": {
                  "title": "Learning objective",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "\\S",
                  "x-usim": {
                    "reference": {
                      "collection": "education.objectives",
                      "label": "statement",
                      "excludeScheduled": false
                    },
                    "authoring": {
                      "emptyLabel": "No linked objective"
                    }
                  },
                  "type": "string",
                  "description": "Optional link to the stable ID of a structured learning objective. Multiple criteria may support one objective. No link means unspecified, never a failed objective."
                },
                "id": {
                  "title": "Identifier",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "A stable identifier used to reference this entry. Keep it unchanged when editing the entry's name or content."
                },
                "label": {
                  "title": "Skill or objective",
                  "maxLength": 1000,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "string",
                  "minLength": 1,
                  "pattern": "\\S",
                  "description": "Name the observable skill or objective being assessed, such as recognizing deterioration."
                },
                "actionId": {
                  "title": "Required action",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "\\S",
                  "x-usim": {
                    "reference": {
                      "collection": "events.actions",
                      "label": "label",
                      "excludeScheduled": true
                    },
                    "authoring": {
                      "emptyLabel": "Choose an action"
                    }
                  },
                  "type": "string",
                  "description": "Select the learner action that earns credit for this criterion. Scheduled transitions cannot earn action credit."
                },
                "objectId": {
                  "title": "Equivalent resource",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "\\S",
                  "x-usim": {
                    "reference": {
                      "collection": "resources",
                      "label": "name",
                      "excludeScheduled": false
                    },
                    "authoring": {
                      "emptyLabel": "No equivalent resource"
                    }
                  },
                  "type": "string",
                  "description": "Single equivalent resource. Used when objectIds is omitted; the required action's linked resource is used when both are omitted."
                },
                "objectIds": {
                  "title": "Equivalent resources",
                  "minItems": 1,
                  "maxItems": 1000,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "title": "Equivalent resource",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "\\S",
                    "x-usim": {
                      "reference": {
                        "collection": "resources",
                        "label": "name",
                        "excludeScheduled": false
                      },
                      "authoring": {}
                    },
                    "type": "string",
                    "description": "The identifier of a learner-requestable resource accepted as an alternative for this assessment criterion."
                  },
                  "description": "Alternative learner-requestable resources that earn credit for this criterion. Any selected request qualifies, using the earliest request time regardless of result delay. Points are awarded once. Omit to use objectId or the required action's linked resource when present."
                },
                "points": {
                  "title": "Points",
                  "minimum": 1,
                  "maximum": 100,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "number",
                  "description": "The weight of this criterion in the total score, from 1 to 100. Credit is awarded once when the criterion is met."
                },
                "withinSeconds": {
                  "title": "Deadline · seconds",
                  "minimum": 0,
                  "maximum": 86400,
                  "x-usim": {
                    "unit": "s",
                    "authoring": {}
                  },
                  "type": "number",
                  "description": "Latest qualifying action time in seconds from the start of the run, inclusive. Omit to assess the action without a deadline."
                },
                "feedback": {
                  "title": "Debrief guidance",
                  "maxLength": 8000,
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea"
                    }
                  },
                  "type": "string",
                  "description": "Explain the expected behavior, why it matters, and what to discuss when the action is completed or missed."
                },
                "learningUrl": {
                  "title": "Learning material URL",
                  "maxLength": 2000,
                  "pattern": "^https://[^\\s]+$",
                  "type": "string",
                  "description": "An HTTPS link to learning material relevant to this criterion, such as a guideline or teaching resource."
                }
              },
              "description": "One scored criterion linking an observable skill to a recorded action, with points and debrief feedback."
            },
            "description": "The authored criteria used to assess learner performance."
          }
        },
        "description": "Learning goals, learner preparation, assessment criteria, and guidance for reflection after the case."
      },
      "resources": {
        "title": "Resources",
        "maxItems": 2048,
        "x-usim": {
          "authoring": {
            "editor": "resources"
          }
        },
        "type": "array",
        "items": {
          "additionalProperties": false,
          "allOf": [
            {
              "if": {
                "properties": {
                  "equipment": {}
                },
                "required": [
                  "equipment"
                ]
              },
              "then": {
                "properties": {
                  "kind": {
                    "const": "equipment"
                  }
                }
              }
            },
            {
              "if": {
                "properties": {
                  "diagnostic": {
                    "type": "object",
                    "properties": {
                      "orthostaticResponse": {}
                    },
                    "required": [
                      "orthostaticResponse"
                    ]
                  }
                },
                "required": [
                  "diagnostic"
                ]
              },
              "then": {
                "properties": {
                  "kind": {
                    "const": "diagnostic"
                  },
                  "diagnostic": {
                    "type": "object",
                    "properties": {
                      "category": {
                        "const": "physiologic"
                      }
                    }
                  }
                },
                "required": [
                  "diagnostic"
                ],
                "not": {
                  "anyOf": [
                    {
                      "properties": {
                        "effects": {}
                      },
                      "required": [
                        "effects"
                      ]
                    },
                    {
                      "properties": {
                        "effectPercent": {}
                      },
                      "required": [
                        "effectPercent"
                      ]
                    },
                    {
                      "properties": {
                        "medicationResponse": {}
                      },
                      "required": [
                        "medicationResponse"
                      ]
                    }
                  ]
                }
              }
            },
            {
              "if": {
                "properties": {
                  "kind": {
                    "const": "diagnostic"
                  }
                },
                "required": [
                  "kind"
                ]
              },
              "then": {
                "properties": {
                  "diagnostic": {}
                },
                "required": [
                  "diagnostic"
                ]
              },
              "else": {
                "not": {
                  "properties": {
                    "diagnostic": {}
                  },
                  "required": [
                    "diagnostic"
                  ]
                }
              }
            }
          ],
          "type": "object",
          "required": [
            "id",
            "kind",
            "name"
          ],
          "properties": {
            "id": {
              "title": "Identifier",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "\\S",
              "x-usim": {
                "authoring": {
                  "hidden": true
                }
              },
              "type": "string",
              "description": "A stable identifier used to reference this entry. Keep it unchanged when editing the entry's name or content."
            },
            "kind": {
              "type": "string",
              "title": "Resource type",
              "enum": [
                "medication",
                "diagnostic",
                "procedure",
                "equipment",
                "consultation",
                "information"
              ],
              "description": "Categorize the resource for selection and display. Choosing a type alone does not define its physiologic effects."
            },
            "name": {
              "title": "Learner title",
              "maxLength": 240,
              "x-usim": {
                "authoring": {}
              },
              "type": "string",
              "description": "The neutral title learners use to identify or request this resource. Include the dose or study details needed to distinguish similar choices."
            },
            "builderTitle": {
              "title": "Builder title",
              "maxLength": 240,
              "x-usim": {
                "authoring": {}
              },
              "type": "string",
              "description": "An optional explanatory title for Builder selection and authoring, such as XR Pediatric Neck (2 Views): Esophageal Button Battery. Never use it as a learner label or spoken title. Omission uses name in Builder; name remains the learner title."
            },
            "diagnostic": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "category"
              ],
              "properties": {
                "category": {
                  "anyOf": [
                    {
                      "const": "lab",
                      "type": "string",
                      "description": "The required literal value \"lab\"."
                    },
                    {
                      "const": "imaging",
                      "type": "string",
                      "description": "The required literal value \"imaging\"."
                    },
                    {
                      "const": "physiologic",
                      "type": "string",
                      "description": "The required literal value \"physiologic\"."
                    }
                  ],
                  "description": "Required only for diagnostic resources: lab for specimen-based tests, imaging for images and reports, or physiologic for recordings and functional measurements such as ECG, EEG, and spirometry."
                },
                "specimen": {
                  "type": "string",
                  "description": "The specimen for this entry. Omit optional information that has not been specified."
                },
                "collectionInstructions": {
                  "type": "string",
                  "description": "The collection instructions for this entry. Omit optional information that has not been specified."
                },
                "resultIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "resources.*.results",
                        "label": "id"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing resources.*.results entry. Preserve the referenced entry when editing this field."
                  },
                  "description": "Entries for result ids. An empty list means no entries have been authored."
                },
                "acquisition": {
                  "additionalProperties": false,
                  "type": "object",
                  "properties": {
                    "bodyRegion": {
                      "type": "string",
                      "description": "The body region for this entry. Omit optional information that has not been specified."
                    },
                    "view": {
                      "type": "string",
                      "description": "The view for this entry. Omit optional information that has not been specified."
                    },
                    "technique": {
                      "type": "string",
                      "description": "The technique for this entry. Omit optional information that has not been specified."
                    }
                  },
                  "description": "Study-specific context independent of report interpretation."
                },
                "orthostaticResponse": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "systolicDrop",
                    "diastolicDrop"
                  ],
                  "properties": {
                    "patientId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "patients",
                          "label": "name"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing patients entry. Preserve the referenced entry when editing this field."
                    },
                    "systolicVariableId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "patients.*.variables",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing patients.*.variables entry. Preserve the referenced entry when editing this field."
                    },
                    "diastolicVariableId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "patients.*.variables",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing patients.*.variables entry. Preserve the referenced entry when editing this field."
                    },
                    "systolicDrop": {
                      "minimum": 0,
                      "maximum": 100,
                      "type": "number",
                      "description": "Subtract this many mmHg from the request-time resting systolic BP for the standing result."
                    },
                    "diastolicDrop": {
                      "minimum": 0,
                      "maximum": 100,
                      "type": "number",
                      "description": "Subtract this many mmHg from the request-time resting diastolic BP for the standing result."
                    }
                  },
                  "description": "Report standing BP relative to current resting BP when requested, without changing resting physiology. An authored learner result takes precedence."
                },
                "ecg": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "leadConfiguration",
                    "findingObservationIds",
                    "recordingAssetId"
                  ],
                  "properties": {
                    "leadConfiguration": {
                      "type": "string",
                      "description": "The lead configuration for this entry. Omit optional information that has not been specified."
                    },
                    "paperSpeedMmPerSecond": {
                      "exclusiveMinimum": 0,
                      "type": "number",
                      "description": "Numeric paper speed mm per second. Do not infer an omitted value."
                    },
                    "gainMmPerMv": {
                      "exclusiveMinimum": 0,
                      "type": "number",
                      "description": "Numeric gain mm per mv. Do not infer an omitted value."
                    },
                    "rhythmObservationId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "observations",
                          "label": "code"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing observations entry. Preserve the referenced entry when editing this field."
                    },
                    "findingObservationIds": {
                      "minItems": 0,
                      "uniqueItems": true,
                      "type": "array",
                      "items": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "observations",
                            "label": "code"
                          }
                        },
                        "type": "string",
                        "description": "Identifier of an existing observations entry. Preserve the referenced entry when editing this field."
                      },
                      "description": "Entries for finding observation ids. An empty list means no entries have been authored."
                    },
                    "recordingAssetId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "assets",
                          "label": "description"
                        }
                      },
                      "type": "string",
                      "description": "ECG image, signal, or video manifest entry with an accessible description."
                    }
                  },
                  "description": "Acquisition context plus independent rhythm and morphology findings; all supplied scale numbers must be positive."
                }
              },
              "description": "A named request with explicit result references. Laboratory requests require an authored specimen description."
            },
            "description": {
              "title": "Description shown to the learner",
              "maxLength": 8000,
              "x-usim": {
                "authoring": {
                  "editor": "textarea"
                }
              },
              "type": "string",
              "description": "Optional context about the resource and why it is available. Leave blank when the name is sufficient. Put findings released after use in Learner result."
            },
            "equipment": {
              "additionalProperties": false,
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "The type for this entry. Omit optional information that has not been specified."
                },
                "status": {
                  "anyOf": [
                    {
                      "const": "available",
                      "type": "string",
                      "description": "The required literal value \"available\"."
                    },
                    {
                      "const": "connected",
                      "type": "string",
                      "description": "The required literal value \"connected\"."
                    },
                    {
                      "const": "malfunctioning",
                      "type": "string",
                      "description": "The required literal value \"malfunctioning\"."
                    },
                    {
                      "const": "removed",
                      "type": "string",
                      "description": "The required literal value \"removed\"."
                    }
                  ],
                  "description": "Select one of the declared status alternatives; use the fields belonging to that alternative."
                },
                "patientId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "patients",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "Identifier of an existing patients entry. Preserve the referenced entry when editing this field."
                },
                "site": {
                  "type": "string",
                  "description": "The site for this entry. Omit optional information that has not been specified."
                },
                "size": {
                  "type": "string",
                  "description": "The size for this entry. Omit optional information that has not been specified."
                },
                "measurementIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "observations",
                        "label": "code"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing observations entry. Preserve the referenced entry when editing this field."
                  },
                  "description": "Entries for measurement ids. An empty list means no entries have been authored."
                },
                "placement": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "confirmation"
                  ],
                  "properties": {
                    "placedAtSeconds": {
                      "type": "number",
                      "description": "Numeric placed at seconds. Do not infer an omitted value."
                    },
                    "confirmation": {
                      "anyOf": [
                        {
                          "const": "unknown",
                          "type": "string",
                          "description": "The required literal value \"unknown\"."
                        },
                        {
                          "const": "confirmed",
                          "type": "string",
                          "description": "The required literal value \"confirmed\"."
                        },
                        {
                          "const": "incorrect",
                          "type": "string",
                          "description": "The required literal value \"incorrect\"."
                        }
                      ],
                      "description": "Select one of the declared confirmation alternatives; use the fields belonging to that alternative."
                    },
                    "note": {
                      "type": "string",
                      "description": "The note for this entry. Omit optional information that has not been specified."
                    }
                  },
                  "description": "Separate placement time and authored confirmation from mere presence."
                },
                "capabilities": {
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "The capabilities for this entry. Omit optional information that has not been specified."
                  },
                  "description": "Named capabilities referenced by procedure prerequisites or environment requirements."
                },
                "monitorConnection": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "channel",
                    "connected"
                  ],
                  "properties": {
                    "channel": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "const": "ecg",
                              "type": "string",
                              "description": "The required literal value \"ecg\"."
                            },
                            {
                              "const": "bloodPressure",
                              "type": "string",
                              "description": "The required literal value \"bloodPressure\"."
                            },
                            {
                              "const": "spo2",
                              "type": "string",
                              "description": "The required literal value \"spo2\"."
                            },
                            {
                              "const": "respiration",
                              "type": "string",
                              "description": "The required literal value \"respiration\"."
                            },
                            {
                              "const": "temperature",
                              "type": "string",
                              "description": "The required literal value \"temperature\"."
                            },
                            {
                              "const": "capnography",
                              "type": "string",
                              "description": "The required literal value \"capnography\"."
                            },
                            {
                              "const": "arterialPressure",
                              "type": "string",
                              "description": "The required literal value \"arterialPressure\"."
                            }
                          ],
                          "description": "Select one of the declared channel alternatives; use the fields belonging to that alternative."
                        },
                        {
                          "anyOf": [
                            {
                              "const": "all",
                              "type": "string",
                              "description": "The required literal value \"all\"."
                            },
                            {
                              "const": "standard",
                              "type": "string",
                              "description": "The required literal value \"standard\"."
                            }
                          ],
                          "description": "Select one of the declared channel alternatives; use the fields belonging to that alternative."
                        }
                      ],
                      "description": "The monitor channel controlled by this equipment resource; all controls every channel; standard controls ECG, SpO2, NIBP, temperature, and respiratory rate."
                    },
                    "connected": {
                      "type": "boolean",
                      "description": "True connects this channel; false disconnects it."
                    }
                  },
                  "description": "Connect or disconnect an equipment channel when this resource response is released."
                },
                "ventilation": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "mode",
                    "settings",
                    "measurementIds",
                    "alarms"
                  ],
                  "properties": {
                    "mode": {
                      "type": "string",
                      "description": "The mode for this entry. Omit optional information that has not been specified."
                    },
                    "settings": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "name",
                          "value",
                          "unit"
                        ],
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The name for this entry. Omit optional information that has not been specified."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value. Do not infer an omitted value."
                          },
                          "unit": {
                            "type": "string",
                            "description": "The unit for this entry. Omit optional information that has not been specified."
                          }
                        },
                        "description": "Structured settings details. Omitted optional values remain unspecified."
                      },
                      "description": "Entries for settings. An empty list means no entries have been authored."
                    },
                    "measurementIds": {
                      "minItems": 0,
                      "uniqueItems": true,
                      "type": "array",
                      "items": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "observations",
                            "label": "code"
                          }
                        },
                        "type": "string",
                        "description": "Identifier of an existing observations entry. Preserve the referenced entry when editing this field."
                      },
                      "description": "Entries for measurement ids. An empty list means no entries have been authored."
                    },
                    "alarms": {
                      "type": "array",
                      "items": {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "conditionId",
                          "message",
                          "severity"
                        ],
                        "properties": {
                          "id": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "authoring": {
                                "hidden": true
                              }
                            },
                            "type": "string",
                            "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                          },
                          "conditionId": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "reference": {
                                "collection": "events.conditions",
                                "label": "id"
                              }
                            },
                            "type": "string",
                            "description": "Identifier of an existing events.conditions entry. Preserve the referenced entry when editing this field."
                          },
                          "message": {
                            "type": "string",
                            "description": "The message for this entry. Omit optional information that has not been specified."
                          },
                          "severity": {
                            "anyOf": [
                              {
                                "const": "advisory",
                                "type": "string",
                                "description": "The required literal value \"advisory\"."
                              },
                              {
                                "const": "urgent",
                                "type": "string",
                                "description": "The required literal value \"urgent\"."
                              }
                            ],
                            "description": "Select one of the declared severity alternatives; use the fields belonging to that alternative."
                          }
                        },
                        "description": "Authored alarm conditions and visible messages, evaluated from explicit conditions."
                      },
                      "description": "Entries for alarms. An empty list means no entries have been authored."
                    }
                  },
                  "description": "Setting is { name: string, value: number, unit: string }; settings and observations remain distinct."
                }
              },
              "description": "Covers vascular access, urinary/gastric tubes, invasive monitoring, and other authored devices."
            },
            "source": {
              "title": "Source / attribution",
              "maxLength": 2000,
              "x-usim": {
                "authoring": {}
              },
              "type": "string",
              "description": "Credit the source of the resource content, including a citation or URL when available. Attribution alone does not verify clinical accuracy."
            },
            "response": {
              "additionalProperties": false,
              "title": "Resource response",
              "type": "object",
              "properties": {
                "releaseOnStateId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "When learners receive this result",
                  "x-usim": {
                    "reference": {
                      "collection": "events.states",
                      "label": "title"
                    }
                  },
                  "type": "string",
                  "description": "Choose when this resource result is released. With no linked event, learners request it in chat or from the bedside menu, and the response delay starts when the request is recorded. A linked event releases the result when that step starts, after any response delay; requests for non-diagnostic resources are checked against the action instructions. Diagnostic requests return only the requested test: completing an action does not order other tests linked to the same step. Timed or facilitator-delivered steps can still release their linked results automatically. If a step waits for required results, configure that link in Events."
                },
                "delaySeconds": {
                  "minimum": 0,
                  "type": "number",
                  "description": "Numeric delay seconds, at least 0. Do not infer an omitted value."
                },
                "effectIds": {
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "events.effects",
                        "label": "id"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing events.effects entry. Preserve the referenced entry when editing this field."
                  },
                  "description": "Entries for effect ids. An empty list means no entries have been authored."
                },
                "nextStateId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "events.states",
                      "label": "title"
                    }
                  },
                  "type": "string",
                  "description": "Identifier of an existing events.states entry. Preserve the referenced entry when editing this field."
                }
              },
              "description": "Structured Resource response details. Omitted optional values remain unspecified."
            },
            "sourceIds": {
              "type": "array",
              "items": {
                "title": "Source",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "\\S",
                "x-usim": {
                  "reference": {
                    "collection": "metadata.sources",
                    "label": "citation",
                    "excludeScheduled": false
                  },
                  "authoring": {}
                },
                "type": "string",
                "description": "Identifier of an existing metadata.sources entry. Preserve the referenced entry when editing this field."
              },
              "description": "Entries for source ids. An empty list means no entries have been authored."
            },
            "medication": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "ingredient",
                "formulation",
                "allowedRoutes"
              ],
              "properties": {
                "ingredient": {
                  "type": "string",
                  "description": "The ingredient for this entry. Omit optional information that has not been specified."
                },
                "formulation": {
                  "type": "string",
                  "description": "The formulation for this entry. Omit optional information that has not been specified."
                },
                "concentration": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "numerator",
                    "denominator"
                  ],
                  "properties": {
                    "numerator": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "value",
                        "unit"
                      ],
                      "properties": {
                        "value": {
                          "exclusiveMinimum": 0,
                          "type": "number",
                          "description": "Numeric value. Do not infer an omitted value."
                        },
                        "unit": {
                          "type": "string",
                          "description": "The unit for this entry. Omit optional information that has not been specified."
                        }
                      },
                      "description": "Structured numerator details. Omitted optional values remain unspecified."
                    },
                    "denominator": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "value",
                        "unit"
                      ],
                      "properties": {
                        "value": {
                          "exclusiveMinimum": 0,
                          "type": "number",
                          "description": "Numeric value. Do not infer an omitted value."
                        },
                        "unit": {
                          "type": "string",
                          "description": "The unit for this entry. Omit optional information that has not been specified."
                        }
                      },
                      "description": "Structured numerator details. Omitted optional values remain unspecified."
                    }
                  },
                  "description": "Structured concentration details. Omitted optional values remain unspecified."
                },
                "allowedRoutes": {
                  "minItems": 1,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "The allowed routes for this entry. Omit optional information that has not been specified."
                  },
                  "description": "Entries for allowed routes. An empty list means no entries have been authored."
                }
              },
              "description": "Reusable product definition. QuantityRatio is numerator Quantity / denominator Quantity; positive denominator is required."
            },
            "consultation": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "service",
                "actorId",
                "requestedInformation",
                "responseResultIds"
              ],
              "properties": {
                "service": {
                  "type": "string",
                  "description": "The service for this entry. Omit optional information that has not been specified."
                },
                "actorId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "environment.actors",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "Identifier of an existing environment.actors entry. Preserve the referenced entry when editing this field."
                },
                "requestedInformation": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "The requested information for this entry. Omit optional information that has not been specified."
                  },
                  "description": "Entries for requested information. An empty list means no entries have been authored."
                },
                "responseResultIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "resources.*.results",
                        "label": "id"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing resources.*.results entry. Preserve the referenced entry when editing this field."
                  },
                  "description": "Entries for response result ids. An empty list means no entries have been authored."
                }
              },
              "description": "A structured exchange with authored requests and responses rather than a one-line result."
            },
            "procedure": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "indication",
                "requiredResourceIds",
                "steps",
                "outcomeActionId"
              ],
              "properties": {
                "indication": {
                  "type": "string",
                  "description": "The indication for this entry. Omit optional information that has not been specified."
                },
                "requiredResourceIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "resources",
                        "label": "name"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                  },
                  "description": "Entries for required resource ids. An empty list means no entries have been authored."
                },
                "steps": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "instruction",
                          "evidence",
                          "critical"
                        ],
                        "properties": {
                          "id": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "authoring": {
                                "hidden": true
                              }
                            },
                            "type": "string",
                            "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                          },
                          "instruction": {
                            "type": "string",
                            "description": "The instruction for this entry. Omit optional information that has not been specified."
                          },
                          "evidence": {
                            "const": "facilitator",
                            "type": "string",
                            "description": "The required literal value \"facilitator\"."
                          },
                          "critical": {
                            "type": "boolean",
                            "description": "Whether critical applies. Omitted optional values remain unspecified."
                          }
                        },
                        "description": "Ordered observable steps. Action evidence requires actionId; facilitator evidence is recorded during the run."
                      },
                      {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "instruction",
                          "evidence",
                          "actionId",
                          "critical"
                        ],
                        "properties": {
                          "id": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "authoring": {
                                "hidden": true
                              }
                            },
                            "type": "string",
                            "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                          },
                          "instruction": {
                            "type": "string",
                            "description": "The instruction for this entry. Omit optional information that has not been specified."
                          },
                          "evidence": {
                            "const": "action",
                            "type": "string",
                            "description": "The required literal value \"action\"."
                          },
                          "actionId": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "reference": {
                                "collection": "events.actions",
                                "label": "label"
                              }
                            },
                            "type": "string",
                            "description": "Identifier of an existing events.actions entry. Preserve the referenced entry when editing this field."
                          },
                          "critical": {
                            "type": "boolean",
                            "description": "Whether critical applies. Omitted optional values remain unspecified."
                          }
                        },
                        "description": "Ordered observable steps. Action evidence requires actionId; facilitator evidence is recorded during the run."
                      }
                    ],
                    "description": "Ordered observable steps. Action evidence requires actionId; facilitator evidence is recorded during the run."
                  },
                  "description": "Entries for steps. An empty list means no entries have been authored."
                },
                "outcomeActionId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "events.actions",
                      "label": "label"
                    }
                  },
                  "type": "string",
                  "description": "Identifier of an existing events.actions entry. Preserve the referenced entry when editing this field."
                },
                "complications": {
                  "type": "array",
                  "items": {
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "description",
                      "conditionId",
                      "effectIds"
                    ],
                    "properties": {
                      "id": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "authoring": {
                            "hidden": true
                          }
                        },
                        "type": "string",
                        "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                      },
                      "description": {
                        "type": "string",
                        "description": "The description for this entry. Omit optional information that has not been specified."
                      },
                      "conditionId": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.conditions",
                            "label": "id"
                          }
                        },
                        "type": "string",
                        "description": "Identifier of an existing events.conditions entry. Preserve the referenced entry when editing this field."
                      },
                      "effectIds": {
                        "type": "array",
                        "items": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.effects",
                              "label": "id"
                            }
                          },
                          "type": "string",
                          "description": "Identifier of an existing events.effects entry. Preserve the referenced entry when editing this field."
                        },
                        "description": "Entries for effect ids. An empty list means no entries have been authored."
                      }
                    },
                    "description": "Conditional authored consequences evaluated once at procedure completion, in listed order."
                  },
                  "description": "Entries for complications. An empty list means no entries have been authored."
                }
              },
              "description": "Preparation and performance content with an explicit action deciding the authored result."
            },
            "results": {
              "type": "array",
              "items": {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "id",
                  "content",
                  "observationIds",
                  "assetIds",
                  "disclosure"
                ],
                "properties": {
                  "id": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "authoring": {
                        "hidden": true
                      }
                    },
                    "type": "string",
                    "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                  },
                  "content": {
                    "type": "string",
                    "description": "The content for this entry. Omit optional information that has not been specified."
                  },
                  "observationIds": {
                    "minItems": 0,
                    "uniqueItems": true,
                    "type": "array",
                    "items": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "observations",
                          "label": "code"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing observations entry. Preserve the referenced entry when editing this field."
                    },
                    "description": "Entries for observation ids. An empty list means no entries have been authored."
                  },
                  "assetIds": {
                    "minItems": 0,
                    "uniqueItems": true,
                    "type": "array",
                    "items": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "assets",
                          "label": "description"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing assets entry. Preserve the referenced entry when editing this field."
                    },
                    "description": "Entries for asset ids. An empty list means no entries have been authored."
                  },
                  "disclosure": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "audience",
                          "mode"
                        ],
                        "properties": {
                          "audience": {
                            "minItems": 1,
                            "uniqueItems": true,
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "const": "learner",
                                  "type": "string",
                                  "description": "The required literal value \"learner\"."
                                },
                                {
                                  "const": "facilitator",
                                  "type": "string",
                                  "description": "The required literal value \"facilitator\"."
                                }
                              ],
                              "title": "Audience",
                              "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                            },
                            "title": "Audience",
                            "description": "Authorized output audiences. UI hints do not replace output filtering."
                          },
                          "mode": {
                            "anyOf": [
                              {
                                "const": "initial",
                                "type": "string",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              },
                              {
                                "const": "facilitator",
                                "type": "string",
                                "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                              }
                            ],
                            "title": "Mode",
                            "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                          }
                        },
                        "description": "Structured disclosure details. Omitted optional values remain unspecified."
                      },
                      {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "audience",
                          "mode",
                          "resourceId"
                        ],
                        "properties": {
                          "audience": {
                            "minItems": 1,
                            "uniqueItems": true,
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "const": "learner",
                                  "type": "string",
                                  "description": "The required literal value \"learner\"."
                                },
                                {
                                  "const": "facilitator",
                                  "type": "string",
                                  "description": "The required literal value \"facilitator\"."
                                }
                              ],
                              "title": "Audience",
                              "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                            },
                            "title": "Audience",
                            "description": "Authorized output audiences. UI hints do not replace output filtering."
                          },
                          "mode": {
                            "const": "on-resource-response",
                            "type": "string",
                            "title": "Mode",
                            "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                          },
                          "resourceId": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "reference": {
                                "collection": "resources",
                                "label": "name"
                              }
                            },
                            "type": "string",
                            "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                          }
                        },
                        "description": "Structured disclosure details. Omitted optional values remain unspecified."
                      },
                      {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "audience",
                          "mode",
                          "actionId"
                        ],
                        "properties": {
                          "audience": {
                            "minItems": 1,
                            "uniqueItems": true,
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "const": "learner",
                                  "type": "string",
                                  "description": "The required literal value \"learner\"."
                                },
                                {
                                  "const": "facilitator",
                                  "type": "string",
                                  "description": "The required literal value \"facilitator\"."
                                }
                              ],
                              "title": "Audience",
                              "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                            },
                            "title": "Audience",
                            "description": "Authorized output audiences. UI hints do not replace output filtering."
                          },
                          "mode": {
                            "const": "on-action",
                            "type": "string",
                            "title": "Mode",
                            "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                          },
                          "actionId": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "reference": {
                                "collection": "events.actions",
                                "label": "label"
                              }
                            },
                            "type": "string",
                            "description": "Successful completion of this action reveals the entry."
                          }
                        },
                        "description": "Structured disclosure details. Omitted optional values remain unspecified."
                      },
                      {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "audience",
                          "mode",
                          "conditionId"
                        ],
                        "properties": {
                          "audience": {
                            "minItems": 1,
                            "uniqueItems": true,
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "const": "learner",
                                  "type": "string",
                                  "description": "The required literal value \"learner\"."
                                },
                                {
                                  "const": "facilitator",
                                  "type": "string",
                                  "description": "The required literal value \"facilitator\"."
                                }
                              ],
                              "title": "Audience",
                              "description": "Select one of the declared Audience alternatives; use the fields belonging to that alternative."
                            },
                            "title": "Audience",
                            "description": "Authorized output audiences. UI hints do not replace output filtering."
                          },
                          "mode": {
                            "const": "on-condition",
                            "type": "string",
                            "title": "Mode",
                            "description": "Initial reveals at baseline; other modes require an action, condition, or facilitator release."
                          },
                          "conditionId": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "reference": {
                                "collection": "events.conditions",
                                "label": "id"
                              }
                            },
                            "type": "string",
                            "description": "Reveal when the condition first becomes true; reject unrelated trigger fields."
                          }
                        },
                        "description": "Structured disclosure details. Omitted optional values remain unspecified."
                      }
                    ],
                    "title": "Disclosure",
                    "description": "Select one of the declared Disclosure alternatives; use the fields belonging to that alternative."
                  },
                  "interpretation": {
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "facilitator"
                    ],
                    "properties": {
                      "learner": {
                        "type": "string",
                        "description": "The learner for this entry. Omit optional information that has not been specified."
                      },
                      "facilitator": {
                        "type": "string",
                        "description": "The facilitator for this entry. Omit optional information that has not been specified."
                      }
                    },
                    "description": "Separate diagnostic or teaching explanation from the raw learner result."
                  },
                  "panelName": {
                    "type": "string",
                    "description": "Human-readable panel grouping; does not inject assumed analytes."
                  },
                  "specimenStatus": {
                    "anyOf": [
                      {
                        "const": "adequate",
                        "type": "string",
                        "description": "Allows rejected or unavailable specimens to drive a repeat-collection branch."
                      },
                      {
                        "const": "inadequate",
                        "type": "string",
                        "description": "Allows rejected or unavailable specimens to drive a repeat-collection branch."
                      },
                      {
                        "const": "not-collected",
                        "type": "string",
                        "description": "Allows rejected or unavailable specimens to drive a repeat-collection branch."
                      }
                    ],
                    "description": "Allows rejected or unavailable specimens to drive a repeat-collection branch."
                  }
                },
                "description": "Named result combines authored report text, structured observations, media, and audience rules."
              },
              "description": "Entries for results. An empty list means no entries have been authored."
            }
          },
          "description": "One resource with learner-facing information, release timing, and any authored response or patient changes."
        },
        "description": "Medications, tests, procedures, and other resources available in the case. Each resource can be used once per run; use separate entries for repeat doses or serial results."
      },
      "events": {
        "additionalProperties": false,
        "x-usim": {
          "authoring": {}
        },
        "type": "object",
        "required": [
          "states",
          "actions"
        ],
        "properties": {
          "flags": {
            "type": "array",
            "items": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "initialValue"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                },
                "initialValue": {
                  "type": "boolean",
                  "description": "Whether initial value applies. Omitted optional values remain unspecified."
                }
              },
              "description": "Concurrent facts such as ownership-agreed; flags coexist independently of the single active phase."
            },
            "description": "Entries for flags. An empty list means no entries have been authored."
          },
          "conditions": {
            "type": "array",
            "items": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id",
                "all"
              ],
              "properties": {
                "id": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                },
                "all": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "targetId",
                          "operator",
                          "value"
                        ],
                        "properties": {
                          "targetId": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "authoring": {
                                "hidden": true
                              }
                            },
                            "type": "string",
                            "description": "The Identifier for this entry. Omit optional information that has not been specified."
                          },
                          "operator": {
                            "anyOf": [
                              {
                                "const": "eq",
                                "type": "string",
                                "description": "The required literal value \"eq\"."
                              },
                              {
                                "const": "ne",
                                "type": "string",
                                "description": "The required literal value \"ne\"."
                              },
                              {
                                "const": "lt",
                                "type": "string",
                                "description": "The required literal value \"lt\"."
                              },
                              {
                                "const": "lte",
                                "type": "string",
                                "description": "The required literal value \"lte\"."
                              },
                              {
                                "const": "gt",
                                "type": "string",
                                "description": "The required literal value \"gt\"."
                              },
                              {
                                "const": "gte",
                                "type": "string",
                                "description": "The required literal value \"gte\"."
                              }
                            ],
                            "description": "Select one of the declared operator alternatives; use the fields belonging to that alternative."
                          },
                          "value": {
                            "type": "number",
                            "description": "Numeric value. Do not infer an omitted value."
                          }
                        },
                        "description": "Operand types must match the target. Boolean flags support only eq/ne; numeric comparisons use the variable's declared unit."
                      },
                      {
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "targetId",
                          "operator",
                          "value"
                        ],
                        "properties": {
                          "targetId": {
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "\\S",
                            "title": "Identifier",
                            "x-usim": {
                              "authoring": {
                                "hidden": true
                              }
                            },
                            "type": "string",
                            "description": "The Identifier for this entry. Omit optional information that has not been specified."
                          },
                          "operator": {
                            "anyOf": [
                              {
                                "const": "eq",
                                "type": "string",
                                "description": "The required literal value \"eq\"."
                              },
                              {
                                "const": "ne",
                                "type": "string",
                                "description": "The required literal value \"ne\"."
                              }
                            ],
                            "description": "Select one of the declared operator alternatives; use the fields belonging to that alternative."
                          },
                          "value": {
                            "type": "boolean",
                            "description": "Whether value applies. Omitted optional values remain unspecified."
                          }
                        },
                        "description": "Operand types must match the target. Boolean flags support only eq/ne; numeric comparisons use the variable's declared unit."
                      }
                    ],
                    "description": "Operand types must match the target. Boolean flags support only eq/ne; numeric comparisons use the variable's declared unit."
                  },
                  "description": "Entries for all. An empty list means no entries have been authored."
                }
              },
              "description": "All predicates must be true; empty all is explicitly true. No recursive or executable expression text."
            },
            "description": "Named, bounded predicates referenced by actions, states, and cues."
          },
          "schedules": {
            "title": "Schedules",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "delaySeconds",
                    "priority",
                    "effectIds",
                    "anchor"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Named event allows explicit cancellation."
                    },
                    "label": {
                      "type": "string",
                      "description": "The label for this entry. Omit optional information that has not been specified."
                    },
                    "description": {
                      "type": "string",
                      "description": "The description for this entry. Omit optional information that has not been specified."
                    },
                    "resourceId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "resources",
                          "label": "name"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                    },
                    "cancelOnActionIds": {
                      "minItems": 0,
                      "uniqueItems": true,
                      "type": "array",
                      "items": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.actions",
                            "label": "label"
                          }
                        },
                        "type": "string",
                        "description": "A learner action whose completion prevents this scheduled transition from firing."
                      },
                      "description": "For a scheduled transition, completion of any selected action cancels this timer for the rest of the run, including after state re-entry. The action may stay in its current state. Selected unfinished actions stay available while this timer is pending once their source event has occurred, even after another event becomes current. Future-source actions remain unavailable. Completing the action enters its destination; a self-loop stays in the current event. Conclusion states do not allow recovery. Cancellation does not undo a deterioration that already occurred. The timer starts when the source event first occurs and remains pending when other events occur. Ending the scenario cancels pending timers."
                    },
                    "delaySeconds": {
                      "exclusiveMinimum": 0,
                      "type": "number",
                      "description": "Simulated seconds after the declared schedule anchor. State-entry schedules follow onAnchorStateExit and cancellation references; action timing is separate."
                    },
                    "conditionId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "events.conditions",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "Evaluate when due. False skips that occurrence; it does not poll until true."
                    },
                    "priority": {
                      "type": "integer",
                      "description": "Explicit ordering for simultaneous events. Equal priority uses schedule ID lexical order."
                    },
                    "effectIds": {
                      "type": "array",
                      "items": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.effects",
                            "label": "id"
                          }
                        },
                        "type": "string",
                        "description": "Identifier of an existing events.effects entry. Preserve the referenced entry when editing this field."
                      },
                      "description": "Operations applied atomically if the due event and transition guards are valid."
                    },
                    "nextStateId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "events.states",
                          "label": "title"
                        }
                      },
                      "type": "string",
                      "description": "Optional phase transition; omit for a result or actor cue that does not move the main phase."
                    },
                    "repeat": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "intervalSeconds",
                        "count"
                      ],
                      "properties": {
                        "intervalSeconds": {
                          "exclusiveMinimum": 0,
                          "type": "number",
                          "description": "Numeric interval seconds. Do not infer an omitted value."
                        },
                        "count": {
                          "minimum": 1,
                          "type": "integer",
                          "description": "Numeric count, at least 1. Do not infer an omitted value."
                        }
                      },
                      "description": "Count includes the initial occurrence. Finite repetition prevents unbounded schedules."
                    },
                    "anchor": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "kind"
                      ],
                      "properties": {
                        "kind": {
                          "const": "scenario-start",
                          "type": "string",
                          "description": "The required literal value \"scenario-start\"."
                        }
                      },
                      "description": "State/action anchors require the corresponding ID. Scenario-start prohibits refId."
                    }
                  },
                  "description": "Structured schedules details. Omitted optional values remain unspecified."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "delaySeconds",
                    "priority",
                    "effectIds",
                    "anchor"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Named event allows explicit cancellation."
                    },
                    "label": {
                      "type": "string",
                      "description": "The label for this entry. Omit optional information that has not been specified."
                    },
                    "description": {
                      "type": "string",
                      "description": "The description for this entry. Omit optional information that has not been specified."
                    },
                    "resourceId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "resources",
                          "label": "name"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                    },
                    "cancelOnActionIds": {
                      "minItems": 0,
                      "uniqueItems": true,
                      "type": "array",
                      "items": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.actions",
                            "label": "label"
                          }
                        },
                        "type": "string",
                        "description": "A learner action whose completion prevents this scheduled transition from firing."
                      },
                      "description": "For a scheduled transition, completion of any selected action cancels this timer for the rest of the run, including after state re-entry. The action may stay in its current state. Selected unfinished actions stay available while this timer is pending once their source event has occurred, even after another event becomes current. Future-source actions remain unavailable. Completing the action enters its destination; a self-loop stays in the current event. Conclusion states do not allow recovery. Cancellation does not undo a deterioration that already occurred. The timer starts when the source event first occurs and remains pending when other events occur. Ending the scenario cancels pending timers."
                    },
                    "delaySeconds": {
                      "exclusiveMinimum": 0,
                      "type": "number",
                      "description": "Simulated seconds after the declared schedule anchor. State-entry schedules follow onAnchorStateExit and cancellation references; action timing is separate."
                    },
                    "conditionId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "events.conditions",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "Evaluate when due. False skips that occurrence; it does not poll until true."
                    },
                    "priority": {
                      "type": "integer",
                      "description": "Explicit ordering for simultaneous events. Equal priority uses schedule ID lexical order."
                    },
                    "effectIds": {
                      "type": "array",
                      "items": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.effects",
                            "label": "id"
                          }
                        },
                        "type": "string",
                        "description": "Identifier of an existing events.effects entry. Preserve the referenced entry when editing this field."
                      },
                      "description": "Operations applied atomically if the due event and transition guards are valid."
                    },
                    "nextStateId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "events.states",
                          "label": "title"
                        }
                      },
                      "type": "string",
                      "description": "Optional phase transition; omit for a result or actor cue that does not move the main phase."
                    },
                    "repeat": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "intervalSeconds",
                        "count"
                      ],
                      "properties": {
                        "intervalSeconds": {
                          "exclusiveMinimum": 0,
                          "type": "number",
                          "description": "Numeric interval seconds. Do not infer an omitted value."
                        },
                        "count": {
                          "minimum": 1,
                          "type": "integer",
                          "description": "Numeric count, at least 1. Do not infer an omitted value."
                        }
                      },
                      "description": "Count includes the initial occurrence. Finite repetition prevents unbounded schedules."
                    },
                    "anchor": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "kind",
                        "refId"
                      ],
                      "properties": {
                        "kind": {
                          "const": "action-completion",
                          "type": "string",
                          "description": "The required literal value \"action-completion\"."
                        },
                        "refId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.actions",
                              "label": "label"
                            }
                          },
                          "type": "string",
                          "description": "Identifier of an existing events.actions entry. Preserve the referenced entry when editing this field."
                        }
                      },
                      "description": "State/action anchors require the corresponding ID. Scenario-start prohibits refId."
                    }
                  },
                  "description": "Structured schedules details. Omitted optional values remain unspecified."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "delaySeconds",
                    "priority",
                    "effectIds",
                    "anchor",
                    "onAnchorStateExit"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Named event allows explicit cancellation."
                    },
                    "label": {
                      "type": "string",
                      "description": "The label for this entry. Omit optional information that has not been specified."
                    },
                    "description": {
                      "type": "string",
                      "description": "The description for this entry. Omit optional information that has not been specified."
                    },
                    "resourceId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "resources",
                          "label": "name"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                    },
                    "cancelOnActionIds": {
                      "minItems": 0,
                      "uniqueItems": true,
                      "type": "array",
                      "items": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.actions",
                            "label": "label"
                          }
                        },
                        "type": "string",
                        "description": "A learner action whose completion prevents this scheduled transition from firing."
                      },
                      "description": "For a scheduled transition, completion of any selected action cancels this timer for the rest of the run, including after state re-entry. The action may stay in its current state. Selected unfinished actions stay available while this timer is pending once their source event has occurred, even after another event becomes current. Future-source actions remain unavailable. Completing the action enters its destination; a self-loop stays in the current event. Conclusion states do not allow recovery. Cancellation does not undo a deterioration that already occurred. The timer starts when the source event first occurs and remains pending when other events occur. Ending the scenario cancels pending timers."
                    },
                    "delaySeconds": {
                      "exclusiveMinimum": 0,
                      "type": "number",
                      "description": "Simulated seconds after the declared schedule anchor. State-entry schedules follow onAnchorStateExit and cancellation references; action timing is separate."
                    },
                    "conditionId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "events.conditions",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "Evaluate when due. False skips that occurrence; it does not poll until true."
                    },
                    "priority": {
                      "type": "integer",
                      "description": "Explicit ordering for simultaneous events. Equal priority uses schedule ID lexical order."
                    },
                    "effectIds": {
                      "type": "array",
                      "items": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.effects",
                            "label": "id"
                          }
                        },
                        "type": "string",
                        "description": "Identifier of an existing events.effects entry. Preserve the referenced entry when editing this field."
                      },
                      "description": "Operations applied atomically if the due event and transition guards are valid."
                    },
                    "nextStateId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "events.states",
                          "label": "title"
                        }
                      },
                      "type": "string",
                      "description": "Optional phase transition; omit for a result or actor cue that does not move the main phase."
                    },
                    "repeat": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "intervalSeconds",
                        "count"
                      ],
                      "properties": {
                        "intervalSeconds": {
                          "exclusiveMinimum": 0,
                          "type": "number",
                          "description": "Numeric interval seconds. Do not infer an omitted value."
                        },
                        "count": {
                          "minimum": 1,
                          "type": "integer",
                          "description": "Numeric count, at least 1. Do not infer an omitted value."
                        }
                      },
                      "description": "Count includes the initial occurrence. Finite repetition prevents unbounded schedules."
                    },
                    "anchor": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "kind",
                        "refId"
                      ],
                      "properties": {
                        "kind": {
                          "const": "state-entry",
                          "type": "string",
                          "description": "The required literal value \"state-entry\"."
                        },
                        "refId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.states",
                              "label": "title"
                            }
                          },
                          "type": "string",
                          "description": "Identifier of an existing events.states entry. Preserve the referenced entry when editing this field."
                        }
                      },
                      "description": "State/action anchors require the corresponding ID. Scenario-start prohibits refId."
                    },
                    "onAnchorStateExit": {
                      "anyOf": [
                        {
                          "const": "cancel",
                          "type": "string",
                          "description": "Cancel removes pending occurrences from that entry; re-entry creates a new schedule instance."
                        },
                        {
                          "const": "continue",
                          "type": "string",
                          "description": "Cancel removes pending occurrences from that entry; re-entry creates a new schedule instance."
                        }
                      ],
                      "description": "Cancel removes pending occurrences from that entry; re-entry creates a new schedule instance."
                    }
                  },
                  "description": "Structured schedules details. Omitted optional values remain unspecified."
                }
              ],
              "description": "Select one of the declared schedules alternatives; use the fields belonging to that alternative."
            },
            "description": "Action completes through AI interpretation of learner intent against its completion criterion, configured resource interactions, or explicit learner/facilitator confirmation. Scheduled runs once after its delay from the first source-state entry, remaining pending across later states unless canceled or the scenario concludes. Omitted means action."
          },
          "effects": {
            "title": "Effects",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "targetId",
                    "value",
                    "unit"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Stable effect identifier referenced by states, actions, or schedules."
                    },
                    "kind": {
                      "const": "set-variable",
                      "type": "string",
                      "description": "The operation performed by this effect."
                    },
                    "targetId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "patients.*.variables",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "The identifier of the variable or other entity changed by this effect."
                    },
                    "value": {
                      "type": "number",
                      "description": "The resulting value, expressed in the target variable’s declared unit."
                    },
                    "unit": {
                      "type": "string",
                      "description": "The target variable’s declared unit; effects cannot silently convert units."
                    }
                  },
                  "description": "Structured effects details. Omitted optional values remain unspecified."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "targetId",
                    "value",
                    "unit",
                    "durationSeconds",
                    "interpolation"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Stable effect identifier referenced by states, actions, or schedules."
                    },
                    "kind": {
                      "const": "trend-variable",
                      "type": "string",
                      "description": "Closed operation vocabulary; each kind has its own required operands as defined in this section."
                    },
                    "targetId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "patients.*.variables",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "set-variable/trend-variable target a variable; set-flag targets a flag; reveal targets a history entry, observation, or result; cancel-event targets a schedule; set-monitor-connection targets a patient."
                    },
                    "value": {
                      "type": "number",
                      "description": "Absolute replacement or trend target, never an implicit increment. Numeric variable effects require a matching unit field."
                    },
                    "unit": {
                      "type": "string",
                      "description": "Unit for a numeric variable target. It must match the target variable's declared unit; the format does not infer conversions."
                    },
                    "durationSeconds": {
                      "exclusiveMinimum": 0,
                      "type": "number",
                      "description": "Duration of a linear authored change from current value to target. Instant changes use set-variable."
                    },
                    "interpolation": {
                      "const": "linear",
                      "type": "string",
                      "description": "The format supports one explicit interpolation rule; no inferred dose-response or disease model."
                    }
                  },
                  "description": "Structured effects details. Omitted optional values remain unspecified."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "targetId",
                    "percent",
                    "unit"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Stable effect identifier referenced by states, actions, or schedules."
                    },
                    "kind": {
                      "const": "scale-variable",
                      "type": "string",
                      "description": "Closed operation vocabulary; each kind has its own required operands as defined in this section."
                    },
                    "targetId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "patients.*.variables",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "set-variable/trend-variable target a variable; set-flag targets a flag; reveal targets a history entry, observation, or result; cancel-event targets a schedule; set-monitor-connection targets a patient."
                    },
                    "percent": {
                      "minimum": -100,
                      "maximum": 1000,
                      "type": "number",
                      "description": "Numeric percent, at least -100, at most 1000. Do not infer an omitted value."
                    },
                    "unit": {
                      "type": "string",
                      "description": "Unit for a numeric variable target. It must match the target variable's declared unit; the format does not infer conversions."
                    }
                  },
                  "description": "Structured effects details. Omitted optional values remain unspecified."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "patientId",
                    "modelId"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Stable effect identifier referenced by states, actions, or schedules."
                    },
                    "kind": {
                      "const": "apply-model",
                      "type": "string",
                      "description": "Closed operation vocabulary; each kind has its own required operands as defined in this section."
                    },
                    "patientId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "patients",
                          "label": "name"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing patients entry. Preserve the referenced entry when editing this field."
                    },
                    "modelId": {
                      "pattern": "^[A-Za-z][A-Za-z0-9+.-]*:",
                      "type": "string",
                      "description": "The model id for this entry. Omit optional information that has not been specified."
                    }
                  },
                  "description": "Structured effects details. Omitted optional values remain unspecified."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "targetId",
                    "value"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Stable effect identifier referenced by states, actions, or schedules."
                    },
                    "kind": {
                      "const": "set-flag",
                      "type": "string",
                      "description": "Closed operation vocabulary; each kind has its own required operands as defined in this section."
                    },
                    "targetId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "events.flags",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "set-variable/trend-variable target a variable; set-flag targets a flag; reveal targets a history entry, observation, or result; cancel-event targets a schedule; set-monitor-connection targets a patient."
                    },
                    "value": {
                      "type": "boolean",
                      "description": "Absolute replacement or trend target, never an implicit increment. Numeric variable effects require a matching unit field."
                    }
                  },
                  "description": "Structured effects details. Omitted optional values remain unspecified."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "targetId"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Stable effect identifier referenced by states, actions, or schedules."
                    },
                    "kind": {
                      "const": "reveal",
                      "type": "string",
                      "description": "Closed operation vocabulary; each kind has its own required operands as defined in this section."
                    },
                    "targetId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "set-variable/trend-variable target a variable; set-flag targets a flag; reveal targets a history entry, observation, or result; cancel-event targets a schedule; set-monitor-connection targets a patient."
                    }
                  },
                  "description": "Structured effects details. Omitted optional values remain unspecified."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "targetId"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Stable effect identifier referenced by states, actions, or schedules."
                    },
                    "kind": {
                      "const": "cancel-event",
                      "type": "string",
                      "description": "Closed operation vocabulary; each kind has its own required operands as defined in this section."
                    },
                    "targetId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "events.schedules",
                          "label": "id"
                        }
                      },
                      "type": "string",
                      "description": "set-variable/trend-variable target a variable; set-flag targets a flag; reveal targets a history entry, observation, or result; cancel-event targets a schedule; set-monitor-connection targets a patient."
                    }
                  },
                  "description": "Structured effects details. Omitted optional values remain unspecified."
                },
                {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "targetId",
                    "channel",
                    "value"
                  ],
                  "properties": {
                    "id": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "authoring": {
                          "hidden": true
                        }
                      },
                      "type": "string",
                      "description": "Stable effect identifier referenced by states, actions, or schedules."
                    },
                    "kind": {
                      "const": "set-monitor-connection",
                      "type": "string",
                      "description": "Closed operation vocabulary; each kind has its own required operands as defined in this section."
                    },
                    "targetId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "patients",
                          "label": "name"
                        }
                      },
                      "type": "string",
                      "description": "set-variable/trend-variable target a variable; set-flag targets a flag; reveal targets a history entry, observation, or result; cancel-event targets a schedule; set-monitor-connection targets a patient."
                    },
                    "channel": {
                      "anyOf": [
                        {
                          "const": "ecg",
                          "type": "string",
                          "description": "The required literal value \"ecg\"."
                        },
                        {
                          "const": "bloodPressure",
                          "type": "string",
                          "description": "The required literal value \"bloodPressure\"."
                        },
                        {
                          "const": "spo2",
                          "type": "string",
                          "description": "The required literal value \"spo2\"."
                        },
                        {
                          "const": "respiration",
                          "type": "string",
                          "description": "The required literal value \"respiration\"."
                        },
                        {
                          "const": "temperature",
                          "type": "string",
                          "description": "The required literal value \"temperature\"."
                        },
                        {
                          "const": "capnography",
                          "type": "string",
                          "description": "The required literal value \"capnography\"."
                        },
                        {
                          "const": "arterialPressure",
                          "type": "string",
                          "description": "The required literal value \"arterialPressure\"."
                        }
                      ],
                      "description": "Select one of the declared channel alternatives; use the fields belonging to that alternative."
                    },
                    "value": {
                      "type": "boolean",
                      "description": "Absolute replacement or trend target, never an implicit increment. Numeric variable effects require a matching unit field."
                    }
                  },
                  "description": "Structured effects details. Omitted optional values remain unspecified."
                }
              ],
              "description": "One typed effect with a stable identifier and explicit target."
            },
            "description": "Named reusable effects that change scenario state or disclosure."
          },
          "states": {
            "title": "States",
            "maxItems": 128,
            "x-usim": {
              "authoring": {
                "editor": "graph"
              }
            },
            "type": "array",
            "items": {
              "additionalProperties": false,
              "x-usim": {
                "authoring": {}
              },
              "type": "object",
              "required": [
                "id",
                "title",
                "learnerBrief",
                "facilitatorBrief",
                "kind"
              ],
              "properties": {
                "id": {
                  "title": "Identifier",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "A stable identifier used to reference this entry. Keep it unchanged when editing the entry's name or content."
                },
                "title": {
                  "title": "State title",
                  "maxLength": 240,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "string",
                  "description": "A short name for this phase, such as Initial assessment or Worsening respiratory distress."
                },
                "entryConditionId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "events.conditions",
                      "label": "id"
                    },
                    "execution": {
                      "capability": "conditional-execution"
                    }
                  },
                  "type": "string",
                  "description": "Guard checked immediately before entry. Failed manual transitions are rejected; scheduled failures are recorded and skipped."
                },
                "exitConditionId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "events.conditions",
                      "label": "id"
                    },
                    "execution": {
                      "capability": "conditional-execution"
                    }
                  },
                  "type": "string",
                  "description": "Must hold to leave the phase; does not cause a transition by itself."
                },
                "onEnterEffectIds": {
                  "title": "Effects on entry",
                  "type": "array",
                  "items": {
                    "title": "Entry effect",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "\\S",
                    "x-usim": {
                      "reference": {
                        "collection": "events.effects",
                        "label": "id",
                        "excludeScheduled": false
                      },
                      "authoring": {}
                    },
                    "type": "string",
                    "description": "An effect applied at this position in the state’s entry sequence."
                  },
                  "description": "Ordered effect identifiers applied when this state is entered."
                },
                "onExitEffectIds": {
                  "title": "Effects on exit",
                  "type": "array",
                  "items": {
                    "title": "Exit effect",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "\\S",
                    "x-usim": {
                      "reference": {
                        "collection": "events.effects",
                        "label": "id",
                        "excludeScheduled": false
                      },
                      "authoring": {}
                    },
                    "type": "string",
                    "description": "An effect applied at this position in the state’s exit sequence."
                  },
                  "description": "Ordered effect identifiers applied when this state is exited; execution requires support for exit effects."
                },
                "learnerBrief": {
                  "title": "Learner prompt",
                  "maxLength": 8000,
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea"
                    }
                  },
                  "type": "string",
                  "description": "Information presented to the learner at this phase: the patient's condition, new findings, or an immediate task. Keep tutor instructions and unrevealed answers in the tutor prompt."
                },
                "facilitatorBrief": {
                  "title": "Tutor prompt",
                  "maxLength": 8000,
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea"
                    }
                  },
                  "type": "string",
                  "description": "Guide the tutor through this phase: expected learner actions, cues to offer if learners struggle, and when and why to advance. Include relevant reasoning and facilitation instructions."
                },
                "objectiveIds": {
                  "minItems": 0,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "\\S",
                    "title": "Identifier",
                    "x-usim": {
                      "reference": {
                        "collection": "education.objectives",
                        "label": "statement"
                      }
                    },
                    "type": "string",
                    "description": "Identifier of an existing education.objectives entry. Preserve the referenced entry when editing this field."
                  },
                  "description": "Links the phase to an educational objective."
                },
                "kind": {
                  "type": "string",
                  "title": "State kind",
                  "enum": [
                    "baseline",
                    "phase",
                    "conclusion"
                  ],
                  "description": "Baseline starts the case; triggered and scheduled describe intermediate phases; conclusion ends the run. A scheduled phase still needs an incoming timed interaction."
                },
                "monitor": {
                  "title": "Monitor",
                  "additionalProperties": false,
                  "x-usim": {
                    "authoring": {
                      "editor": "monitor"
                    }
                  },
                  "type": "object",
                  "properties": {
                    "rhythm": {
                      "type": "string",
                      "title": "Monitor rhythm",
                      "enum": [
                        "sinus",
                        "sinus_tachycardia",
                        "sinus_bradycardia",
                        "atrial_fibrillation",
                        "atrial_flutter",
                        "svt",
                        "ventricular_tachycardia",
                        "torsades",
                        "ventricular_fibrillation",
                        "asystole",
                        "av_block_1",
                        "av_block_2_mobitz_1",
                        "av_block_2_mobitz_2",
                        "av_block_3",
                        "junctional",
                        "ventricular_paced"
                      ],
                      "description": "The ECG rhythm displayed on the monitor. Select the rhythm separately from whether the patient has a palpable pulse."
                    },
                    "pulsePresent": {
                      "title": "Pulse present",
                      "type": "boolean",
                      "description": "Whether a palpable pulse is present. Use this to distinguish perfusing and pulseless presentations of the displayed rhythm."
                    },
                    "connections": {
                      "title": "Monitor connections",
                      "additionalProperties": false,
                      "x-usim": {
                        "authoring": {}
                      },
                      "type": "object",
                      "properties": {
                        "ecg": {
                          "title": "ECG",
                          "type": "boolean",
                          "description": "ECG: connected exposes the available measurement; disconnected hides it without changing physiology."
                        },
                        "bloodPressure": {
                          "title": "Blood pressure cuff",
                          "type": "boolean",
                          "description": "Blood pressure cuff: connected exposes the available measurement; disconnected hides it without changing physiology."
                        },
                        "spo2": {
                          "title": "Pulse oximetry",
                          "type": "boolean",
                          "description": "Pulse oximetry: connected exposes the available measurement; disconnected hides it without changing physiology."
                        },
                        "respiration": {
                          "title": "Respiratory monitoring",
                          "type": "boolean",
                          "description": "Respiratory monitoring: connected exposes the available measurement; disconnected hides it without changing physiology."
                        },
                        "temperature": {
                          "title": "Temperature probe",
                          "type": "boolean",
                          "description": "Temperature probe: connected exposes the available measurement; disconnected hides it without changing physiology."
                        },
                        "capnography": {
                          "title": "Capnography",
                          "type": "boolean",
                          "description": "Capnography: connected exposes the available measurement; disconnected hides it without changing physiology."
                        },
                        "arterialPressure": {
                          "title": "Arterial pressure",
                          "type": "boolean",
                          "description": "Arterial pressure: connected exposes the available measurement; disconnected hides it without changing physiology."
                        }
                      },
                      "description": "Connected channels expose available measurements without changing physiology. An explicit empty patient connection map starts disconnected. Omitted event channels inherit their preceding connection. Omitting the patient connection map makes available channels connected."
                    }
                  },
                  "description": "Monitor rhythm, pulse status, and channel connection overrides for this phase. Connection-only overrides preserve the preceding rhythm; omitted channels keep their preceding connection."
                },
                "key": {
                  "title": "Key state",
                  "type": "boolean",
                  "description": "Mark an educationally important phase. This does not award points or require every path to pass through the phase."
                },
                "resourceTrigger": {
                  "title": "Enter when resource results are available",
                  "additionalProperties": false,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "object",
                  "required": [
                    "mode",
                    "objectIds"
                  ],
                  "properties": {
                    "mode": {
                      "type": "string",
                      "title": "Results required",
                      "enum": [
                        "any",
                        "all"
                      ],
                      "description": "All waits for every selected resource result; any enters on the first selected result. Requests alone do not satisfy the rule until their response delays elapse."
                    },
                    "objectIds": {
                      "title": "Selected resources",
                      "minItems": 1,
                      "maxItems": 1000,
                      "uniqueItems": true,
                      "type": "array",
                      "items": {
                        "title": "Resource",
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "\\S",
                        "x-usim": {
                          "reference": {
                            "collection": "resources",
                            "label": "name",
                            "excludeScheduled": false
                          },
                          "authoring": {}
                        },
                        "type": "string",
                        "description": "The identifier of a learner-requestable resource required by this event result trigger."
                      },
                      "description": "Scenario resources whose completed results trigger this event. Select learner-requestable resources without a separate resource destination event."
                    }
                  },
                  "description": "Enter this event once when selected learner-requested resource results become available. Incoming transitions remain alternative paths into the event."
                }
              },
              "description": "One phase of the case, with learner information, tutor guidance, and any changed patient observations."
            },
            "description": "Patient phases in the scenario. Baseline contains starting conditions only. Newly authored milestones advance to distinct non-baseline phases even with unchanged vitals; do not return to baseline. Include exactly one baseline and at least one conclusion; connect phases with interactions."
          },
          "actions": {
            "title": "Interactions",
            "maxItems": 512,
            "x-usim": {
              "authoring": {
                "addLabel": "Add interaction"
              }
            },
            "type": "array",
            "items": {
              "additionalProperties": false,
              "x-usim": {
                "authoring": {}
              },
              "type": "object",
              "required": [
                "id",
                "label",
                "availableInStateIds",
                "outcomes"
              ],
              "properties": {
                "id": {
                  "title": "Identifier",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "x-usim": {
                    "authoring": {
                      "hidden": true
                    }
                  },
                  "type": "string",
                  "description": "A stable identifier used to reference this entry. Keep it unchanged when editing the entry's name or content."
                },
                "label": {
                  "title": "Interaction",
                  "maxLength": 1000,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "string",
                  "description": "Use a short, observable action or timed-event label: 2–6 words, at most 48 characters. Put conditions, clinical detail, and what happens in description, not in the label. Do not append the destination state; from/to already identify it."
                },
                "description": {
                  "title": "Description",
                  "maxLength": 6000,
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea"
                    }
                  },
                  "type": "string",
                  "description": "Longer explanation of the action or timed event, its conditions, and what happens. Plain-language context only; executable behavior remains in the selected trigger, timing, resource references, and destination state. Text does not automatically detect learner behavior. Optional when the label provides sufficient context."
                },
                "patientId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "patients",
                      "label": "name"
                    }
                  },
                  "type": "string",
                  "description": "Required when the action targets a patient; omit for team-only actions."
                },
                "resourceId": {
                  "title": "Linked resource",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "\\S",
                  "x-usim": {
                    "reference": {
                      "collection": "resources",
                      "label": "name",
                      "excludeScheduled": false
                    },
                    "authoring": {}
                  },
                  "type": "string",
                  "description": "Requests a resource when this transition fires. Builder authors resource links on the state under Results."
                },
                "completionCriteria": {
                  "title": "When this action is complete",
                  "maxLength": 6000,
                  "x-usim": {
                    "authoring": {
                      "editor": "textarea"
                    }
                  },
                  "type": "string",
                  "description": "Describe the learner intent or behavior that fulfills this action. The AI interprets chat, conversation context, and simulator interactions against this criterion; equivalent wording is accepted. Distinguish an order from actual administration, and specify essential requirements. If omitted, the action label and description provide the criterion. Only available authored actions can advance the case; ambiguous intent requires clarification."
                },
                "completion": {
                  "title": "Action recognition",
                  "additionalProperties": false,
                  "x-usim": {
                    "authoring": {}
                  },
                  "type": "object",
                  "required": [
                    "mode",
                    "resourceIds"
                  ],
                  "properties": {
                    "mode": {
                      "type": "string",
                      "title": "Resources required",
                      "enum": [
                        "any",
                        "all"
                      ],
                      "description": "Choose whether any or all selected resource requests complete this action."
                    },
                    "resourceIds": {
                      "title": "Recognize resource interactions",
                      "minItems": 1,
                      "maxItems": 1000,
                      "uniqueItems": true,
                      "type": "array",
                      "items": {
                        "title": "Resource",
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "\\S",
                        "x-usim": {
                          "reference": {
                            "collection": "resources",
                            "label": "name",
                            "excludeScheduled": false
                          },
                          "authoring": {}
                        },
                        "type": "string",
                        "description": "A learner-requestable resource used to recognize the action."
                      },
                      "description": "Select the resources that define the learner activity, such as BMP and CBC for Order labs. Only learner-requestable resources qualify. Automatic state releases do not count."
                    }
                  },
                  "description": "Recognize this action from learner-requested resources while its source state is active. Any completes on the first selected request; all waits for all selected requests. Result delays do not delay action completion. Facilitators can confirm the same action directly. Confirming all requests every selected resource; confirming any does not guess which alternative was used. Omitted uses AI interpretation of completionCriteria (or label and description) or explicit confirmation."
                },
                "availableInStateIds": {
                  "title": "Available in states",
                  "minItems": 1,
                  "uniqueItems": true,
                  "type": "array",
                  "items": {
                    "title": "Available in state",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "\\S",
                    "x-usim": {
                      "reference": {
                        "collection": "events.states",
                        "label": "title",
                        "excludeScheduled": false
                      },
                      "authoring": {}
                    },
                    "type": "string",
                    "description": "Identifier of an existing events.states entry. Preserve the referenced entry when editing this field."
                  },
                  "description": "The phase in which this interaction is available or its scheduled timer begins."
                },
                "conditionId": {
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "\\S",
                  "title": "Identifier",
                  "x-usim": {
                    "reference": {
                      "collection": "events.conditions",
                      "label": "id"
                    },
                    "execution": {
                      "capability": "conditional-execution"
                    }
                  },
                  "type": "string",
                  "description": "Prerequisite evaluated at start and again at completion."
                },
                "durationSeconds": {
                  "minimum": 0,
                  "type": "number",
                  "default": 0,
                  "description": "Simulated time between start and completion. Availability is evaluated at start."
                },
                "repeat": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "cooldownSeconds"
                  ],
                  "properties": {
                    "maxUses": {
                      "minimum": 1,
                      "type": "integer",
                      "description": "Numeric max uses, at least 1. Do not infer an omitted value."
                    },
                    "cooldownSeconds": {
                      "minimum": 0,
                      "type": "number",
                      "description": "Numeric cooldown seconds, at least 0. Do not infer an omitted value."
                    }
                  },
                  "description": "Completed uses count against maxUses; cooldown starts at completion. No implicit unlimited repeats."
                },
                "cancellable": {
                  "default": false,
                  "type": "boolean",
                  "description": "Whether an operator can cancel before completion; cancellation does not count as a completed use."
                },
                "onPhaseExit": {
                  "anyOf": [
                    {
                      "const": "cancel",
                      "type": "string",
                      "description": "Policy for unfinished work when another event changes phase. Conclusion always cancels."
                    },
                    {
                      "const": "continue",
                      "type": "string",
                      "description": "Policy for unfinished work when another event changes phase. Conclusion always cancels."
                    }
                  ],
                  "default": "cancel",
                  "description": "Policy for unfinished work when another event changes phase. Conclusion always cancels."
                },
                "outcomes": {
                  "title": "Ordered outcomes",
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "additionalProperties": false,
                    "title": "Outcome",
                    "type": "object",
                    "required": [
                      "id",
                      "effectIds"
                    ],
                    "properties": {
                      "id": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "authoring": {
                            "hidden": true
                          }
                        },
                        "type": "string",
                        "description": "Stable identifier for this entry. Keep it unchanged when editing its content."
                      },
                      "whenConditionId": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.conditions",
                            "label": "id"
                          },
                          "execution": {
                            "capability": "conditional-execution"
                          }
                        },
                        "type": "string",
                        "description": "Identifier of an existing events.conditions entry. Preserve the referenced entry when editing this field."
                      },
                      "effectIds": {
                        "type": "array",
                        "items": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.effects",
                              "label": "id"
                            }
                          },
                          "type": "string",
                          "description": "Identifier of an existing events.effects entry. Preserve the referenced entry when editing this field."
                        },
                        "description": "Entries for effect ids. An empty list means no entries have been authored."
                      },
                      "nextStateId": {
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "\\S",
                        "title": "Identifier",
                        "x-usim": {
                          "reference": {
                            "collection": "events.states",
                            "label": "title"
                          }
                        },
                        "type": "string",
                        "description": "Identifier of an existing events.states entry. Preserve the referenced entry when editing this field."
                      }
                    },
                    "description": "Choose first matching outcome at completion. Exactly one final unconditional fallback is required. Omit nextStateId to stay in the phase."
                  },
                  "description": "The phase entered when this interaction occurs. Set scenario-specific vitals, rhythm, and patient information here; reusable treatment responses stay with resources. Destination vital signs override overlapping transition effects."
                },
                "kind": {
                  "type": "string",
                  "title": "Action kind",
                  "enum": [
                    "generic",
                    "medication-order",
                    "medication-administration"
                  ],
                  "description": "Discriminator for conditional action payloads. Specialized fields are prohibited unless kind selects the corresponding branch."
                },
                "medicationOrder": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "resourceId",
                    "patientId",
                    "dose",
                    "route"
                  ],
                  "properties": {
                    "resourceId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "resources",
                          "label": "name"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing resources entry. Preserve the referenced entry when editing this field."
                    },
                    "patientId": {
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "\\S",
                      "title": "Identifier",
                      "x-usim": {
                        "reference": {
                          "collection": "patients",
                          "label": "name"
                        }
                      },
                      "type": "string",
                      "description": "Identifier of an existing patients entry. Preserve the referenced entry when editing this field."
                    },
                    "dose": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "value",
                        "unit"
                      ],
                      "properties": {
                        "value": {
                          "exclusiveMinimum": 0,
                          "type": "number",
                          "description": "Numeric value. Do not infer an omitted value."
                        },
                        "unit": {
                          "type": "string",
                          "description": "The unit for this entry. Omit optional information that has not been specified."
                        }
                      },
                      "description": "Structured numerator details. Omitted optional values remain unspecified."
                    },
                    "route": {
                      "type": "string",
                      "description": "The route for this entry. Omit optional information that has not been specified."
                    },
                    "rate": {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "numerator",
                        "denominator"
                      ],
                      "properties": {
                        "numerator": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "value",
                            "unit"
                          ],
                          "properties": {
                            "value": {
                              "exclusiveMinimum": 0,
                              "type": "number",
                              "description": "Numeric value. Do not infer an omitted value."
                            },
                            "unit": {
                              "type": "string",
                              "description": "The unit for this entry. Omit optional information that has not been specified."
                            }
                          },
                          "description": "Structured numerator details. Omitted optional values remain unspecified."
                        },
                        "denominator": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "value",
                            "unit"
                          ],
                          "properties": {
                            "value": {
                              "exclusiveMinimum": 0,
                              "type": "number",
                              "description": "Numeric value. Do not infer an omitted value."
                            },
                            "unit": {
                              "type": "string",
                              "description": "The unit for this entry. Omit optional information that has not been specified."
                            }
                          },
                          "description": "Structured numerator details. Omitted optional values remain unspecified."
                        }
                      },
                      "description": "Structured rate details. Omitted optional values remain unspecified."
                    }
                  },
                  "description": "Quantity is { value: positive number, unit: string }. Units are explicit; route must belong to allowedRoutes.",
                  "x-usim": {
                    "execution": {
                      "capability": "medication-orders"
                    }
                  }
                },
                "administration": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "orderActionId",
                        "mode"
                      ],
                      "properties": {
                        "orderActionId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.actions",
                              "label": "label"
                            }
                          },
                          "type": "string",
                          "description": "Identifier of an existing events.actions entry. Preserve the referenced entry when editing this field."
                        },
                        "mode": {
                          "anyOf": [
                            {
                              "const": "bolus",
                              "type": "string",
                              "description": "The required literal value \"bolus\"."
                            },
                            {
                              "const": "infusion-stop",
                              "type": "string",
                              "description": "The required literal value \"infusion-stop\"."
                            }
                          ],
                          "description": "Select one of the declared mode alternatives; use the fields belonging to that alternative."
                        }
                      },
                      "description": "Administration is a separate observable action referencing an order, not an automatic consequence of writing it."
                    },
                    {
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "orderActionId",
                        "mode",
                        "rate"
                      ],
                      "properties": {
                        "orderActionId": {
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "\\S",
                          "title": "Identifier",
                          "x-usim": {
                            "reference": {
                              "collection": "events.actions",
                              "label": "label"
                            }
                          },
                          "type": "string",
                          "description": "Identifier of an existing events.actions entry. Preserve the referenced entry when editing this field."
                        },
                        "mode": {
                          "anyOf": [
                            {
                              "const": "infusion-start",
                              "type": "string",
                              "description": "The required literal value \"infusion-start\"."
                            },
                            {
                              "const": "infusion-change",
                              "type": "string",
                              "description": "The required literal value \"infusion-change\"."
                            }
                          ],
                          "description": "Select one of the declared mode alternatives; use the fields belonging to that alternative."
                        },
                        "rate": {
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "numerator",
                            "denominator"
                          ],
                          "properties": {
                            "numerator": {
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "value",
                                "unit"
                              ],
                              "properties": {
                                "value": {
                                  "exclusiveMinimum": 0,
                                  "type": "number",
                                  "description": "Numeric value. Do not infer an omitted value."
                                },
                                "unit": {
                                  "type": "string",
                                  "description": "The unit for this entry. Omit optional information that has not been specified."
                                }
                              },
                              "description": "Structured numerator details. Omitted optional values remain unspecified."
                            },
                            "denominator": {
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "value",
                                "unit"
                              ],
                              "properties": {
                                "value": {
                                  "exclusiveMinimum": 0,
                                  "type": "number",
                                  "description": "Numeric value. Do not infer an omitted value."
                                },
                                "unit": {
                                  "type": "string",
                                  "description": "The unit for this entry. Omit optional information that has not been specified."
                                }
                              },
                              "description": "Structured numerator details. Omitted optional values remain unspecified."
                            }
                          },
                          "description": "Explicit amount per time or volume per time. No implicit unit conversion or pump calculation."
                        }
                      },
                      "description": "Administration is a separate observable action referencing an order, not an automatic consequence of writing it."
                    }
                  ],
                  "description": "Administration is a separate observable action referencing an order, not an automatic consequence of writing it.",
                  "x-usim": {
                    "execution": {
                      "capability": "medication-administration"
                    }
                  }
                }
              },
              "description": "One transition from a source phase to a destination, including its explicit learner choice or timer. Author resource links and patient changes on the destination state."
            },
            "description": "Connections between phases, activated by a learner action or a timer measured from entry into the source phase."
          }
        },
        "description": "The patient phases, transitions, and requestable resources that define how the scenario progresses."
      }
    },
    "description": "Structured .usim scenario details. Omitted optional values remain unspecified."
  }
}
