From 8c44cc84a23fddf7a5301e2be17c16e5cfd06cb6 Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Mon, 16 Feb 2026 10:16:07 +0700 Subject: [PATCH] Update files --- app/Controllers/AreaGeoController.php | 2 +- public/api-docs.yaml | 88 ++++++++++++++------------- 2 files changed, 47 insertions(+), 43 deletions(-) diff --git a/app/Controllers/AreaGeoController.php b/app/Controllers/AreaGeoController.php index 6fac970..009311c 100644 --- a/app/Controllers/AreaGeoController.php +++ b/app/Controllers/AreaGeoController.php @@ -40,7 +40,7 @@ class AreaGeoController extends BaseController { } public function getCities() { - $filter = [ 'Parent' => $this->request->getVar('province_id') ?? null ]; + $filter = [ 'Parent' => $this->request->getVar('ProvinceID') ?? null ]; $rows = $this->model->getCities($filter); $transformed = array_map(function($row) { return ['value' => $row['AreaGeoID'], 'label' => $row['AreaName']]; diff --git a/public/api-docs.yaml b/public/api-docs.yaml index 890ad8e..e8e33df 100644 --- a/public/api-docs.yaml +++ b/public/api-docs.yaml @@ -738,8 +738,9 @@ components: Flag: type: string examples: - $1 Unit: mg/dL - refnum: + $1: + Unit: mg/dL + refnum: - RefNumID: 1 NumRefType: NMRC NumRefTypeLabel: Numeric @@ -782,8 +783,9 @@ components: AgeEnd: 120 Flag: L Interpretation: Critical Low - $1 Unit: null - reftxt: + $2: + Unit: null + reftxt: - RefTxtID: 1 TxtRefType: TEXT TxtRefTypeLabel: Text @@ -823,43 +825,45 @@ components: DisciplineID: 1 DepartmentID: 1 Unit: mg/dL - $1 Unit: null - Formula: "BUN / Creatinine" - refnum: - - RefNumID: 5 - NumRefType: NMRC - NumRefTypeLabel: Numeric - RangeType: REF - RangeTypeLabel: Reference Range - Sex: '1' - SexLabel: Female - LowSign: GE - LowSignLabel: ">=" - HighSign: LE - HighSignLabel: "<=" - Low: 10 - High: 20 - AgeStart: 18 - AgeEnd: 120 - Flag: N - Interpretation: Normal - $1 Unit: null - Formula: "BUN / Creatinine" - refnum: - - RefNumID: 6 - NumRefType: THOLD - NumRefTypeLabel: Threshold - RangeType: PANIC - RangeTypeLabel: Panic Range - Sex: '1' - SexLabel: Female - LowSign: GT - LowSignLabel: ">" - Low: 20 - AgeStart: 18 - AgeEnd: 120 - Flag: H - Interpretation: Elevated - possible prerenal cause + $3: + Unit: null + Formula: "BUN / Creatinine" + refnum: + - RefNumID: 5 + NumRefType: NMRC + NumRefTypeLabel: Numeric + RangeType: REF + RangeTypeLabel: Reference Range + Sex: '1' + SexLabel: Female + LowSign: GE + LowSignLabel: ">=" + HighSign: LE + HighSignLabel: "<=" + Low: 10 + High: 20 + AgeStart: 18 + AgeEnd: 120 + Flag: N + Interpretation: Normal + $4: + Unit: null + Formula: "BUN / Creatinine" + refnum: + - RefNumID: 6 + NumRefType: THOLD + NumRefTypeLabel: Threshold + RangeType: PANIC + RangeTypeLabel: Panic Range + Sex: '1' + SexLabel: Female + LowSign: GT + LowSignLabel: ">" + Low: 20 + AgeStart: 18 + AgeEnd: 120 + Flag: H + Interpretation: Elevated - possible prerenal cause GROUP: summary: Panel/Profile - no reference range allowed @@ -4383,7 +4387,7 @@ paths: security: - bearerAuth: [] parameters: - - name: province_id + - name: ProvinceID in: query schema: type: integer