PracticeFusion.MmeCalculator.Core
1.1.1
See the version list below for details.
dotnet add package PracticeFusion.MmeCalculator.Core --version 1.1.1
NuGet\Install-Package PracticeFusion.MmeCalculator.Core -Version 1.1.1
<PackageReference Include="PracticeFusion.MmeCalculator.Core" Version="1.1.1" />
paket add PracticeFusion.MmeCalculator.Core --version 1.1.1
#r "nuget: PracticeFusion.MmeCalculator.Core, 1.1.1"
// Install PracticeFusion.MmeCalculator.Core as a Cake Addin #addin nuget:?package=PracticeFusion.MmeCalculator.Core&version=1.1.1 // Install PracticeFusion.MmeCalculator.Core as a Cake Tool #tool nuget:?package=PracticeFusion.MmeCalculator.Core&version=1.1.1
Practice Fusion MME Calculator
Morphine Milligram Equivalent (MME) Calculator: APIs, Containers and Samples
The calculator accepts two parameters:
- the RxNorm RxCUI (the drug identifier), which is used to retrieve the RxNorm normalized drug name
- the sig, free-text instructions from the prescriber or pharmacist indicating how the patient should use the medication
The sig is used to establish a maximum or total daily dose. The normalized drug name is used to identify active opioids and their strengths, so that a total daily dose in milligrams (or the appropriate unit of measure) can be established. Finally, using the appropriate conversion factor, which sometimes requires additional information on the route or form of the drug, a maximum morphine milligram equivalence per day is calculated.
The result is returned along with analysis of the medications and sigs. The analysis breaks down the parsed and calculated information, and includes a confidence rating on the information, along with any explanation of failures. Currently, if there are any failures, the calculator returns a "no-confidence" result.
The calculator makes no recommendations regarding the safety of the maximum MME per day, that is instead left up to calling services (like clinical decision support services), which should analyze the calculated result and the confidence of the calculation before making a recommendation.
Installing / Getting started
Installing the NuGet Package
To use the calculator in your own project, add the package:
dotnet add package PracticeFusion.MmeCalculator.Core
See the sample CLI for more information on how to use the calculator.
Running the web demo in a docker image
- From the
src
directory, run:
$ docker build -f Samples/PracticeFusion.MmeCalculator.WebDemo/Dockerfile . -t mmewebdemo
$ docker run -d -p 80:80 --name mmewebdemo mmewebdemo
- Browse to http://localhost/ to see the demo
- Browse to http://localhost/docs to view the api documentation.
Running the sample CLI in a docker image
- From the
src
directory, run:
$ docker build -f Tools/PracticeFusion.MmeCalculator.Cli/Dockerfile . -t mmecli
- Run an instance to see the help:
$ docker run -i --rm mmecli --help
Usage:
mmecalculator [options] [command]
Options:
-i, --input <input> input file (if not present, will use stdin)
-o, --output <output> output file (if not present, will use stdout)
-ow, --overwrite overwrite the output file if it exists [default: False]
-of, --outputFormat <Basic|Debug|DebugFormatted> output format (basic, debug) [default: Basic]
--version Show version information
-?, -h, --help Show help and usage information
Commands:
calculate
parsesig
antlrperf
How to Contribute
We want to make contributing to this project as simple as possible, and we are grateful to the community for contributing bug fixes, feature requests and code improvments. Read below to learn how you can take part in improving the MME calculator.
Bug reports
To report a bug click here and fill in the template. We'll look at it as soon as we can.
Feature Requests
To request a new feature click here and fill in the template.
Contributing Guide
Read our Contributing Guide
Code of Conduct
We have adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text.
Links
- Project homepage: https://github.com/practicefusion/mmecalculator
- Issue tracker: https://github.com/practicefusion/mmecalculator/issues
- In case of sensitive bugs like security vulnerabilities, please contact security@practicefusion.com directly instead of using the issue tracker. We value your effort to improve the security and privacy of this project!
- Special thanks to the following:
- Dr. David Hurwitz, Dr. Geoff Caplea, Ken Sheppard, Alex Dove, Jeff Carter
- Dr. Ken Kawamoto (via support from contracts HHS 75P00119F80176 and HHS 75P00120F80182 managed by Security Risk Solutions, Inc.), and the sig parsing for the OpenCDS project.
Maintainers
License
The Practice Fusion MME Calculator is licensed under the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Antlr4.Runtime.Standard (>= 4.9.2)
- Microsoft.Extensions.Caching.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Caching.Memory (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- System.Text.Json (>= 6.0.0)
-
net5.0
- Antlr4.Runtime.Standard (>= 4.9.2)
- Microsoft.Extensions.Caching.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Caching.Memory (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- System.Text.Json (>= 6.0.0)
-
net6.0
- Antlr4.Runtime.Standard (>= 4.9.2)
- Microsoft.Extensions.Caching.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Caching.Memory (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- System.Text.Json (>= 6.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on PracticeFusion.MmeCalculator.Core:
Package | Downloads |
---|---|
PracticeFusion.MmeCalculator.RxNavRxNormResolver
This package provides the MME Calculator with RxNorm results retrieved using the RxNorm API services described at: https://rxnav.nlm.nih.gov/RxNormAPIs.html This product uses publicly available data from the U.S. National Library of Medicine (NLM), National Institutes of Health, Department of Health and Human Services; NLM is not responsible for the product and does not endorse or recommend this or any other product. |
|
PracticeFusion.MmeCalculator.LocalRxNormResolver
This package provides a static set of RxNorm lookups. For testing ONLY, not for production use. The data contained in this package is static, and will not be updated regularly. It is retrieved from the NIH Value Set Authority Center: Value Set Name: Opioids, All Code System: RXNORM OID: 2.16.840.1.113762.1.4.1196.226 Type: Extensional Definition Version: 20191126 Steward: IMPAQ International |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.2 | 285 | 7/20/2023 |
1.2.1 | 413 | 4/1/2023 |
1.2.0 | 720 | 12/2/2022 |
1.1.2 | 2,241 | 5/11/2022 |
1.1.1 | 516 | 1/9/2022 |
1.1.0 | 495 | 12/24/2021 |
1.1.0-alpha.1 | 140 | 12/24/2021 |
1.1.0-alpha.0 | 136 | 12/24/2021 |
0.0.0-alpha.0.2 | 138 | 12/24/2021 |
0.0.0-alpha.0 | 126 | 12/24/2021 |