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


PHP FHIRString::jsonSerialize方法代碼示例

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


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

示例1: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->source) {
         $json['source'] = $this->source->jsonSerialize();
     }
     if (null !== $this->name) {
         $json['name'] = $this->name->jsonSerialize();
     }
     if (null !== $this->kind) {
         $json['kind'] = $this->kind->jsonSerialize();
     }
     if (0 < count($this->type)) {
         $json['type'] = array();
         foreach ($this->type as $type) {
             $json['type'][] = $type->jsonSerialize();
         }
     }
     if (0 < count($this->package)) {
         $json['package'] = array();
         foreach ($this->package as $package) {
             $json['package'][] = $package->jsonSerialize();
         }
     }
     if (null !== $this->format) {
         $json['format'] = $this->format->jsonSerialize();
     }
     if (0 < count($this->page)) {
         $json['page'] = array();
         foreach ($this->page as $page) {
             $json['page'][] = $page->jsonSerialize();
         }
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:38,代碼來源:FHIRImplementationGuidePage.php

示例2: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (0 < count($this->identifier)) {
         $json['identifier'] = array();
         foreach ($this->identifier as $identifier) {
             $json['identifier'][] = $identifier->jsonSerialize();
         }
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->capacity) {
         $json['capacity'] = $this->capacity->jsonSerialize();
     }
     if (null !== $this->specimenQuantity) {
         $json['specimenQuantity'] = $this->specimenQuantity->jsonSerialize();
     }
     if (null !== $this->additiveCodeableConcept) {
         $json['additiveCodeableConcept'] = $this->additiveCodeableConcept->jsonSerialize();
     }
     if (null !== $this->additiveReference) {
         $json['additiveReference'] = $this->additiveReference->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:32,代碼來源:FHIRSpecimenContainer.php

示例3: jsonSerialize

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

示例4: jsonSerialize

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

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

示例6: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->linkId) {
         $json['linkId'] = $this->linkId->jsonSerialize();
     }
     if (null !== $this->title) {
         $json['title'] = $this->title->jsonSerialize();
     }
     if (null !== $this->text) {
         $json['text'] = $this->text->jsonSerialize();
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (0 < count($this->group)) {
         $json['group'] = array();
         foreach ($this->group as $group) {
             $json['group'][] = $group->jsonSerialize();
         }
     }
     if (0 < count($this->question)) {
         $json['question'] = array();
         foreach ($this->question as $question) {
             $json['question'][] = $question->jsonSerialize();
         }
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:32,代碼來源:FHIRQuestionnaireAnswersGroup.php

示例7: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->title) {
         $json['title'] = $this->title->jsonSerialize();
     }
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->text) {
         $json['text'] = $this->text->jsonSerialize();
     }
     if (null !== $this->mode) {
         $json['mode'] = $this->mode->jsonSerialize();
     }
     if (null !== $this->orderedBy) {
         $json['orderedBy'] = $this->orderedBy->jsonSerialize();
     }
     if (0 < count($this->entry)) {
         $json['entry'] = array();
         foreach ($this->entry as $entry) {
             $json['entry'][] = $entry->jsonSerialize();
         }
     }
     if (null !== $this->emptyReason) {
         $json['emptyReason'] = $this->emptyReason->jsonSerialize();
     }
     if (0 < count($this->section)) {
         $json['section'] = array();
         foreach ($this->section as $section) {
             $json['section'][] = $section->jsonSerialize();
         }
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:38,代碼來源:FHIRCompositionSection.php

示例8: jsonSerialize

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

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

示例10: jsonSerialize

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

示例11: jsonSerialize

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

示例12: jsonSerialize

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

示例13: jsonSerialize

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

示例14: jsonSerialize

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

示例15: jsonSerialize

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


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