Skip to content

Commit

Permalink
Going to plan 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Jan 3, 2024
1 parent 5e05391 commit 7ab4b51
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 29 deletions.
2 changes: 1 addition & 1 deletion bin/populate_env
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ echo "$template" | sed \
-e "s/%ANALYTICS_TOKEN%/$analytics_token/" \
-e "s/%META_TITLE%/$meta_title/" \
-e "s/%META_DESCRIPTION%/$meta_description/" \
> $1
> $1
5 changes: 0 additions & 5 deletions src/components/search/concept-modal/tabs/cdes/cde-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ export const CdeItem = ({ cde, cdeRelatedConcepts, highlight }) => {
<ul>
<li>Discovery of Biomarker Signatures Prognostic for Neuropathic Pain after Acute Spinal Cord Injury (<a href="https://healdata.org/portal/discovery/HDP00337">HEALDATAPLATFORM:HDP00337</a>)
</li>
<ul>
<li>tapsprescriptionmedusescl</li>
<Text><em>5. in the past 12 months, how often have you used any prescription medications just for the feeling, more than prescribed or that were not prescribed for you? prescription medications that may be used this way include: opiate pain relievers (for example, oxycontin, vicodin, percocet, methadone) medications for anxiety or sleeping (for example, xanax, ativan, klonopin) medications for adhd (forexample, adderall or ritalin)</em></Text>

</ul>
</ul>
</Section>
<Section title="Related concepts">
Expand Down
49 changes: 26 additions & 23 deletions src/components/search/concept-modal/tabs/studies/study-variable.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,31 @@ export const StudyVariable = ({ variable, highlight, ...props }) => {
analyticsEvents.variableLinkClicked(variable.id)
}
return (
<div className="study-variables-list-item" {...props}>
<Text className="variable-name">
<Highlighter autoEscape={ true } searchWords={ highlight } textToHighlight={ variable.name } /> &nbsp;
({ variable.e_link ? <a href={ variable.e_link } onClick={ variableLinkClicked }>{ variable.id }</a> : variable.id })
</Text><br />
<Text className="variable-description">
<Highlighter autoEscape={ true } searchWords={ highlight } textToHighlight={ variable.description } />
</Text>
<ul>
<li><tt>TAPSPrescriptionMedUseScl</tt> from Tobacco, Alcohol, Prescription medications, and other Substance (TAPS) <Button
type="text"
size="small"
icon={
<ExportOutlined onClick={(e) => {
e.preventDefault()
e.stopPropagation()
window.open("https://heal.nih.gov/files/CDEs/2023-05/taps-cdes.xlsx", "_blank")
}} />
}
style={{ marginLeft: "4px" }}
/></li>
</ul>
</div>
<>
<div className="study-variables-list-item" {...props}>
Related to CDEs in <em>Tobacco, Alcohol, Prescription medications, and other Substance (TAPS)</em><Button
type="text"
size="small"
icon={
<ExportOutlined onClick={(e) => {
e.preventDefault()
e.stopPropagation()
window.open("https://heal.nih.gov/files/CDEs/2023-05/taps-cdes.xlsx", "_blank")
}}/>
}
style={{marginLeft: "4px"}}
/>
</div>
<div className="study-variables-list-item" {...props}>
<Text className="variable-name">
<Highlighter autoEscape={true} searchWords={highlight} textToHighlight={variable.name}/> &nbsp;
({variable.e_link ?
<a href={variable.e_link} onClick={variableLinkClicked}>{variable.id}</a> : variable.id})
</Text><br/>
<Text className="variable-description">
<Highlighter autoEscape={true} searchWords={highlight} textToHighlight={variable.description}/>
</Text>
</div>
</>
)
}

0 comments on commit 7ab4b51

Please sign in to comment.