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


PHP FHIRCodeableConcept::jsonSerialize方法代碼示例

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


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

示例1: 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

示例2: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->valueCodeableConcept) {
         $json['valueCodeableConcept'] = $this->valueCodeableConcept->jsonSerialize();
     }
     if (null !== $this->valueBoolean) {
         $json['valueBoolean'] = $this->valueBoolean->jsonSerialize();
     }
     if (null !== $this->valueQuantity) {
         $json['valueQuantity'] = $this->valueQuantity->jsonSerialize();
     }
     if (null !== $this->valueRange) {
         $json['valueRange'] = $this->valueRange->jsonSerialize();
     }
     if (null !== $this->exclude) {
         $json['exclude'] = $this->exclude->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:29,代碼來源:FHIRGroupCharacteristic.php

示例3: jsonSerialize

 /**
  * @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;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:29,代碼來源:FHIRFamilyMemberHistoryCondition.php

示例4: 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

示例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 (null !== $this->category) {
         $json['category'] = $this->category->jsonSerialize();
     }
     if (null !== $this->sender) {
         $json['sender'] = $this->sender->jsonSerialize();
     }
     if (0 < count($this->recipient)) {
         $json['recipient'] = array();
         foreach ($this->recipient as $recipient) {
             $json['recipient'][] = $recipient->jsonSerialize();
         }
     }
     if (0 < count($this->payload)) {
         $json['payload'] = array();
         foreach ($this->payload as $payload) {
             $json['payload'][] = $payload->jsonSerialize();
         }
     }
     if (0 < count($this->medium)) {
         $json['medium'] = array();
         foreach ($this->medium as $medium) {
             $json['medium'][] = $medium->jsonSerialize();
         }
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (null !== $this->sent) {
         $json['sent'] = $this->sent->jsonSerialize();
     }
     if (null !== $this->received) {
         $json['received'] = $this->received->jsonSerialize();
     }
     if (0 < count($this->reason)) {
         $json['reason'] = array();
         foreach ($this->reason as $reason) {
             $json['reason'][] = $reason->jsonSerialize();
         }
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (null !== $this->requestDetail) {
         $json['requestDetail'] = $this->requestDetail->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:63,代碼來源:FHIRCommunication.php

示例6: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (0 < count($this->specimen)) {
         $json['specimen'] = array();
         foreach ($this->specimen as $specimen) {
             $json['specimen'][] = $specimen->jsonSerialize();
         }
     }
     if (null !== $this->bodySite) {
         $json['bodySite'] = $this->bodySite->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (0 < count($this->event)) {
         $json['event'] = array();
         foreach ($this->event as $event) {
             $json['event'][] = $event->jsonSerialize();
         }
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:29,代碼來源:FHIRDiagnosticOrderItem.php

示例7: jsonSerialize

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

示例8: jsonSerialize

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

示例9: 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

示例10: 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

示例11: jsonSerialize

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

示例12: jsonSerialize

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

示例13: jsonSerialize

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

示例14: jsonSerialize

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

示例15: jsonSerialize

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


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