Skip to content

Commit ffc5edd

Browse files
committed
updated put function for encounter, condition, location, observation
1 parent e12032d commit ffc5edd

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

src/FHIR/Condition.php

+2
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ public function post()
168168

169169
public function put($id)
170170
{
171+
$this->condition['id'] = $id;
172+
171173
$payload = $this->json();
172174
[$statusCode, $res] = $this->ss_put('Condition', $id, $payload);
173175

src/FHIR/Encounter.php

+2
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ public function post()
257257

258258
public function put($id)
259259
{
260+
$this->encounter['id'] = $id;
261+
260262
$payload = $this->json();
261263
[$statusCode, $res] = $this->ss_put('Encounter', $id, $payload);
262264

src/FHIR/Location.php

+1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public function post()
195195
public function put($id)
196196
{
197197
$this->location['id'] = $id;
198+
198199
$payload = $this->json();
199200
// dd($payload);
200201
[$statusCode, $res] = $this->ss_put('Location', $id, $payload);

src/FHIR/Observation.php

+2
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ public function post()
228228

229229
public function put($id)
230230
{
231+
$this->observation['id'] = $id;
232+
231233
$payload = $this->json();
232234
[$statusCode, $res] = $this->ss_put('Observation', $id, $payload);
233235

0 commit comments

Comments
 (0)