Skip to content

Commit 4be266b

Browse files
authored
Merge pull request #239 from CBIIT/EVSSIP-301
EVSSIP-301
2 parents fbb147d + fa66232 commit 4be266b

File tree

7 files changed

+35
-32
lines changed

7 files changed

+35
-32
lines changed

server/createPCDCDataMapping.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const readExcelFile = async () => {
2626
let lowerNode = item[3].replace(" Table", "").replace(/[^a-zA-Z0-9_]/g, "_").toLowerCase();
2727
let node = item[3];
2828
let node_nc = item[2];
29-
let pt = item[7];
29+
let pt = (item[7]).toString();
3030
let p_desc = item[10];
3131
let ncit = item[4];
3232
let p_type = item[15];

server/data_files/GDC/gdc_props.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/data_files/GDC/gdc_values.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/data_files/GDC/ncit_details.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-1.95 MB
Binary file not shown.

server/data_files/PCDC/pcdc-model-all.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@
13041304
"v_PT": ""
13051305
},
13061306
{
1307-
"v_name": "",
1307+
"v_name": "Bone Marrow Results",
13081308
"v_n_code": "C190021",
13091309
"v_PT": ""
13101310
},
@@ -3136,9 +3136,9 @@
31363136
"values": []
31373137
},
31383138
{
3139-
"p_name": "AGE_AT_IMT_START",
3139+
"p_name": "AGE_AT_CIMT_START",
31403140
"p_n_code": "C173195",
3141-
"p_desc": "Age of subject (in days) at the start of the immunotherapy.",
3141+
"p_desc": "Age of subject (in days) at the start of the cellular immunotherapy.",
31423142
"p_type": "number",
31433143
"values": []
31443144
},
@@ -4436,7 +4436,7 @@
44364436
]
44374437
},
44384438
{
4439-
"p_name": "MRD_SENSITIVTY",
4439+
"p_name": "MRD_SENSITIVITY",
44404440
"p_n_code": "C168957",
44414441
"p_desc": "Sensitivity of modality used to determine minimal residual disease.",
44424442
"p_type": "number",
@@ -10242,8 +10242,8 @@
1024210242
},
1024310243
{
1024410244
"p_name": "MARGINS",
10245-
"p_n_code": "C123560",
10246-
"p_desc": "The determination of the presence of actual or potential neoplastic tissue which has been left outside the boundary of a resected specimen within the patient.",
10245+
"p_n_code": "C41227",
10246+
"p_desc": "One of the criteria for assessment of the effectiveness of given surgical procedure in achieving the local control of a neoplasm and the adequacy of tumor removal. It is defined by the tissue plane through which the dissection has been done and the actual or potential neoplastic tissue which has been left outside the boundary of a resected specimen within the patient. There are four types of surgical margins: intracapsular or intralesional, marginal, wide, and radical.",
1024710247
"p_type": "enum",
1024810248
"values": [
1024910249
{
@@ -10931,7 +10931,7 @@
1093110931
]
1093210932
},
1093310933
{
10934-
"p_name": "SCT_CD34_COLL",
10934+
"p_name": "SCT_CD34_COLLECTED",
1093510935
"p_n_code": "C175036",
1093610936
"p_desc": "The determination of the amount of CD34 expressing stem cells present in a sample.",
1093710937
"p_type": "number",
@@ -14297,8 +14297,8 @@
1429714297
},
1429814298
{
1429914299
"p_name": "MARGINS",
14300-
"p_n_code": "C123560",
14301-
"p_desc": "The determination of the presence of actual or potential neoplastic tissue which has been left outside the boundary of a resected specimen within the patient.",
14300+
"p_n_code": "C41227",
14301+
"p_desc": "One of the criteria for assessment of the effectiveness of given surgical procedure in achieving the local control of a neoplasm and the adequacy of tumor removal. It is defined by the tissue plane through which the dissection has been done and the actual or potential neoplastic tissue which has been left outside the boundary of a resected specimen within the patient. There are four types of surgical margins: intracapsular or intralesional, marginal, wide, and radical.",
1430214302
"p_type": "enum",
1430314303
"values": [
1430414304
{
@@ -17817,7 +17817,7 @@
1781717817
]
1781817818
},
1781917819
{
17820-
"p_name": "MRD_SENSITIVTY",
17820+
"p_name": "MRD_SENSITIVITY",
1782117821
"p_n_code": "C168957",
1782217822
"p_desc": "Sensitivity of modality used to determine minimal residual disease.",
1782317823
"p_type": "number",
@@ -22490,7 +22490,7 @@
2249022490
{
2249122491
"p_name": "MOD_RATIONALE",
2249222492
"p_n_code": "C185636",
22493-
"p_desc": "The reasoning behind a treatment modification.",
22493+
"p_desc": "The rationale for why an entity or event is changed.",
2249422494
"p_type": "enum",
2249522495
"values": [
2249622496
{
@@ -24127,7 +24127,7 @@
2412724127
]
2412824128
},
2412924129
{
24130-
"p_name": "SCT_CD34_COLL",
24130+
"p_name": "SCT_CD34_COLLECTED",
2413124131
"p_n_code": "C175036",
2413224132
"p_desc": "The determination of the amount of CD34 expressing stem cells present in a sample.",
2413324133
"p_type": "number",
@@ -31710,8 +31710,8 @@
3171031710
},
3171131711
{
3171231712
"p_name": "AE_ATTRIBUTION",
31713-
"p_n_code": "C53255",
31714-
"p_desc": "A characteristic used to qualify the determination of whether an adverse event is related to medical product or procedure.",
31713+
"p_n_code": "C41358",
31714+
"p_desc": "A specific identifiable level (defined qualitatively or quantitatively) of probability of adverse event being caused or associated with the product or procedure administration to a patient.",
3171531715
"p_type": "enum",
3171631716
"values": [
3171731717
{

src/pages/Search/PropsTable.js

+17-14
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ const ColRight = styled(Col)`
124124
text-align: right;
125125
`;
126126

127-
const LinkDesc = styled.a`
128-
padding-left: 0.5rem;
129-
`;
130-
131127
const Indicator = styled.div`
132128
position: relative;
133129
padding-bottom: 36%;
@@ -150,9 +146,18 @@ const IndicatorContent = styled.div`
150146
`;
151147

152148
const Description = styled.p`
149+
overflow: hidden;
150+
text-overflow: ellipsis;
151+
display: -webkit-box;
152+
-webkit-line-clamp: 3;
153+
-webkit-box-orient: vertical;
153154
margin-bottom: 0;
154155
`;
155156

157+
const DescriptionContent = styled.div`
158+
position: relative;
159+
`;
160+
156161
const PropType = styled.span`
157162
font-size: 14px;
158163
`;
@@ -326,18 +331,16 @@ const PropsTable = (props) => {
326331
};
327332

328333
return (
329-
<Description>
330-
<span dangerouslySetInnerHTML={{ __html: '<b>Definition:</b> ' + props.desc.substring(0, 138)}}></span>
331-
{props.desc.length >= 138 &&
332-
<>
333-
<span className={isToggleOn === true ? '' : 'd-none'} dangerouslySetInnerHTML={{ __html: props.desc.substring(138)}}></span>
334-
<LinkDesc href="/#" aria-label={isToggleOn === true ? 'collapse' : 'expand'} onClick={ToggleTableHandler}>
335-
{isToggleOn === true ? <span>Less...</span> : <span>More... </span>}
336-
</LinkDesc>
337-
</>
334+
<DescriptionContent>
335+
<Description style={{'WebkitLineClamp': isToggleOn === true ? 'initial' : 3}} dangerouslySetInnerHTML={{ __html: '<b>Definition:</b> ' + props.desc}}></Description>
336+
{props.desc.replace(/<b>/g, "").replace(/<\/b>/g, "").length > 200 &&
337+
<a href="/#" aria-label={isToggleOn === true ? 'collapse' : 'expand'} onClick={ToggleTableHandler}>
338+
{isToggleOn === true ? <span>Less...</span> : <span>More... </span>}
339+
</a>
338340
}
339-
</Description>
341+
</DescriptionContent>
340342
);
343+
341344
};
342345

343346

0 commit comments

Comments
 (0)