Skip to content

Commit

Permalink
Remove No Valuequantity text from patient details card. (google#984)
Browse files Browse the repository at this point in the history
* Remove No Valuequantity text from patient details card.

* Refactoring.

* Address review comments.
  • Loading branch information
santosh-pingle authored Jan 13, 2022
1 parent f55cce3 commit 0691f75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class PatientDetailsViewModel(
if (observation.hasValueQuantity()) {
observation.valueQuantity.value.toString()
} else {
resources.getText(R.string.message_no_value_quantity).toString()
""
}
val valueUnit =
if (observation.hasValueQuantity()) {
Expand Down Expand Up @@ -273,9 +273,8 @@ class PatientDetailsViewModel(
if (condition.hasVerificationStatus()) {
condition.verificationStatus.codingFirstRep.code
} else {
resources.getText(R.string.message_no_value_quantity).toString()
""
}

return PatientListViewModel.ConditionItem(
condition.logicalId,
observationCode,
Expand Down
1 change: 0 additions & 1 deletion demo/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
<string name="header_observation">Observations</string>
<string name="header_conditions">Conditions</string>
<string name="message_no_datetime">No effective DateTime</string>
<string name="message_no_value_quantity">No ValueQuantity</string>
<string name="complete_survey">Complete Survey</string>
<string name="risk_status">Current status: </string>
<string name="unknown">UNKNOWN</string>
Expand Down

0 comments on commit 0691f75

Please sign in to comment.