Exemplo n.º 1
0
 /**
  * @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;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->class) {
         $json['class'] = $this->class->jsonSerialize();
     }
     if (null !== $this->title) {
         $json['title'] = $this->title->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->confidentiality) {
         $json['confidentiality'] = $this->confidentiality->jsonSerialize();
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (0 < count($this->author)) {
         $json['author'] = array();
         foreach ($this->author as $author) {
             $json['author'][] = $author->jsonSerialize();
         }
     }
     if (0 < count($this->attester)) {
         $json['attester'] = array();
         foreach ($this->attester as $attester) {
             $json['attester'][] = $attester->jsonSerialize();
         }
     }
     if (null !== $this->custodian) {
         $json['custodian'] = $this->custodian->jsonSerialize();
     }
     if (0 < count($this->event)) {
         $json['event'] = array();
         foreach ($this->event as $event) {
             $json['event'][] = $event->jsonSerialize();
         }
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (0 < count($this->section)) {
         $json['section'] = array();
         foreach ($this->section as $section) {
             $json['section'][] = $section->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->questionnaire) {
         $json['questionnaire'] = $this->questionnaire->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (null !== $this->author) {
         $json['author'] = $this->author->jsonSerialize();
     }
     if (null !== $this->authored) {
         $json['authored'] = $this->authored->jsonSerialize();
     }
     if (null !== $this->source) {
         $json['source'] = $this->source->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (null !== $this->group) {
         $json['group'] = $this->group->jsonSerialize();
     }
     return $json;
 }
 /**
  * @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;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->masterIdentifier) {
         $json['masterIdentifier'] = $this->masterIdentifier->jsonSerialize();
     }
     if (0 < count($this->identifier)) {
         $json['identifier'] = array();
         foreach ($this->identifier as $identifier) {
             $json['identifier'][] = $identifier->jsonSerialize();
         }
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (0 < count($this->recipient)) {
         $json['recipient'] = array();
         foreach ($this->recipient as $recipient) {
             $json['recipient'][] = $recipient->jsonSerialize();
         }
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (0 < count($this->author)) {
         $json['author'] = array();
         foreach ($this->author as $author) {
             $json['author'][] = $author->jsonSerialize();
         }
     }
     if (null !== $this->created) {
         $json['created'] = $this->created->jsonSerialize();
     }
     if (null !== $this->source) {
         $json['source'] = $this->source->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (0 < count($this->content)) {
         $json['content'] = array();
         foreach ($this->content as $content) {
             $json['content'][] = $content->jsonSerialize();
         }
     }
     if (0 < count($this->related)) {
         $json['related'] = array();
         foreach ($this->related as $related) {
             $json['related'][] = $related->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->issued) {
         $json['issued'] = $this->issued->jsonSerialize();
     }
     if (null !== $this->applies) {
         $json['applies'] = $this->applies->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->subType) {
         $json['subType'] = $this->subType->jsonSerialize();
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (0 < count($this->action)) {
         $json['action'] = array();
         foreach ($this->action as $action) {
             $json['action'][] = $action->jsonSerialize();
         }
     }
     if (0 < count($this->actionReason)) {
         $json['actionReason'] = array();
         foreach ($this->actionReason as $actionReason) {
             $json['actionReason'][] = $actionReason->jsonSerialize();
         }
     }
     if (0 < count($this->actor)) {
         $json['actor'] = array();
         foreach ($this->actor as $actor) {
             $json['actor'][] = $actor->jsonSerialize();
         }
     }
     if (null !== $this->text) {
         $json['text'] = $this->text->jsonSerialize();
     }
     if (0 < count($this->valuedItem)) {
         $json['valuedItem'] = array();
         foreach ($this->valuedItem as $valuedItem) {
             $json['valuedItem'][] = $valuedItem->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->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->ref) {
         $json['ref'] = $this->ref->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->preAdmissionIdentifier) {
         $json['preAdmissionIdentifier'] = $this->preAdmissionIdentifier->jsonSerialize();
     }
     if (null !== $this->origin) {
         $json['origin'] = $this->origin->jsonSerialize();
     }
     if (null !== $this->admitSource) {
         $json['admitSource'] = $this->admitSource->jsonSerialize();
     }
     if (0 < count($this->admittingDiagnosis)) {
         $json['admittingDiagnosis'] = array();
         foreach ($this->admittingDiagnosis as $admittingDiagnosis) {
             $json['admittingDiagnosis'][] = $admittingDiagnosis->jsonSerialize();
         }
     }
     if (null !== $this->reAdmission) {
         $json['reAdmission'] = $this->reAdmission->jsonSerialize();
     }
     if (0 < count($this->dietPreference)) {
         $json['dietPreference'] = array();
         foreach ($this->dietPreference as $dietPreference) {
             $json['dietPreference'][] = $dietPreference->jsonSerialize();
         }
     }
     if (0 < count($this->specialCourtesy)) {
         $json['specialCourtesy'] = array();
         foreach ($this->specialCourtesy as $specialCourtesy) {
             $json['specialCourtesy'][] = $specialCourtesy->jsonSerialize();
         }
     }
     if (0 < count($this->specialArrangement)) {
         $json['specialArrangement'] = array();
         foreach ($this->specialArrangement as $specialArrangement) {
             $json['specialArrangement'][] = $specialArrangement->jsonSerialize();
         }
     }
     if (null !== $this->destination) {
         $json['destination'] = $this->destination->jsonSerialize();
     }
     if (null !== $this->dischargeDisposition) {
         $json['dischargeDisposition'] = $this->dischargeDisposition->jsonSerialize();
     }
     if (0 < count($this->dischargeDiagnosis)) {
         $json['dischargeDiagnosis'] = array();
         foreach ($this->dischargeDiagnosis as $dischargeDiagnosis) {
             $json['dischargeDiagnosis'][] = $dischargeDiagnosis->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @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;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->specType) {
         $json['specType'] = $this->specType->jsonSerialize();
     }
     if (null !== $this->componentId) {
         $json['componentId'] = $this->componentId->jsonSerialize();
     }
     if (null !== $this->productionSpec) {
         $json['productionSpec'] = $this->productionSpec->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();
     if (null !== $this->site) {
         $json['site'] = $this->site->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (0 < count($this->type)) {
         $json['type'] = array();
         foreach ($this->type as $type) {
             $json['type'][] = $type->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->suppliedItem) {
         $json['suppliedItem'] = $this->suppliedItem->jsonSerialize();
     }
     if (null !== $this->supplier) {
         $json['supplier'] = $this->supplier->jsonSerialize();
     }
     if (null !== $this->whenPrepared) {
         $json['whenPrepared'] = $this->whenPrepared->jsonSerialize();
     }
     if (null !== $this->time) {
         $json['time'] = $this->time->jsonSerialize();
     }
     if (null !== $this->destination) {
         $json['destination'] = $this->destination->jsonSerialize();
     }
     if (0 < count($this->receiver)) {
         $json['receiver'] = array();
         foreach ($this->receiver as $receiver) {
             $json['receiver'][] = $receiver->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->lastSystemChange) {
         $json['lastSystemChange'] = $this->lastSystemChange->jsonSerialize();
     }
     if (null !== $this->source) {
         $json['source'] = $this->source->jsonSerialize();
     }
     if (null !== $this->parent) {
         $json['parent'] = $this->parent->jsonSerialize();
     }
     if (0 < count($this->operationalStatus)) {
         $json['operationalStatus'] = array();
         foreach ($this->operationalStatus as $operationalStatus) {
             $json['operationalStatus'][] = $operationalStatus->jsonSerialize();
         }
     }
     if (null !== $this->parameterGroup) {
         $json['parameterGroup'] = $this->parameterGroup->jsonSerialize();
     }
     if (null !== $this->measurementPrinciple) {
         $json['measurementPrinciple'] = $this->measurementPrinciple->jsonSerialize();
     }
     if (0 < count($this->productionSpecification)) {
         $json['productionSpecification'] = array();
         foreach ($this->productionSpecification as $productionSpecification) {
             $json['productionSpecification'][] = $productionSpecification->jsonSerialize();
         }
     }
     if (null !== $this->languageCode) {
         $json['languageCode'] = $this->languageCode->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->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->reference) {
         $json['reference'] = $this->reference->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->role) {
         $json['role'] = $this->role->jsonSerialize();
     }
     if (null !== $this->lifecycle) {
         $json['lifecycle'] = $this->lifecycle->jsonSerialize();
     }
     if (0 < count($this->securityLabel)) {
         $json['securityLabel'] = array();
         foreach ($this->securityLabel as $securityLabel) {
             $json['securityLabel'][] = $securityLabel->jsonSerialize();
         }
     }
     if (null !== $this->name) {
         $json['name'] = $this->name->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (null !== $this->query) {
         $json['query'] = $this->query->jsonSerialize();
     }
     if (0 < count($this->detail)) {
         $json['detail'] = array();
         foreach ($this->detail as $detail) {
             $json['detail'][] = $detail->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->unit) {
         $json['unit'] = $this->unit->jsonSerialize();
     }
     if (null !== $this->source) {
         $json['source'] = $this->source->jsonSerialize();
     }
     if (null !== $this->parent) {
         $json['parent'] = $this->parent->jsonSerialize();
     }
     if (null !== $this->operationalStatus) {
         $json['operationalStatus'] = $this->operationalStatus->jsonSerialize();
     }
     if (null !== $this->color) {
         $json['color'] = $this->color->jsonSerialize();
     }
     if (null !== $this->category) {
         $json['category'] = $this->category->jsonSerialize();
     }
     if (null !== $this->measurementPeriod) {
         $json['measurementPeriod'] = $this->measurementPeriod->jsonSerialize();
     }
     if (0 < count($this->calibration)) {
         $json['calibration'] = array();
         foreach ($this->calibration as $calibration) {
             $json['calibration'][] = $calibration->jsonSerialize();
         }
     }
     return $json;
 }
Exemplo n.º 18
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->url) {
         $json['url'] = $this->url->jsonSerialize();
     }
     if (null !== $this->version) {
         $json['version'] = $this->version->jsonSerialize();
     }
     if (null !== $this->name) {
         $json['name'] = $this->name->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->experimental) {
         $json['experimental'] = $this->experimental->jsonSerialize();
     }
     if (null !== $this->publisher) {
         $json['publisher'] = $this->publisher->jsonSerialize();
     }
     if (0 < count($this->contact)) {
         $json['contact'] = array();
         foreach ($this->contact as $contact) {
             $json['contact'][] = $contact->jsonSerialize();
         }
     }
     if (null !== $this->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (0 < count($this->useContext)) {
         $json['useContext'] = array();
         foreach ($this->useContext as $useContext) {
             $json['useContext'][] = $useContext->jsonSerialize();
         }
     }
     if (null !== $this->requirements) {
         $json['requirements'] = $this->requirements->jsonSerialize();
     }
     if (null !== $this->copyright) {
         $json['copyright'] = $this->copyright->jsonSerialize();
     }
     if (null !== $this->metadata) {
         $json['metadata'] = $this->metadata->jsonSerialize();
     }
     if (null !== $this->multiserver) {
         $json['multiserver'] = $this->multiserver->jsonSerialize();
     }
     if (0 < count($this->fixture)) {
         $json['fixture'] = array();
         foreach ($this->fixture as $fixture) {
             $json['fixture'][] = $fixture->jsonSerialize();
         }
     }
     if (0 < count($this->profile)) {
         $json['profile'] = array();
         foreach ($this->profile as $profile) {
             $json['profile'][] = $profile->jsonSerialize();
         }
     }
     if (0 < count($this->variable)) {
         $json['variable'] = array();
         foreach ($this->variable as $variable) {
             $json['variable'][] = $variable->jsonSerialize();
         }
     }
     if (null !== $this->setup) {
         $json['setup'] = $this->setup->jsonSerialize();
     }
     if (0 < count($this->test)) {
         $json['test'] = array();
         foreach ($this->test as $test) {
             $json['test'][] = $test->jsonSerialize();
         }
     }
     if (null !== $this->teardown) {
         $json['teardown'] = $this->teardown->jsonSerialize();
     }
     return $json;
 }
Exemplo n.º 19
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->issued) {
         $json['issued'] = $this->issued->jsonSerialize();
     }
     if (null !== $this->applies) {
         $json['applies'] = $this->applies->jsonSerialize();
     }
     if (0 < count($this->subject)) {
         $json['subject'] = array();
         foreach ($this->subject as $subject) {
             $json['subject'][] = $subject->jsonSerialize();
         }
     }
     if (0 < count($this->authority)) {
         $json['authority'] = array();
         foreach ($this->authority as $authority) {
             $json['authority'][] = $authority->jsonSerialize();
         }
     }
     if (0 < count($this->domain)) {
         $json['domain'] = array();
         foreach ($this->domain as $domain) {
             $json['domain'][] = $domain->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 (0 < count($this->action)) {
         $json['action'] = array();
         foreach ($this->action as $action) {
             $json['action'][] = $action->jsonSerialize();
         }
     }
     if (0 < count($this->actionReason)) {
         $json['actionReason'] = array();
         foreach ($this->actionReason as $actionReason) {
             $json['actionReason'][] = $actionReason->jsonSerialize();
         }
     }
     if (0 < count($this->actor)) {
         $json['actor'] = array();
         foreach ($this->actor as $actor) {
             $json['actor'][] = $actor->jsonSerialize();
         }
     }
     if (0 < count($this->valuedItem)) {
         $json['valuedItem'] = array();
         foreach ($this->valuedItem as $valuedItem) {
             $json['valuedItem'][] = $valuedItem->jsonSerialize();
         }
     }
     if (0 < count($this->signer)) {
         $json['signer'] = array();
         foreach ($this->signer as $signer) {
             $json['signer'][] = $signer->jsonSerialize();
         }
     }
     if (0 < count($this->term)) {
         $json['term'] = array();
         foreach ($this->term as $term) {
             $json['term'][] = $term->jsonSerialize();
         }
     }
     if (null !== $this->bindingAttachment) {
         $json['bindingAttachment'] = $this->bindingAttachment->jsonSerialize();
     }
     if (null !== $this->bindingReference) {
         $json['bindingReference'] = $this->bindingReference->jsonSerialize();
     }
     if (0 < count($this->friendly)) {
         $json['friendly'] = array();
         foreach ($this->friendly as $friendly) {
             $json['friendly'][] = $friendly->jsonSerialize();
         }
     }
     if (0 < count($this->legal)) {
         $json['legal'] = array();
         foreach ($this->legal as $legal) {
             $json['legal'][] = $legal->jsonSerialize();
         }
     }
     if (0 < count($this->rule)) {
         $json['rule'] = array();
         foreach ($this->rule as $rule) {
             $json['rule'][] = $rule->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (null !== $this->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->condition) {
         $json['condition'] = $this->condition->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (null !== $this->performer) {
         $json['performer'] = $this->performer->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->method) {
         $json['method'] = $this->method->jsonSerialize();
     }
     if (0 < count($this->basis)) {
         $json['basis'] = array();
         foreach ($this->basis as $basis) {
             $json['basis'][] = $basis->jsonSerialize();
         }
     }
     if (0 < count($this->prediction)) {
         $json['prediction'] = array();
         foreach ($this->prediction as $prediction) {
             $json['prediction'][] = $prediction->jsonSerialize();
         }
     }
     if (null !== $this->mitigation) {
         $json['mitigation'] = $this->mitigation->jsonSerialize();
     }
     return $json;
 }
Exemplo n.º 21
0
 /**
  * @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->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (0 < count($this->parent)) {
         $json['parent'] = array();
         foreach ($this->parent as $parent) {
             $json['parent'][] = $parent->jsonSerialize();
         }
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (null !== $this->accessionIdentifier) {
         $json['accessionIdentifier'] = $this->accessionIdentifier->jsonSerialize();
     }
     if (null !== $this->receivedTime) {
         $json['receivedTime'] = $this->receivedTime->jsonSerialize();
     }
     if (null !== $this->collection) {
         $json['collection'] = $this->collection->jsonSerialize();
     }
     if (0 < count($this->treatment)) {
         $json['treatment'] = array();
         foreach ($this->treatment as $treatment) {
             $json['treatment'][] = $treatment->jsonSerialize();
         }
     }
     if (0 < count($this->container)) {
         $json['container'] = array();
         foreach ($this->container as $container) {
             $json['container'][] = $container->jsonSerialize();
         }
     }
     return $json;
 }
Exemplo n.º 22
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::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->valueBase64Binary) {
         $json['valueBase64Binary'] = $this->valueBase64Binary->jsonSerialize();
     }
     if (null !== $this->valueInstant) {
         $json['valueInstant'] = $this->valueInstant->jsonSerialize();
     }
     if (null !== $this->valueString) {
         $json['valueString'] = $this->valueString->jsonSerialize();
     }
     if (null !== $this->valueUri) {
         $json['valueUri'] = $this->valueUri->jsonSerialize();
     }
     if (null !== $this->valueDate) {
         $json['valueDate'] = $this->valueDate->jsonSerialize();
     }
     if (null !== $this->valueDateTime) {
         $json['valueDateTime'] = $this->valueDateTime->jsonSerialize();
     }
     if (null !== $this->valueTime) {
         $json['valueTime'] = $this->valueTime->jsonSerialize();
     }
     if (null !== $this->valueCode) {
         $json['valueCode'] = $this->valueCode->jsonSerialize();
     }
     if (null !== $this->valueOid) {
         $json['valueOid'] = $this->valueOid->jsonSerialize();
     }
     if (null !== $this->valueUuid) {
         $json['valueUuid'] = $this->valueUuid->jsonSerialize();
     }
     if (null !== $this->valueId) {
         $json['valueId'] = $this->valueId->jsonSerialize();
     }
     if (null !== $this->valueUnsignedInt) {
         $json['valueUnsignedInt'] = $this->valueUnsignedInt->jsonSerialize();
     }
     if (null !== $this->valuePositiveInt) {
         $json['valuePositiveInt'] = $this->valuePositiveInt->jsonSerialize();
     }
     if (null !== $this->valueMarkdown) {
         $json['valueMarkdown'] = $this->valueMarkdown->jsonSerialize();
     }
     if (null !== $this->valueAnnotation) {
         $json['valueAnnotation'] = $this->valueAnnotation->jsonSerialize();
     }
     if (null !== $this->valueAttachment) {
         $json['valueAttachment'] = $this->valueAttachment->jsonSerialize();
     }
     if (null !== $this->valueIdentifier) {
         $json['valueIdentifier'] = $this->valueIdentifier->jsonSerialize();
     }
     if (null !== $this->valueCodeableConcept) {
         $json['valueCodeableConcept'] = $this->valueCodeableConcept->jsonSerialize();
     }
     if (null !== $this->valueCoding) {
         $json['valueCoding'] = $this->valueCoding->jsonSerialize();
     }
     if (null !== $this->valueQuantity) {
         $json['valueQuantity'] = $this->valueQuantity->jsonSerialize();
     }
     if (null !== $this->valueRange) {
         $json['valueRange'] = $this->valueRange->jsonSerialize();
     }
     if (null !== $this->valuePeriod) {
         $json['valuePeriod'] = $this->valuePeriod->jsonSerialize();
     }
     if (null !== $this->valueRatio) {
         $json['valueRatio'] = $this->valueRatio->jsonSerialize();
     }
     if (null !== $this->valueReference) {
         $json['valueReference'] = $this->valueReference->jsonSerialize();
     }
     if (null !== $this->valueSampledData) {
         $json['valueSampledData'] = $this->valueSampledData->jsonSerialize();
     }
     if (null !== $this->valueSignature) {
         $json['valueSignature'] = $this->valueSignature->jsonSerialize();
     }
     if (null !== $this->valueHumanName) {
         $json['valueHumanName'] = $this->valueHumanName->jsonSerialize();
     }
     if (null !== $this->valueAddress) {
         $json['valueAddress'] = $this->valueAddress->jsonSerialize();
     }
     if (null !== $this->valueContactPoint) {
         $json['valueContactPoint'] = $this->valueContactPoint->jsonSerialize();
     }
     if (null !== $this->valueTiming) {
         $json['valueTiming'] = $this->valueTiming->jsonSerialize();
     }
     if (null !== $this->valueMeta) {
         $json['valueMeta'] = $this->valueMeta->jsonSerialize();
     }
     if (null !== $this->url) {
         $json['url'] = $this->url;
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->started) {
         $json['started'] = $this->started->jsonSerialize();
     }
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->uid) {
         $json['uid'] = $this->uid->jsonSerialize();
     }
     if (null !== $this->accession) {
         $json['accession'] = $this->accession->jsonSerialize();
     }
     if (0 < count($this->identifier)) {
         $json['identifier'] = array();
         foreach ($this->identifier as $identifier) {
             $json['identifier'][] = $identifier->jsonSerialize();
         }
     }
     if (0 < count($this->order)) {
         $json['order'] = array();
         foreach ($this->order as $order) {
             $json['order'][] = $order->jsonSerialize();
         }
     }
     if (0 < count($this->modalityList)) {
         $json['modalityList'] = array();
         foreach ($this->modalityList as $modalityList) {
             $json['modalityList'][] = $modalityList->jsonSerialize();
         }
     }
     if (null !== $this->referrer) {
         $json['referrer'] = $this->referrer->jsonSerialize();
     }
     if (null !== $this->availability) {
         $json['availability'] = $this->availability->jsonSerialize();
     }
     if (null !== $this->url) {
         $json['url'] = $this->url->jsonSerialize();
     }
     if (null !== $this->numberOfSeries) {
         $json['numberOfSeries'] = $this->numberOfSeries->jsonSerialize();
     }
     if (null !== $this->numberOfInstances) {
         $json['numberOfInstances'] = $this->numberOfInstances->jsonSerialize();
     }
     if (0 < count($this->procedure)) {
         $json['procedure'] = array();
         foreach ($this->procedure as $procedure) {
             $json['procedure'][] = $procedure->jsonSerialize();
         }
     }
     if (null !== $this->interpreter) {
         $json['interpreter'] = $this->interpreter->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (0 < count($this->series)) {
         $json['series'] = array();
         foreach ($this->series as $series) {
             $json['series'][] = $series->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->source) {
         $json['source'] = $this->source->jsonSerialize();
     }
     if (null !== $this->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->kind) {
         $json['kind'] = $this->kind->jsonSerialize();
     }
     if (null !== $this->orderedItem) {
         $json['orderedItem'] = $this->orderedItem->jsonSerialize();
     }
     if (0 < count($this->supplier)) {
         $json['supplier'] = array();
         foreach ($this->supplier as $supplier) {
             $json['supplier'][] = $supplier->jsonSerialize();
         }
     }
     if (null !== $this->reasonCodeableConcept) {
         $json['reasonCodeableConcept'] = $this->reasonCodeableConcept->jsonSerialize();
     }
     if (null !== $this->reasonReference) {
         $json['reasonReference'] = $this->reasonReference->jsonSerialize();
     }
     if (null !== $this->when) {
         $json['when'] = $this->when->jsonSerialize();
     }
     return $json;
 }
Exemplo n.º 25
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->url) {
         $json['url'] = $this->url->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->version) {
         $json['version'] = $this->version->jsonSerialize();
     }
     if (null !== $this->name) {
         $json['name'] = $this->name->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->experimental) {
         $json['experimental'] = $this->experimental->jsonSerialize();
     }
     if (null !== $this->publisher) {
         $json['publisher'] = $this->publisher->jsonSerialize();
     }
     if (0 < count($this->contact)) {
         $json['contact'] = array();
         foreach ($this->contact as $contact) {
             $json['contact'][] = $contact->jsonSerialize();
         }
     }
     if (null !== $this->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (0 < count($this->useContext)) {
         $json['useContext'] = array();
         foreach ($this->useContext as $useContext) {
             $json['useContext'][] = $useContext->jsonSerialize();
         }
     }
     if (null !== $this->requirements) {
         $json['requirements'] = $this->requirements->jsonSerialize();
     }
     if (null !== $this->copyright) {
         $json['copyright'] = $this->copyright->jsonSerialize();
     }
     if (null !== $this->sourceUri) {
         $json['sourceUri'] = $this->sourceUri->jsonSerialize();
     }
     if (null !== $this->sourceReference) {
         $json['sourceReference'] = $this->sourceReference->jsonSerialize();
     }
     if (null !== $this->targetUri) {
         $json['targetUri'] = $this->targetUri->jsonSerialize();
     }
     if (null !== $this->targetReference) {
         $json['targetReference'] = $this->targetReference->jsonSerialize();
     }
     if (0 < count($this->element)) {
         $json['element'] = array();
         foreach ($this->element as $element) {
             $json['element'][] = $element->jsonSerialize();
         }
     }
     return $json;
 }
Exemplo n.º 26
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->url) {
         $json['url'] = $this->url->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->version) {
         $json['version'] = $this->version->jsonSerialize();
     }
     if (null !== $this->name) {
         $json['name'] = $this->name->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->experimental) {
         $json['experimental'] = $this->experimental->jsonSerialize();
     }
     if (null !== $this->publisher) {
         $json['publisher'] = $this->publisher->jsonSerialize();
     }
     if (0 < count($this->contact)) {
         $json['contact'] = array();
         foreach ($this->contact as $contact) {
             $json['contact'][] = $contact->jsonSerialize();
         }
     }
     if (null !== $this->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->lockedDate) {
         $json['lockedDate'] = $this->lockedDate->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (0 < count($this->useContext)) {
         $json['useContext'] = array();
         foreach ($this->useContext as $useContext) {
             $json['useContext'][] = $useContext->jsonSerialize();
         }
     }
     if (null !== $this->immutable) {
         $json['immutable'] = $this->immutable->jsonSerialize();
     }
     if (null !== $this->requirements) {
         $json['requirements'] = $this->requirements->jsonSerialize();
     }
     if (null !== $this->copyright) {
         $json['copyright'] = $this->copyright->jsonSerialize();
     }
     if (null !== $this->extensible) {
         $json['extensible'] = $this->extensible->jsonSerialize();
     }
     if (null !== $this->codeSystem) {
         $json['codeSystem'] = $this->codeSystem->jsonSerialize();
     }
     if (null !== $this->compose) {
         $json['compose'] = $this->compose->jsonSerialize();
     }
     if (null !== $this->expansion) {
         $json['expansion'] = $this->expansion->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->category) {
         $json['category'] = $this->category->jsonSerialize();
     }
     if (null !== $this->severity) {
         $json['severity'] = $this->severity->jsonSerialize();
     }
     if (0 < count($this->implicated)) {
         $json['implicated'] = array();
         foreach ($this->implicated as $implicated) {
             $json['implicated'][] = $implicated->jsonSerialize();
         }
     }
     if (null !== $this->detail) {
         $json['detail'] = $this->detail->jsonSerialize();
     }
     if (null !== $this->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->author) {
         $json['author'] = $this->author->jsonSerialize();
     }
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->reference) {
         $json['reference'] = $this->reference->jsonSerialize();
     }
     if (0 < count($this->mitigation)) {
         $json['mitigation'] = array();
         foreach ($this->mitigation as $mitigation) {
             $json['mitigation'][] = $mitigation->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->identifier) {
         $json['identifier'] = $this->identifier->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->dispenser) {
         $json['dispenser'] = $this->dispenser->jsonSerialize();
     }
     if (0 < count($this->authorizingPrescription)) {
         $json['authorizingPrescription'] = array();
         foreach ($this->authorizingPrescription as $authorizingPrescription) {
             $json['authorizingPrescription'][] = $authorizingPrescription->jsonSerialize();
         }
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->daysSupply) {
         $json['daysSupply'] = $this->daysSupply->jsonSerialize();
     }
     if (null !== $this->medicationCodeableConcept) {
         $json['medicationCodeableConcept'] = $this->medicationCodeableConcept->jsonSerialize();
     }
     if (null !== $this->medicationReference) {
         $json['medicationReference'] = $this->medicationReference->jsonSerialize();
     }
     if (null !== $this->whenPrepared) {
         $json['whenPrepared'] = $this->whenPrepared->jsonSerialize();
     }
     if (null !== $this->whenHandedOver) {
         $json['whenHandedOver'] = $this->whenHandedOver->jsonSerialize();
     }
     if (null !== $this->destination) {
         $json['destination'] = $this->destination->jsonSerialize();
     }
     if (0 < count($this->receiver)) {
         $json['receiver'] = array();
         foreach ($this->receiver as $receiver) {
             $json['receiver'][] = $receiver->jsonSerialize();
         }
     }
     if (null !== $this->note) {
         $json['note'] = $this->note->jsonSerialize();
     }
     if (0 < count($this->dosageInstruction)) {
         $json['dosageInstruction'] = array();
         foreach ($this->dosageInstruction as $dosageInstruction) {
             $json['dosageInstruction'][] = $dosageInstruction->jsonSerialize();
         }
     }
     if (null !== $this->substitution) {
         $json['substitution'] = $this->substitution->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;
 }
Exemplo n.º 30
0
 /**
  * @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;
 }