The data structure refactoring will never end. At least it feels like it never will.
While normalizing the factors, I decided to add a new class, a factor type. I hate word “type” but I don’t have any better word now. The types will be:
- Given: not influenced by the hospital, mostly diseases and their properties.
- Treatment: the elements of the treatment. The hospital’s choice.
- Result: influenced by both given and treatment factors. They’ll be the dependent variables.
Having the factor types, it’ll be possible to compare the hospitals against the way of treating the patients. For example, what percent of patients will have palliative operations?