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 @@ + + + \ 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 @@