Skip to content

InjurySeverityScore

Translate ICD-9 into Injury Severity Score

v0.0.0.2 · May 18, 2019 · GPL-3

Description

Calculate the injury severity score (ISS) based on the dictionary in 'ICDPIC' from <https://ideas.repec.org/c/boc/bocode/s457028.html>. The original code was written in 'STATA 11'. The original 'STATA' code was written by David Clark, Turner Osler and David Hahn. I implement the same logic for easier access. Ref: David E. Clark & Turner M. Osler & David R. Hahn, 2009. "ICDPIC: Stata module to provide methods for translating International Classification of Diseases (Ninth Revision) diagnosis codes into standard injury categories and/or scores," Statistical Software Components S457028, Boston College Department of Economics, revised 29 Oct 2010.

Downloads

CRAN

254

Last 30 days

19429th

619

Last 90 days

2.4K

Last year

Trend: +60.8% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

25

Last 90 days

95

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

1

Last 7 days

16

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

LazyData

'LazyData' is specified without a 'data' directory
NOTE r-oldrel-macos-x86_64

LazyData

'LazyData' is specified without a 'data' directory
NOTE r-oldrel-windows-x86_64

LazyData

'LazyData' is specified without a 'data' directory

Code

Structure

Lines of code

160

Files

7

Compiled share

0%

Has compiled src

No

Language breakdown

R 119 (74.4%)Docs 41 (25.6%)

API

Exported functions

1

Internal functions

0

Recent export changes

v0.0.0.1+1 injury_score

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.3.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2018-03-28

Latest release

2019-05-19

Avg cadence

417 days

Cold removal rate

Dep drift

0

LOC over versions

v0.0.0.1: 160 LOCv0.0.0.2: 160 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies dplyr tidyr rlang InjurySeverityScore

Version History

3 tracked
new 0.0.0.2 Mar 10, 2026
updated 0.0.0.2 ← 0.0.0.1 diff May 18, 2019
new 0.0.0.1 Mar 27, 2018