npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kenyaemr/esm-patient-labs-app

v7.0.3

Published

Patient lab order and test results microfrontend for the OpenMRS SPA

Downloads

7

Readme

esm-patient-labs-app

Functionality for viewing test results and ordering labs.

Test Results

It provides tabular and chart-based overviews of the test results available for a patient.

IMPORTANT NOTE: To have data show up in this view, your concepts just need to have "Type: Test" or "Type: LabSet". If you are seeing strange things showing up, like Temperature, in the Test Results viewer, then you probably just need to change the Type for your Temperature concept to something other than "Test", like finding.

How to Configure the Lab Filter View

The Lab Filter feature enables you to set up custom filter views - eg based on standard medical hierarchies, or even based on your own custom ideas (e.g. "Our Favorite HIV-Related Tests"), like this:

To configure your own Lab Filters, you need to use Labs, LabSets, and ConvSets (Convenience Sets) in your Concept Dictionary. Below, we will walk through the steps taken to set up this OpenMRS Example Lab Filter.

1. Decide what you want.

In this example, we wanted a layout like:

  • Bloodwork
    • Hematology
      • CBC
        • Lymphocytes (%)
        • Neutrophils (%)
        • Hemoglobin
        • Mean corpuscular volume (MCV)
        • Hematocrit
        • Red blood cells
        • Platelets
        • White blood cells
    • Chemistry
      • Serum Electrolytes
        • Serum calcium
        • Serum carbon dioxide
        • Serum chloride
        • Serum potassium
        • Serum sodium

2. Create the "parents" as concepts with type = ConvSet

  • Bloodwork --> Create as a custom concept, type = ConvSet
    • Hematology --> Create as a custom concept, type = ConvSet
    • Chemistry --> Create as a custom concept, type = ConvSet

3. Add the "children" Set Members to each parent

  • Bloodwork
    • Hematology --> Add concept as a Set Member to "Bloodwork"
      • CBC --> Add concept as a Set Member to "Hematology"
    • Chemistry --> Add concept as a Set Member to "Bloodwork"
      • Serum Electrolytes --> Add concept as a Set Member to "Chemistry"

Note1: As of March 2022, Set Members cannot be added to concepts through the Term Browser, but you can either use your EMR directly or the OpenMRS Dictionary Manager.

Note2: if you don't already have all the "children" concepts, e.g. CBC, Serum Electrolytes, you may have to add these specifically into your dictionary first.

4. Check your work

Review your concepts to see that the hierarchy all looks right in the Dictionary/Collection. In the above example (which was created using the OpenMRS Dictionary Manager), you can see that Bloodwork now correctly contains Hematology and Chemistry.

5. Update the config-schema file with your ConvSet codes

Go here to add the UUIDs for each of your ConvSet concepts which you want to show up in the Lab Results filters: https://github.com/openmrs/openmrs-esm-patient-chart/blob/master/packages/esm-patient-labs-app/src/config-schema.ts#L3