$schema: https://json-schema.org/draft/2020-12/schema
$id: OrgHierarchyRelationship.yaml
type: object
properties:
  org:
    $ref: OrgRef.yaml
    description: The other organization.
  kind:
    type: object
    properties:
      value:
        $ref: OrgHierarchyKindOptions.yaml
        description: The selected value, from a predefined set of options
      customValue:
        type: string
        description: A custom value, used when the selected value is the `custom` option
      description:
        type: string
        description: A human-readable description of the value
    required:
      - value
    description: The relationship's subtype within the category its list names.
  startDate:
    $ref: isoDate.yaml
    description: 'When the relationship started, in ISO 8601 format: YYYY-MM-DD'
  endDate:
    $ref: isoDate.yaml
    description: 'When the relationship ended, in ISO 8601 format: YYYY-MM-DD'
  status:
    $ref: OrgRelationshipStatus.yaml
    description: Whether the relationship is in effect, as stated by the provider.
required:
  - org
examples:
  - org:
      id: 01912a8b-7c3d-7892-abcd-ef1234567892
      name: Riverside Community Foundation
      identifiers:
        org:us:ein:
          registry:
            code: org:us:ein
          id: '472345678'
    kind:
      value: fiscalSponsor
    startDate: '2024-07-01'
    status: active
description: A parent or child relationship.
