Closed Stella-Archer closed 1 year ago
Meeting with Mike needed. Caleb/Stella. Stella will setup.
waiting for API to Fill data
@mikeshi-bcgov We need one API endpoint. which returns clinics/registrations filter by WorksiteID. Once schema fix please prepare this API endpoint on priority. Please see the ticket details for required keys in response for each clinics/registrations. (fields are Worksite Contact, Ministry, Type Of Clinic/Registration, Number of Employees)
@bhumin-fw Sure Bhumin, I will bring this to the team in this afternoon's meeting, to see how to present these fields out of the new schema
Is #1000 blocking this?
@Stella-Archer yes #1000 blocking this ticket.
@mikeshi-bcgov https://analytics-testapi.psa.gov.bc.ca/apiserver/api.rsc/ods_datamart_influenza_worksites/ https://analytics-testapi.psa.gov.bc.ca/apiserver/api.rsc/ods_datamart_influenza_worksite_ministries/ Above API endpoints only give worksites list or mapping.
We need below API endpoints:
Worksite list filter by provided ministry_id. (When we pass ministry_id in API endpoint it will only list worksites link to that ministry. Right now I have to fetch worksite ids and then have to trigger worksites API)
Registrations based on provided worksiteID.
FYI: This is priority along side add/update registration API.
@bhumin-fw Endpoint for the first requested is now available, which is based on a view so you can only do GET:
@mikeshi-bcgov It did revert blank, do I need to pass filter here? or you are cleaning and reloading tables? {'@odata.context': 'https://analytics-testapi.psa.gov.bc.ca/apiserver/api.rsc/$metadata#ods_datamart_influenza_vw_worksites_ministries_joined', 'value': []}
Mike: the data was reloaded.
@mikeshi-bcgov to add two entries for registration table.
@EduardoRamirezBC Two dummy entries have been added to registrations table
@bhumin-fw
API EndPoint for the item requested #2 ( 2. Registrations based on provided worksiteID.) is available now as well, please test
I'll test the endpoint today and update the ticket.
Dummy data in for and Iman to test the endpoint today
@mikeshi-bcgov
The https://analytics-testapi.psa.gov.bc.ca/apiserver/api.rsc/ods_datamart_influenza_vw_registrations_worksites_joined
works great and I can see the registration items including the ones I sent last night. filter by application_id
also works.
Thanks!
Iman to work with Caleb and Mike to make sure in form data is in correct type.
@bhumin-fw, @EduardoRamirezBC - can we connect re all endpoint tickets today for Cold & Flu. Thanks! Chris
@chriscaldwell-psa do you want to re-connect for this ticket or endpoint related ticket? It is ready to test on DEV. Note: If you make change in form above this component it will stop as need to find component using absolute path for additional property access.
@bhumin-fw - Hi Bhumin, yes, let me know when we can connect today. Thanks C
@chriscaldwell-psa @bhumin-fw I'm looking for this in both DEV and TEST and don't see 'clinics at this worksite' populating is there a particular ministry/worksite combo I need to query to see the test data?
@Stella-Archer try below combination.
Thanks @bhumin-fw oddly enough that did not work for me :( TEST DEV
Hey @bhumin-fw , I tested this in Test and Dev and it didn't work out for me either.
Test
Dev
Tested again in Dev and Test - the table populates with Worksite contact, Ministry, Type of Clinic and Number of employees.
Test
Dev
this work great, PO approved and closing this ticket
User Story “As a user registering a worksite, I want see all the clinics already registered at my worksite so I can contact and coordinate with colleagues who have already registered.”
Tasks
[ ] Create grid to contain data fields to be pulled from the DB Columns:
Worksite contact
Ministry
Type of Clinic
Number of employees
[ ] Logic: When a user selects a ministry and worksite from the drop down, check DB to see if the worksite already has a clinic registered
YES display grid populated with existing registration info (Display OPEN clinics ONLY)
NO continue to "clinic registration'
Acceptance Criteria