diff --git a/.env.example b/.env.example
index f63ede8..47b4cbc 100644
--- a/.env.example
+++ b/.env.example
@@ -74,4 +74,7 @@ VITE_APP_TAG="${APP_TAG}"
VITE_SENTRY_DNS=
+SYNCIO_BASE_URL=
SYNCIO_SECRET=
+SYNCIO_TOKEN=
+FIAS_URL=
\ No newline at end of file
diff --git a/app/Http/Controllers/Api/FiasController.php b/app/Http/Controllers/Api/FiasController.php
new file mode 100644
index 0000000..d8df7cc
--- /dev/null
+++ b/app/Http/Controllers/Api/FiasController.php
@@ -0,0 +1,29 @@
+input('search');
+
+ $response = Http::post(config('fias.url') . '/find', [
+ 'search' => $search,
+ 'filter_by' => [
+ 'level' => '[5,6]',
+ 'isactive' => 1
+ ],
+ 'sort_by' => [
+ 'level' => 'asc'
+ ]
+ ]);
+
+ return $response->json();
+ }
+}
\ No newline at end of file
diff --git a/config/fias.php b/config/fias.php
new file mode 100644
index 0000000..3a2cd7b
--- /dev/null
+++ b/config/fias.php
@@ -0,0 +1,5 @@
+ env('FIAS_URL'),
+];
\ No newline at end of file
diff --git a/resources/js/Components/AppSearchAddress.vue b/resources/js/Components/AppSearchAddress.vue
new file mode 100644
index 0000000..4a39aa5
--- /dev/null
+++ b/resources/js/Components/AppSearchAddress.vue
@@ -0,0 +1,41 @@
+
+
+
+ updateValue(v)" filterable placeholder="" :options="options"
+ label-field="full_name" value-field="full_name" :loading="loading" clearable remote
+ :clear-filter-after-select="false" @search="handleSearch" />
+
\ No newline at end of file
diff --git a/resources/js/Pages/Nurse/Components/AddMedicalHistoryModal.vue b/resources/js/Pages/Nurse/Components/AddMedicalHistoryModal.vue
index ce3def0..7399983 100644
--- a/resources/js/Pages/Nurse/Components/AddMedicalHistoryModal.vue
+++ b/resources/js/Pages/Nurse/Components/AddMedicalHistoryModal.vue
@@ -1,11 +1,12 @@
@@ -182,12 +201,27 @@ watch(() => props.historyId, async (newHistoryId, historyId) => {
-
+
-
+
+
+
+
+
+
+
+
+ Неизвестно
+
+
+
+
+
+
+
diff --git a/routes/api.php b/routes/api.php
index 12d7a8d..c2ed83c 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -119,3 +119,6 @@ Route::middleware(['auth:sanctum'])->group(function () {
Route::prefix('syncio')->group(function () {
Route::post('webhook', \App\Http\Controllers\Api\Syncio\SyncioWebhookController::class);
});
+Route::prefix('fias')->group(function () {
+ Route::post('/', [\App\Http\Controllers\Api\FiasController::class, 'index']);
+});