{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/august-health/json-schema/august-health-com-august-api-integrations-models-admission-agreements-v1-admission-agreement-schema.json",
  "title": "com.august.api.integrations.models.admission_agreements.v1.AdmissionAgreement",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/august-health-admission-agreements-v1-api-openapi.yml#/components/schemas/com.august.api.integrations.models.admission_agreements.v1.AdmissionAgreement",
  "properties": {
    "completedAt": {
      "format": "date-time",
      "type": "string"
    },
    "effectiveCompletionDate": {
      "format": "date",
      "type": "string"
    },
    "fields": {
      "items": {
        "$ref": "#/$defs/com.august.api.integrations.models.admission_agreements.v1.AdmissionAgreementField"
      },
      "type": "array"
    },
    "id": {
      "type": "string"
    },
    "personId": {
      "type": "string"
    },
    "signers": {
      "items": {
        "$ref": "#/$defs/com.august.api.integrations.models.admission_agreements.v1.AdmissionAgreementSigner"
      },
      "type": "array"
    },
    "status": {
      "$ref": "#/$defs/com.august.protos.snapshot.SnapshotStatus"
    }
  },
  "required": [
    "id",
    "personId",
    "status",
    "completedAt",
    "signers",
    "fields"
  ],
  "$defs": {
    "com.august.api.integrations.models.admission_agreements.v1.AdmissionAgreementField": {
      "properties": {
        "key": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/com.august.api.integrations.models.admission_agreements.v1.AdmissionAgreementFieldType"
        },
        "value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "boolean"
            },
            {
              "format": "int64",
              "type": "integer"
            }
          ]
        }
      },
      "required": [
        "key",
        "value",
        "type"
      ]
    },
    "com.august.api.integrations.models.admission_agreements.v1.AdmissionAgreementFieldType": {
      "enum": [
        "Boolean",
        "Currency",
        "Date",
        "Encrypted",
        "Number",
        "String"
      ],
      "type": "string"
    },
    "com.august.api.integrations.models.admission_agreements.v1.AdmissionAgreementSigner": {
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "$ref": "#/$defs/com.august.api.integrations.models.common_metadata.v1.HumanName"
        },
        "role": {
          "$ref": "#/$defs/com.august.protos.snapshot.SignerRole"
        },
        "signedAt": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "role",
        "signedAt"
      ]
    },
    "com.august.api.integrations.models.common_metadata.v1.HumanName": {
      "properties": {
        "family": {
          "type": "string"
        },
        "given": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "maiden": {
          "type": "string"
        },
        "preferredName": {
          "type": "string"
        },
        "prefix": {
          "type": "string"
        },
        "pronouns": {
          "$ref": "#/$defs/com.august.protos.human_name.HumanName.Pronouns"
        },
        "suffix": {
          "type": "string"
        }
      },
      "required": [
        "given"
      ]
    },
    "com.august.protos.human_name.HumanName.Pronouns": {
      "enum": [
        "PRONOUNS_SHE_HER",
        "PRONOUNS_HE_HIM",
        "PRONOUNS_THEY_THEM",
        "PRONOUNS_SHE_THEY",
        "PRONOUNS_HE_THEY",
        "PRONOUNS_ZE_HIR"
      ],
      "type": "string"
    },
    "com.august.protos.snapshot.SignerRole": {
      "enum": [
        "SIGNER_ROLE_ADMIN",
        "SIGNER_ROLE_RESPONSIBLE_PARTY",
        "SIGNER_ROLE_RESIDENT",
        "SIGNER_ROLE_EXTERNAL"
      ],
      "type": "string"
    },
    "com.august.protos.snapshot.SnapshotStatus": {
      "enum": [
        "SNAPSHOT_STATUS_DRAFT",
        "SNAPSHOT_STATUS_COMPLETE",
        "SNAPSHOT_STATUS_ARCHIVED",
        "SNAPSHOT_STATUS_DISCARDED"
      ],
      "type": "string"
    }
  }
}