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


PHP FHIRBackboneElement::jsonSerialize方法代碼示例

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


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

示例1: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->label) {
         $json['label'] = $this->label->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (null !== $this->direction) {
         $json['direction'] = $this->direction->jsonSerialize();
     }
     if (null !== $this->compareToSourceId) {
         $json['compareToSourceId'] = $this->compareToSourceId->jsonSerialize();
     }
     if (null !== $this->compareToSourcePath) {
         $json['compareToSourcePath'] = $this->compareToSourcePath->jsonSerialize();
     }
     if (null !== $this->contentType) {
         $json['contentType'] = $this->contentType->jsonSerialize();
     }
     if (null !== $this->headerField) {
         $json['headerField'] = $this->headerField->jsonSerialize();
     }
     if (null !== $this->minimumId) {
         $json['minimumId'] = $this->minimumId->jsonSerialize();
     }
     if (null !== $this->navigationLinks) {
         $json['navigationLinks'] = $this->navigationLinks->jsonSerialize();
     }
     if (null !== $this->operator) {
         $json['operator'] = $this->operator->jsonSerialize();
     }
     if (null !== $this->path) {
         $json['path'] = $this->path->jsonSerialize();
     }
     if (null !== $this->resource) {
         $json['resource'] = $this->resource->jsonSerialize();
     }
     if (null !== $this->response) {
         $json['response'] = $this->response->jsonSerialize();
     }
     if (null !== $this->responseCode) {
         $json['responseCode'] = $this->responseCode->jsonSerialize();
     }
     if (null !== $this->sourceId) {
         $json['sourceId'] = $this->sourceId->jsonSerialize();
     }
     if (null !== $this->validateProfileId) {
         $json['validateProfileId'] = $this->validateProfileId->jsonSerialize();
     }
     if (null !== $this->value) {
         $json['value'] = $this->value->jsonSerialize();
     }
     if (null !== $this->warningOnly) {
         $json['warningOnly'] = $this->warningOnly->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:62,代碼來源:FHIRTestScriptAssert.php

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

示例3: jsonSerialize

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

示例4: jsonSerialize

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

示例5: jsonSerialize

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

示例6: jsonSerialize

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

示例7: jsonSerialize

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

示例8: jsonSerialize

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

示例9: jsonSerialize

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

示例10: jsonSerialize

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

示例11: jsonSerialize

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

示例12: jsonSerialize

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

示例13: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->baseFormulaType) {
         $json['baseFormulaType'] = $this->baseFormulaType->jsonSerialize();
     }
     if (null !== $this->baseFormulaProductName) {
         $json['baseFormulaProductName'] = $this->baseFormulaProductName->jsonSerialize();
     }
     if (null !== $this->additiveType) {
         $json['additiveType'] = $this->additiveType->jsonSerialize();
     }
     if (null !== $this->additiveProductName) {
         $json['additiveProductName'] = $this->additiveProductName->jsonSerialize();
     }
     if (null !== $this->caloricDensity) {
         $json['caloricDensity'] = $this->caloricDensity->jsonSerialize();
     }
     if (null !== $this->routeofAdministration) {
         $json['routeofAdministration'] = $this->routeofAdministration->jsonSerialize();
     }
     if (0 < count($this->administration)) {
         $json['administration'] = array();
         foreach ($this->administration as $administration) {
             $json['administration'][] = $administration->jsonSerialize();
         }
     }
     if (null !== $this->maxVolumeToDeliver) {
         $json['maxVolumeToDeliver'] = $this->maxVolumeToDeliver->jsonSerialize();
     }
     if (null !== $this->administrationInstruction) {
         $json['administrationInstruction'] = $this->administrationInstruction->jsonSerialize();
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:38,代碼來源:FHIRNutritionOrderEnteralFormula.php

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

示例15: jsonSerialize

 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->valueBoolean) {
         $json['valueBoolean'] = $this->valueBoolean->jsonSerialize();
     }
     if (null !== $this->valueDecimal) {
         $json['valueDecimal'] = $this->valueDecimal->jsonSerialize();
     }
     if (null !== $this->valueInteger) {
         $json['valueInteger'] = $this->valueInteger->jsonSerialize();
     }
     if (null !== $this->valueDate) {
         $json['valueDate'] = $this->valueDate->jsonSerialize();
     }
     if (null !== $this->valueDateTime) {
         $json['valueDateTime'] = $this->valueDateTime->jsonSerialize();
     }
     if (null !== $this->valueInstant) {
         $json['valueInstant'] = $this->valueInstant->jsonSerialize();
     }
     if (null !== $this->valueTime) {
         $json['valueTime'] = $this->valueTime->jsonSerialize();
     }
     if (null !== $this->valueString) {
         $json['valueString'] = $this->valueString->jsonSerialize();
     }
     if (null !== $this->valueUri) {
         $json['valueUri'] = $this->valueUri->jsonSerialize();
     }
     if (null !== $this->valueAttachment) {
         $json['valueAttachment'] = $this->valueAttachment->jsonSerialize();
     }
     if (null !== $this->valueCoding) {
         $json['valueCoding'] = $this->valueCoding->jsonSerialize();
     }
     if (null !== $this->valueMeasuredQuantity) {
         $json['valueMeasuredQuantity'] = $this->valueMeasuredQuantity->jsonSerialize();
     }
     if (null !== $this->valueReference) {
         $json['valueReference'] = $this->valueReference->jsonSerialize();
     }
     if (0 < count($this->group)) {
         $json['group'] = array();
         foreach ($this->group as $group) {
             $json['group'][] = $group->jsonSerialize();
         }
     }
     return $json;
 }
開發者ID:dcarbone,項目名稱:php-fhir-generated,代碼行數:53,代碼來源:FHIRQuestionnaireAnswersAnswer.php


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