Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK-5963 - Clinical Interpretation Improvements #938

Merged
merged 103 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
817ddd9
wc: Hide interpretation review step in variant interpreter #TASK-6371…
jmjuanes May 31, 2024
dd21852
wc: Fix displaying headers in interpretation actions dropdown #TASK-6…
jmjuanes May 31, 2024
50da6a1
wc: Remove padding from actions items in interpretation actions dropd…
jmjuanes May 31, 2024
e8464fd
wc: Fix displaying secondary interpretations in interpreter actions #…
jmjuanes May 31, 2024
1b45d13
wc: Display a new action to edit primary interpretation #TASK-6317 #T…
jmjuanes May 31, 2024
247011b
wc: Display modal to update the current interpretation in variant-int…
jmjuanes May 31, 2024
a5ee5ba
wc: Fix rendering interpretation update in variant-interpreter #TASK-…
jmjuanes Jun 3, 2024
ffed6db
wc: Reload clinical analysis when interpretation is updated #TASK-631…
jmjuanes Jun 3, 2024
ef982bc
wc: Display a new action to lock/unlock current interpretation #TASK-…
jmjuanes Jun 3, 2024
324307d
wc: Fix icon classname used in interpreter actions #TASK-6317 #TASK-5963
jmjuanes Jun 3, 2024
670400b
wc: Add method to lock/unlock current interpretation in variant-inter…
jmjuanes Jun 3, 2024
86e4292
wc: Fix calling to interpretation lock/unlock method in variant-inter…
jmjuanes Jun 3, 2024
b4ce6a1
wc: Fix calling interpretation update endpoint in interpreation lock …
jmjuanes Jun 3, 2024
15829dd
Merge branch 'develop' into TASK-5963
jmjuanes Jun 6, 2024
ca575d8
iva: Remove interpretation review from browsers settings #TASK-6317 #…
jmjuanes Jun 6, 2024
4713dad
iva: Remove interpretation review from variant interpreter settings #…
jmjuanes Jun 6, 2024
4b97b45
wc: Initialize variant interpreter save component #TASK-6318 #TASK-5963
jmjuanes Jun 6, 2024
161588a
wc: Fix typo in actions dropdown of interpretation manager #TASK-6372…
jmjuanes Jun 14, 2024
8ba4a3e
wc: Fix typo in interpretation create #TASK-6372 #TASK-5963
jmjuanes Jun 14, 2024
a8521f0
wc: Allow to lock/unlick an interpretation from the update form #TASK…
jmjuanes Jun 14, 2024
397f5aa
wc: Rename field to lock/unlock the interpretation #TASK-6372 #TASK-5963
jmjuanes Jun 14, 2024
bb76958
wc: Fix wrong capitalized modal title in interpretation update #TASK-…
jmjuanes Jun 14, 2024
5138843
wc: Display selected panels in interpretation update #TASK-6372 #TASK…
jmjuanes Jun 17, 2024
0d8f708
wc: Fix style of interpretation actions #TASK-6372 #TASK-5963
jmjuanes Jun 17, 2024
c523870
wc: Fix alignment of interpretation actions dropdown #TASK-6372 #TASK…
jmjuanes Jun 17, 2024
f8d83d0
wc: Add method to download the provided interpretation as JSON #TASK-…
jmjuanes Jun 17, 2024
697e0f0
wc: Add action to download selected interpretation #TASK-6372 #TASK-5963
jmjuanes Jun 17, 2024
eb00825
wc: Fix rendering interpretation actions #TASK-6372 #TASK-5963
jmjuanes Jun 17, 2024
19f936c
wc: Fix displaying as disabled actions when interpretation is locked …
jmjuanes Jun 17, 2024
79f6db0
wc: Fix rendering restore action item in interpretation actions #TASK…
jmjuanes Jun 17, 2024
034b65b
wc: Add missing toolbox icon in interpretation actions drodown #TASK-…
jmjuanes Jun 17, 2024
d2e2474
wc: Display an action to download the interpretation #TASK-6372 #TASK…
jmjuanes Jun 17, 2024
8e3917f
wc: Display clinical analysis update as a form #TASK-6373 #TASK-5963
jmjuanes Jun 18, 2024
080a0bd
wc: Move all html content of variant summary #TASK-6318 #TASK-5963
jmjuanes Jun 18, 2024
c18b1cb
wc: Display new variant save component in variant browser toolbar #TA…
jmjuanes Jun 18, 2024
b920903
wc: Rename component variant interpreter save #TASK-6318 #TASK-5963
jmjuanes Jun 18, 2024
edcd5ce
wc: Display changed variants info in interpreter browser save #TASK-6…
jmjuanes Jun 18, 2024
8dd693c
wc: Improve displaying changed variants summary #TASK-6318 #TASK-5963
jmjuanes Jun 18, 2024
d65a5e4
wc: Rename again component to review and save variants #TASK-6318 #TA…
jmjuanes Jun 18, 2024
32f68fb
wc: Remove duplicated title in changed variants #TASK-6318 #TASK-5963
jmjuanes Jun 18, 2024
18a65f5
wc: Improve displaying variants list #TASK-6318 #TASK-5963
jmjuanes Jun 18, 2024
17bdf29
wc: Increment width of variants save dropdown in interpreter browser …
jmjuanes Jun 18, 2024
b056287
wc: Some style fixes in interpreter variants review component #TASK-6…
jmjuanes Jun 18, 2024
98cba66
Merge branch 'develop' into TASK-5963
jmjuanes Jun 18, 2024
1c13f7b
wc: Minor style fixes displaying form to provide a comment when savin…
jmjuanes Jun 19, 2024
969b1ba
wc: Display discard and filter buttons in save menu component #TASK-6…
jmjuanes Jun 20, 2024
f5f226c
wc: Fix condition to disable Filter button in save menu #TASK-6318 #T…
jmjuanes Jun 20, 2024
5e56ccf
wc: Fix events dispatched by save menu component #TASK-6318 #TASK-5963
jmjuanes Jun 20, 2024
88af397
wc: Remove unused imports and methods in save menu component #TASK-63…
jmjuanes Jun 20, 2024
fb53002
wc: Remove reset button from interpreter browser toolbar #TASK-6318 #…
jmjuanes Jun 20, 2024
b278194
wc: Code refactor in interpreter browser toolbar #TASK-6318 #TAKS-5963
jmjuanes Jun 20, 2024
ed6db72
wc: Add listeners to filter and discard changed variants #TASK-6318 #…
jmjuanes Jun 20, 2024
1f36022
wc: Add comment to dispatched event for saving variants in save menu …
jmjuanes Jun 20, 2024
2b64c0a
wc: Forward event to save variants in interpretation as primary findi…
jmjuanes Jun 20, 2024
e7c2b09
wc: Fix comment placeholders in save menu #TASK-6318 #TASK-5963
jmjuanes Jun 20, 2024
8f3f9c9
wc: Fix displaying labels for adding a new comment in save menu #TASK…
jmjuanes Jun 20, 2024
3224190
wc: Fix typo in the label for adding a new comment in save menu #TASK…
jmjuanes Jun 20, 2024
5060848
wc: Fix labels of case actions in interpreter toolbar #TASK-6373 #TAS…
jmjuanes Jun 20, 2024
081a831
wc: Rename action to exit interpretation #TASK-6373 #TASK-5963
jmjuanes Jun 20, 2024
97b46f3
wc: Add divider before the exit interpretation action #TASK-6373 #TAS…
jmjuanes Jun 20, 2024
2ef9442
wc: Remove restore prev version action in interpretation actions #TAS…
jmjuanes Jun 21, 2024
ca7513c
wc: Fix condition for displaying the set as primary action #TASK-6372…
jmjuanes Jun 21, 2024
a968200
wc: Display delete interpretation disabled in the primary actions #TA…
jmjuanes Jun 21, 2024
50c2106
wc: Rename interpreter browser save component #TASK-6318 #TASK-5963
jmjuanes Jun 25, 2024
d070829
wc: Fix label for adding a new interpretation comment in save menu #T…
jmjuanes Jun 25, 2024
68d4b47
wc: Fix button for discarding changes in save menu #TASK-6318 #TASK-5963
jmjuanes Jun 25, 2024
012021c
wc: Improve displaying changed variants info in save menu #TASK-6318 …
jmjuanes Jun 25, 2024
51991bc
wc: add emphasis to variant id in save menu #TASK-6318 #TASK-5963
jmjuanes Jun 25, 2024
557705e
wc: Change color of updated variants in save menu #TASK-6318 #TASK-5963
jmjuanes Jun 25, 2024
c4815b1
wc: Add scrolls to changed variants list in save menu #TASK-6318 #TAS…
jmjuanes Jun 25, 2024
8cc5aab
wc: Fix label to change primary interpretation from case interpreter …
jmjuanes Jun 26, 2024
b162d39
wc: Remove clinical analysis observer in interpretation manager #TASK…
jmjuanes Jun 26, 2024
6b5f936
wc: Remove HTML code for primary interpretation history table #TASK-6…
jmjuanes Jun 26, 2024
113e9ab
wc: Remove other stuff for rendering primary interpretation history c…
jmjuanes Jun 26, 2024
84241ec
wc: Remove unused code and minor fixes in interpretation manager #TAS…
jmjuanes Jun 26, 2024
22c906b
wc: Rename action to exit interpreter #TASK-6373 #TASK-5963
jmjuanes Jun 27, 2024
3eed00b
wc: Change width os save menu in interpreter toolbar #TASK-6318 #TASK…
jmjuanes Jun 28, 2024
f534db6
wc: Change maximum height for displayed variants in save menu #TASK-6…
jmjuanes Jun 28, 2024
2a41305
wc: Fix CT separation in changed variants list #TASK-6318 #TASK-5963
jmjuanes Jun 28, 2024
2d2c3ea
wc: Fix displaying filter primary findings button #TASK-6318 #TASK-5963
jmjuanes Jul 1, 2024
05ad067
wc: Add a scrollable area to the primary findings summary container #…
jmjuanes Jul 1, 2024
30dbb36
wc: Fix class for displaying scrolls in save menu #TASK-6318 #TASK-5963
jmjuanes Jul 1, 2024
0d956bd
wc: Undo creating the renderPrimaryFindings method in toolbar compone…
jmjuanes Jul 1, 2024
797e0a4
wc: Fix border displayed in each primary finding #TASK-6318 #TASK-5963
jmjuanes Jul 1, 2024
ade99cb
wc: Improve displaying primary findings summary #TASK-6318 #TASK-5963
jmjuanes Jul 1, 2024
5a4822e
wc: Remove unused icon when rendering primary findings items #TASK-63…
jmjuanes Jul 1, 2024
261e84f
wc: Fix displaying genes in variants changes summary #TASK-6318 #TASK…
jmjuanes Jul 1, 2024
3514bba
wc: Increment displayed lines in comments message of save menu #TASK-…
jmjuanes Jul 1, 2024
0a8936e
wc: Minor fixes rendering save menu in interpreter toolbar #TASK-6318…
jmjuanes Jul 1, 2024
e216b4d
wc: Remove duplicated class attribute when rendering inclussion varia…
jmjuanes Jul 1, 2024
8d28a0a
wc: Force to close save menu when clicking on a menu button #TASK-631…
jmjuanes Jul 1, 2024
1468ab4
wc: Keep save menu open when clicking inside #TASK-6318 #TASK-5963
jmjuanes Jul 1, 2024
9dbc0b6
wc: Force to hide primary findings menu when clicking on the filter b…
jmjuanes Jul 1, 2024
6e9adeb
wc: Fix comments in save menu actions #TASK-6318 #TASK-5963
jmjuanes Jul 1, 2024
d50836a
Merge branch 'develop' into TASK-5963
jmjuanes Jul 3, 2024
deb7fc7
wc: Include the updated variants in the filter variants list #TASK-63…
jmjuanes Jul 3, 2024
bb5f223
wc: Include unique ids when filtering by changed variants #TASK-6318 …
jmjuanes Jul 3, 2024
5873d3a
iva: Remove commented review step in interpreter settings #TASK-6318 …
jmjuanes Jul 3, 2024
e7ad0c9
Merge branch 'develop' into TASK-5963
jmjuanes Jul 4, 2024
458620a
Merge branch 'develop' into TASK-5963
jmjuanes Jul 5, 2024
30aa080
Merge branch 'develop' into TASK-5963
jmjuanes Jul 8, 2024
9a5ce24
Merge branch 'develop' into TASK-5963
jmjuanes Jul 10, 2024
ed1343b
Merge branch 'develop' into TASK-5963
jmjuanes Jul 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/sites/iva/conf/browsers.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,6 @@ const INTERPRETER_SETTINGS = {
},
// hideGenomeBrowser: false
},
{
id: "review"
},
{
id: "report"
}
Expand Down
3 changes: 0 additions & 3 deletions src/sites/iva/conf/variant-interpreter.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ const VARIANT_INTERPRETER_SETTINGS = {
},
// hideGenomeBrowser: false
},
{
id: "review"
},
{
id: "report"
}
Expand Down
14 changes: 14 additions & 0 deletions src/webcomponents/clinical/clinical-analysis-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import UtilsNew from "../../core/utils-new.js";
import LitUtils from "../commons/utils/lit-utils.js";
import NotificationUtils from "../commons/utils/notification-utils.js";

