/**
  * @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->ruleset) {
         $json['ruleset'] = $this->ruleset->jsonSerialize();
     }
     if (null !== $this->originalRuleset) {
         $json['originalRuleset'] = $this->originalRuleset->jsonSerialize();
     }
     if (null !== $this->created) {
         $json['created'] = $this->created->jsonSerialize();
     }
     if (null !== $this->target) {
         $json['target'] = $this->target->jsonSerialize();
     }
     if (null !== $this->provider) {
         $json['provider'] = $this->provider->jsonSerialize();
     }
     if (null !== $this->organization) {
         $json['organization'] = $this->organization->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->category) {
         $json['category'] = $this->category->jsonSerialize();
     }
     if (null !== $this->mode) {
         $json['mode'] = $this->mode->jsonSerialize();
     }
     if (null !== $this->focus) {
         $json['focus'] = $this->focus->jsonSerialize();
     }
     if (null !== $this->request) {
         $json['request'] = $this->request->jsonSerialize();
     }
     if (null !== $this->response) {
         $json['response'] = $this->response->jsonSerialize();
     }
     if (null !== $this->documentation) {
         $json['documentation'] = $this->documentation->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->request) {
         $json['request'] = $this->request->jsonSerialize();
     }
     if (null !== $this->responce) {
         $json['responce'] = $this->responce->jsonSerialize();
     }
     if (null !== $this->submitter) {
         $json['submitter'] = $this->submitter->jsonSerialize();
     }
     if (null !== $this->payee) {
         $json['payee'] = $this->payee->jsonSerialize();
     }
     if (null !== $this->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->amount) {
         $json['amount'] = $this->amount->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (0 < count($this->subtype)) {
         $json['subtype'] = array();
         foreach ($this->subtype as $subtype) {
             $json['subtype'][] = $subtype->jsonSerialize();
         }
     }
     if (null !== $this->action) {
         $json['action'] = $this->action->jsonSerialize();
     }
     if (null !== $this->dateTime) {
         $json['dateTime'] = $this->dateTime->jsonSerialize();
     }
     if (null !== $this->outcome) {
         $json['outcome'] = $this->outcome->jsonSerialize();
     }
     if (null !== $this->outcomeDesc) {
         $json['outcomeDesc'] = $this->outcomeDesc->jsonSerialize();
     }
     if (0 < count($this->purposeOfEvent)) {
         $json['purposeOfEvent'] = array();
         foreach ($this->purposeOfEvent as $purposeOfEvent) {
             $json['purposeOfEvent'][] = $purposeOfEvent->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->text) {
         $json['text'] = $this->text->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->sequence) {
         $json['sequence'] = $this->sequence->jsonSerialize();
     }
     if (null !== $this->diagnosis) {
         $json['diagnosis'] = $this->diagnosis->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->protocol) {
         $json['protocol'] = $this->protocol->jsonSerialize();
     }
     if (null !== $this->address) {
         $json['address'] = $this->address->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->product) {
         $json['product'] = $this->product->jsonSerialize();
     }
     if (null !== $this->eye) {
         $json['eye'] = $this->eye->jsonSerialize();
     }
     if (null !== $this->sphere) {
         $json['sphere'] = $this->sphere->jsonSerialize();
     }
     if (null !== $this->cylinder) {
         $json['cylinder'] = $this->cylinder->jsonSerialize();
     }
     if (null !== $this->axis) {
         $json['axis'] = $this->axis->jsonSerialize();
     }
     if (null !== $this->prism) {
         $json['prism'] = $this->prism->jsonSerialize();
     }
     if (null !== $this->base) {
         $json['base'] = $this->base->jsonSerialize();
     }
     if (null !== $this->add) {
         $json['add'] = $this->add->jsonSerialize();
     }
     if (null !== $this->power) {
         $json['power'] = $this->power->jsonSerialize();
     }
     if (null !== $this->backCurve) {
         $json['backCurve'] = $this->backCurve->jsonSerialize();
     }
     if (null !== $this->diameter) {
         $json['diameter'] = $this->diameter->jsonSerialize();
     }
     if (null !== $this->duration) {
         $json['duration'] = $this->duration->jsonSerialize();
     }
     if (null !== $this->color) {
         $json['color'] = $this->color->jsonSerialize();
     }
     if (null !== $this->brand) {
         $json['brand'] = $this->brand->jsonSerialize();
     }
     if (null !== $this->notes) {
         $json['notes'] = $this->notes->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->resource) {
         $json['resource'] = $this->resource->jsonSerialize();
     }
     if (null !== $this->label) {
         $json['label'] = $this->label->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (null !== $this->accept) {
         $json['accept'] = $this->accept->jsonSerialize();
     }
     if (null !== $this->contentType) {
         $json['contentType'] = $this->contentType->jsonSerialize();
     }
     if (null !== $this->destination) {
         $json['destination'] = $this->destination->jsonSerialize();
     }
     if (null !== $this->encodeRequestUrl) {
         $json['encodeRequestUrl'] = $this->encodeRequestUrl->jsonSerialize();
     }
     if (null !== $this->params) {
         $json['params'] = $this->params->jsonSerialize();
     }
     if (0 < count($this->requestHeader)) {
         $json['requestHeader'] = array();
         foreach ($this->requestHeader as $requestHeader) {
             $json['requestHeader'][] = $requestHeader->jsonSerialize();
         }
     }
     if (null !== $this->responseId) {
         $json['responseId'] = $this->responseId->jsonSerialize();
     }
     if (null !== $this->sourceId) {
         $json['sourceId'] = $this->sourceId->jsonSerialize();
     }
     if (null !== $this->targetId) {
         $json['targetId'] = $this->targetId->jsonSerialize();
     }
     if (null !== $this->url) {
         $json['url'] = $this->url->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->initial) {
         $json['initial'] = $this->initial->jsonSerialize();
     }
     if (null !== $this->priorDate) {
         $json['priorDate'] = $this->priorDate->jsonSerialize();
     }
     if (null !== $this->priorMaterial) {
         $json['priorMaterial'] = $this->priorMaterial->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->tooth) {
         $json['tooth'] = $this->tooth->jsonSerialize();
     }
     if (null !== $this->reason) {
         $json['reason'] = $this->reason->jsonSerialize();
     }
     if (null !== $this->extractionDate) {
         $json['extractionDate'] = $this->extractionDate->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->party) {
         $json['party'] = $this->party->jsonSerialize();
     }
     if (null !== $this->signature) {
         $json['signature'] = $this->signature->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->amount) {
         $json['amount'] = $this->amount->jsonSerialize();
     }
     if (null !== $this->value) {
         $json['value'] = $this->value->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->language) {
         $json['language'] = $this->language->jsonSerialize();
     }
     if (null !== $this->use) {
         $json['use'] = $this->use->jsonSerialize();
     }
     if (null !== $this->value) {
         $json['value'] = $this->value->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->service) {
         $json['service'] = $this->service->jsonSerialize();
     }
     if (null !== $this->fee) {
         $json['fee'] = $this->fee->jsonSerialize();
     }
     if (0 < count($this->adjudication)) {
         $json['adjudication'] = array();
         foreach ($this->adjudication as $adjudication) {
             $json['adjudication'][] = $adjudication->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->provider) {
         $json['provider'] = $this->provider->jsonSerialize();
     }
     if (null !== $this->organization) {
         $json['organization'] = $this->organization->jsonSerialize();
     }
     if (null !== $this->person) {
         $json['person'] = $this->person->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->timestamp) {
         $json['timestamp'] = $this->timestamp->jsonSerialize();
     }
     if (null !== $this->event) {
         $json['event'] = $this->event->jsonSerialize();
     }
     if (null !== $this->response) {
         $json['response'] = $this->response->jsonSerialize();
     }
     if (null !== $this->source) {
         $json['source'] = $this->source->jsonSerialize();
     }
     if (0 < count($this->destination)) {
         $json['destination'] = array();
         foreach ($this->destination as $destination) {
             $json['destination'][] = $destination->jsonSerialize();
         }
     }
     if (null !== $this->enterer) {
         $json['enterer'] = $this->enterer->jsonSerialize();
     }
     if (null !== $this->author) {
         $json['author'] = $this->author->jsonSerialize();
     }
     if (null !== $this->receiver) {
         $json['receiver'] = $this->receiver->jsonSerialize();
     }
     if (null !== $this->responsible) {
         $json['responsible'] = $this->responsible->jsonSerialize();
     }
     if (null !== $this->reason) {
         $json['reason'] = $this->reason->jsonSerialize();
     }
     if (0 < count($this->data)) {
         $json['data'] = array();
         foreach ($this->data as $data) {
             $json['data'][] = $data->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->role) {
         $json['role'] = $this->role->jsonSerialize();
     }
     if (null !== $this->actor) {
         $json['actor'] = $this->actor->jsonSerialize();
     }
     if (null !== $this->userId) {
         $json['userId'] = $this->userId->jsonSerialize();
     }
     if (0 < count($this->relatedAgent)) {
         $json['relatedAgent'] = array();
         foreach ($this->relatedAgent as $relatedAgent) {
             $json['relatedAgent'][] = $relatedAgent->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->role) {
         $json['role'] = $this->role->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->reference) {
         $json['reference'] = $this->reference->jsonSerialize();
     }
     if (null !== $this->display) {
         $json['display'] = $this->display->jsonSerialize();
     }
     if (null !== $this->agent) {
         $json['agent'] = $this->agent->jsonSerialize();
     }
     return $json;
 }
 /**
  * @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;
 }
 /**
  * @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;
 }
 /**
  * @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->request) {
         $json['request'] = $this->request->jsonSerialize();
     }
     if (null !== $this->outcome) {
         $json['outcome'] = $this->outcome->jsonSerialize();
     }
     if (null !== $this->disposition) {
         $json['disposition'] = $this->disposition->jsonSerialize();
     }
     if (null !== $this->ruleset) {
         $json['ruleset'] = $this->ruleset->jsonSerialize();
     }
     if (null !== $this->originalRuleset) {
         $json['originalRuleset'] = $this->originalRuleset->jsonSerialize();
     }
     if (null !== $this->created) {
         $json['created'] = $this->created->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->organization) {
         $json['organization'] = $this->organization->jsonSerialize();
     }
     if (null !== $this->requestProvider) {
         $json['requestProvider'] = $this->requestProvider->jsonSerialize();
     }
     if (null !== $this->requestOrganization) {
         $json['requestOrganization'] = $this->requestOrganization->jsonSerialize();
     }
     if (0 < count($this->detail)) {
         $json['detail'] = array();
         foreach ($this->detail as $detail) {
             $json['detail'][] = $detail->jsonSerialize();
         }
     }
     if (null !== $this->form) {
         $json['form'] = $this->form->jsonSerialize();
     }
     if (null !== $this->total) {
         $json['total'] = $this->total->jsonSerialize();
     }
     if (0 < count($this->note)) {
         $json['note'] = array();
         foreach ($this->note as $note) {
             $json['note'][] = $note->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->issuer) {
         $json['issuer'] = $this->issuer->jsonSerialize();
     }
     if (null !== $this->bin) {
         $json['bin'] = $this->bin->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->subscriberId) {
         $json['subscriberId'] = $this->subscriberId->jsonSerialize();
     }
     if (0 < count($this->identifier)) {
         $json['identifier'] = array();
         foreach ($this->identifier as $identifier) {
             $json['identifier'][] = $identifier->jsonSerialize();
         }
     }
     if (null !== $this->group) {
         $json['group'] = $this->group->jsonSerialize();
     }
     if (null !== $this->plan) {
         $json['plan'] = $this->plan->jsonSerialize();
     }
     if (null !== $this->subPlan) {
         $json['subPlan'] = $this->subPlan->jsonSerialize();
     }
     if (null !== $this->dependent) {
         $json['dependent'] = $this->dependent->jsonSerialize();
     }
     if (null !== $this->sequence) {
         $json['sequence'] = $this->sequence->jsonSerialize();
     }
     if (null !== $this->subscriber) {
         $json['subscriber'] = $this->subscriber->jsonSerialize();
     }
     if (null !== $this->network) {
         $json['network'] = $this->network->jsonSerialize();
     }
     if (0 < count($this->contract)) {
         $json['contract'] = array();
         foreach ($this->contract as $contract) {
             $json['contract'][] = $contract->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->sequence) {
         $json['sequence'] = $this->sequence->jsonSerialize();
     }
     if (null !== $this->focal) {
         $json['focal'] = $this->focal->jsonSerialize();
     }
     if (null !== $this->coverage) {
         $json['coverage'] = $this->coverage->jsonSerialize();
     }
     if (null !== $this->businessArrangement) {
         $json['businessArrangement'] = $this->businessArrangement->jsonSerialize();
     }
     if (null !== $this->relationship) {
         $json['relationship'] = $this->relationship->jsonSerialize();
     }
     if (0 < count($this->preAuthRef)) {
         $json['preAuthRef'] = array();
         foreach ($this->preAuthRef as $preAuthRef) {
             $json['preAuthRef'][] = $preAuthRef->jsonSerialize();
         }
     }
     if (null !== $this->claimResponse) {
         $json['claimResponse'] = $this->claimResponse->jsonSerialize();
     }
     if (null !== $this->originalRuleset) {
         $json['originalRuleset'] = $this->originalRuleset->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->sequence) {
         $json['sequence'] = $this->sequence->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->provider) {
         $json['provider'] = $this->provider->jsonSerialize();
     }
     if (0 < count($this->diagnosisLinkId)) {
         $json['diagnosisLinkId'] = array();
         foreach ($this->diagnosisLinkId as $diagnosisLinkId) {
             $json['diagnosisLinkId'][] = $diagnosisLinkId->jsonSerialize();
         }
     }
     if (null !== $this->service) {
         $json['service'] = $this->service->jsonSerialize();
     }
     if (null !== $this->serviceDate) {
         $json['serviceDate'] = $this->serviceDate->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();
     }
     if (null !== $this->udi) {
         $json['udi'] = $this->udi->jsonSerialize();
     }
     if (null !== $this->bodySite) {
         $json['bodySite'] = $this->bodySite->jsonSerialize();
     }
     if (0 < count($this->subSite)) {
         $json['subSite'] = array();
         foreach ($this->subSite as $subSite) {
             $json['subSite'][] = $subSite->jsonSerialize();
         }
     }
     if (0 < count($this->modifier)) {
         $json['modifier'] = array();
         foreach ($this->modifier as $modifier) {
             $json['modifier'][] = $modifier->jsonSerialize();
         }
     }
     if (0 < count($this->detail)) {
         $json['detail'] = array();
         foreach ($this->detail as $detail) {
             $json['detail'][] = $detail->jsonSerialize();
         }
     }
     if (null !== $this->prosthesis) {
         $json['prosthesis'] = $this->prosthesis->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->sequence) {
         $json['sequence'] = $this->sequence->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->service) {
         $json['service'] = $this->service->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();
     }
     if (null !== $this->udi) {
         $json['udi'] = $this->udi->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (0 < count($this->role)) {
         $json['role'] = array();
         foreach ($this->role as $role) {
             $json['role'][] = $role->jsonSerialize();
         }
     }
     if (null !== $this->reference) {
         $json['reference'] = $this->reference->jsonSerialize();
     }
     if (null !== $this->userId) {
         $json['userId'] = $this->userId->jsonSerialize();
     }
     if (null !== $this->altId) {
         $json['altId'] = $this->altId->jsonSerialize();
     }
     if (null !== $this->name) {
         $json['name'] = $this->name->jsonSerialize();
     }
     if (null !== $this->requestor) {
         $json['requestor'] = $this->requestor->jsonSerialize();
     }
     if (null !== $this->location) {
         $json['location'] = $this->location->jsonSerialize();
     }
     if (0 < count($this->policy)) {
         $json['policy'] = array();
         foreach ($this->policy as $policy) {
             $json['policy'][] = $policy->jsonSerialize();
         }
     }
     if (null !== $this->media) {
         $json['media'] = $this->media->jsonSerialize();
     }
     if (null !== $this->network) {
         $json['network'] = $this->network->jsonSerialize();
     }
     if (0 < count($this->purposeOfUse)) {
         $json['purposeOfUse'] = array();
         foreach ($this->purposeOfUse as $purposeOfUse) {
             $json['purposeOfUse'][] = $purposeOfUse->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @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->request) {
         $json['request'] = $this->request->jsonSerialize();
     }
     if (null !== $this->ruleset) {
         $json['ruleset'] = $this->ruleset->jsonSerialize();
     }
     if (null !== $this->originalRuleset) {
         $json['originalRuleset'] = $this->originalRuleset->jsonSerialize();
     }
     if (null !== $this->created) {
         $json['created'] = $this->created->jsonSerialize();
     }
     if (null !== $this->organization) {
         $json['organization'] = $this->organization->jsonSerialize();
     }
     if (null !== $this->requestProvider) {
         $json['requestProvider'] = $this->requestProvider->jsonSerialize();
     }
     if (null !== $this->requestOrganization) {
         $json['requestOrganization'] = $this->requestOrganization->jsonSerialize();
     }
     if (null !== $this->outcome) {
         $json['outcome'] = $this->outcome->jsonSerialize();
     }
     if (null !== $this->disposition) {
         $json['disposition'] = $this->disposition->jsonSerialize();
     }
     if (null !== $this->payeeType) {
         $json['payeeType'] = $this->payeeType->jsonSerialize();
     }
     if (0 < count($this->item)) {
         $json['item'] = array();
         foreach ($this->item as $item) {
             $json['item'][] = $item->jsonSerialize();
         }
     }
     if (0 < count($this->addItem)) {
         $json['addItem'] = array();
         foreach ($this->addItem as $addItem) {
             $json['addItem'][] = $addItem->jsonSerialize();
         }
     }
     if (0 < count($this->error)) {
         $json['error'] = array();
         foreach ($this->error as $error) {
             $json['error'][] = $error->jsonSerialize();
         }
     }
     if (null !== $this->totalCost) {
         $json['totalCost'] = $this->totalCost->jsonSerialize();
     }
     if (null !== $this->unallocDeductable) {
         $json['unallocDeductable'] = $this->unallocDeductable->jsonSerialize();
     }
     if (null !== $this->totalBenefit) {
         $json['totalBenefit'] = $this->totalBenefit->jsonSerialize();
     }
     if (null !== $this->paymentAdjustment) {
         $json['paymentAdjustment'] = $this->paymentAdjustment->jsonSerialize();
     }
     if (null !== $this->paymentAdjustmentReason) {
         $json['paymentAdjustmentReason'] = $this->paymentAdjustmentReason->jsonSerialize();
     }
     if (null !== $this->paymentDate) {
         $json['paymentDate'] = $this->paymentDate->jsonSerialize();
     }
     if (null !== $this->paymentAmount) {
         $json['paymentAmount'] = $this->paymentAmount->jsonSerialize();
     }
     if (null !== $this->paymentRef) {
         $json['paymentRef'] = $this->paymentRef->jsonSerialize();
     }
     if (null !== $this->reserved) {
         $json['reserved'] = $this->reserved->jsonSerialize();
     }
     if (null !== $this->form) {
         $json['form'] = $this->form->jsonSerialize();
     }
     if (0 < count($this->note)) {
         $json['note'] = array();
         foreach ($this->note as $note) {
             $json['note'][] = $note->jsonSerialize();
         }
     }
     if (0 < count($this->coverage)) {
         $json['coverage'] = array();
         foreach ($this->coverage as $coverage) {
             $json['coverage'][] = $coverage->jsonSerialize();
         }
     }
     return $json;
 }
示例#29
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (0 < count($this->identifier)) {
         $json['identifier'] = array();
         foreach ($this->identifier as $identifier) {
             $json['identifier'][] = $identifier->jsonSerialize();
         }
     }
     if (null !== $this->ruleset) {
         $json['ruleset'] = $this->ruleset->jsonSerialize();
     }
     if (null !== $this->originalRuleset) {
         $json['originalRuleset'] = $this->originalRuleset->jsonSerialize();
     }
     if (null !== $this->created) {
         $json['created'] = $this->created->jsonSerialize();
     }
     if (null !== $this->target) {
         $json['target'] = $this->target->jsonSerialize();
     }
     if (null !== $this->provider) {
         $json['provider'] = $this->provider->jsonSerialize();
     }
     if (null !== $this->organization) {
         $json['organization'] = $this->organization->jsonSerialize();
     }
     if (null !== $this->use) {
         $json['use'] = $this->use->jsonSerialize();
     }
     if (null !== $this->priority) {
         $json['priority'] = $this->priority->jsonSerialize();
     }
     if (null !== $this->fundsReserve) {
         $json['fundsReserve'] = $this->fundsReserve->jsonSerialize();
     }
     if (null !== $this->enterer) {
         $json['enterer'] = $this->enterer->jsonSerialize();
     }
     if (null !== $this->facility) {
         $json['facility'] = $this->facility->jsonSerialize();
     }
     if (null !== $this->prescription) {
         $json['prescription'] = $this->prescription->jsonSerialize();
     }
     if (null !== $this->originalPrescription) {
         $json['originalPrescription'] = $this->originalPrescription->jsonSerialize();
     }
     if (null !== $this->payee) {
         $json['payee'] = $this->payee->jsonSerialize();
     }
     if (null !== $this->referral) {
         $json['referral'] = $this->referral->jsonSerialize();
     }
     if (0 < count($this->diagnosis)) {
         $json['diagnosis'] = array();
         foreach ($this->diagnosis as $diagnosis) {
             $json['diagnosis'][] = $diagnosis->jsonSerialize();
         }
     }
     if (0 < count($this->condition)) {
         $json['condition'] = array();
         foreach ($this->condition as $condition) {
             $json['condition'][] = $condition->jsonSerialize();
         }
     }
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (0 < count($this->coverage)) {
         $json['coverage'] = array();
         foreach ($this->coverage as $coverage) {
             $json['coverage'][] = $coverage->jsonSerialize();
         }
     }
     if (0 < count($this->exception)) {
         $json['exception'] = array();
         foreach ($this->exception as $exception) {
             $json['exception'][] = $exception->jsonSerialize();
         }
     }
     if (null !== $this->school) {
         $json['school'] = $this->school->jsonSerialize();
     }
     if (null !== $this->accident) {
         $json['accident'] = $this->accident->jsonSerialize();
     }
     if (null !== $this->accidentType) {
         $json['accidentType'] = $this->accidentType->jsonSerialize();
     }
     if (0 < count($this->interventionException)) {
         $json['interventionException'] = array();
         foreach ($this->interventionException as $interventionException) {
             $json['interventionException'][] = $interventionException->jsonSerialize();
         }
     }
     if (0 < count($this->item)) {
         $json['item'] = array();
         foreach ($this->item as $item) {
             $json['item'][] = $item->jsonSerialize();
         }
     }
     if (0 < count($this->additionalMaterials)) {
         $json['additionalMaterials'] = array();
         foreach ($this->additionalMaterials as $additionalMaterials) {
             $json['additionalMaterials'][] = $additionalMaterials->jsonSerialize();
         }
     }
     if (0 < count($this->missingTeeth)) {
         $json['missingTeeth'] = array();
         foreach ($this->missingTeeth as $missingTeeth) {
             $json['missingTeeth'][] = $missingTeeth->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->sequence) {
         $json['sequence'] = $this->sequence->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->service) {
         $json['service'] = $this->service->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();
     }
     if (null !== $this->udi) {
         $json['udi'] = $this->udi->jsonSerialize();
     }
     if (0 < count($this->subDetail)) {
         $json['subDetail'] = array();
         foreach ($this->subDetail as $subDetail) {
             $json['subDetail'][] = $subDetail->jsonSerialize();
         }
     }
     return $json;
 }