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;