/** * Load Sample * * @return VitalSign */ public function loadSample() { $practiceProfileId = $this->securityContext->getToken()->getSession()->getPracticeProfileId(); $medicalHistory = new MedicalHistory(); $medicalHistory->setName('HyperTension'); $patient = new PracticePatientProfile(); $patient->setPracticeProfileId($practiceProfileId); $patient->setName('Kaushik Arora'); $patient->setPrimaryMobile('+919900990099'); $patient->setResidingAddress('4th Floor, Abhaya Heights, Bannerghatta Road Near Jayadeva Flyover'); $patient->setGender('M'); $patient->addMedicalHistory($medicalHistory); $patient->setCity('Bangalore'); $patient->setLocality('Bannerghatta'); $patient->setDateOfBirth('1985-04-12'); $patient->setBloodGroup('A+'); $doctor = new PracticeDoctorProfile(); $doctor->setName('Dr. Ashok Mehta'); $vitalSign = new VitalSign(); $vitalSign->setPracticeProfileId($practiceProfileId); $vitalSign->setObservedAt(new \DateTime('today')); $vitalSign->setPatient($patient); $vitalSign->setDoctor($doctor); $vitalSign->setTemperatureInFahrenheit(101); $vitalSign->setTemperatureMeasurementMethod('ORAL'); $vitalSign->setBpSystolic(115); $vitalSign->setBpDiastolic(85); $vitalSign->setBpMeasurementMethod('SITTING'); $vitalSign->setHeartRate(120); $vitalSign->setWeightInKg(85.2); return $vitalSign; }