Skip to content

Commit

Permalink
Update to version 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Selbosh committed Jul 19, 2021
2 parents 010126b + 5b4e58a commit 948c7c9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: doseminer
Type: Package
Title: Extract Drug Dosages from Free-Text Prescriptions
Version: 0.1.1
Version: 0.1.2
Authors@R:
c(person(given = 'David',
family = 'Selby',
Expand All @@ -13,11 +13,11 @@ Authors@R:
email = 'belaybirlie.yimer@manchester.ac.uk',
role = 'ctb'),
person(given = 'Ben',
family = 'Marwick',
email = 'benmarwick@gmail.com',
role = 'ctb'))
Maintainer: David Selby <david.selby@manchester.ac.uk>
family = 'Marwick',
email = 'benmarwick@gmail.com',
role = 'ctb'))
Description: Utilities for converting unstructured electronic prescribing instructions into structured medication data. Extracts drug dose, units, daily dosing frequency and intervals from English-language prescriptions. Based on Karystianis et al. (2015) <doi:10.1186/s12911-016-0255-x>.
BugReports: https://github.com/Selbosh/doseminer/issues
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# doseminer 0.1.2

* Remove the `output` column (only used for debugging) from the output of `extract_from_prescription`

# doseminer 0.1.1

* Fixed implicit coercion of strings to factors in `extract_from_prescription`, which caused some unit tests to fail on older versions of R (< 4.0.0).
Expand Down
2 changes: 1 addition & 1 deletion R/extract.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ extract_from_prescription <- function(txt) {

unit <- extract_dose_unit(output)

data.frame(raw = txt, output, freq, itvl, dose, unit, optional,
data.frame(raw = txt, freq, itvl, dose, unit, optional,
stringsAsFactors = FALSE)
}

Expand Down
7 changes: 7 additions & 0 deletions man/doseminer-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vignettes/introduction.Rmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Introduction to doseminer"
author: David Selby and Belay Birlie Yimer
date: April 2021
date: July 2021
output:
prettydoc::html_pretty:
theme: leonids
Expand Down Expand Up @@ -55,7 +55,7 @@ The output includes seven columns:
- `freq`: the number of times per day that the dose should be administered
- `itvl`: the number of days between 'dose days'; if every day, then 1
- `optional`: an indicator; can the dose be zero? If so, 1, else 0.
- `output`: a 'residual' string of text not parsed by the algorithm. Useful for debugging. May be omitted in future releases.
<!--- `output`: a 'residual' string of text not parsed by the algorithm. Useful for debugging. May be omitted in future releases.-->

The package is vectorised, so you can provide a vector and it should process all of it, returning the result in the same order as the input.

Expand Down

0 comments on commit 948c7c9

Please sign in to comment.