From ef1ac38b3db6b1f0fd5669154d6ce26f73d25ecb Mon Sep 17 00:00:00 2001 From: ivanwilliammd Date: Thu, 14 Nov 2024 21:05:58 +0700 Subject: [PATCH] updated address mandatory --- src/FHIR/Patient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FHIR/Patient.php b/src/FHIR/Patient.php index 2409651..9d6665c 100644 --- a/src/FHIR/Patient.php +++ b/src/FHIR/Patient.php @@ -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)) {