/**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (0 < count($this->event)) {
         $json['event'] = array();
         foreach ($this->event as $event) {
             $json['event'][] = $event->jsonSerialize();
         }
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->facilityType) {
         $json['facilityType'] = $this->facilityType->jsonSerialize();
     }
     if (null !== $this->practiceSetting) {
         $json['practiceSetting'] = $this->practiceSetting->jsonSerialize();
     }
     if (null !== $this->sourcePatientInfo) {
         $json['sourcePatientInfo'] = $this->sourcePatientInfo->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->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     return $json;
 }
Exemplo n.º 4
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;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (0 < count($this->target)) {
         $json['target'] = array();
         foreach ($this->target as $target) {
             $json['target'][] = $target->jsonSerialize();
         }
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->recorded) {
         $json['recorded'] = $this->recorded->jsonSerialize();
     }
     if (0 < count($this->reason)) {
         $json['reason'] = array();
         foreach ($this->reason as $reason) {
             $json['reason'][] = $reason->jsonSerialize();
         }
     }
     if (null !== $this->activity) {
         $json['activity'] = $this->activity->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 (0 < count($this->agent)) {
         $json['agent'] = array();
         foreach ($this->agent as $agent) {
             $json['agent'][] = $agent->jsonSerialize();
         }
     }
     if (0 < count($this->entity)) {
         $json['entity'] = array();
         foreach ($this->entity as $entity) {
             $json['entity'][] = $entity->jsonSerialize();
         }
     }
     if (0 < count($this->signature)) {
         $json['signature'] = array();
         foreach ($this->signature as $signature) {
             $json['signature'][] = $signature->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (null !== $this->during) {
         $json['during'] = $this->during->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->entity) {
         $json['entity'] = $this->entity->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->inactive) {
         $json['inactive'] = $this->inactive->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (0 < count($this->type)) {
         $json['type'] = array();
         foreach ($this->type as $type) {
             $json['type'][] = $type->jsonSerialize();
         }
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->individual) {
         $json['individual'] = $this->individual->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->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->member) {
         $json['member'] = $this->member->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->boundsQuantity) {
         $json['boundsQuantity'] = $this->boundsQuantity->jsonSerialize();
     }
     if (null !== $this->boundsRange) {
         $json['boundsRange'] = $this->boundsRange->jsonSerialize();
     }
     if (null !== $this->boundsPeriod) {
         $json['boundsPeriod'] = $this->boundsPeriod->jsonSerialize();
     }
     if (null !== $this->count) {
         $json['count'] = $this->count->jsonSerialize();
     }
     if (null !== $this->duration) {
         $json['duration'] = $this->duration->jsonSerialize();
     }
     if (null !== $this->durationMax) {
         $json['durationMax'] = $this->durationMax->jsonSerialize();
     }
     if (null !== $this->durationUnits) {
         $json['durationUnits'] = $this->durationUnits->jsonSerialize();
     }
     if (null !== $this->frequency) {
         $json['frequency'] = $this->frequency->jsonSerialize();
     }
     if (null !== $this->frequencyMax) {
         $json['frequencyMax'] = $this->frequencyMax->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->periodMax) {
         $json['periodMax'] = $this->periodMax->jsonSerialize();
     }
     if (null !== $this->periodUnits) {
         $json['periodUnits'] = $this->periodUnits->jsonSerialize();
     }
     if (null !== $this->when) {
         $json['when'] = $this->when->jsonSerialize();
     }
     return $json;
 }
 /**
  * @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->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->issuer) {
         $json['issuer'] = $this->issuer->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (0 < count($this->code)) {
         $json['code'] = array();
         foreach ($this->code as $code) {
             $json['code'][] = $code->jsonSerialize();
         }
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->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();
     if (null !== $this->medicationCodeableConcept) {
         $json['medicationCodeableConcept'] = $this->medicationCodeableConcept->jsonSerialize();
     }
     if (null !== $this->medicationReference) {
         $json['medicationReference'] = $this->medicationReference->jsonSerialize();
     }
     if (null !== $this->validityPeriod) {
         $json['validityPeriod'] = $this->validityPeriod->jsonSerialize();
     }
     if (null !== $this->numberOfRepeatsAllowed) {
         $json['numberOfRepeatsAllowed'] = $this->numberOfRepeatsAllowed->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->expectedSupplyDuration) {
         $json['expectedSupplyDuration'] = $this->expectedSupplyDuration->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->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (0 < count($this->statusHistory)) {
         $json['statusHistory'] = array();
         foreach ($this->statusHistory as $statusHistory) {
             $json['statusHistory'][] = $statusHistory->jsonSerialize();
         }
     }
     if (0 < count($this->type)) {
         $json['type'] = array();
         foreach ($this->type as $type) {
             $json['type'][] = $type->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 (null !== $this->managingOrganization) {
         $json['managingOrganization'] = $this->managingOrganization->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (0 < count($this->referralRequest)) {
         $json['referralRequest'] = array();
         foreach ($this->referralRequest as $referralRequest) {
             $json['referralRequest'][] = $referralRequest->jsonSerialize();
         }
     }
     if (null !== $this->careManager) {
         $json['careManager'] = $this->careManager->jsonSerialize();
     }
     if (0 < count($this->careTeam)) {
         $json['careTeam'] = array();
         foreach ($this->careTeam as $careTeam) {
             $json['careTeam'][] = $careTeam->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     $json['resourceType'] = $this->_fhirElementName;
     if (null !== $this->bodySiteCodeableConcept) {
         $json['bodySiteCodeableConcept'] = $this->bodySiteCodeableConcept->jsonSerialize();
     }
     if (null !== $this->bodySiteReference) {
         $json['bodySiteReference'] = $this->bodySiteReference->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->device) {
         $json['device'] = $this->device->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (0 < count($this->identifier)) {
         $json['identifier'] = array();
         foreach ($this->identifier as $identifier) {
             $json['identifier'][] = $identifier->jsonSerialize();
         }
     }
     if (0 < count($this->indication)) {
         $json['indication'] = array();
         foreach ($this->indication as $indication) {
             $json['indication'][] = $indication->jsonSerialize();
         }
     }
     if (0 < count($this->notes)) {
         $json['notes'] = array();
         foreach ($this->notes as $notes) {
             $json['notes'][] = $notes->jsonSerialize();
         }
     }
     if (0 < count($this->prnReason)) {
         $json['prnReason'] = array();
         foreach ($this->prnReason as $prnReason) {
             $json['prnReason'][] = $prnReason->jsonSerialize();
         }
     }
     if (null !== $this->orderedOn) {
         $json['orderedOn'] = $this->orderedOn->jsonSerialize();
     }
     if (null !== $this->recordedOn) {
         $json['recordedOn'] = $this->recordedOn->jsonSerialize();
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (null !== $this->timingTiming) {
         $json['timingTiming'] = $this->timingTiming->jsonSerialize();
     }
     if (null !== $this->timingPeriod) {
         $json['timingPeriod'] = $this->timingPeriod->jsonSerialize();
     }
     if (null !== $this->timingDateTime) {
         $json['timingDateTime'] = $this->timingDateTime->jsonSerialize();
     }
     if (null !== $this->priority) {
         $json['priority'] = $this->priority->jsonSerialize();
     }
     return $json;
 }
Exemplo n.º 16
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->category) {
         $json['category'] = $this->category->jsonSerialize();
     }
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (null !== $this->effectiveDateTime) {
         $json['effectiveDateTime'] = $this->effectiveDateTime->jsonSerialize();
     }
     if (null !== $this->effectivePeriod) {
         $json['effectivePeriod'] = $this->effectivePeriod->jsonSerialize();
     }
     if (null !== $this->issued) {
         $json['issued'] = $this->issued->jsonSerialize();
     }
     if (0 < count($this->performer)) {
         $json['performer'] = array();
         foreach ($this->performer as $performer) {
             $json['performer'][] = $performer->jsonSerialize();
         }
     }
     if (null !== $this->valueQuantity) {
         $json['valueQuantity'] = $this->valueQuantity->jsonSerialize();
     }
     if (null !== $this->valueCodeableConcept) {
         $json['valueCodeableConcept'] = $this->valueCodeableConcept->jsonSerialize();
     }
     if (null !== $this->valueString) {
         $json['valueString'] = $this->valueString->jsonSerialize();
     }
     if (null !== $this->valueRange) {
         $json['valueRange'] = $this->valueRange->jsonSerialize();
     }
     if (null !== $this->valueRatio) {
         $json['valueRatio'] = $this->valueRatio->jsonSerialize();
     }
     if (null !== $this->valueSampledData) {
         $json['valueSampledData'] = $this->valueSampledData->jsonSerialize();
     }
     if (null !== $this->valueAttachment) {
         $json['valueAttachment'] = $this->valueAttachment->jsonSerialize();
     }
     if (null !== $this->valueTime) {
         $json['valueTime'] = $this->valueTime->jsonSerialize();
     }
     if (null !== $this->valueDateTime) {
         $json['valueDateTime'] = $this->valueDateTime->jsonSerialize();
     }
     if (null !== $this->valuePeriod) {
         $json['valuePeriod'] = $this->valuePeriod->jsonSerialize();
     }
     if (null !== $this->dataAbsentReason) {
         $json['dataAbsentReason'] = $this->dataAbsentReason->jsonSerialize();
     }
     if (null !== $this->interpretation) {
         $json['interpretation'] = $this->interpretation->jsonSerialize();
     }
     if (null !== $this->comments) {
         $json['comments'] = $this->comments->jsonSerialize();
     }
     if (null !== $this->bodySite) {
         $json['bodySite'] = $this->bodySite->jsonSerialize();
     }
     if (null !== $this->method) {
         $json['method'] = $this->method->jsonSerialize();
     }
     if (null !== $this->specimen) {
         $json['specimen'] = $this->specimen->jsonSerialize();
     }
     if (null !== $this->device) {
         $json['device'] = $this->device->jsonSerialize();
     }
     if (0 < count($this->referenceRange)) {
         $json['referenceRange'] = array();
         foreach ($this->referenceRange as $referenceRange) {
             $json['referenceRange'][] = $referenceRange->jsonSerialize();
         }
     }
     if (0 < count($this->related)) {
         $json['related'] = array();
         foreach ($this->related as $related) {
             $json['related'][] = $related->jsonSerialize();
         }
     }
     if (0 < count($this->component)) {
         $json['component'] = array();
         foreach ($this->component as $component) {
             $json['component'][] = $component->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();
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->value) {
         $json['value'] = $this->value->jsonSerialize();
     }
     if (null !== $this->preferred) {
         $json['preferred'] = $this->preferred->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->valueQuantity) {
         $json['valueQuantity'] = $this->valueQuantity->jsonSerialize();
     }
     if (null !== $this->valueCodeableConcept) {
         $json['valueCodeableConcept'] = $this->valueCodeableConcept->jsonSerialize();
     }
     if (null !== $this->valueString) {
         $json['valueString'] = $this->valueString->jsonSerialize();
     }
     if (null !== $this->valueRange) {
         $json['valueRange'] = $this->valueRange->jsonSerialize();
     }
     if (null !== $this->valueRatio) {
         $json['valueRatio'] = $this->valueRatio->jsonSerialize();
     }
     if (null !== $this->valueSampledData) {
         $json['valueSampledData'] = $this->valueSampledData->jsonSerialize();
     }
     if (null !== $this->valueAttachment) {
         $json['valueAttachment'] = $this->valueAttachment->jsonSerialize();
     }
     if (null !== $this->valueTime) {
         $json['valueTime'] = $this->valueTime->jsonSerialize();
     }
     if (null !== $this->valueDateTime) {
         $json['valueDateTime'] = $this->valueDateTime->jsonSerialize();
     }
     if (null !== $this->valuePeriod) {
         $json['valuePeriod'] = $this->valuePeriod->jsonSerialize();
     }
     if (null !== $this->dataAbsentReason) {
         $json['dataAbsentReason'] = $this->dataAbsentReason->jsonSerialize();
     }
     if (0 < count($this->referenceRange)) {
         $json['referenceRange'] = array();
         foreach ($this->referenceRange as $referenceRange) {
             $json['referenceRange'][] = $referenceRange->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->outcome) {
         $json['outcome'] = $this->outcome->jsonSerialize();
     }
     if (null !== $this->onsetQuantity) {
         $json['onsetQuantity'] = $this->onsetQuantity->jsonSerialize();
     }
     if (null !== $this->onsetRange) {
         $json['onsetRange'] = $this->onsetRange->jsonSerialize();
     }
     if (null !== $this->onsetPeriod) {
         $json['onsetPeriod'] = $this->onsetPeriod->jsonSerialize();
     }
     if (null !== $this->onsetString) {
         $json['onsetString'] = $this->onsetString->jsonSerialize();
     }
     if (null !== $this->note) {
         $json['note'] = $this->note->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->collector) {
         $json['collector'] = $this->collector->jsonSerialize();
     }
     if (0 < count($this->comment)) {
         $json['comment'] = array();
         foreach ($this->comment as $comment) {
             $json['comment'][] = $comment->jsonSerialize();
         }
     }
     if (null !== $this->collectedDateTime) {
         $json['collectedDateTime'] = $this->collectedDateTime->jsonSerialize();
     }
     if (null !== $this->collectedPeriod) {
         $json['collectedPeriod'] = $this->collectedPeriod->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->method) {
         $json['method'] = $this->method->jsonSerialize();
     }
     if (null !== $this->bodySite) {
         $json['bodySite'] = $this->bodySite->jsonSerialize();
     }
     return $json;
 }
Exemplo n.º 22
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->use) {
         $json['use'] = $this->use->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->system) {
         $json['system'] = $this->system->jsonSerialize();
     }
     if (null !== $this->value) {
         $json['value'] = $this->value->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->assigner) {
         $json['assigner'] = $this->assigner->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->managingOrganization) {
         $json['managingOrganization'] = $this->managingOrganization->jsonSerialize();
     }
     if (null !== $this->role) {
         $json['role'] = $this->role->jsonSerialize();
     }
     if (0 < count($this->specialty)) {
         $json['specialty'] = array();
         foreach ($this->specialty as $specialty) {
             $json['specialty'][] = $specialty->jsonSerialize();
         }
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (0 < count($this->location)) {
         $json['location'] = array();
         foreach ($this->location as $location) {
             $json['location'][] = $location->jsonSerialize();
         }
     }
     if (0 < count($this->healthcareService)) {
         $json['healthcareService'] = array();
         foreach ($this->healthcareService as $healthcareService) {
             $json['healthcareService'][] = $healthcareService->jsonSerialize();
         }
     }
     return $json;
 }
Exemplo n.º 24
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->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (null !== $this->asserter) {
         $json['asserter'] = $this->asserter->jsonSerialize();
     }
     if (null !== $this->dateRecorded) {
         $json['dateRecorded'] = $this->dateRecorded->jsonSerialize();
     }
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (null !== $this->category) {
         $json['category'] = $this->category->jsonSerialize();
     }
     if (null !== $this->clinicalStatus) {
         $json['clinicalStatus'] = $this->clinicalStatus->jsonSerialize();
     }
     if (null !== $this->verificationStatus) {
         $json['verificationStatus'] = $this->verificationStatus->jsonSerialize();
     }
     if (null !== $this->severity) {
         $json['severity'] = $this->severity->jsonSerialize();
     }
     if (null !== $this->onsetDateTime) {
         $json['onsetDateTime'] = $this->onsetDateTime->jsonSerialize();
     }
     if (null !== $this->onsetQuantity) {
         $json['onsetQuantity'] = $this->onsetQuantity->jsonSerialize();
     }
     if (null !== $this->onsetPeriod) {
         $json['onsetPeriod'] = $this->onsetPeriod->jsonSerialize();
     }
     if (null !== $this->onsetRange) {
         $json['onsetRange'] = $this->onsetRange->jsonSerialize();
     }
     if (null !== $this->onsetString) {
         $json['onsetString'] = $this->onsetString->jsonSerialize();
     }
     if (null !== $this->abatementDateTime) {
         $json['abatementDateTime'] = $this->abatementDateTime->jsonSerialize();
     }
     if (null !== $this->abatementQuantity) {
         $json['abatementQuantity'] = $this->abatementQuantity->jsonSerialize();
     }
     if (null !== $this->abatementBoolean) {
         $json['abatementBoolean'] = $this->abatementBoolean->jsonSerialize();
     }
     if (null !== $this->abatementPeriod) {
         $json['abatementPeriod'] = $this->abatementPeriod->jsonSerialize();
     }
     if (null !== $this->abatementRange) {
         $json['abatementRange'] = $this->abatementRange->jsonSerialize();
     }
     if (null !== $this->abatementString) {
         $json['abatementString'] = $this->abatementString->jsonSerialize();
     }
     if (null !== $this->stage) {
         $json['stage'] = $this->stage->jsonSerialize();
     }
     if (0 < count($this->evidence)) {
         $json['evidence'] = array();
         foreach ($this->evidence as $evidence) {
             $json['evidence'][] = $evidence->jsonSerialize();
         }
     }
     if (0 < count($this->bodySite)) {
         $json['bodySite'] = array();
         foreach ($this->bodySite as $bodySite) {
             $json['bodySite'][] = $bodySite->jsonSerialize();
         }
     }
     if (null !== $this->notes) {
         $json['notes'] = $this->notes->jsonSerialize();
     }
     return $json;
 }
Exemplo n.º 25
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 (0 < count($this->type)) {
         $json['type'] = array();
         foreach ($this->type as $type) {
             $json['type'][] = $type->jsonSerialize();
         }
     }
     if (null !== $this->actor) {
         $json['actor'] = $this->actor->jsonSerialize();
     }
     if (null !== $this->planningHorizon) {
         $json['planningHorizon'] = $this->planningHorizon->jsonSerialize();
     }
     if (null !== $this->comment) {
         $json['comment'] = $this->comment->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->category) {
         $json['category'] = $this->category->jsonSerialize();
     }
     if (null !== $this->code) {
         $json['code'] = $this->code->jsonSerialize();
     }
     if (0 < count($this->reasonCode)) {
         $json['reasonCode'] = array();
         foreach ($this->reasonCode as $reasonCode) {
             $json['reasonCode'][] = $reasonCode->jsonSerialize();
         }
     }
     if (0 < count($this->reasonReference)) {
         $json['reasonReference'] = array();
         foreach ($this->reasonReference as $reasonReference) {
             $json['reasonReference'][] = $reasonReference->jsonSerialize();
         }
     }
     if (0 < count($this->goal)) {
         $json['goal'] = array();
         foreach ($this->goal as $goal) {
             $json['goal'][] = $goal->jsonSerialize();
         }
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->statusReason) {
         $json['statusReason'] = $this->statusReason->jsonSerialize();
     }
     if (null !== $this->prohibited) {
         $json['prohibited'] = $this->prohibited->jsonSerialize();
     }
     if (null !== $this->scheduledTiming) {
         $json['scheduledTiming'] = $this->scheduledTiming->jsonSerialize();
     }
     if (null !== $this->scheduledPeriod) {
         $json['scheduledPeriod'] = $this->scheduledPeriod->jsonSerialize();
     }
     if (null !== $this->scheduledString) {
         $json['scheduledString'] = $this->scheduledString->jsonSerialize();
     }
     if (null !== $this->location) {
         $json['location'] = $this->location->jsonSerialize();
     }
     if (0 < count($this->performer)) {
         $json['performer'] = array();
         foreach ($this->performer as $performer) {
             $json['performer'][] = $performer->jsonSerialize();
         }
     }
     if (null !== $this->productCodeableConcept) {
         $json['productCodeableConcept'] = $this->productCodeableConcept->jsonSerialize();
     }
     if (null !== $this->productReference) {
         $json['productReference'] = $this->productReference->jsonSerialize();
     }
     if (null !== $this->dailyAmount) {
         $json['dailyAmount'] = $this->dailyAmount->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     return $json;
 }
Exemplo n.º 27
0
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->use) {
         $json['use'] = $this->use->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->text) {
         $json['text'] = $this->text->jsonSerialize();
     }
     if (0 < count($this->line)) {
         $json['line'] = array();
         foreach ($this->line as $line) {
             $json['line'][] = $line->jsonSerialize();
         }
     }
     if (null !== $this->city) {
         $json['city'] = $this->city->jsonSerialize();
     }
     if (null !== $this->district) {
         $json['district'] = $this->district->jsonSerialize();
     }
     if (null !== $this->state) {
         $json['state'] = $this->state->jsonSerialize();
     }
     if (null !== $this->postalCode) {
         $json['postalCode'] = $this->postalCode->jsonSerialize();
     }
     if (null !== $this->country) {
         $json['country'] = $this->country->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     return $json;
 }
Exemplo n.º 28
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 (0 < count($this->statusHistory)) {
         $json['statusHistory'] = array();
         foreach ($this->statusHistory as $statusHistory) {
             $json['statusHistory'][] = $statusHistory->jsonSerialize();
         }
     }
     if (null !== $this->class) {
         $json['class'] = $this->class->jsonSerialize();
     }
     if (0 < count($this->type)) {
         $json['type'] = array();
         foreach ($this->type as $type) {
             $json['type'][] = $type->jsonSerialize();
         }
     }
     if (null !== $this->priority) {
         $json['priority'] = $this->priority->jsonSerialize();
     }
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (0 < count($this->episodeOfCare)) {
         $json['episodeOfCare'] = array();
         foreach ($this->episodeOfCare as $episodeOfCare) {
             $json['episodeOfCare'][] = $episodeOfCare->jsonSerialize();
         }
     }
     if (0 < count($this->incomingReferral)) {
         $json['incomingReferral'] = array();
         foreach ($this->incomingReferral as $incomingReferral) {
             $json['incomingReferral'][] = $incomingReferral->jsonSerialize();
         }
     }
     if (0 < count($this->participant)) {
         $json['participant'] = array();
         foreach ($this->participant as $participant) {
             $json['participant'][] = $participant->jsonSerialize();
         }
     }
     if (null !== $this->appointment) {
         $json['appointment'] = $this->appointment->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->length) {
         $json['length'] = $this->length->jsonSerialize();
     }
     if (0 < count($this->reason)) {
         $json['reason'] = array();
         foreach ($this->reason as $reason) {
             $json['reason'][] = $reason->jsonSerialize();
         }
     }
     if (0 < count($this->indication)) {
         $json['indication'] = array();
         foreach ($this->indication as $indication) {
             $json['indication'][] = $indication->jsonSerialize();
         }
     }
     if (null !== $this->hospitalization) {
         $json['hospitalization'] = $this->hospitalization->jsonSerialize();
     }
     if (0 < count($this->location)) {
         $json['location'] = array();
         foreach ($this->location as $location) {
             $json['location'][] = $location->jsonSerialize();
         }
     }
     if (null !== $this->serviceProvider) {
         $json['serviceProvider'] = $this->serviceProvider->jsonSerialize();
     }
     if (null !== $this->partOf) {
         $json['partOf'] = $this->partOf->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->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->practitioner) {
         $json['practitioner'] = $this->practitioner->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (null !== $this->prescription) {
         $json['prescription'] = $this->prescription->jsonSerialize();
     }
     if (null !== $this->wasNotGiven) {
         $json['wasNotGiven'] = $this->wasNotGiven->jsonSerialize();
     }
     if (0 < count($this->reasonNotGiven)) {
         $json['reasonNotGiven'] = array();
         foreach ($this->reasonNotGiven as $reasonNotGiven) {
             $json['reasonNotGiven'][] = $reasonNotGiven->jsonSerialize();
         }
     }
     if (0 < count($this->reasonGiven)) {
         $json['reasonGiven'] = array();
         foreach ($this->reasonGiven as $reasonGiven) {
             $json['reasonGiven'][] = $reasonGiven->jsonSerialize();
         }
     }
     if (null !== $this->effectiveTimeDateTime) {
         $json['effectiveTimeDateTime'] = $this->effectiveTimeDateTime->jsonSerialize();
     }
     if (null !== $this->effectiveTimePeriod) {
         $json['effectiveTimePeriod'] = $this->effectiveTimePeriod->jsonSerialize();
     }
     if (null !== $this->medicationCodeableConcept) {
         $json['medicationCodeableConcept'] = $this->medicationCodeableConcept->jsonSerialize();
     }
     if (null !== $this->medicationReference) {
         $json['medicationReference'] = $this->medicationReference->jsonSerialize();
     }
     if (0 < count($this->device)) {
         $json['device'] = array();
         foreach ($this->device as $device) {
             $json['device'][] = $device->jsonSerialize();
         }
     }
     if (null !== $this->note) {
         $json['note'] = $this->note->jsonSerialize();
     }
     if (null !== $this->dosage) {
         $json['dosage'] = $this->dosage->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->category) {
         $json['category'] = $this->category->jsonSerialize();
     }
     if (null !== $this->sender) {
         $json['sender'] = $this->sender->jsonSerialize();
     }
     if (0 < count($this->recipient)) {
         $json['recipient'] = array();
         foreach ($this->recipient as $recipient) {
             $json['recipient'][] = $recipient->jsonSerialize();
         }
     }
     if (0 < count($this->payload)) {
         $json['payload'] = array();
         foreach ($this->payload as $payload) {
             $json['payload'][] = $payload->jsonSerialize();
         }
     }
     if (0 < count($this->medium)) {
         $json['medium'] = array();
         foreach ($this->medium as $medium) {
             $json['medium'][] = $medium->jsonSerialize();
         }
     }
     if (null !== $this->requester) {
         $json['requester'] = $this->requester->jsonSerialize();
     }
     if (null !== $this->status) {
         $json['status'] = $this->status->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (null !== $this->scheduledDateTime) {
         $json['scheduledDateTime'] = $this->scheduledDateTime->jsonSerialize();
     }
     if (null !== $this->scheduledPeriod) {
         $json['scheduledPeriod'] = $this->scheduledPeriod->jsonSerialize();
     }
     if (0 < count($this->reason)) {
         $json['reason'] = array();
         foreach ($this->reason as $reason) {
             $json['reason'][] = $reason->jsonSerialize();
         }
     }
     if (null !== $this->requestedOn) {
         $json['requestedOn'] = $this->requestedOn->jsonSerialize();
     }
     if (null !== $this->subject) {
         $json['subject'] = $this->subject->jsonSerialize();
     }
     if (null !== $this->priority) {
         $json['priority'] = $this->priority->jsonSerialize();
     }
     return $json;
 }