Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(formatting): 2303 displays clinical data as-is
Browse files Browse the repository at this point in the history
Closes #2303, #2322, #2352
  • Loading branch information
Terry Lin authored and Terry Lin committed May 12, 2016
1 parent 3147fc5 commit 24a3424
Showing 1 changed file with 36 additions and 30 deletions.
66 changes: 36 additions & 30 deletions app/scripts/participant/templates/participant.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ <h3 class="panel-title pull-left" data-translate>
<tbody>
<tr>
<th scope="row" data-translate>ID</th>
<td>{{ ::demo.demographic_id }}</td>
<td>{{ ::demo.demographic_id || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Ethnicity</th>
Expand Down Expand Up @@ -219,15 +219,15 @@ <h3>No Demographic Data Found.</h3>
<tbody>
<tr>
<th scope="row" data-translate>ID</th>
<td>{{ ::pc.participant.diagnoses[ $index ].diagnosis_id }}</td>
<td>{{ ::pc.participant.diagnoses[ $index ].diagnosis_id || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Classification of Tumor</th>
<td>{{ ::pc.participant.diagnoses[ $index ].classification_of_tumor | humanify }}</td>
<td>{{ ::pc.participant.diagnoses[ $index ].classification_of_tumor || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Alcohol Intensity</th>
<td>{{ ::pc.participant.diagnoses[ $index ].alcohol_intensity | humanify }}</td>
<td>{{ ::pc.participant.diagnoses[ $index ].alcohol_intensity || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Age at Diagnosis</th>
Expand Down Expand Up @@ -255,23 +255,23 @@ <h3>No Demographic Data Found.</h3>
</tr>
<tr>
<th scope="row" data-translate>Last Known Disease Status</th>
<td>{{ ::pc.participant.diagnoses[ $index ].last_known_disease_status | humanify }}</td>
<td>{{ ::pc.participant.diagnoses[ $index ].last_known_disease_status || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Morphology</th>
<td>{{ ::pc.participant.diagnoses[ $index ].morphology | humanify }}</td>
<td>{{ ::pc.participant.diagnoses[ $index ].morphology || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Primary Diagnosis</th>
<td>{{ ::pc.participant.diagnoses[ $index ].primary_diagnosis || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Prior Malignancy</th>
<td>{{ ::pc.participant.diagnoses[ $index ].prior_malignancy | humanify }}</td>
<td>{{ ::pc.participant.diagnoses[ $index ].prior_malignancy || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Progression or Recurrence</th>
<td>{{ ::pc.participant.diagnoses[ $index ].progression_or_recurrence | humanify }}</td>
<td>{{ ::pc.participant.diagnoses[ $index ].progression_or_recurrence || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Site of Resection or Biopsy</th>
Expand All @@ -283,7 +283,7 @@ <h3>No Demographic Data Found.</h3>
</tr>
<tr>
<th scope="row" data-translate>Tumor Grade</th>
<td>{{ ::pc.participant.diagnoses[ $index ].tumor_grade | humanify }}</td>
<td>{{ ::pc.participant.diagnoses[ $index ].tumor_grade || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Tumor Stage</th>
Expand Down Expand Up @@ -311,35 +311,35 @@ <h3>No Demographic Data Found.</h3>
<thead>
<tr>
<th data-translate>ID</th>
<th data-translate>State</th>
<th data-translate>Therapeutic Agents</th>
<th data-translate>Treatment Intent Type</th>
<th data-translate>Treatment or Therapy</th>
<th data-translate>Days to Treatment</th>
<th data-translate>Submitter ID</th>
<th data-translate>Created</th>
<th data-translate>Updated</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="t in pc.participant.diagnoses[ $index ].treatments">
<td><span style="overflow: hidden; text-overflow: ellipsis; max-width: 100px">
{{ ::t.treatment_id }}
</span></td>
<td
class="truncated-cell"
data-uib-tooltip="{{ ::t.treatment_id }}"
data-tooltip-append-to-body="true"
data-tooltip-popup-delay="1000"
>
{{ ::t.treatment_id || '--' }}
</td>
<td>
{{ ::t.therapeutic_agents }}
{{ ::t.therapeutic_agents || '--' }}
</td>
<td>
{{ ::t.treatment_intent_type }}
{{ ::t.treatment_intent_type || '--' }}
</td>
<td>
{{ ::t.treatment_or_therapy }}
{{ ::t.treatment_or_therapy || '--' }}
</td>
<td class="text-right">
{{ ::t.days_to_treatment | number }}
</td>
<td>
{{ ::t.submitter_id || '--' }}
{{ ::t.days_to_treatment || '--' | number }}
</td>
<td>
{{ ::t.created_datetime || '--' | date: 'yyyy-MM-dd' }}
Expand Down Expand Up @@ -438,43 +438,49 @@ <h3>No Family Histories Found.</h3>
<tbody>
<tr>
<th scope="row" data-translate>ID</th>
<td>{{ ::pc.participant.exposures[ $index ].exposure_id }}</td>
<td>{{ ::pc.participant.exposures[ $index ].exposure_id || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Alcohol History</th>
<td>{{ ::pc.participant.exposures[ $index ].alcohol_history | humanify }}</td>
<td>{{ ::pc.participant.exposures[ $index ].alcohol_history || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Alcohol Intensity</th>
<td>{{ ::pc.participant.exposures[ $index ].alcohol_intensity | humanify }}</td>
<td>{{ ::pc.participant.exposures[ $index ].alcohol_intensity || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>BMI</th>
<td>{{ ::pc.participant.exposures[ $index ].bmi | number | humanify }}</td>
<td>{{ ::pc.participant.exposures[ $index ].bmi || '--' | number }}
<!-- <span ng-if="pc.participant.exposures[ $index ].bmi">kg/m<sup>2</sup></span> -->
</td>
</tr>
<tr>
<th scope="row" data-translate>Cigarettes per Day</th>
<td>{{ ::pc.participant.exposures[ $index ].cigarettes_per_day | number | humanify }}</td>
<td>{{ ::pc.participant.exposures[ $index ].cigarettes_per_day || '--' | number }}</td>
</tr>
<tr>
<th scope="row" data-translate>Height</th>
<td>{{ ::pc.participant.exposures[ $index ].height | number | humanify }}</td>
<td>{{ ::pc.participant.exposures[ $index ].height || '--' }}
<!-- <span ng-if="pc.participant.exposures[ $index ].height">cm</span> -->
</td>
</tr>
<tr>
<th scope="row" data-translate>Weight</th>
<td>{{ ::pc.participant.exposures[ $index ].weight | number | humanify }}</td>
<td>{{ ::pc.participant.exposures[ $index ].weight || '--' }}
<!-- <span ng-if="pc.participant.exposures[ $index ].weight">kg</span> -->
</td>
</tr>
<tr>
<th scope="row" data-translate>Years Smoked</th>
<td>{{ ::pc.participant.exposures[ $index ].years_smoked | number | humanify }}</td>
<td>{{ ::pc.participant.exposures[ $index ].years_smoked || '--' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Created</th>
<td>{{ ::pc.participant.exposures[ $index ].created_datetime || '--' | date: 'yyyy-MM-dd' }}</td>
</tr>
<tr>
<th scope="row" data-translate>Updated</th>
<td>{{ ::pc.participant.exposures[ $index ].updated_datetime || '--'| date: 'yyyy-MM-dd' }}</td>
<td>{{ ::pc.participant.exposures[ $index ].updated_datetime || '--' | date: 'yyyy-MM-dd' }}</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 24a3424

Please sign in to comment.