/** * @param UserInfo $userInfo * @return DetailPatientInfoResponse $patientInfo */ private function populatePatientInfo(UserInfo $userInfo) { $patientInfo = new DetailPatientInfoResponse(); $patientInfo->setId($userInfo->getId()); $patientInfo->setAllergies($userInfo->getAllergies()); $patientInfo->setMedications($userInfo->getMedications()); $patientInfo->setPrevDiagnosedConditions($userInfo->getPrevDiagnosedConditions()); $patientInfo->setHeightInCms($userInfo->getHeightInCms()); $patientInfo->setWeightInKgs($userInfo->getWeightInKgs()); $patientInfo->setBloodGroup($userInfo->getBloodGroup()); $patientInfo->setAge($userInfo->getAge()); $patientInfo->setGender($userInfo->getGender()); $patientInfo->setOccupation($userInfo->getOccupation()); $patientInfo->setLocation($userInfo->getLocation()); $patientInfo->setName($userInfo->getName()); $patientInfo->setAllergyStatus($userInfo->getAllergyStatus()); $patientInfo->setPrevDiagnosedConditionsStatus($userInfo->getDiagnosedConditionStatus()); $patientInfo->setMedicationStatus($userInfo->getMedicationStatus()); $patientInfo->setProfilePicture($userInfo->getProfilePicture()); return $patientInfo; }