Skip to contents

Audits the completeness of structured / synoptic pathology reports: the proportion of required data elements present per report, per required element, and by subspecialty or reporting pathologist, with an optional completeness trend over time.

Usage

synopticcompleteness(
  data,
  items,
  presenceRule = "nonmissing",
  presentValue = "",
  group = NULL,
  timeVar = NULL,
  completeThreshold = 100,
  showOverall = TRUE,
  showPerItem = TRUE,
  showByGroup = TRUE,
  showTrend = TRUE,
  showPlot = TRUE,
  showSummary = TRUE,
  showExplanation = FALSE
)

Arguments

data

.

items

The required synoptic data elements. Each is counted as present for a report when it is non-missing (and, for text, not blank or an explicit absence marker).

presenceRule

How each element is judged present.

presentValue

When the rule is "specified value", the value that marks an element present.

group

Optional grouping for stratified completeness (e.g. subspecialty or reporting pathologist).

timeVar

Optional ordered time/period variable for a completeness trend.

completeThreshold

A report counts as complete when at least this percentage of elements are present.

showOverall

.

showPerItem

.

showByGroup

.

showTrend

.

showPlot

.

showSummary

.

showExplanation

.

Value

A results object containing:

results$todoa html
results$overallTablea table
results$perItemTablea table
results$byGroupTablea table
results$trendTablea table
results$plotan image
results$addCompletenessToDataan output
results$summarya html
results$explanationa html

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$overallTable$asDF

as.data.frame(results$overallTable)