Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EUSM]: Display the Location Inventory on the Location View Details page #1341

Closed
7 tasks
dubdabasoduba opened this issue Feb 25, 2024 · 3 comments · Fixed by #1351
Closed
7 tasks

[EUSM]: Display the Location Inventory on the Location View Details page #1341

dubdabasoduba opened this issue Feb 25, 2024 · 3 comments · Fixed by #1351

Comments

@dubdabasoduba
Copy link
Member

Issue Context?

Issue Implemetation details?

  • Add a Location Inventory tab to the Location View Details page. This page should show the following details
    • A table listing of all the Inventory linked to the Locations.
    • Display an Add inventory button to be used to add inventory to the location
    • Add a search bar that allows searching through the Location inventory
      details view - with tab navigation

Issue Acceptance criteria?

  • A table listing of the location inventory
  • Have an Add Inventory button to the Location Inventory tab
  • A search bar that allows searching through the Location Inventory

FHIR resources to be used?

No response

Relevant Information

Location Resource

{
  "resourceType": "Location",
  "id": "493f46d8-6dfe-4505-ab63-9d78c789400e",
  "meta": {
    "versionId"  : "1"                            ,
    "lastUpdated": "2023-02-22T16:03:03.752+00:00",
    "source"     : "#797f2c80a50102e1"
  },
  "identifier": [
    {"use": "official", "value": "493f46d8-6dfe-4505-ab63-9d78c789400e"}
  ],
  "type": {
    "coding": [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
        "code"   : "work"                                             ,
        "display": "Work Site"
      },
      {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
        "code"   : "chrd1"                                            ,
        "display": "CHRD1"
      }
    ]
  },
  "status": "active",
  "name": "Bishop Magua",
  "alias": ["Bishop Magua"],
  "description": "This is Bishop Magua in kilimani",
  "physicalType": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
        "code": "bu",
        "display": "Building"
      }
    ]
  },
  "partOf": {"reference": "Location/25c56dd5-4dca-449d-bf6e-665f90d0ff77"},
  "position": {"longitude": 36.7908806585347, "latitude": -1.2988988476440322}
}

Service Inventory (Group) resource

{
  "resourceType": "Group",
  "id": "e44e26d0-1f7a-41d6-aa57-99c5712ddd66",
  "identifier": [
    {"use": "secondary", "value": "a065c211-cf3e-4b5b-972f-fdac0e45fef7"},
    {"use": "official" , "value": "989867686"                           }
  ],
  "active": true,
  "type": "substance",
  "actual": false,
  "code": {
    "coding": [
      {
        "system" : "http://smartregister.org/",
        "code"   : "78991122"                 ,
        "display": "Supply Inventory"
      }
    ]
  },
  "name": "Bishop Magua -- Bed nets",
  "characteristic": [
    {
      "code": {
        "coding": [
          {
            "system" : "http://smartregister.org/"  ,
            "code"   : "09887657"                   ,
            "display": "Delivery and Accountability"
          }
        ]
      },
      "valuePeriod": {
        "start": "2024-02-01T00:00:00.00Z",
        "end"  : "2024-02-01T00:00:00.00Z"
      }
    },
    {
      "code": {
        "coding": [
          {
            "system" : "http://smartregister.org/",
            "code"   : "98734231"                 ,
            "display": "Unicef Section"
          }
        ]
      },
      "valueCodeableConcept": {
        "coding": [
          {
            "system" : "http://snomed.info/sct"             ,
            "code"   : "98734231-1"                         ,
            "display": "Value entered on the unicef section"
          }
        ],
        "text": "Value entered on the unicef section"
      }
    },
    {
      "code": {
        "coding": [
          {
            "system" : "http://snomed.info/sct",
            "code"   : "45647484"              ,
            "display": "Donor"
          }
        ]
      },
      "valueCodeableConcept": {
        "coding": [
          {
            "system" : "http://snomed.info/sct"    ,
            "code"   : "45647484-1"                ,
            "display": "Value entered on the donor"
          }
        ],
        "text": "Value entered on the donor"
      }
    },
    {
      "code": {
        "coding": [
          {
            "system" : "http://smartregister.org/",
            "code"   : "33467722"                 ,
            "display": "Product reference"
          }
        ]
      },
      "valueReference": {
        "reference": "Group/6f3980e0-d1d6-4a7a-a950-939f3ca7b301"
      }
    }
  ]
}

Inventory <> Location linkage (Group) resource

{
  "resourceType": "List",
  "id": "af17fe86-561a-44b0-84d3-5e75c753f6f8",
  "identifier": [
    {"use": "official", "value": "f39c5f68-ab0f-4ae5-a9e2-47b0beb73d8e"}
  ],
  "status": "current",
  "title": "Bishop Magua Inventory Item",
  "code": {
    "coding": [
      {
        "system" : "http://smartregister.org/",
        "code"   : "22138876"                 ,
        "display": "Supply Inventory List"
      }
    ],
    "text": "Supply Inventory List"
  },
  "subject": {"reference": "Location/493f46d8-6dfe-4505-ab63-9d78c789400e"},
  "entry": [
    {
      "flag": {
        "coding": [
          {
            "system" : "http://smartregister.org/",
            "code"   : "22138876"                 ,
            "display": "Supply Inventory List"
          }
        ],
        "text": "Supply Inventory List"
      },
      "date": "2024-02-01T00:00:00.00Z",
      "item": {"reference": "Group/e44e26d0-1f7a-41d6-aa57-99c5712ddd66"}
    }
  ]
}
@dubdabasoduba dubdabasoduba added this to To do in OpenSRP web app via automation Feb 25, 2024
@dubdabasoduba dubdabasoduba added this to the M1.2.24 milestone Feb 25, 2024
@peterMuriuki peterMuriuki modified the milestones: M1.2.24, M3.1.24 Mar 4, 2024
OpenSRP web app automation moved this from To do to Done Mar 26, 2024
@AnnieMungai
Copy link
Collaborator

AnnieMungai commented Mar 27, 2024

v3.1.5-rc1- preview

  • Cannot add an inventory item - UNICEF section and Donor lists which are required fields not added.

@AnnieMungai AnnieMungai reopened this Mar 27, 2024
OpenSRP web app automation moved this from Done to In progress Mar 27, 2024
@peterMuriuki
Copy link
Collaborator

closed by updating valueSets uploaded to the server: https://github.com/onaio/fhir-resources/pull/3099

OpenSRP web app automation moved this from In progress to Done Apr 11, 2024
@AnnieMungai
Copy link
Collaborator

v.3.1.5rc2
LGTM!

@AnnieMungai AnnieMungai added QA+ and removed QA- labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants