Skip to contents

A record is considered to have an Acute Elective cost if the recid is 01B, the CIJ patient type is Elective or the IPDC shows it is a day case, and the specialty is not AB

Usage

calculate_acute_elective_cost(
  recid,
  cij_pattype,
  cij_ipdc,
  spec,
  cost_total_net
)

Arguments

recid

A vector of record IDs

cij_pattype

A vector of CIJ patient types

cij_ipdc

A vector of CIJ inpatient/daycase markers

spec

A vector of specialty codes

cost_total_net

A vector of total net costs

Value

A vector of Acute Elective costs