Closed dubdabasoduba closed 2 months ago
related: https://github.com/onaio/fhir-web/issues/1336 - need to fix this first
Navigating a URL via a button is possible, but currently, it can't be done through layer events. I would like to understand how the component interactions are expected to work from Akuko's perspective.
The "close flag" will not be a layer event, but a link from either a popup or a table next to the map.
see https://app.akuko.io/post/1ad8e5a3-941b-4b93-ba00-4551ed19bfc6
@kahummer can you confirm what your concern is? Am i missing something?
It's clear now, I thought this was to be at layer level on the service point. It should be fine
@dubdabasoduba
o get the location we have to find the inventory through the Flag.subject https://github.com/onaio/fhir-resources/issues/3035 and then find the Location through the List.entry https://github.com/onaio/fhir-resources/issues/3016.
The group inventory does not directly link to the location or the list resource(we could follow list.subject to get location).
How exactly we go from flag.subject
to get the location
is thus not clear
These are flags created for the service point. To get the location we have to find the inventory through the Flag.subject https://github.com/onaio/fhir-resources/issues/3035
Here as well.
Also: What payload resource will be used to capture the comments.
Get flag
Product related flag
TO GET THE PRODUCT
flag.subject.reference
{{ _.baseUrl }}/fhir/Group/eb9ed6a6-56c5-4e1c-a4ed-90990680d5eaimport {FhirServiceClass} from '@opensrp/react-utils';
import {groupResourceType} from '@opensrp/fhir-helpers';
{queryFn: () => {
return new FhirServiceClass(fhirBaseUrl).read(<flag.subject.reference>)
}}
Group.member?.[0].entity.reference
{{ _.baseUrl }}/fhir/Group/d538bfbd-5f35-47ec-b54f-63bb98cba83eTO GET THE LOCATION
flag.subject.reference
-> Group/e44e26d0-1f7a-41d6-aa57-99c5712ddd66
{{ _.baseUrl }}/fhir/List/_search?item=Group/e44e26d0-1f7a-41d6-aa57-99c5712ddd66&code=import {FhirServiceClass} from '@opensrp/react-utils';
import {groupResourceType, servicePointProfileInventoryListCoding} from '@opensrp/fhir-helpers';
{queryFn: () => {
return new FhirServiceClass(fhirBaseUrl).list({item: <flag.subject.reference>, code: <servicePointProfileInventoryListCoding.system>|<servicePointProfileInventoryListCoding.code>})
}}
list.subject
-> Location/20bef46f-b5f2-490f-beca-d9fa6205be06
{{ _.baseUrl }}/fhir/Location/20bef46f-b5f2-490f-beca-d9fa6205be06Location related flag
TO GET THE LOCATION
flag.subject
-> Location/20bef46f-b5f2-490f-beca-d9fa6205be06
{{ _.baseUrl }}/fhir/Location/20bef46f-b5f2-490f-beca-d9fa6205be06https://web.unicef-mg-eusm-preview.smartregister.org/admin/close-flags/
Issue Context?
Issue Implementation details?
Build a form with the following fields
Flag.subject
reference and then find the Location through theList.entry
reference.Flag.subject
referenceFlag.subject
reference and then fetch the Product through theGroup.member
reference on the Group resource representing the inventory.Generate the following resources when a flag is closed.
Issue Acceptance criteria?
FHIR resources to be used?
No response
Relevant Information
Proposed URL
https://{{base_url}}/admin/close-flags/{{uuid}}