/** * @return array */ public function jsonSerialize() { $json = parent::jsonSerialize(); if (0 < count($this->extension)) { $json['extension'] = array(); foreach ($this->extension as $extension) { $json['extension'][] = $extension->jsonSerialize(); } } if (null !== $this->value) { $json['value'] = $this->value->jsonSerialize(); } if (null !== $this->comparator) { $json['comparator'] = $this->comparator->jsonSerialize(); } if (null !== $this->unit) { $json['unit'] = $this->unit->jsonSerialize(); } if (null !== $this->system) { $json['system'] = $this->system->jsonSerialize(); } if (null !== $this->code) { $json['code'] = $this->code->jsonSerialize(); } if (null !== $this->id) { $json['id'] = $this->id; } return $json; }
/** * @return array */ public function jsonSerialize() { $json = parent::jsonSerialize(); if (null !== $this->value) { $json['value'] = $this->value->jsonSerialize(); } if (null !== $this->comparator) { $json['comparator'] = $this->comparator->jsonSerialize(); } if (null !== $this->unit) { $json['unit'] = $this->unit->jsonSerialize(); } if (null !== $this->system) { $json['system'] = $this->system->jsonSerialize(); } if (null !== $this->code) { $json['code'] = $this->code->jsonSerialize(); } return $json; }