Skip to content

Commit

Permalink
MHV-62747 MR: Datadog PHI remediation (#33566)
Browse files Browse the repository at this point in the history
* MHV-62747 fixing breadcrumbs tags

* MHV-62747 masking lists headers

* MHV-62747 labs and tests

* MHV-62747 care summaries and notes

* MHV-62747 vaccines

* MHV-62747 allergies

* MHV-62747 back to top

* MHV-62747 lab and test updates with action name

* MHV-62747 care summaries updates with action name

* MHV-62747 vaccines updates with action name

* MHV-62747 care summaries updates with action name

* MHV-62747 conditions updates with action name

* MHV-62747 vitals updates with action name

* MHV-62747 last updates
  • Loading branch information
oleksii-morgun authored Dec 16, 2024
1 parent bb1e877 commit b1adb26
Show file tree
Hide file tree
Showing 24 changed files with 384 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ ${record.summary}`;
aria-describedby="admission-discharge-date"
data-testid="admission-discharge-name"
data-dd-privacy="mask"
data-dd-action-name="[admission discharge summary - name]"
>
{record.name}
</h1>
Expand Down Expand Up @@ -144,7 +145,11 @@ ${record.summary}`;
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Location
</h3>
<p data-testid="note-record-location" data-dd-privacy="mask">
<p
data-testid="note-record-location"
data-dd-privacy="mask"
data-dd-action-name="[admission discharge summary - location]"
>
{record.location}
</p>
{record.sortByField !== dischargeSummarySortFields.ADMISSION_DATE &&
Expand All @@ -153,7 +158,11 @@ ${record.summary}`;
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Date admitted
</h3>
<p data-testid="note-admission-date" data-dd-privacy="mask">
<p
data-testid="note-admission-date"
data-dd-privacy="mask"
data-dd-action-name="[admission discharge summary - admission date]"
>
{record.admissionDate}
</p>
</>
Expand All @@ -163,15 +172,23 @@ ${record.summary}`;
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Date discharged
</h3>
<p data-testid="note-discharge-date" data-dd-privacy="mask">
<p
data-testid="note-discharge-date"
data-dd-privacy="mask"
data-dd-action-name="[admission discharge summary - discharge date]"
>
{record.dischargeDate}
</p>
</>
)}
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Discharged by
</h3>
<p data-testid="note-discharged-by" data-dd-privacy="mask">
<p
data-testid="note-discharged-by"
data-dd-privacy="mask"
data-dd-action-name="[admission discharge summary - discharged by]"
>
{record.dischargedBy}
</p>
</div>
Expand All @@ -182,6 +199,7 @@ ${record.summary}`;
data-testid="note-summary"
className="monospace vads-u-line-height--6"
data-dd-privacy="mask"
data-dd-action-name="[admission discharge summary - Summary]"
>
{record.summary}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,17 @@ ${record.note}`;
};

