/**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->origin) {
         $json['origin'] = $this->origin->jsonSerialize();
     }
     if (null !== $this->period) {
         $json['period'] = $this->period->jsonSerialize();
     }
     if (null !== $this->factor) {
         $json['factor'] = $this->factor->jsonSerialize();
     }
     if (null !== $this->lowerLimit) {
         $json['lowerLimit'] = $this->lowerLimit->jsonSerialize();
     }
     if (null !== $this->upperLimit) {
         $json['upperLimit'] = $this->upperLimit->jsonSerialize();
     }
     if (null !== $this->dimensions) {
         $json['dimensions'] = $this->dimensions->jsonSerialize();
     }
     if (null !== $this->data) {
         $json['data'] = $this->data->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->item) {
         $json['item'] = $this->item->jsonSerialize();
     }
     if (null !== $this->amount) {
         $json['amount'] = $this->amount->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->low) {
         $json['low'] = $this->low->jsonSerialize();
     }
     if (null !== $this->high) {
         $json['high'] = $this->high->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->modifier) {
         $json['modifier'] = $this->modifier->jsonSerialize();
     }
     if (null !== $this->amount) {
         $json['amount'] = $this->amount->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->schedule) {
         $json['schedule'] = $this->schedule->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->rateQuantity) {
         $json['rateQuantity'] = $this->rateQuantity->jsonSerialize();
     }
     if (null !== $this->rateRatio) {
         $json['rateRatio'] = $this->rateRatio->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->low) {
         $json['low'] = $this->low->jsonSerialize();
     }
     if (null !== $this->high) {
         $json['high'] = $this->high->jsonSerialize();
     }
     if (null !== $this->meaning) {
         $json['meaning'] = $this->meaning->jsonSerialize();
     }
     if (null !== $this->age) {
         $json['age'] = $this->age->jsonSerialize();
     }
     if (null !== $this->text) {
         $json['text'] = $this->text->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 (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();
     if (null !== $this->baseFormulaType) {
         $json['baseFormulaType'] = $this->baseFormulaType->jsonSerialize();
     }
     if (null !== $this->baseFormulaProductName) {
         $json['baseFormulaProductName'] = $this->baseFormulaProductName->jsonSerialize();
     }
     if (null !== $this->additiveType) {
         $json['additiveType'] = $this->additiveType->jsonSerialize();
     }
     if (null !== $this->additiveProductName) {
         $json['additiveProductName'] = $this->additiveProductName->jsonSerialize();
     }
     if (null !== $this->caloricDensity) {
         $json['caloricDensity'] = $this->caloricDensity->jsonSerialize();
     }
     if (null !== $this->routeofAdministration) {
         $json['routeofAdministration'] = $this->routeofAdministration->jsonSerialize();
     }
     if (0 < count($this->administration)) {
         $json['administration'] = array();
         foreach ($this->administration as $administration) {
             $json['administration'][] = $administration->jsonSerialize();
         }
     }
     if (null !== $this->maxVolumeToDeliver) {
         $json['maxVolumeToDeliver'] = $this->maxVolumeToDeliver->jsonSerialize();
     }
     if (null !== $this->administrationInstruction) {
         $json['administrationInstruction'] = $this->administrationInstruction->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (0 < count($this->identifier)) {
         $json['identifier'] = array();
         foreach ($this->identifier as $identifier) {
             $json['identifier'][] = $identifier->jsonSerialize();
         }
     }
     if (null !== $this->description) {
         $json['description'] = $this->description->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->capacity) {
         $json['capacity'] = $this->capacity->jsonSerialize();
     }
     if (null !== $this->specimenQuantity) {
         $json['specimenQuantity'] = $this->specimenQuantity->jsonSerialize();
     }
     if (null !== $this->additiveCodeableConcept) {
         $json['additiveCodeableConcept'] = $this->additiveCodeableConcept->jsonSerialize();
     }
     if (null !== $this->additiveReference) {
         $json['additiveReference'] = $this->additiveReference->jsonSerialize();
     }
     return $json;
 }
 /**
  * @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;
 }
 /**
  * @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;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->text) {
         $json['text'] = $this->text->jsonSerialize();
     }
     if (null !== $this->additionalInstructions) {
         $json['additionalInstructions'] = $this->additionalInstructions->jsonSerialize();
     }
     if (null !== $this->timing) {
         $json['timing'] = $this->timing->jsonSerialize();
     }
     if (null !== $this->asNeededBoolean) {
         $json['asNeededBoolean'] = $this->asNeededBoolean->jsonSerialize();
     }
     if (null !== $this->asNeededCodeableConcept) {
         $json['asNeededCodeableConcept'] = $this->asNeededCodeableConcept->jsonSerialize();
     }
     if (null !== $this->siteCodeableConcept) {
         $json['siteCodeableConcept'] = $this->siteCodeableConcept->jsonSerialize();
     }
     if (null !== $this->siteReference) {
         $json['siteReference'] = $this->siteReference->jsonSerialize();
     }
     if (null !== $this->route) {
         $json['route'] = $this->route->jsonSerialize();
     }
     if (null !== $this->method) {
         $json['method'] = $this->method->jsonSerialize();
     }
     if (null !== $this->doseRange) {
         $json['doseRange'] = $this->doseRange->jsonSerialize();
     }
     if (null !== $this->doseQuantity) {
         $json['doseQuantity'] = $this->doseQuantity->jsonSerialize();
     }
     if (null !== $this->rateRatio) {
         $json['rateRatio'] = $this->rateRatio->jsonSerialize();
     }
     if (null !== $this->rateRange) {
         $json['rateRange'] = $this->rateRange->jsonSerialize();
     }
     if (null !== $this->maxDosePerPeriod) {
         $json['maxDosePerPeriod'] = $this->maxDosePerPeriod->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->date) {
         $json['date'] = $this->date->jsonSerialize();
     }
     if (null !== $this->vaccineCode) {
         $json['vaccineCode'] = $this->vaccineCode->jsonSerialize();
     }
     if (null !== $this->patient) {
         $json['patient'] = $this->patient->jsonSerialize();
     }
     if (null !== $this->wasNotGiven) {
         $json['wasNotGiven'] = $this->wasNotGiven->jsonSerialize();
     }
     if (null !== $this->reported) {
         $json['reported'] = $this->reported->jsonSerialize();
     }
     if (null !== $this->performer) {
         $json['performer'] = $this->performer->jsonSerialize();
     }
     if (null !== $this->requester) {
         $json['requester'] = $this->requester->jsonSerialize();
     }
     if (null !== $this->encounter) {
         $json['encounter'] = $this->encounter->jsonSerialize();
     }
     if (null !== $this->manufacturer) {
         $json['manufacturer'] = $this->manufacturer->jsonSerialize();
     }
     if (null !== $this->location) {
         $json['location'] = $this->location->jsonSerialize();
     }
     if (null !== $this->lotNumber) {
         $json['lotNumber'] = $this->lotNumber->jsonSerialize();
     }
     if (null !== $this->expirationDate) {
         $json['expirationDate'] = $this->expirationDate->jsonSerialize();
     }
     if (null !== $this->site) {
         $json['site'] = $this->site->jsonSerialize();
     }
     if (null !== $this->route) {
         $json['route'] = $this->route->jsonSerialize();
     }
     if (null !== $this->doseQuantity) {
         $json['doseQuantity'] = $this->doseQuantity->jsonSerialize();
     }
     if (0 < count($this->note)) {
         $json['note'] = array();
         foreach ($this->note as $note) {
             $json['note'][] = $note->jsonSerialize();
         }
     }
     if (null !== $this->explanation) {
         $json['explanation'] = $this->explanation->jsonSerialize();
     }
     if (0 < count($this->reaction)) {
         $json['reaction'] = array();
         foreach ($this->reaction as $reaction) {
             $json['reaction'][] = $reaction->jsonSerialize();
         }
     }
     if (0 < count($this->vaccinationProtocol)) {
         $json['vaccinationProtocol'] = array();
         foreach ($this->vaccinationProtocol as $vaccinationProtocol) {
             $json['vaccinationProtocol'][] = $vaccinationProtocol->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->sequence) {
         $json['sequence'] = $this->sequence->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->service) {
         $json['service'] = $this->service->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->unitPrice) {
         $json['unitPrice'] = $this->unitPrice->jsonSerialize();
     }
     if (null !== $this->factor) {
         $json['factor'] = $this->factor->jsonSerialize();
     }
     if (null !== $this->points) {
         $json['points'] = $this->points->jsonSerialize();
     }
     if (null !== $this->net) {
         $json['net'] = $this->net->jsonSerialize();
     }
     if (null !== $this->udi) {
         $json['udi'] = $this->udi->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->sequence) {
         $json['sequence'] = $this->sequence->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->provider) {
         $json['provider'] = $this->provider->jsonSerialize();
     }
     if (0 < count($this->diagnosisLinkId)) {
         $json['diagnosisLinkId'] = array();
         foreach ($this->diagnosisLinkId as $diagnosisLinkId) {
             $json['diagnosisLinkId'][] = $diagnosisLinkId->jsonSerialize();
         }
     }
     if (null !== $this->service) {
         $json['service'] = $this->service->jsonSerialize();
     }
     if (null !== $this->serviceDate) {
         $json['serviceDate'] = $this->serviceDate->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->unitPrice) {
         $json['unitPrice'] = $this->unitPrice->jsonSerialize();
     }
     if (null !== $this->factor) {
         $json['factor'] = $this->factor->jsonSerialize();
     }
     if (null !== $this->points) {
         $json['points'] = $this->points->jsonSerialize();
     }
     if (null !== $this->net) {
         $json['net'] = $this->net->jsonSerialize();
     }
     if (null !== $this->udi) {
         $json['udi'] = $this->udi->jsonSerialize();
     }
     if (null !== $this->bodySite) {
         $json['bodySite'] = $this->bodySite->jsonSerialize();
     }
     if (0 < count($this->subSite)) {
         $json['subSite'] = array();
         foreach ($this->subSite as $subSite) {
             $json['subSite'][] = $subSite->jsonSerialize();
         }
     }
     if (0 < count($this->modifier)) {
         $json['modifier'] = array();
         foreach ($this->modifier as $modifier) {
             $json['modifier'][] = $modifier->jsonSerialize();
         }
     }
     if (0 < count($this->detail)) {
         $json['detail'] = array();
         foreach ($this->detail as $detail) {
             $json['detail'][] = $detail->jsonSerialize();
         }
     }
     if (null !== $this->prosthesis) {
         $json['prosthesis'] = $this->prosthesis->jsonSerialize();
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->sequence) {
         $json['sequence'] = $this->sequence->jsonSerialize();
     }
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->service) {
         $json['service'] = $this->service->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->unitPrice) {
         $json['unitPrice'] = $this->unitPrice->jsonSerialize();
     }
     if (null !== $this->factor) {
         $json['factor'] = $this->factor->jsonSerialize();
     }
     if (null !== $this->points) {
         $json['points'] = $this->points->jsonSerialize();
     }
     if (null !== $this->net) {
         $json['net'] = $this->net->jsonSerialize();
     }
     if (null !== $this->udi) {
         $json['udi'] = $this->udi->jsonSerialize();
     }
     if (0 < count($this->subDetail)) {
         $json['subDetail'] = array();
         foreach ($this->subDetail as $subDetail) {
             $json['subDetail'][] = $subDetail->jsonSerialize();
         }
     }
     return $json;
 }
 /**
  * @return array
  */
 public function jsonSerialize()
 {
     $json = parent::jsonSerialize();
     if (null !== $this->type) {
         $json['type'] = $this->type->jsonSerialize();
     }
     if (null !== $this->productName) {
         $json['productName'] = $this->productName->jsonSerialize();
     }
     if (0 < count($this->schedule)) {
         $json['schedule'] = array();
         foreach ($this->schedule as $schedule) {
             $json['schedule'][] = $schedule->jsonSerialize();
         }
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->instruction) {
         $json['instruction'] = $this->instruction->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();
     if (null !== $this->text) {
         $json['text'] = $this->text->jsonSerialize();
     }
     if (null !== $this->siteCodeableConcept) {
         $json['siteCodeableConcept'] = $this->siteCodeableConcept->jsonSerialize();
     }
     if (null !== $this->siteReference) {
         $json['siteReference'] = $this->siteReference->jsonSerialize();
     }
     if (null !== $this->route) {
         $json['route'] = $this->route->jsonSerialize();
     }
     if (null !== $this->method) {
         $json['method'] = $this->method->jsonSerialize();
     }
     if (null !== $this->quantity) {
         $json['quantity'] = $this->quantity->jsonSerialize();
     }
     if (null !== $this->rateRatio) {
         $json['rateRatio'] = $this->rateRatio->jsonSerialize();
     }
     if (null !== $this->rateRange) {
         $json['rateRange'] = $this->rateRange->jsonSerialize();
     }
     return $json;
 }
 /**
  * @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();
     if (null !== $this->product) {
         $json['product'] = $this->product->jsonSerialize();
     }
     if (null !== $this->eye) {
         $json['eye'] = $this->eye->jsonSerialize();
     }
     if (null !== $this->sphere) {
         $json['sphere'] = $this->sphere->jsonSerialize();
     }
     if (null !== $this->cylinder) {
         $json['cylinder'] = $this->cylinder->jsonSerialize();
     }
     if (null !== $this->axis) {
         $json['axis'] = $this->axis->jsonSerialize();
     }
     if (null !== $this->prism) {
         $json['prism'] = $this->prism->jsonSerialize();
     }
     if (null !== $this->base) {
         $json['base'] = $this->base->jsonSerialize();
     }
     if (null !== $this->add) {
         $json['add'] = $this->add->jsonSerialize();
     }
     if (null !== $this->power) {
         $json['power'] = $this->power->jsonSerialize();
     }
     if (null !== $this->backCurve) {
         $json['backCurve'] = $this->backCurve->jsonSerialize();
     }
     if (null !== $this->diameter) {
         $json['diameter'] = $this->diameter->jsonSerialize();
     }
     if (null !== $this->duration) {
         $json['duration'] = $this->duration->jsonSerialize();
     }
     if (null !== $this->color) {
         $json['color'] = $this->color->jsonSerialize();
     }
     if (null !== $this->brand) {
         $json['brand'] = $this->brand->jsonSerialize();
     }
     if (null !== $this->notes) {
         $json['notes'] = $this->notes->jsonSerialize();
     }
     return $json;
 }