/** * @return array */ public function jsonSerialize() { $json = parent::jsonSerialize(); $json['resourceType'] = $this->_fhirElementName; if (0 < count($this->identifier)) { $json['identifier'] = array(); foreach ($this->identifier as $identifier) { $json['identifier'][] = $identifier->jsonSerialize(); } } if (null !== $this->status) { $json['status'] = $this->status->jsonSerialize(); } if (0 < count($this->statusHistory)) { $json['statusHistory'] = array(); foreach ($this->statusHistory as $statusHistory) { $json['statusHistory'][] = $statusHistory->jsonSerialize(); } } if (0 < count($this->type)) { $json['type'] = array(); foreach ($this->type as $type) { $json['type'][] = $type->jsonSerialize(); } } if (0 < count($this->condition)) { $json['condition'] = array(); foreach ($this->condition as $condition) { $json['condition'][] = $condition->jsonSerialize(); } } if (null !== $this->patient) { $json['patient'] = $this->patient->jsonSerialize(); } if (null !== $this->managingOrganization) { $json['managingOrganization'] = $this->managingOrganization->jsonSerialize(); } if (null !== $this->period) { $json['period'] = $this->period->jsonSerialize(); } if (0 < count($this->referralRequest)) { $json['referralRequest'] = array(); foreach ($this->referralRequest as $referralRequest) { $json['referralRequest'][] = $referralRequest->jsonSerialize(); } } if (null !== $this->careManager) { $json['careManager'] = $this->careManager->jsonSerialize(); } if (0 < count($this->careTeam)) { $json['careTeam'] = array(); foreach ($this->careTeam as $careTeam) { $json['careTeam'][] = $careTeam->jsonSerialize(); } } return $json; }
/** * @return array */ public function jsonSerialize() { $json = parent::jsonSerialize(); if (null !== $this->status) { $json['status'] = $this->status->jsonSerialize(); } if (null !== $this->period) { $json['period'] = $this->period->jsonSerialize(); } return $json; }