return (
<div className="vads-l-grid-container vads-u-padding-x--0 vads-u-margin-bottom--5">
<div
className="vads-l-grid-container vads-u-padding-x--0 vads-u-margin-bottom--5"
data-dd-privacy="mask"
>
<PrintHeader />
<h1
className="vads-u-margin-bottom--0"
aria-describedby="progress-note-date"
data-testid="progress-note-name"
data-dd-privacy="mask"
data-dd-action-name="[progress note - name]"
>
{record.name}
</h1>
Expand Down Expand Up @@ -122,25 +126,41 @@ ${record.note}`;
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Location
</h3>
<p data-testid="progress-location" data-dd-privacy="mask">
<p
data-testid="progress-location"
data-dd-privacy="mask"
data-dd-action-name="[progress note - location]"
>
{record.location}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Written by
</h3>
<p data-testid="note-record-written-by" data-dd-privacy="mask">
<p
data-testid="note-record-written-by"
data-dd-privacy="mask"
data-dd-action-name="[progress note - written by]"
>
{record.writtenBy}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Signed by
</h3>
<p data-testid="note-record-signed-by" data-dd-privacy="mask">
<p
data-testid="note-record-signed-by"
data-dd-privacy="mask"
data-dd-action-name="[progress note - signed by]"
>
{record.signedBy}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Date signed
</h3>
<p data-testid="progress-signed-date" data-dd-privacy="mask">
<p
data-testid="progress-signed-date"
data-dd-privacy="mask"
data-dd-action-name="[progress note - date signed]"
>
{record.dateSigned}
</p>
</div>
Expand All @@ -151,6 +171,7 @@ ${record.note}`;
data-testid="note-record"
className="monospace vads-u-line-height--6"
data-dd-privacy="mask"
data-dd-action-name="[progress note - summary Note]"
>
{record.note}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Lab comments: ${entry.labComments}\n`,
aria-describedby="chem-hem-date"
data-testid="chem-hem-name"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - name]"
>
{record.name}
</h1>
Expand Down Expand Up @@ -140,25 +141,41 @@ Lab comments: ${entry.labComments}\n`,
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Type of test
</h3>
<p data-testid="chem-hem-category" data-dd-privacy="mask">
<p
data-testid="chem-hem-category"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - category]"
>
{record.category}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Site or sample tested
</h3>
<p data-testid="chem-hem-sample-tested" data-dd-privacy="mask">
<p
data-testid="chem-hem-sample-tested"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - site]"
>
{record.sampleTested}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Ordered by
</h3>
<p data-testid="chem-hem-ordered-by" data-dd-privacy="mask">
<p
data-testid="chem-hem-ordered-by"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - ordered by]"
>
{record.orderedBy}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Location
</h3>
<p data-testid="chem-hem-collecting-location" data-dd-privacy="mask">
<p
data-testid="chem-hem-collecting-location"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - location]"
>
{record.collectingLocation}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const ChemHemResults = props => {
<h3
className="vads-u-margin--0 vads-u-padding--2"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - result name]"
>
{result.name}
</h3>
Expand All @@ -22,6 +23,7 @@ const ChemHemResults = props => {
<p
className="vads-u-margin--0 vads-u-padding-bottom--2"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - result]"
>
{result.result}
</p>
Expand All @@ -31,6 +33,7 @@ const ChemHemResults = props => {
<p
className="vads-u-margin--0 vads-u-padding-bottom--2"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - reference range]"
>
{result.standardRange}
</p>
Expand All @@ -40,6 +43,7 @@ const ChemHemResults = props => {
<p
className="vads-u-margin--0 vads-u-padding-bottom--2"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - status]"
>
{result.status}
</p>
Expand All @@ -49,6 +53,7 @@ const ChemHemResults = props => {
<p
className="vads-u-margin--0 vads-u-padding-bottom--2"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - lab comments]"
>
{result.labComments}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const EkgDetails = props => {
aria-describedby="ekg-date"
data-testid="ekg-record-name"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - ekg name]"
>
{record.name}
</h1>
Expand All @@ -110,7 +111,11 @@ const EkgDetails = props => {
<h2 className="vads-u-font-size--md vads-u-font-family--sans">
Location
</h2>
<p data-testid="ekg-record-facility" data-dd-privacy="mask">
<p
data-testid="ekg-record-facility"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - ekg facility]"
>
{record.facility || 'There is no facility reported at this time'}
</p>
<h2 className="vads-u-font-size--md vads-u-font-family--sans">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ ${record.results}`;
aria-describedby="microbio-date"
data-testid="microbio-name"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - microbio name]"
>
{record.name}
</h1>
Expand Down Expand Up @@ -136,39 +137,63 @@ ${record.results}`;
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Lab type
</h3>
<p data-testid="microbio-lab-type" data-dd-privacy="mask">
<p
data-testid="microbio-lab-type"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - microbio lab type]"
>
{record.labType}
</p>
</>
)}
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Site or sample tested
</h3>
<p data-testid="microbio-sample-tested" data-dd-privacy="mask">
<p
data-testid="microbio-sample-tested"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - microbio site]"
>
{record.sampleTested}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Collection sample
</h3>
<p data-testid="microbio-sample-from" data-dd-privacy="mask">
<p
data-testid="microbio-sample-from"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - microbio sample]"
>
{record.sampleFrom}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Ordered by
</h3>
<p data-testid="microbio-ordered-by" data-dd-privacy="mask">
<p
data-testid="microbio-ordered-by"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - microbio ordered by]"
>
{record.orderedBy}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Location
</h3>
<p data-testid="microbio-collecting-location" data-dd-privacy="mask">
<p
data-testid="microbio-collecting-location"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - microbio location]"
>
{record.collectingLocation}
</p>
<h3 className="vads-u-font-size--md vads-u-font-family--sans">
Date completed
</h3>
<p data-testid="microbio-date-completed" data-dd-privacy="mask">
<p
data-testid="microbio-date-completed"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - microbio date]"
>
{record.dateCompleted}
</p>
</div>
Expand All @@ -179,6 +204,7 @@ ${record.results}`;
<p
className="vads-u-font-size--base monospace vads-u-line-height--3"
data-dd-privacy="mask"
data-dd-action-name="[lab and tests - microbio results]"
>
{record.results}
</p>{' '}
Expand Down
Loading

0 comments on commit b1adb26

Please sign in to comment.