Releases: smart-on-fhir/chart-review
Releases ยท smart-on-fhir/chart-review
2.0.1
2.0.0
This release re-organizes the CLI commands a bit and adds some new ones!
Breaking changes
chart-review info
has been removed, as it was in danger of becoming a kitchen sink with no clear purpose. Instead:- The default
chart-review info
output of annotators and their chart ranges has been moved to the defaultchart-review
output when you don't provide a sub-command. chart-review info --ids
has been moved tochart-review ids
(and now prints a human-readable table by default - pass--csv
to get the previous CSV-formatted output)chart-review info --labels
has been moved tochart-review labels
- The default
New features
- You can now see a list of all text mentions and how they were labeled with
chart-review mentions
:
$ chart-review mentions
โญโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโฎ
โ Annotator โ Chart ID โ Mention โ Label โ
โโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ mike โ 1 โ sigh โ sad โ
โ mike โ 1 โ woo โ happy โ
โฐโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโฏ
- You can now see a count of how often each text mentions was labeled with
chart-review frequency
:
$ chart-review frequency
โญโโโโโโโโโโโโฌโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโฎ
โ Annotator โ Label โ Mention โ Count โ
โโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ All โ happy โ woo โ 1 โ
โ All โ sad โ sigh โ 4 โ
โโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ andy โ happy โ woo โ 1 โ
โ andy โ sad โ sigh โ 1 โ
โโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโค
โ april โ happy โ woo โ 1 โ
โ april โ sad โ sigh โ 3 โ
โฐโโโโโโโโโโโโดโโโโโโโโดโโโโโโโโโโดโโโโโโโโฏ
- You can now pass
chart-review accuracy --verbose
to see a per-label breakdown of the True Positives / False Negatives / etc:
$ chart-review accuracy jill jane --verbose
โญโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโฎ
โ Chart ID โ Label โ Classification โ
โโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโโโค
โ 1 โ Cough โ TP โ
โ 1 โ Fatigue โ TP โ
โโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโโโค
โ 4 โ Cough โ FP โ
โ 4 โ Fatigue โ TP โ
โฐโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโโโฏ
- All commands have gained a
--csv
argument to print a CSV-formatted version of the command's output - You can now see the current version with
chart-review --version
- You can now use the shortened
-p
flag instead of the long-form--project-dir
Other changes:
- When you run
chart-review
in a project that isn't properly set up yet (no config.yaml or label studio export), a much clearer error is printed, pointing to the web documentation - The
chart-review accuracy --save
option has been deprecated and hidden from the--help
output. Use the now-standardizedaccuracy --csv
option and redirect the output to a file instead
1.2.0
This release adds a new info
command.
By default, it shows some basic info about annotators and note ranges:
$ chart-review info
โญโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโโโฎ
โ Annotator โ Chart Count โ Chart IDs โ
โโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโค
โ jane โ 3 โ 1, 3โ4 โ
โ jill โ 4 โ 1โ4 โ
โ john โ 3 โ 1โ2, 4 โ
โฐโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโฏ
But it also supports two other modes:
info --ids
Prints a csv of all ID mappings: Label Studio chart -> original FHIR -> anonymized FHIR.
Example:
$ chart-review info --ids
chart_id,original_fhir_id,anonymized_fhir_id
1,Encounter/ABC-Enc,Encounter/Anon-ABC-Enc
1,DocumentReference/ABC,DocumentReference/Anon-ABC
...
info --labels
Prints a table of how often each label was used by each annotator.
Example:
$ chart-review info --labels
โญโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโโฎ
โ Annotator โ Chart Count โ Label โ
โโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโค
โ Any โ 2 โ Cough โ
โ Any โ 3 โ Fatigue โ
โ Any โ 3 โ Headache โ
โโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโค
โ jane โ 1 โ Cough โ
โ jane โ 2 โ Fatigue โ
โ jane โ 2 โ Headache โ
โโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโค
โ jill โ 2 โ Cough โ
โ jill โ 3 โ Fatigue โ
โ jill โ 0 โ Headache โ
โโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโค
โ john โ 1 โ Cough โ
โ john โ 2 โ Fatigue โ
โ john โ 2 โ Headache โ
โฐโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโฏ
1.1.0
This release adds a Kappa
field to the accuracy
command's generated scores.
This is Cohen's Kappa, which might be useful in addition to the F1 score.