Skip to content

Commit ef1ac38

Browse files
committed
updated address mandatory
1 parent 2fdf313 commit ef1ac38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/FHIR/Patient.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ public function json()
241241
}
242242

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

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

0 commit comments

Comments
 (0)