{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovok/json-schema/ovok-post-fhir-r4-goal-request-schema.json",
  "title": "PostFhirR4GoalRequest",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/ovok-openapi-generated.yml#/components/schemas/PostFhirR4GoalRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Logical id of this artifact"
    },
    "meta": {
      "type": "string",
      "description": "Metadata about the resource"
    },
    "implicitRules": {
      "type": "string",
      "description": "A set of rules under which this content was created"
    },
    "language": {
      "type": "string",
      "description": "Language of the resource content"
    },
    "text": {
      "type": "string",
      "description": "Text summary of the resource, for human interpretation"
    },
    "contained": {
      "type": "string",
      "description": "Contained, inline Resources"
    },
    "extension": {
      "type": "string",
      "description": "Additional content defined by implementations"
    },
    "modifierExtension": {
      "type": "string",
      "description": "Extensions that cannot be ignored"
    },
    "identifier": {
      "type": "string",
      "description": "External Ids for this goal"
    },
    "lifecycleStatus": {
      "type": "string",
      "description": "proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected"
    },
    "achievementStatus": {
      "type": "string",
      "description": "in-progress | improving | worsening | no-change | achieved | sustaining | not-achieved | no-progress | not-attainable"
    },
    "category": {
      "type": "string",
      "description": "E.g. Treatment, dietary, behavioral, etc."
    },
    "priority": {
      "type": "string",
      "description": "high-priority | medium-priority | low-priority"
    },
    "description": {
      "type": "string",
      "description": "Code or text describing goal"
    },
    "subject": {
      "type": "string",
      "description": "Who this goal is intended for"
    },
    "start[x]": {
      "type": "string",
      "description": "When goal pursuit begins"
    },
    "target": {
      "type": "string",
      "description": "Target outcome for the goal"
    },
    "statusDate": {
      "type": "string",
      "description": "When goal status took effect"
    },
    "statusReason": {
      "type": "string",
      "description": "Reason for current status expressed"
    },
    "expressedBy": {
      "type": "string",
      "description": "Who's responsible for creating Goal?"
    },
    "addresses": {
      "type": "string",
      "description": "Issues addressed by this goal"
    },
    "note": {
      "type": "string",
      "description": "Comments about the goal"
    },
    "outcomeCode": {
      "type": "string",
      "description": "What result was achieved regarding the goal?"
    },
    "outcomeReference": {
      "type": "string",
      "description": "Observation that resulted from goal"
    }
  },
  "required": [
    "lifecycleStatus",
    "description",
    "subject"
  ]
}