當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FHIRReference::jsonSerialize方法代碼示例

本文整理匯總了PHP中PHPFHIRGenerated\FHIRElement\FHIRReference::jsonSerialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP FHIRReference::jsonSerialize方法的具體用法?PHP FHIRReference::jsonSerialize怎麽用?PHP FHIRReference::jsonSerialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PHPFHIRGenerated\FHIRElement\FHIRReference的用法示例。


在下文中一共展示了FHIRReference::jsonSerialize方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->doseSequence) {
         $json['doseSequence'] = $this->doseSequence->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (null !== $this->authority) {
         $json['authority'] = $this->authority->jsonSerialize();
     }
     if (null !== $this->series) {
         $json['series'] = $this->series->jsonSerialize();
     }
     if (null !== $this->seriesDoses) {
         $json['seriesDoses'] = $this->seriesDoses->jsonSerialize();
     }
     if (0 < count($this->targetDisease)) {
         $json['targetDisease'] = array();
         foreach ($this->targetDisease as $targetDisease) {
             $json['targetDisease'][] = $targetDisease->jsonSerialize();
         }
     }
     if (null !== $this->doseStatus) {
         $json['doseStatus'] = $this->doseStatus->jsonSerialize();
     }
     if (null !== $this->doseStatusReason) {
         $json['doseStatusReason'] = $this->doseStatusReason->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:35,代碼來源:FHIRImmunizationVaccinationProtocol.php

示例2: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->entityCodeableConcept) {
         $json['entityCodeableConcept'] = $this->entityCodeableConcept->jsonSerialize();
     }
     if (null !== $this->entityReference) {
         $json['entityReference'] = $this->entityReference->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->effectiveTime) {
         $json['effectiveTime'] = $this->effectiveTime->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->unitPrice) {
         $json['unitPrice'] = $this->unitPrice->jsonSerialize();
     }
     if (null !== $this->factor) {
         $json['factor'] = $this->factor->jsonSerialize();
     }
     if (null !== $this->points) {
         $json['points'] = $this->points->jsonSerialize();
     }
     if (null !== $this->net) {
         $json['net'] = $this->net->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:35,代碼來源:FHIRContractValuedItem1.php

示例3: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->managingOrganization) {
         $json['managingOrganization'] = $this->managingOrganization->jsonSerialize();
     }
     if (null !== $this->role) {
         $json['role'] = $this->role->jsonSerialize();
     }
     if (0 < count($this->specialty)) {
         $json['specialty'] = array();
         foreach ($this->specialty as $specialty) {
             $json['specialty'][] = $specialty->jsonSerialize();
         }
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (0 < count($this->location)) {
         $json['location'] = array();
         foreach ($this->location as $location) {
             $json['location'][] = $location->jsonSerialize();
         }
     }
     if (0 < count($this->healthcareService)) {
         $json['healthcareService'] = array();
         foreach ($this->healthcareService as $healthcareService) {
             $json['healthcareService'][] = $healthcareService->jsonSerialize();
         }
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:35,代碼來源:FHIRPractitionerPractitionerRole.php

示例4: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->text) {
         $json['text'] = $this->text->jsonSerialize();
     }
     if (null !== $this->siteCodeableConcept) {
         $json['siteCodeableConcept'] = $this->siteCodeableConcept->jsonSerialize();
     }
     if (null !== $this->siteReference) {
         $json['siteReference'] = $this->siteReference->jsonSerialize();
     }
     if (null !== $this->route) {
         $json['route'] = $this->route->jsonSerialize();
     }
     if (null !== $this->method) {
         $json['method'] = $this->method->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->rateRatio) {
         $json['rateRatio'] = $this->rateRatio->jsonSerialize();
     }
     if (null !== $this->rateRange) {
         $json['rateRange'] = $this->rateRange->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:32,代碼來源:FHIRMedicationAdministrationDosage.php

示例5: jsonSerialize

 /**
  * @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 (0 < count($this->type)) {
         $json['type'] = array();
         foreach ($this->type as $type) {
             $json['type'][] = $type->jsonSerialize();
         }
     }
     if (null !== $this->actor) {
         $json['actor'] = $this->actor->jsonSerialize();
     }
     if (null !== $this->planningHorizon) {
         $json['planningHorizon'] = $this->planningHorizon->jsonSerialize();
     }
     if (null !== $this->comment) {
         $json['comment'] = $this->comment->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:30,代碼來源:FHIRSchedule.php

示例6: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (0 < count($this->identifier)) {
         $json['identifier'] = array();
         foreach ($this->identifier as $identifier) {
             $json['identifier'][] = $identifier->jsonSerialize();
         }
     }
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (0 < count($this->modifier)) {
         $json['modifier'] = array();
         foreach ($this->modifier as $modifier) {
             $json['modifier'][] = $modifier->jsonSerialize();
         }
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (0 < count($this->image)) {
         $json['image'] = array();
         foreach ($this->image as $image) {
             $json['image'][] = $image->jsonSerialize();
         }
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:36,代碼來源:FHIRBodySite.php

示例7: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->collector) {
         $json['collector'] = $this->collector->jsonSerialize();
     }
     if (0 < count($this->comment)) {
         $json['comment'] = array();
         foreach ($this->comment as $comment) {
             $json['comment'][] = $comment->jsonSerialize();
         }
     }
     if (null !== $this->collectedDateTime) {
         $json['collectedDateTime'] = $this->collectedDateTime->jsonSerialize();
     }
     if (null !== $this->collectedPeriod) {
         $json['collectedPeriod'] = $this->collectedPeriod->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->method) {
         $json['method'] = $this->method->jsonSerialize();
     }
     if (null !== $this->bodySite) {
         $json['bodySite'] = $this->bodySite->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:32,代碼來源:FHIRSpecimenCollection.php

示例8: jsonSerialize

 /**
  * @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->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->schedule) {
         $json['schedule'] = $this->schedule->jsonSerialize();
     }
     if (null !== $this->freeBusyType) {
         $json['freeBusyType'] = $this->freeBusyType->jsonSerialize();
     }
     if (null !== $this->start) {
         $json['start'] = $this->start->jsonSerialize();
     }
     if (null !== $this->end) {
         $json['end'] = $this->end->jsonSerialize();
     }
     if (null !== $this->overbooked) {
         $json['overbooked'] = $this->overbooked->jsonSerialize();
     }
     if (null !== $this->comment) {
         $json['comment'] = $this->comment->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:36,代碼來源:FHIRSlot.php

示例9: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->masterIdentifier) {
         $json['masterIdentifier'] = $this->masterIdentifier->jsonSerialize();
     }
     if (0 < count($this->identifier)) {
         $json['identifier'] = array();
         foreach ($this->identifier as $identifier) {
             $json['identifier'][] = $identifier->jsonSerialize();
         }
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (0 < count($this->recipient)) {
         $json['recipient'] = array();
         foreach ($this->recipient as $recipient) {
             $json['recipient'][] = $recipient->jsonSerialize();
         }
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (0 < count($this->author)) {
         $json['author'] = array();
         foreach ($this->author as $author) {
             $json['author'][] = $author->jsonSerialize();
         }
     }
     if (null !== $this->created) {
         $json['created'] = $this->created->jsonSerialize();
     }
     if (null !== $this->source) {
         $json['source'] = $this->source->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (0 < count($this->content)) {
         $json['content'] = array();
         foreach ($this->content as $content) {
             $json['content'][] = $content->jsonSerialize();
         }
     }
     if (0 < count($this->related)) {
         $json['related'] = array();
         foreach ($this->related as $related) {
             $json['related'][] = $related->jsonSerialize();
         }
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:60,代碼來源:FHIRDocumentManifest.php

示例10: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->ref) {
         $json['ref'] = $this->ref->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:14,代碼來源:FHIRDocumentManifestRelated.php

示例11: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->name) {
         $json['name'] = $this->name->jsonSerialize();
     }
     if (null !== $this->definition) {
         $json['definition'] = $this->definition->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:14,代碼來源:FHIRConformanceOperation.php

示例12: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->action) {
         $json['action'] = $this->action->jsonSerialize();
     }
     if (null !== $this->manipulated) {
         $json['manipulated'] = $this->manipulated->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:14,代碼來源:FHIRProcedureFocalDevice.php

示例13: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->other) {
         $json['other'] = $this->other->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:14,代碼來源:FHIRPatientLink.php

示例14: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->profile) {
         $json['profile'] = $this->profile->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:14,代碼來源:FHIRImplementationGuideGlobal.php

示例15: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->substance) {
         $json['substance'] = $this->substance->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:14,代碼來源:FHIRSubstanceIngredient.php


注:本文中的PHPFHIRGenerated\FHIRElement\FHIRReference::jsonSerialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。