Skip to content

Commit

Permalink
updated address mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwilliammd committed Nov 14, 2024
1 parent 2fdf313 commit ef1ac38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FHIR/Patient.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ public function json()
}

// Address is required
// if (!array_key_exists('address', $this->patient)) {
// throw new FHIRException('Please use patient->setAddress($address_detail) to pass the data');
// }
if (!array_key_exists('address', $this->patient)) {
throw new FHIRException('Please use patient->setAddress($address_detail) to pass the data');
}

// Telecom is required
if (! array_key_exists('telecom', $this->patient)) {
Expand Down

0 comments on commit ef1ac38

Please sign in to comment.