writeReportJSON: writeReportJSON

View source: R/QIM_report.R

writeReportJSONR Documentation

writeReportJSON

Description

write reports to PIP QI Eligible Data Set JSON Specification 1.1

Usage

writeReportJSON(
  d,
  date_to,
  author_id = "bpsrawdata",
  practice_id,
  product = "GPstat",
  report = "PIP QI",
  version = "1.2",
  small_cell_suppression = TRUE,
  group_identification_suppression = FALSE,
  indigenous_aggregate = TRUE,
  sex_aggregate = TRUE
)

Arguments

d

data

date_to

chosen end date

author_id

identifier from source software of the authenticated user who initiated the extract

practice_id

an identifier for the practice

product

the name of the software that produced the file

report

Must be "PIP QI"

version

version number of the specification used to generate the JSON

small_cell_suppression

'suppress' (return NA, or remove row entirely) if count is denominator less than 5

This measure is explictly allowed under 'Practice Incentives Program Quality Improvement Incentives Quality Improvement Measures User Guide for General Practices (2020)', Section 2.7 'Is the data de-identified?', page 8.

group_identification_suppression

numerator 2 or less OR difference between numerator and denominator is less than or equal to 2. This is a simple probability-based disclosure suppression (l-diversity) against homogeneity attack e.g. ALL or NONE of the patients in a sub-group have a specified state.

This measure is not explicitly mentioned under the PIP QIM User Guide, but is consistent with avoiding disclosure of information about individual patients.

indigenous_aggregate

simplify indigenous groups to INDIGENOUS, NON-INDIGENOUS, NOT STATED

sex_aggregate

simplify sex groups to MALE, FEMALE, INDETERMINATE/INTERSEX/UNSPECIFIED/NOT STATED/INADEQUATELY DESCRIBED

Value

JSON string


DavidPatShuiFong/dMeasureQIM documentation built on Feb. 17, 2025, 3:08 p.m.