Skip to content

Commit

Permalink
fixed valueCodableConcept
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwilliammd committed Dec 2, 2024
1 parent 31c4aaf commit 9c8ae43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/FHIR/Medication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions src/FHIR/MedicationRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 9c8ae43

Please sign in to comment.