From 9c8ae4329453623f45f086d6b3fe2006401f7986 Mon Sep 17 00:00:00 2001 From: ivanwilliammd Date: Mon, 2 Dec 2024 21:18:36 +0700 Subject: [PATCH] fixed valueCodableConcept --- src/FHIR/Medication.php | 6 +++--- src/FHIR/MedicationRequest.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/FHIR/Medication.php b/src/FHIR/Medication.php index f2cfe45..96cb9b7 100644 --- a/src/FHIR/Medication.php +++ b/src/FHIR/Medication.php @@ -47,7 +47,7 @@ public function addIdentifier($medication_id) public function setCode($code = null, $display = null) { - $this->medication['code'][] = [ + $this->medication['code'] = [ 'coding' => [ [ 'system' => 'http://sys-ids.kemkes.go.id/kfa', @@ -75,7 +75,7 @@ public function setForm($code = null) throw new FHIRException("Medication form code not found"); } - $this->medication['form'][] = [ + $this->medication['form'] = [ 'coding' => [ [ 'system' => 'http://terminology.kemkes.go.id/CodeSystem/medication-form', @@ -171,7 +171,7 @@ public function setMedicationType($code = 'NC') ); $medicationType['url'] = 'https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationType'; - $medicationType['valueCodeableConcept'][] = [ + $medicationType['valueCodeableConcept'] = [ 'coding' => [ [ 'system' => 'http://terminology.kemkes.go.id/CodeSystem/medication-type', diff --git a/src/FHIR/MedicationRequest.php b/src/FHIR/MedicationRequest.php index 89945d2..3a8e577 100644 --- a/src/FHIR/MedicationRequest.php +++ b/src/FHIR/MedicationRequest.php @@ -170,7 +170,7 @@ public function setPerformer($performerId, $name) public function setPerformerType($performer_type) { - $this->medication_request['performerType'][] = [ + $this->medication_request['performerType'] = [ 'coding' => [ [ 'system' => 'http://terminology.hl7.org/CodeSystem/medicationrequest-performer-type', @@ -278,7 +278,7 @@ public function addDosageInstruction($sequence = 1, $route_code, $timing_code, $ $dosage_instruction['doseAndRate'][] = $doseAndRate_singular; - $dosage_instruction['route'][] = [ + $dosage_instruction['route'] = [ 'coding' => [ [ 'system' => 'http://www.whocc.no/atc', @@ -288,7 +288,7 @@ public function addDosageInstruction($sequence = 1, $route_code, $timing_code, $ ], ]; - $dosage_instruction['timing']['code'][] = [ + $dosage_instruction['timing']['code'] = [ 'coding' => [ [ 'system' => 'http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation',