コード例 #1
0
 protected function populatePatientInfo(UserInfo $userInfo, $practoAccountId = null)
 {
     $patientInfo = new DetailPatientInfoResponse();
     $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->setAllergyStatus($userInfo->getAllergyStatus());
     $patientInfo->setPrevDiagnosedConditionsStatus($userInfo->getDiagnosedConditionStatus());
     $patientInfo->setMedicationStatus($userInfo->getMedicationStatus());
     $this->setPatientInfo($patientInfo);
 }
コード例 #2
0
 /**
  * @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;
 }