Login   Register  
PHP Classes

File: examples/case-studies/health/medical/medical_data_management-GR.md

Recommend this page to a friend!
  Classes of ASCOOS CMS   Ascoos OS   examples/case-studies/health/medical/medical_data_management-GR.md   Download  
File: examples/case-studies/health/medical/medical_data_management-GR.md
Role: Auxiliary data
Content typex: text/markdown
Description: Auxiliary data
Class: Ascoos OS
A PHP Web 5.0 Kernel for decentralized web and IoT
Author: By
Last change: Update of examples/case-studies/health/medical/medical_data_management-GR.md
Date: 1 month ago
Size: 5,205 bytes
 

Contents

Class file image Download

?????????? ???????? ????????? ??? ????????????

???? ? ?????? ?????????? ??????????? ??? ?? Ascoos OS ?????? ?? ?????????????? ??? ??? ?????? ??? ???????????????? ?????????? ???????? ?????????. ?? ?????????? ?????????? ???????? ???????, ????????????? ???????? ??????? (?.?. ?????????????), ?????????? ???????? ??? ?????????? ?? ???????????? ?? ??????????????? ??????.

??????

?? ?????????? ????????? ??? ???????? ??????? ??? Ascoos OS: - TImagesHandler: ??????????? ??????? (?????? ????????, ????????????). - TDatesHandler: ?????????? ??????????? ??? ??????????????? ????????????. - TXValidationHandler: ????????? ????????? ??????? ?? ???????. - TFilesHandler: ?????????? ??? ????????????? ??????? ?? quota. - TEventHandler: ????????? ????????? ??? ?????? ??? ?????????.

????

? ?????? ??????????? ?? ??? ?????? PHP: - medical_data_management.php: ???????????? ?????????, ??????????? ???????, ?????????? ??? ?????????.

??????????????

  1. ??????????? ??? Ascoos OS (????? repository). ?? ?????????????? ?? Ascoos Web Extended Studio 26, ????? ??? ????????????????.
  2. ?????????? ???????? ????? ???????? `$AOS_LOGS_PATH` ??? `$AOS_TMP_DATA_PATH/medical/`.
  3. ???????????????? ?????? ??????? (?.?. `xray_input.jpg`, `watermark.png`) ??? ?????? `medical/`.
  4. ? ????????????? `Murecho-Regular.ttf` ????? ????????? ??? `$AOS_FONTS_PATH/Murecho/`.
  5. ?? ?????????? `$conf`, `$AOS_TMP_DATA_PATH`, `$AOS_LOGS_PATH` ??????????? ???????? ??? ?? Ascoos OS.
  6. ? ?????????? phpBCL8 ????? ???????????????? ??? ?????????? ????????.

??????????

  1. ??????? ??? ?? ??????? ??????? ???????? ???? ?????? `medical/`.
  2. ????????? ?? script ???? web server: https://localhost/aos/examples/case-studies/health/medical/medical_data_management.php 

?????????? ??????

// ????????? ????????? ??????? $rules = [ 'patient_id' => 'required|string|min:5|max:10', 'name' => 'required|string|max:100', 'appointment_date' => 'required|date', 'xray_image' => 'required|string|file_exists' ]; if ($validator->validate($patientData, $rules)) { $patientData['follow_up_date'] = $datesHandler->addDays($patientData['appointment_date'], 7, 'Y-m-d'); $eventHandler->trigger('medical', 'validation.success', $patientData); } // ??????????? ??????? ????????????? $imageData = $imagesHandler->loadFromFile($imagePath); $processedImage = $imagesHandler->resize($imageData, 800, 600); $processedImage = $imagesHandler->addWatermark($processedImage, $watermarkData, 10, 10, 0.5); $imagesHandler->saveToFile($processedImage, $outputImagePath); 

??????????? ??????????

?? script ?????????? ??? ??????????????? ?????? JSON ?? ?? ???????? ??? ?????? ??? ??? ????????????? ??????. ?????????? ??????:

{ "patient_id": "P12345", "name": "John Doe", "appointment_date": "2025-08-15", "follow_up_date": "2025-08-22", "processed_image": "/medical/xray_processed_20250828_175400.jpg", "processed_at": "2025-08-28 17:54:00" } 

?????

??????????

?????? ?? ???????????? ?? ???? ?? ?????? ??????????; ????? fork ?? ??????????, ???????????? ? ????????? ???? ??????????? ??? medical_data_management.php, ??? ????????? pull request. ????? ?? CONTRIBUTING.md ??? ???????.

????? ??????

???? ? ?????? ?????????? ?????????? ??? ??? Ascoos General License (AGL). ????? ?? LICENSE.