Expand Down Expand Up @@ -283,6 +284,19 @@ export default class ClinicalAnalysisManager {
this.#updateInterpretation(interpretationId, {locked: false}, `Interpretation '${interpretationId}' Unlocked.`, callback);
}

downloadInterpretation(interpretationId) {
return this.opencgaSession.opencgaClient.clinical()
.infoInterpretation(interpretationId, {
study: this.opencgaSession.study.fqn,
})
.then(response => {
UtilsNew.downloadJSON(response?.responses?.[0]?.results?.[0], `interpretation-${interpretationId}.json`);
})
.catch(response => {
NotificationUtils.dispatch(this.ctx, NotificationUtils.NOTIFY_RESPONSE, response);
});
}

updateVariant(variant, interpretation, callback) {
this.opencgaSession.opencgaClient.clinical().updateInterpretation(this.clinicalAnalysis.id, interpretation.id, {primaryFindings: [variant]}, {
study: this.opencgaSession.study.fqn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
* limitations under the License.
*/

import {LitElement, html} from "lit";
import {LitElement, html, nothing} from "lit";
import {classMap} from "lit/directives/class-map.js";
import ClinicalAnalysisManager from "../clinical-analysis-manager.js";
import UtilsNew from "../../../core/utils-new.js";
import LitUtils from "../../commons/utils/lit-utils.js";
import GridCommons from "../../commons/grid-commons.js";
import "./clinical-interpretation-summary.js";
import "./clinical-interpretation-create.js";
import "./clinical-interpretation-update.js";
Expand All @@ -31,7 +30,7 @@ export default class ClinicalInterpretationManager extends LitElement {
super();

// Set status and init private properties
this._init();
this.#init();
}

createRenderRoot() {
Expand All @@ -55,30 +54,21 @@ export default class ClinicalInterpretationManager extends LitElement {
};
}

_init() {
#init() {
this._prefix = UtilsNew.randomString(8);

this.gridId = this._prefix + "Grid";
this.interpretationVersions = [];
}

connectedCallback() {
super.connectedCallback();

this._config = {...this.getDefaultConfig(), ...this.config};
this.gridCommons = new GridCommons(this.gridId, this, this._config);
this.clinicalAnalysisManager = new ClinicalAnalysisManager(this, this.clinicalAnalysis, this.opencgaSession);
this._config = this.getDefaultConfig();
this.clinicalAnalysisManager = null;
}

update(changedProperties) {
if (changedProperties.has("clinicalAnalysis")) {
this.clinicalAnalysisObserver();
}
if (changedProperties.has("clinicalAnalysisId")) {
this.clinicalAnalysisIdObserver();
}
if (changedProperties.has("opencgaSession") || changedProperties.has("config")) {
this._config = {...this.getDefaultConfig(), ...this.config};
this._config = {
...this.getDefaultConfig(),
...this.config,
};
this.clinicalAnalysisManager = new ClinicalAnalysisManager(this, this.clinicalAnalysis, this.opencgaSession);
}
super.update(changedProperties);
Expand All @@ -97,45 +87,13 @@ export default class ClinicalInterpretationManager extends LitElement {
}
}

clinicalAnalysisObserver() {
if (this.clinicalAnalysis && this.clinicalAnalysis.interpretation) {
this.clinicalAnalysisManager = new ClinicalAnalysisManager(this, this.clinicalAnalysis, this.opencgaSession);

// this.interpretations = [
// {
// ...this.clinicalAnalysis.interpretation, primary: true
// },
// ...this.clinicalAnalysis.secondaryInterpretations
// ];

const params = {
study: this.opencgaSession.study.fqn,
version: "all",
};
this.opencgaSession.opencgaClient.clinical().infoInterpretation(this.clinicalAnalysis.interpretation.id, params)
.then(response => {
this.interpretationVersions = response.responses[0].results.reverse();

// We always refresh UI when clinicalAnalysisObserver is called
// await this.updateComplete;
this.requestUpdate();
this.renderHistoryTable();
})
.catch(response => {
console.error("An error occurred fetching clinicalAnalysis: ", response);
});
}
}

renderInterpretation(interpretation, primary) {
const interpretationLockAction = interpretation.locked ?
this.renderItemAction(interpretation, "unlock", "fa-unlock", "Unlock") :
this.renderItemAction(interpretation, "lock", "fa-lock", "Lock");
const locked = interpretation?.locked;
const interpretationTitle = interpretation.locked ?
html`<i class="fas fa-lock"></i> Interpretation #${interpretation.id.split(".")[1]} - ${interpretation.id}`:
html`Interpretation #${interpretation.id.split(".")[1]} - ${interpretation.id}`;

const editInterpretationTitle = `Edit interpretation #${interpretation.id.split(".")[1]}: ${interpretation.id}`;
const editInterpretationTitle = `Edit Interpretation #${interpretation.id.split(".")[1]}: ${interpretation.id}`;

return html`
<div class="d-flex pb-1">
Expand Down Expand Up @@ -170,35 +128,20 @@ export default class ClinicalInterpretationManager extends LitElement {
</clinical-interpretation-update>
<div class="dropdown">
<button class="btn btn-light dropdown-toggle one-line" type="button" data-bs-toggle="dropdown"
?disabled="${this.clinicalAnalysis.locked}">
Action
<button class="btn btn-light dropdown-toggle" type="button" data-bs-toggle="dropdown" ?disabled="${this.clinicalAnalysis.locked}">
<i class="fas fa-toolbox pe-1"></i>
Actions
</button>
<ul class="dropdown-menu">
${primary ? html`
<li>
<a
class="dropdown-item disabled"
data-action="restorePrevious"
data-interpretation-id="${interpretation.id}"
data-islocked="${interpretation.locked}"
@click="${this.onActionClick}">
<i class="fas fa-code-branch me-1" aria-hidden="true"></i>
Restore previous version
</a>
</li>
<!-- Action Lock/Unlock -->
${interpretationLockAction}
<li><hr class="dropdown-divider"></li>
${this.renderItemAction(interpretation, "clear", "fa-eraser", "Clear")}
` : html`
<ul class="dropdown-menu dropdown-menu-end">
${this.renderItemAction(interpretation, "download", "fa-download", "Download JSON")}
<li><hr class="dropdown-divider"></li>
${!primary ? html`
${this.renderItemAction(interpretation, "setAsPrimary", "fa-map-marker", "Set as primary")}
<!-- Action Lock/Unlock -->
${interpretationLockAction}
<li><hr class="dropdown-divider"></li>
${this.renderItemAction(interpretation, "clear", "fa-eraser", "Clear")}
${this.renderItemAction(interpretation, "delete", "fa-trash", "Delete")}
`}
` : nothing}
${this.renderItemAction(interpretation, locked ? "unlock" : "lock", locked ? "fa-unlock" : "fa-lock", locked ? "Unlock" : "Lock")}
<li><hr class="dropdown-divider"></li>
${this.renderItemAction(interpretation, "clear", "fa-eraser", "Clear")}
${this.renderItemAction(interpretation, "delete", "fa-trash", "Delete", primary)}
</ul>
</div>
</div>
Expand All @@ -212,94 +155,33 @@ export default class ClinicalInterpretationManager extends LitElement {
`;
}

renderHistoryTable() {
this.table = $("#" + this.gridId);
this.table.bootstrapTable("destroy");
this.table.bootstrapTable({
theadClasses: "table-light",
buttonsClass: "light",
data: this.interpretationVersions,
columns: this._initTableColumns(),
uniqueId: "id",
iconsPrefix: GridCommons.GRID_ICONS_PREFIX,
icons: GridCommons.GRID_ICONS,
gridContext: this,
sidePagination: "local",
pagination: true,
formatNoMatches: () => "No previous versions",
// formatLoadingMessage: () => "<div><loading-spinner></loading-spinner></div>",
loadingTemplate: () => GridCommons.loadingFormatter(),
onClickRow: (row, selectedElement) => this.gridCommons.onClickRow(row.id, row, selectedElement),
});
}

renderItemAction(interpretation, action, icon, name) {
renderItemAction(interpretation, action, icon, name, defaultDisabled = false) {
const disabled = defaultDisabled || (interpretation?.locked && ((action !== "unlock") && (action !== "setAsPrimary")));
return html`
<li>
<a
class="dropdown-item"
?disabled="${interpretation.locked && ((action !== "unlock") && (action !== "setAsPrimary"))}"
class="${`dropdown-item ${disabled ? "disabled" : ""}`}"
?disabled="${disabled}"
data-action="${action}"
data-interpretation-id="${interpretation.id}"
data-islocked="${interpretation.locked}"
style="cursor:pointer;"
@click="${this.onActionClick}">
<i class="fas ${icon} me-1" aria-hidden="true"></i> ${name}
</a>
</li>
`;
}

_initTableColumns() {
this._columns = [
{
title: "ID",
field: "id"
},
{
title: "Version",
field: "version"
},
{
title: "Modification Date",
field: "modificationDate",
formatter: modificationDate => UtilsNew.dateFormatter(modificationDate, "D MMM YYYY, h:mm:ss a")
},
{
title: "Primary Findings",
field: "primaryFindings",
formatter: primaryFindings => primaryFindings?.length
},
{
title: "Status",
field: "internal.status.name"
},
{
title: "Actions",
formatter: () => `
<div class="btn-group">
<button class="btn btn-link link-underline link-underline-opacity-0 link-underline-opacity-75-hover" disabled type="button" data-action="view">View</button>
<button class="btn btn-link link-underline link-underline-opacity-0 link-underline-opacity-75-hover" type="button" data-action="restore">Restore</button>
</div>
`,
valign: "middle",
events: {
"click button": this.onActionClick.bind(this)
},
visible: !this._config.columns?.hidden?.includes("actions")
}
];

return this._columns;
}

onActionClick(e) {
e.preventDefault();
const {action, interpretationId, islocked} = e.currentTarget.dataset;
const interpretationCallback = () => {
this.onClinicalInterpretationUpdate();
};

// islock is a strring
if (islocked === "true" && ((action !== "unlock") && (action !== "setAsPrimary"))) {
// Only some actions are allowed when the interpretation is locked: unclock, set as primary, and download
if (islocked === "true" && ((action !== "unlock") && (action !== "setAsPrimary") && (action !== "download"))) {
NotificationUtils.dispatch(this, NotificationUtils.NOTIFY_WARNING, {
message: `${interpretationId} is locked!`,
});
Expand All @@ -320,6 +202,9 @@ export default class ClinicalInterpretationManager extends LitElement {
case "unlock":
this.clinicalAnalysisManager.unLockInterpretation(interpretationId, interpretationCallback);
break;
case "download":
this.clinicalAnalysisManager.downloadInterpretation(interpretationId);
break;
}
}
}
Expand Down Expand Up @@ -381,11 +266,6 @@ export default class ClinicalInterpretationManager extends LitElement {
<label>No secondary interpretations found</label>
`}
</div>
<div class="col-md-10 pt-2">
<h3>Primary Interpretation History - ${this.clinicalAnalysis.interpretation.id}</h3>
<table id="${this.gridId}"></table>
</div>
</div>
</div>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ export default class ClinicalInterpretationUpdate extends LitElement {
}
}
},
{
title: "Lock",
type: "toggle-switch",
field: "locked",
},
{
title: "Disease Panels",
field: "panels",
Expand All @@ -197,7 +202,7 @@ export default class ClinicalInterpretationUpdate extends LitElement {
.diseasePanels="${panelList}"
.panel="${panels?.map(panel => panel.id).join(",")}"
.showExtendedFilters="${false}"
.showSelectedPanels="${false}"
.showSelectedPanels="${true}"
.classes="${updateParams.panels ? "selection-updated" : ""}"
.disabled="${panelLock}"
@filterChange="${e => handlePanelsFilterChange(e)}">
Expand Down
Loading
Loading