Skip to content

Instantly share code, notes, and snippets.

@EscApp2
Created July 8, 2026 12:03
Show Gist options
  • Select an option

  • Save EscApp2/7e41e5b261290a6d4cbdc84abd30ad6b to your computer and use it in GitHub Desktop.

Select an option

Save EscApp2/7e41e5b261290a6d4cbdc84abd30ad6b to your computer and use it in GitHub Desktop.
Мед специальности
$specialtyToSchema = [
'стоматолог' => 'https://schema.org/Dentistry',
'имплантолог' => 'https://schema.org/Dentistry',
'ортодонт' => 'https://schema.org/Dentistry',
'гигиенист' => 'https://schema.org/Dentistry',
'пародонтолог' => 'https://schema.org/Dentistry',
'эндодонт' => 'https://schema.org/Dentistry',
'травматолог' => 'https://schema.org/Musculoskeletal',
'ортопед' => 'https://schema.org/Musculoskeletal',
'хирург' => 'https://schema.org/Surgical',
'кардиолог' => 'https://schema.org/Cardiovascular',
'дерматолог' => 'https://schema.org/Dermatology',
'педиатр' => 'https://schema.org/Pediatric',
'невролог' => 'https://schema.org/Neurologic',
'терапевт' => 'https://schema.org/PrimaryCare',
'офтальмолог' => 'https://schema.org/Optometric',
'гинеколог' => 'https://schema.org/Gynecologic',
'уролог' => 'https://schema.org/Urologic',
'гастроэнтеролог' => 'https://schema.org/Gastroenterologic',
'эндокринолог' => 'https://schema.org/Endocrine',
'пульмонолог' => 'https://schema.org/Pulmonary',
'онколог' => 'https://schema.org/Oncologic',
'психиатр' => 'https://schema.org/Psychiatric',
'ревматолог' => 'https://schema.org/Rheumatologic',
'анестезиолог' => 'https://schema.org/Anesthesia',
'инфекционист' => 'https://schema.org/Infectious',
'патолог' => 'https://schema.org/Pathology',
'лор' => 'https://schema.org/Otolaryngologic',
'отоларинголог' => 'https://schema.org/Otolaryngologic',
'диетолог' => 'https://schema.org/DietNutrition',
'гематолог' => 'https://schema.org/Hematologic',
'генетик' => 'https://schema.org/Genetic',
'гериатр' => 'https://schema.org/Geriatric',
'физиотерапевт' => 'https://schema.org/Physiotherapy',
'логопед' => 'https://schema.org/SpeechPathology',
'пластическ' => 'https://schema.org/PlasticSurgery',
'нефролог' => 'https://schema.org/Renal',
'радиолог' => 'https://schema.org/Radiography',
'реаниматолог' => 'https://schema.org/Emergency',
'акушер' => 'https://schema.org/Obstetric',
];
$medicalSpecialtyUrl = 'https://schema.org/Dentistry';
$doljLower = mb_strtolower($postValue, 'UTF-8');
foreach ($specialtyToSchema as $key => $url) {
if (mb_stripos($doljLower, $key) !== false) {
$medicalSpecialtyUrl = $url;
break;
}
}
$arLdPhysician['medicalSpecialty'] = $medicalSpecialtyUrl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment