当前位置: 首页>>代码示例>>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;未经允许,请勿转载。