Skip to content

Commit

Permalink
#170: implemented sample features for Mpox.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flava177 committed Dec 13, 2024
1 parent 8597dbd commit 710512c
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ public void onAfterLayoutBinding(final FragmentSampleEditLayoutBinding contentBi
case CSM:
handleCSM();
break;
case MONKEYPOX:
handleMpox();
break;
default:
}

Expand Down Expand Up @@ -588,6 +591,16 @@ private void handleMeasles() {
getContentBinding().samplePathogenTestingRequested.setVisibility(GONE);
}

private void handleMpox(){
List<SampleMaterial> idsrSampleMaterialList = Arrays.asList(
SampleMaterial.BLOOD,
SampleMaterial.CRUST,
SampleMaterial.SWAB
);

getContentBinding().sampleSampleMaterial.initializeSpinner(DataUtils.toItems(idsrSampleMaterialList));
}

private void handleAHF() {
if (getContentBinding().sampleHasSampleBeenCollected.getValue() == null) {
getContentBinding().sampleSampleDateTime.setVisibility(View.GONE);
Expand Down

0 comments on commit 710512c

Please sign in to comment.