本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}