sos_data aims to mimic data recived from Socialstyrelsen, used in the examples given in functions prep_sosdata and create_sosvar.

sos_data

Format

A data frame with 5500 rows and 8 variables:

id

Patient id. Not unique. Integer.

INDATUM

Date of visit. Date.

UTDATUM

Date of discharge. Date.

HDIA

Main diagnosis. Character.

DIA01

Character.

OP01

Procedure code, position 1. Character.

OP02

Procedure code, position 2. Character.

ekod1

Character.

ekod2

Character.

AR

Year of visit date. Numeric.