National University of Singapore · FACULTY OF ENVIRONMENTAL SCIENCE

SM5005 Chap.9 Cleaning Health-System Spend Data

- one subject, every graph, every model, every mark
6 Chapters4-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 9 of 10 · SM5005

Cleaning Health-System Spend Data

Raw expenditure is evidence, not yet a model vector

Operational spend files are designed for payment and management, not environmental analysis. Supplier names vary, descriptions can be sparse, credits and taxes may be mixed with purchases, currencies and dates can differ, and a line can combine goods with services.

The first rule is to preserve the raw table unchanged and assign stable record identifiers before cleaning.

Build transformations as separate, testable stages

Create explicit stages for field standardization, duplicate handling, sign conventions, exclusions, currency and price conversion, and category preparation. Each stage should retain the source identifier and a reason for every changed or excluded record.

Reconcile record counts and monetary totals before and after the stage. The difference should equal the documented adjustments.

Separate cleaning from sector mapping

Cleaning determines what the record says and puts values on a consistent basis. Mapping decides which MRIO sector represents it. Combining them in one opaque formula makes errors hard to locate and review.

A cleaned analytical table should preserve original description, supplier, date and amount alongside standardized versions and flags.

Profile the data before estimating

Summarize missing descriptions, negative values, unusually large records, dominant suppliers and category concentration. High-value ambiguous lines deserve manual review because their classifications can control the result.

Sampling small lines checks systematic problems without pretending every record receives equal attention. The deliverable is a reconciled, documented table ready for a transparent concordance.

In this chapter

What this chapter covers

  • 01

    Immutable raw-data layer

  • 02

    Stable record identifiers

  • 03

    Staged standardization and exclusions

  • 04

    Currency and price alignment

  • 05

    Count and value reconciliation

  • 06

    Profiling material and ambiguous records

Worked example · free

Designing an auditable cleaning pipeline

Q [8 marks]. A procurement file contains duplicate supplier spellings, credits and missing descriptions. Specify a cleaning order and the checks that preserve auditability. The marks shown sequence this cleaning exercise and are not a University assessment scheme.
The analytical spend base is smaller than total expenditure because wages, transfers and accounting charges are not purchases from supply chains.The analytical spend base is smaller than total expenditure because wages, transfers and accounting charges are not purchases from supply chains. total health expenditure remove transfers and accounting items goods, services and capital purchases MRIO spend base
The analytical spend base is smaller than total expenditure because wages, transfers and accounting charges are not purchases from supply chains.
  • 2Protect the raw layer and identifiers.
  • 2Order the standardization and sign treatments.
  • 2Describe exclusion documentation.
  • 2State count and value reconciliation checks.
Freeze the received file and add a stable record identifier. In a derived table, standardize supplier text without overwriting the original, normalize dates and currencies, identify true duplicates using documented fields, and apply a stated sign rule to credits. Flag missing descriptions for enrichment or review rather than guessing. Put exclusions in a table with identifier, reason and amount. At each stage reconcile record counts and total value; the movement must equal documented duplicates, credits, conversions and exclusions.
Sia tip — Never overwrite the column that came from the source system; add a cleaned column beside it.
Glossary

Key terms

Raw Layer
An unchanged copy of source records retained for traceability.
Record Identifier
A stable key connecting every transformed row to its source record.
Reconciliation
A check that changes in counts or value equal documented transformations.
Sign Convention
The stated treatment of purchases, credits, refunds and reversals.
Data Profiling
Summary checks that reveal missing, extreme, duplicated or concentrated records.
FAQ

Cleaning Health-System Spend Data FAQ

Should supplier names be standardized before mapping?

Yes, but preserve the original field. Standardized names help group records and add supplier knowledge consistently. They should not erase legal entities or differences that matter for sourcing, so every normalization needs a trace back to the source.

How should negative expenditure be treated?

Determine whether it represents a credit, refund, correction or genuine negative flow and apply a documented sign rule. Removing all negatives can overstate expenditure, while retaining unexplained reversals can distort categories. Reconcile the net treatment.

Which records deserve manual review?

Prioritize high-value lines, categories with weak descriptions, unusual signs, unmatched suppliers and records driving a hotspot. Review effort should follow potential effect on the result, while sampling lower-value records tests whether a systematic mapping problem remains.

Study strategy

Assessment move

Construct a cleaning log with one row per transformation and columns for affected count, value change, rule and reviewer. Begin from an immutable copy with stable record identifiers and keep original supplier, description, date and amount beside every standardized field. Practise reconciling a small messy table without deleting source fields or silently correcting records.

Predict whether each stage should change counts, values, both or neither, then compare the observed movement. Treat duplicates, credits, transfers, remuneration, depreciation and missing descriptions as different cases rather than one exclusion category. Build a pending table for unresolved records so they remain in the control total.

Profile the largest lines, negative amounts, missing descriptions and dominant suppliers, and allocate manual review according to possible effect on the result. Separate currency and price conversion from sector mapping so an unexpected total can be traced to the correct stage.

Before freezing the analytical table, reproduce starting value as eligible, excluded and unresolved amounts, record the version and have another reader trace three cleaned rows back to the source. Add a negative-control record that should survive unchanged and one known duplicate that should be removed. If either control behaves unexpectedly, repair the transformation rule before reviewing carbon factors or category hotspots.

Retain screenshots or exported totals only as supporting evidence; the transformation log remains the reproducible control.

A+Everything unlocked
Unlocks this Bible + all 25 of your National University of Singapore subjects - and 1,000+ Bibles across every Australian university.
Sia - your SM5005 tutor, unlimited, worked the way the exam marks it
The full 4-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works