{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ellkay/json-schema/ellkay-lkcloud-connect-swagger-swagger-requests-update-patient-update-advance-directive-swagger-request-schema.json",
  "title": "LKCloudConnect.Swagger.SwaggerRequests.UpdatePatient.UpdateAdvanceDirectiveSwaggerRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ellkay-updatepatient-api-openapi.yml#/components/schemas/LKCloudConnect.Swagger.SwaggerRequests.UpdatePatient.UpdateAdvanceDirectiveSwaggerRequest",
  "type": "object",
  "properties": {
    "request": {
      "allOf": [
        {
          "$ref": "#/$defs/LKCloudConnect.Contracts.UpdatePatient.UpdateAdvanceDirectiveRequest"
        }
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "LKCloudConnect.Contracts.UpdatePatient.UpdateAdvanceDirectiveRequest": {
      "required": [
        "patientId"
      ],
      "type": "object",
      "properties": {
        "patientId": {
          "minLength": 1,
          "type": "string",
          "description": "PatientId id"
        },
        "id": {
          "type": "string",
          "description": "Unique ID for the Advance Directive record"
        },
        "code": {
          "type": "string",
          "description": "Code representing the directive type"
        },
        "displayName": {
          "type": "string",
          "description": "Human-readable name or label for the directive"
        },
        "effectiveDate": {
          "type": "string",
          "description": "Date when the directive was entered or became effective. (DateTimeOffset) e.g. 2019-01-01T00:00:00.000+00:00",
          "format": "date-time"
        },
        "expirationDate": {
          "type": "string",
          "description": "Date when the directive expires (if applicable). (DateTimeOffset) e.g. 2019-01-01T00:00:00.000+00:00",
          "format": "date-time"
        },
        "custom": {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "System-specific data for special cases"
        }
      },
      "additionalProperties": false
    }
  }
}