use of de.symeda.sormas.app.util.Bundler in project SORMAS-Project by hzi-braunschweig.
the class EventParticipantEditActivity method onSaveInstanceState.
@Override
public void onSaveInstanceState(@NonNull Bundle outState) {
super.onSaveInstanceState(outState);
new Bundler(outState).setEventUuid(eventUuid);
}
use of de.symeda.sormas.app.util.Bundler in project SORMAS-Project by hzi-braunschweig.
the class EventParticipantNewActivity method onSaveInstanceState.
@Override
public void onSaveInstanceState(@NonNull Bundle outState) {
super.onSaveInstanceState(outState);
new Bundler(outState).setEventUuid(eventUuid);
}
use of de.symeda.sormas.app.util.Bundler in project SORMAS-Project by hzi-braunschweig.
the class VaccinationNewActivity method onSaveInstanceState.
@Override
public void onSaveInstanceState(@NonNull Bundle outState) {
super.onSaveInstanceState(outState);
new Bundler(outState).setCaseUuid(immunizationUuid);
}
use of de.symeda.sormas.app.util.Bundler in project SORMAS-Project by hzi-braunschweig.
the class PrescriptionNewActivity method onSaveInstanceState.
@Override
public void onSaveInstanceState(@NonNull Bundle outState) {
super.onSaveInstanceState(outState);
new Bundler(outState).setCaseUuid(caseUuid);
}
use of de.symeda.sormas.app.util.Bundler in project SORMAS-Project by hzi-braunschweig.
the class SymptomsEditFragment method prepareFragmentData.
@Override
protected void prepareFragmentData() {
ado = getActivityRootData();
Person person;
if (ado instanceof Case) {
symptomsContext = SymptomsContext.CASE;
record = ((Case) ado).getSymptoms();
disease = ((Case) ado).getDisease();
person = ((Case) ado).getPerson();
} else if (ado instanceof Visit) {
symptomsContext = SymptomsContext.VISIT;
record = ((Visit) ado).getSymptoms();
disease = ((Visit) ado).getDisease();
person = ((Visit) ado).getPerson();
} else if (ado instanceof ClinicalVisit) {
symptomsContext = SymptomsContext.CLINICAL_VISIT;
record = ((ClinicalVisit) ado).getSymptoms();
disease = ((ClinicalVisit) ado).getDisease();
person = DatabaseHelper.getCaseDao().queryUuidBasic(new Bundler(getArguments()).getCaseUuid()).getPerson();
} else {
throw new UnsupportedOperationException("ActivityRootData of class " + ado.getClass().getSimpleName() + " does not support PersonReadFragment");
}
isInfant = person.getApproximateAge() != null && ((person.getApproximateAge() <= 12 && person.getApproximateAgeType() == ApproximateAgeType.MONTHS) || person.getApproximateAge() <= 1);
bodyTempList = getTemperatures(true);
tempSourceList = DataUtils.getEnumItems(TemperatureSource.class, true);
congenitalHeartDiseaseList = DataUtils.getEnumItems(CongenitalHeartDiseaseType.class, true);
}
Aggregations