Exemplo n.º 1
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->total) {
         $json['total'] = $this->total->jsonSerialize();
     }
     if (0 < count($this->link)) {
         $json['link'] = array();
         foreach ($this->link as $link) {
             $json['link'][] = $link->jsonSerialize();
         }
     }
     if (0 < count($this->entry)) {
         $json['entry'] = array();
         foreach ($this->entry as $entry) {
             $json['entry'][] = $entry->jsonSerialize();
         }
     }
     if (null !== $this->signature) {
         $json['signature'] = $this->signature->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (0 < count($this->parameter)) {
         $json['parameter'] = array();
         foreach ($this->parameter as $parameter) {
             $json['parameter'][] = $parameter->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->text) {
         $json['text'] = $this->text->jsonSerialize();
     }
     if (0 < count($this->contained)) {
         $json['contained'] = array();
         foreach ($this->contained as $contained) {
             $json['contained'][] = $contained->jsonSerialize();
         }
     }
     if (0 < count($this->extension)) {
         $json['extension'] = array();
         foreach ($this->extension as $extension) {
             $json['extension'][] = $extension->jsonSerialize();
         }
     }
     if (0 < count($this->modifierExtension)) {
         $json['modifierExtension'] = array();
         foreach ($this->modifierExtension as $modifierExtension) {
             $json['modifierExtension'][] = $modifierExtension->jsonSerialize();
         }
     }
     return $json;
 }
Exemplo n.º 4
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->contentType) {
         $json['contentType'] = $this->contentType->jsonSerialize();
     }
     if (null !== $this->content) {
         $json['content'] = $this->content->jsonSerialize();
     }
     return $json;
 }