export type Organizations = {
  id: number;
  code: string;
  name: string;
  address: string;
  type: string;
  lat: string;
  lng: string;
  phone: string;
  timezone: string;
  active: boolean | number;
};

export type OrganizationType = Organizations;

export type PractitionerRole = {
  meta: string;
  practitioner_id: number;
  organization_id: number;
  identifier_id: number;
  speciality_id: number;
  period_start: string;
  period_end: string;
  active: boolean | number;
};

export type Specialities = {
  id: number;
  code: string;
  name: string;
};

export type Practitioner = {
  id: number;
  name: string;
  name_prefix: string;
  name_suffix: string;
  address: string;
  birth_date: string;
  birth_place: string;
  phone: string;
  email: string;
  gender: string;
  description: string;
  avatar_url: string;
  doctor_id: string;
  education: string;
  experience: string;
  award: string;
  active: boolean | number;
  organizations?: Organizations[];
  specialities?: Specialities[];
};

export type PractitionerType = Practitioner;