I am trying to use the insertEncounter method in src/Services/EncounterService.php to create a new encounter for a patient.
Here is my code:
//create patient
$patient = array("fname" => "Marky", "lname" => "Locklear", "DOB" => "09/05/1972", "home_phone" => "");
$new_patient = $patientService->databaseInsert($patient);
$data = array("date" => "08/23/2021", "reason" => "locklear test");
//create encounter
$new_encounter = $encounterService->insertEncounter($new_patient['pid'], $data);
When I run this I get the error “Patient UUID is invalid”. Is there some other id I could be using? I tried using the uuid instead but get a the error “Patient UUID must be a valid UUID (valid format)”.
Thanks in advance.