コード例 #1
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->outcome) {
         $json['outcome'] = $this->outcome->jsonSerialize();
     }
     if (null !== $this->onsetQuantity) {
         $json['onsetQuantity'] = $this->onsetQuantity->jsonSerialize();
     }
     if (null !== $this->onsetRange) {
         $json['onsetRange'] = $this->onsetRange->jsonSerialize();
     }
     if (null !== $this->onsetPeriod) {
         $json['onsetPeriod'] = $this->onsetPeriod->jsonSerialize();
     }
     if (null !== $this->onsetString) {
         $json['onsetString'] = $this->onsetString->jsonSerialize();
     }
     if (null !== $this->note) {
         $json['note'] = $this->note->jsonSerialize();
     }
     return $json;
 }
コード例 #2
0
 /**
  * @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->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (null !== $this->asserter) {
         $json['asserter'] = $this->asserter->jsonSerialize();
     }
     if (null !== $this->dateRecorded) {
         $json['dateRecorded'] = $this->dateRecorded->jsonSerialize();
     }
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->category) {
         $json['category'] = $this->category->jsonSerialize();
     }
     if (null !== $this->clinicalStatus) {
         $json['clinicalStatus'] = $this->clinicalStatus->jsonSerialize();
     }
     if (null !== $this->verificationStatus) {
         $json['verificationStatus'] = $this->verificationStatus->jsonSerialize();
     }
     if (null !== $this->severity) {
         $json['severity'] = $this->severity->jsonSerialize();
     }
     if (null !== $this->onsetDateTime) {
         $json['onsetDateTime'] = $this->onsetDateTime->jsonSerialize();
     }
     if (null !== $this->onsetQuantity) {
         $json['onsetQuantity'] = $this->onsetQuantity->jsonSerialize();
     }
     if (null !== $this->onsetPeriod) {
         $json['onsetPeriod'] = $this->onsetPeriod->jsonSerialize();
     }
     if (null !== $this->onsetRange) {
         $json['onsetRange'] = $this->onsetRange->jsonSerialize();
     }
     if (null !== $this->onsetString) {
         $json['onsetString'] = $this->onsetString->jsonSerialize();
     }
     if (null !== $this->abatementDateTime) {
         $json['abatementDateTime'] = $this->abatementDateTime->jsonSerialize();
     }
     if (null !== $this->abatementQuantity) {
         $json['abatementQuantity'] = $this->abatementQuantity->jsonSerialize();
     }
     if (null !== $this->abatementBoolean) {
         $json['abatementBoolean'] = $this->abatementBoolean->jsonSerialize();
     }
     if (null !== $this->abatementPeriod) {
         $json['abatementPeriod'] = $this->abatementPeriod->jsonSerialize();
     }
     if (null !== $this->abatementRange) {
         $json['abatementRange'] = $this->abatementRange->jsonSerialize();
     }
     if (null !== $this->abatementString) {
         $json['abatementString'] = $this->abatementString->jsonSerialize();
     }
     if (null !== $this->stage) {
         $json['stage'] = $this->stage->jsonSerialize();
     }
     if (0 < count($this->evidence)) {
         $json['evidence'] = array();
         foreach ($this->evidence as $evidence) {
             $json['evidence'][] = $evidence->jsonSerialize();
         }
     }
     if (0 < count($this->bodySite)) {
         $json['bodySite'] = array();
         foreach ($this->bodySite as $bodySite) {
             $json['bodySite'][] = $bodySite->jsonSerialize();
         }
     }
     if (null !== $this->notes) {
         $json['notes'] = $this->notes->jsonSerialize();
     }
     return $json;
 }
コード例 #3
0
 /**
  * @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->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->name) {
         $json['name'] = $this->name->jsonSerialize();
     }
     if (null !== $this->relationship) {
         $json['relationship'] = $this->relationship->jsonSerialize();
     }
     if (null !== $this->gender) {
         $json['gender'] = $this->gender->jsonSerialize();
     }
     if (null !== $this->bornPeriod) {
         $json['bornPeriod'] = $this->bornPeriod->jsonSerialize();
     }
     if (null !== $this->bornDate) {
         $json['bornDate'] = $this->bornDate->jsonSerialize();
     }
     if (null !== $this->bornString) {
         $json['bornString'] = $this->bornString->jsonSerialize();
     }
     if (null !== $this->ageQuantity) {
         $json['ageQuantity'] = $this->ageQuantity->jsonSerialize();
     }
     if (null !== $this->ageRange) {
         $json['ageRange'] = $this->ageRange->jsonSerialize();
     }
     if (null !== $this->ageString) {
         $json['ageString'] = $this->ageString->jsonSerialize();
     }
     if (null !== $this->deceasedBoolean) {
         $json['deceasedBoolean'] = $this->deceasedBoolean->jsonSerialize();
     }
     if (null !== $this->deceasedQuantity) {
         $json['deceasedQuantity'] = $this->deceasedQuantity->jsonSerialize();
     }
     if (null !== $this->deceasedRange) {
         $json['deceasedRange'] = $this->deceasedRange->jsonSerialize();
     }
     if (null !== $this->deceasedDate) {
         $json['deceasedDate'] = $this->deceasedDate->jsonSerialize();
     }
     if (null !== $this->deceasedString) {
         $json['deceasedString'] = $this->deceasedString->jsonSerialize();
     }
     if (null !== $this->note) {
         $json['note'] = $this->note->jsonSerialize();
     }
     if (0 < count($this->condition)) {
         $json['condition'] = array();
         foreach ($this->condition as $condition) {
             $json['condition'][] = $condition->jsonSerialize();
         }
     }
     return $json;
 }