muccg / rdrf

The Rare Disease Registry Framework (RDRF) is an open source tool for the creation of web-based patient registries.
GNU Affero General Public License v3.0
15 stars 8 forks source link

staging 6.6.46 testing - crc #2445

Closed id2359 closed 1 year ago

id2359 commented 1 year ago

CRC –

The movement between tabs in Individual dashboards is working as expected now in staging 6.6.46 - SIGNING OFF

I needed a new patient to see how CRC will react given that LC and BC react differently (see above). I created patient = Baseline TESTINGMISSING and added a 6 month PROMs but no baseline.

id2359 commented 1 year ago

download (1)

id2359 commented 1 year ago

When baseline is missing the code self.df["SEQ"] = self.df.groupby("PID").cumcount()

must do this if we re-sequence:

self.df = self._assign_seq_names(self.df)

will assign seq 0 to the first record ( a followup) This gets named baseline

The dataframe has a type column which is baseline or followup so this should be used as an input to a custom groupby in pandas and cumcount needs to be dropped.