-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from ScottSucksAtProgramming/Reporting
Merged
- Loading branch information
Showing
59 changed files
with
2,088 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
id,adjustment_date,event_code,medication_code,amount,reporting_period_id,reference_id | ||
0,1658523600,IMPORT,fentanyl,7450,2200000,Narcotics Bi-Annual Report - June 2022 - Wantagh-Levittown VAC | ||
1,1658523600,IMPORT,morphine,690000,2200000,Narcotics Bi-Annual Report - June 2022 - Wantagh-Levittown VAC | ||
2,1658523600,IMPORT,midazolam,663400,2200000,Narcotics Bi-Annual Report - June 2022 - Wantagh-Levittown VAC | ||
|
||
|
||
,,,,,, | ||
,,,,,, | ||
,,,,,, | ||
,,,,,, | ||
,,,,,, | ||
,,in mcg,in mg,,, | ||
,Fentanyl,-359560,-359.56,,, | ||
,Midazolam,211800,211.8,,, | ||
,Morphine,689950,689.95,,, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Introducing Narcotics Tracker v0.2.5. | ||
|
||
| Version | Release Date | Audience | | ||
| :------ | :----------- | :--------- | | ||
| 0.3.0 | 11/07/2022 | Developers | | ||
|
||
**Message from ScottSucksAtProgramming:** | ||
|
||
> Hooray! Version 0.3.0 is here! This is not a gigantic update but it marks the | ||
> completion of the primary goal I had for this project. With a single command | ||
> the Narcotics Tracker can now print out all the information required for the | ||
> NYS Semi-Annual Controlled Substance Inventory Form for EMS Agencies' | ||
> (DOH-3848). This will make reporting each period far far easier than doing it | ||
> manually. | ||
## Reports Package | ||
|
||
The Reports Package has been added to the main directory of the Narcotics | ||
Tracker. | ||
|
||
### Interface | ||
|
||
The Report Module within the Interfaces sub-package contains the protocol for | ||
reports. It is similar to the Command Protocol and is using the Command Design | ||
Pattern for its implementation. The receiver can be set via the initializer. | ||
The run method will execute the report and return the results. | ||
|
||
### Return Medication Stock Report | ||
|
||
This report returns the current amount of a specified medication in the | ||
inventory. Amount is currently returned as a float. This may be adjusted later | ||
to return a dictionary to conform to the other reports. | ||
|
||
### Return Current Inventory | ||
|
||
THis report returns the current amount of all 'active' medications in the | ||
'medications' table in the inventory. This report is designed to be used for | ||
regular inventory stock counts. Where the physical inventory count can be | ||
compared to the return value of this report. This report currently returns the | ||
data as a list of dictionaries. | ||
|
||
### Bi-Annual Narcotics Inventory Report | ||
|
||
This is the big guy! This will cycle through all active medications from the | ||
'medications' table and all data from the current, 'open' reporting period to | ||
return the following: | ||
|
||
- Starting amount of the medication in milliliters. | ||
- Amount of the medication received from orders in milliliters. | ||
- Amount of the medication used by providers in milliliters. | ||
- Amount of the medication wasted by providers in milliliters. | ||
- Amount of the medication destroyed at a reverse distributor in milliliters. | ||
- Amount of the medication lost or stolen in milliliters. | ||
- Final amount of the medication in milliliters. | ||
|
||
When adjustments are up to date, this report should be accurate and can be used | ||
to complete this report without issue. | ||
|
||
## Next Up! | ||
|
||
The next release will see the implementation of a command line interface! Wish | ||
me luck! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.