From 8ba8867b509f2dfaab1b11ce3f0ebe9fa4feb721 Mon Sep 17 00:00:00 2001 From: ivanwilliammd Date: Mon, 2 Dec 2024 15:31:53 +0700 Subject: [PATCH] updated variable --- src/FHIR/Medication.php | 4 ++-- src/FHIR/MedicationRequest.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/FHIR/Medication.php b/src/FHIR/Medication.php index 9dc60f4..b3fb56a 100644 --- a/src/FHIR/Medication.php +++ b/src/FHIR/Medication.php @@ -29,10 +29,10 @@ public function __construct() ], ]; - public function addIdentifier($identifier) + public function addIdentifier($medication_id) { $identifier['system'] = 'http://sys-ids.kemkes.go.id/medication/'.$this->organization_id; - $identifier['value'] = $identifier; + $identifier['value'] = $medication_id; $identifier['use'] = 'official'; $this->medication['identifier'][] = $identifier; diff --git a/src/FHIR/MedicationRequest.php b/src/FHIR/MedicationRequest.php index 07c145b..673cf86 100644 --- a/src/FHIR/MedicationRequest.php +++ b/src/FHIR/MedicationRequest.php @@ -50,19 +50,19 @@ public function __construct() ]; - public function addPrescriptionIdentifier($identifier) + public function addPrescriptionIdentifier($prescription_id) { $identifier['system'] = 'http://sys-ids.kemkes.go.id/prescription/'.$this->organization_id; - $identifier['value'] = $identifier; + $identifier['value'] = $prescription_id; $identifier['use'] = 'official'; $this->medication_request['identifier'][] = $identifier; } - public function addPrescriptionItemIdentifier($identifier) + public function addPrescriptionItemIdentifier($prescription_item_id) { $identifier['system'] = 'http://sys-ids.kemkes.go.id/prescription-item/'.$this->organization_id; - $identifier['value'] = $identifier; + $identifier['value'] = $prescription_item_id; $identifier['use'] = 'official'; $this->medication_request['identifier'][] = $identifier;