Project

General

Profile

Actions

Activity #1359

closed

Feature #138: Development and Unit Testing

Version #1285: Version 1.5

Module #1291: Login

Change API for retrieving hospital information

Added by Thara S Pillai almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Development-WebAPI
Start date:
10/16/2023
Due date:
10/16/2023
% Done:

100%

Estimated time:
Planned Due Date:

Description

Change API for retrieving hospital information as per the following

  • Get UserID input
  • use the following tables to fetch all institutions for the ASHA Blocks assigned to the user
  • ph_ashablock_assign
  • ph_ashablocks
  • ph_ward_mapping
  • mas_hospital

If no ASHA Block is assigned to the user,

{"message": "NO_ASHABLOCKS"
"hospitals": []
}

If ASHA Blocks are assigned to the user (the ASHA Blocks may be mapped with multiple institutions) {"message": "SUCCESS"
"hospitals": [{"hospitalid": "", "hospitalname": "", "hospitaltype": "", ,,,,}, {"hospitalid": "", "hospitalname": "", "hospitaltype": "", ,,,,}]
}

Actions #1

Updated by Thara S Pillai almost 3 years ago

  • Priority changed from Normal to Urgent
Actions #2

Updated by Shameera S L almost 3 years ago

  • % Done changed from 0 to 100

completed

Actions #3

Updated by Thara S Pillai almost 3 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF