/**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Schedule xmlns="http://hl7.org/fhir"></Schedule>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (0 < count($this->type)) {
         foreach ($this->type as $type) {
             $type->xmlSerialize(true, $sxe->addChild('type'));
         }
     }
     if (null !== $this->actor) {
         $this->actor->xmlSerialize(true, $sxe->addChild('actor'));
     }
     if (null !== $this->planningHorizon) {
         $this->planningHorizon->xmlSerialize(true, $sxe->addChild('planningHorizon'));
     }
     if (null !== $this->comment) {
         $this->comment->xmlSerialize(true, $sxe->addChild('comment'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<AppointmentParticipant xmlns="http://hl7.org/fhir"></AppointmentParticipant>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->type)) {
         foreach ($this->type as $type) {
             $type->xmlSerialize(true, $sxe->addChild('type'));
         }
     }
     if (null !== $this->actor) {
         $this->actor->xmlSerialize(true, $sxe->addChild('actor'));
     }
     if (null !== $this->required) {
         $this->required->xmlSerialize(true, $sxe->addChild('required'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<CarePlanActivity xmlns="http://hl7.org/fhir"></CarePlanActivity>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->actionResulting)) {
         foreach ($this->actionResulting as $actionResulting) {
             $actionResulting->xmlSerialize(true, $sxe->addChild('actionResulting'));
         }
     }
     if (0 < count($this->progress)) {
         foreach ($this->progress as $progress) {
             $progress->xmlSerialize(true, $sxe->addChild('progress'));
         }
     }
     if (null !== $this->reference) {
         $this->reference->xmlSerialize(true, $sxe->addChild('reference'));
     }
     if (null !== $this->detail) {
         $this->detail->xmlSerialize(true, $sxe->addChild('detail'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<MedicationAdministrationDosage xmlns="http://hl7.org/fhir"></MedicationAdministrationDosage>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->text) {
         $this->text->xmlSerialize(true, $sxe->addChild('text'));
     }
     if (null !== $this->siteCodeableConcept) {
         $this->siteCodeableConcept->xmlSerialize(true, $sxe->addChild('siteCodeableConcept'));
     }
     if (null !== $this->siteReference) {
         $this->siteReference->xmlSerialize(true, $sxe->addChild('siteReference'));
     }
     if (null !== $this->route) {
         $this->route->xmlSerialize(true, $sxe->addChild('route'));
     }
     if (null !== $this->method) {
         $this->method->xmlSerialize(true, $sxe->addChild('method'));
     }
     if (null !== $this->quantity) {
         $this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
     }
     if (null !== $this->rateRatio) {
         $this->rateRatio->xmlSerialize(true, $sxe->addChild('rateRatio'));
     }
     if (null !== $this->rateRange) {
         $this->rateRange->xmlSerialize(true, $sxe->addChild('rateRange'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<PractitionerPractitionerRole xmlns="http://hl7.org/fhir"></PractitionerPractitionerRole>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->managingOrganization) {
         $this->managingOrganization->xmlSerialize(true, $sxe->addChild('managingOrganization'));
     }
     if (null !== $this->role) {
         $this->role->xmlSerialize(true, $sxe->addChild('role'));
     }
     if (0 < count($this->specialty)) {
         foreach ($this->specialty as $specialty) {
             $specialty->xmlSerialize(true, $sxe->addChild('specialty'));
         }
     }
     if (null !== $this->period) {
         $this->period->xmlSerialize(true, $sxe->addChild('period'));
     }
     if (0 < count($this->location)) {
         foreach ($this->location as $location) {
             $location->xmlSerialize(true, $sxe->addChild('location'));
         }
     }
     if (0 < count($this->healthcareService)) {
         foreach ($this->healthcareService as $healthcareService) {
             $healthcareService->xmlSerialize(true, $sxe->addChild('healthcareService'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<MedicationOrderDispenseRequest xmlns="http://hl7.org/fhir"></MedicationOrderDispenseRequest>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->medicationCodeableConcept) {
         $this->medicationCodeableConcept->xmlSerialize(true, $sxe->addChild('medicationCodeableConcept'));
     }
     if (null !== $this->medicationReference) {
         $this->medicationReference->xmlSerialize(true, $sxe->addChild('medicationReference'));
     }
     if (null !== $this->validityPeriod) {
         $this->validityPeriod->xmlSerialize(true, $sxe->addChild('validityPeriod'));
     }
     if (null !== $this->numberOfRepeatsAllowed) {
         $this->numberOfRepeatsAllowed->xmlSerialize(true, $sxe->addChild('numberOfRepeatsAllowed'));
     }
     if (null !== $this->quantity) {
         $this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
     }
     if (null !== $this->expectedSupplyDuration) {
         $this->expectedSupplyDuration->xmlSerialize(true, $sxe->addChild('expectedSupplyDuration'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ImagingObjectSelectionStudy xmlns="http://hl7.org/fhir"></ImagingObjectSelectionStudy>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->uid) {
         $this->uid->xmlSerialize(true, $sxe->addChild('uid'));
     }
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     if (null !== $this->imagingStudy) {
         $this->imagingStudy->xmlSerialize(true, $sxe->addChild('imagingStudy'));
     }
     if (0 < count($this->series)) {
         foreach ($this->series as $series) {
             $series->xmlSerialize(true, $sxe->addChild('series'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<SpecimenCollection xmlns="http://hl7.org/fhir"></SpecimenCollection>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->collector) {
         $this->collector->xmlSerialize(true, $sxe->addChild('collector'));
     }
     if (0 < count($this->comment)) {
         foreach ($this->comment as $comment) {
             $comment->xmlSerialize(true, $sxe->addChild('comment'));
         }
     }
     if (null !== $this->collectedDateTime) {
         $this->collectedDateTime->xmlSerialize(true, $sxe->addChild('collectedDateTime'));
     }
     if (null !== $this->collectedPeriod) {
         $this->collectedPeriod->xmlSerialize(true, $sxe->addChild('collectedPeriod'));
     }
     if (null !== $this->quantity) {
         $this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
     }
     if (null !== $this->method) {
         $this->method->xmlSerialize(true, $sxe->addChild('method'));
     }
     if (null !== $this->bodySite) {
         $this->bodySite->xmlSerialize(true, $sxe->addChild('bodySite'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ProvenanceAgent xmlns="http://hl7.org/fhir"></ProvenanceAgent>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->role) {
         $this->role->xmlSerialize(true, $sxe->addChild('role'));
     }
     if (null !== $this->actor) {
         $this->actor->xmlSerialize(true, $sxe->addChild('actor'));
     }
     if (null !== $this->userId) {
         $this->userId->xmlSerialize(true, $sxe->addChild('userId'));
     }
     if (0 < count($this->relatedAgent)) {
         foreach ($this->relatedAgent as $relatedAgent) {
             $relatedAgent->xmlSerialize(true, $sxe->addChild('relatedAgent'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<BodySite xmlns="http://hl7.org/fhir"></BodySite>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (0 < count($this->modifier)) {
         foreach ($this->modifier as $modifier) {
             $modifier->xmlSerialize(true, $sxe->addChild('modifier'));
         }
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (0 < count($this->image)) {
         foreach ($this->image as $image) {
             $image->xmlSerialize(true, $sxe->addChild('image'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Medication xmlns="http://hl7.org/fhir"></Medication>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->isBrand) {
         $this->isBrand->xmlSerialize(true, $sxe->addChild('isBrand'));
     }
     if (null !== $this->manufacturer) {
         $this->manufacturer->xmlSerialize(true, $sxe->addChild('manufacturer'));
     }
     if (null !== $this->product) {
         $this->product->xmlSerialize(true, $sxe->addChild('product'));
     }
     if (null !== $this->package) {
         $this->package->xmlSerialize(true, $sxe->addChild('package'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<DocumentManifest xmlns="http://hl7.org/fhir"></DocumentManifest>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->masterIdentifier) {
         $this->masterIdentifier->xmlSerialize(true, $sxe->addChild('masterIdentifier'));
     }
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->subject) {
         $this->subject->xmlSerialize(true, $sxe->addChild('subject'));
     }
     if (0 < count($this->recipient)) {
         foreach ($this->recipient as $recipient) {
             $recipient->xmlSerialize(true, $sxe->addChild('recipient'));
         }
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (0 < count($this->author)) {
         foreach ($this->author as $author) {
             $author->xmlSerialize(true, $sxe->addChild('author'));
         }
     }
     if (null !== $this->created) {
         $this->created->xmlSerialize(true, $sxe->addChild('created'));
     }
     if (null !== $this->source) {
         $this->source->xmlSerialize(true, $sxe->addChild('source'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (0 < count($this->content)) {
         foreach ($this->content as $content) {
             $content->xmlSerialize(true, $sxe->addChild('content'));
         }
     }
     if (0 < count($this->related)) {
         foreach ($this->related as $related) {
             $related->xmlSerialize(true, $sxe->addChild('related'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ConformanceResource xmlns="http://hl7.org/fhir"></ConformanceResource>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->profile) {
         $this->profile->xmlSerialize(true, $sxe->addChild('profile'));
     }
     if (0 < count($this->interaction)) {
         foreach ($this->interaction as $interaction) {
             $interaction->xmlSerialize(true, $sxe->addChild('interaction'));
         }
     }
     if (null !== $this->versioning) {
         $this->versioning->xmlSerialize(true, $sxe->addChild('versioning'));
     }
     if (null !== $this->readHistory) {
         $this->readHistory->xmlSerialize(true, $sxe->addChild('readHistory'));
     }
     if (null !== $this->updateCreate) {
         $this->updateCreate->xmlSerialize(true, $sxe->addChild('updateCreate'));
     }
     if (null !== $this->conditionalCreate) {
         $this->conditionalCreate->xmlSerialize(true, $sxe->addChild('conditionalCreate'));
     }
     if (null !== $this->conditionalUpdate) {
         $this->conditionalUpdate->xmlSerialize(true, $sxe->addChild('conditionalUpdate'));
     }
     if (null !== $this->conditionalDelete) {
         $this->conditionalDelete->xmlSerialize(true, $sxe->addChild('conditionalDelete'));
     }
     if (0 < count($this->searchInclude)) {
         foreach ($this->searchInclude as $searchInclude) {
             $searchInclude->xmlSerialize(true, $sxe->addChild('searchInclude'));
         }
     }
     if (0 < count($this->searchRevInclude)) {
         foreach ($this->searchRevInclude as $searchRevInclude) {
             $searchRevInclude->xmlSerialize(true, $sxe->addChild('searchRevInclude'));
         }
     }
     if (0 < count($this->searchParam)) {
         foreach ($this->searchParam as $searchParam) {
             $searchParam->xmlSerialize(true, $sxe->addChild('searchParam'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<RelatedPerson xmlns="http://hl7.org/fhir"></RelatedPerson>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (null !== $this->relationship) {
         $this->relationship->xmlSerialize(true, $sxe->addChild('relationship'));
     }
     if (null !== $this->name) {
         $this->name->xmlSerialize(true, $sxe->addChild('name'));
     }
     if (0 < count($this->telecom)) {
         foreach ($this->telecom as $telecom) {
             $telecom->xmlSerialize(true, $sxe->addChild('telecom'));
         }
     }
     if (null !== $this->gender) {
         $this->gender->xmlSerialize(true, $sxe->addChild('gender'));
     }
     if (null !== $this->birthDate) {
         $this->birthDate->xmlSerialize(true, $sxe->addChild('birthDate'));
     }
     if (0 < count($this->address)) {
         foreach ($this->address as $address) {
             $address->xmlSerialize(true, $sxe->addChild('address'));
         }
     }
     if (0 < count($this->photo)) {
         foreach ($this->photo as $photo) {
             $photo->xmlSerialize(true, $sxe->addChild('photo'));
         }
     }
     if (null !== $this->period) {
         $this->period->xmlSerialize(true, $sxe->addChild('period'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<MedicationContent xmlns="http://hl7.org/fhir"></MedicationContent>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->item) {
         $this->item->xmlSerialize(true, $sxe->addChild('item'));
     }
     if (null !== $this->amount) {
         $this->amount->xmlSerialize(true, $sxe->addChild('amount'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ProcedurePerformer xmlns="http://hl7.org/fhir"></ProcedurePerformer>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->actor) {
         $this->actor->xmlSerialize(true, $sxe->addChild('actor'));
     }
     if (null !== $this->role) {
         $this->role->xmlSerialize(true, $sxe->addChild('role'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ProcedureFocalDevice xmlns="http://hl7.org/fhir"></ProcedureFocalDevice>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->action) {
         $this->action->xmlSerialize(true, $sxe->addChild('action'));
     }
     if (null !== $this->manipulated) {
         $this->manipulated->xmlSerialize(true, $sxe->addChild('manipulated'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ContractFriendly xmlns="http://hl7.org/fhir"></ContractFriendly>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->contentAttachment) {
         $this->contentAttachment->xmlSerialize(true, $sxe->addChild('contentAttachment'));
     }
     if (null !== $this->contentReference) {
         $this->contentReference->xmlSerialize(true, $sxe->addChild('contentReference'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<DocumentReferenceRelatesTo xmlns="http://hl7.org/fhir"></DocumentReferenceRelatesTo>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->target) {
         $this->target->xmlSerialize(true, $sxe->addChild('target'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ConformanceOperation xmlns="http://hl7.org/fhir"></ConformanceOperation>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->name) {
         $this->name->xmlSerialize(true, $sxe->addChild('name'));
     }
     if (null !== $this->definition) {
         $this->definition->xmlSerialize(true, $sxe->addChild('definition'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<GoalOutcome xmlns="http://hl7.org/fhir"></GoalOutcome>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->resultCodeableConcept) {
         $this->resultCodeableConcept->xmlSerialize(true, $sxe->addChild('resultCodeableConcept'));
     }
     if (null !== $this->resultReference) {
         $this->resultReference->xmlSerialize(true, $sxe->addChild('resultReference'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ObservationRelated xmlns="http://hl7.org/fhir"></ObservationRelated>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->target) {
         $this->target->xmlSerialize(true, $sxe->addChild('target'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<DocumentManifestContent xmlns="http://hl7.org/fhir"></DocumentManifestContent>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->pAttachment) {
         $this->pAttachment->xmlSerialize(true, $sxe->addChild('pAttachment'));
     }
     if (null !== $this->pReference) {
         $this->pReference->xmlSerialize(true, $sxe->addChild('pReference'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<SubstanceIngredient xmlns="http://hl7.org/fhir"></SubstanceIngredient>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->quantity) {
         $this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
     }
     if (null !== $this->substance) {
         $this->substance->xmlSerialize(true, $sxe->addChild('substance'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<PatientLink xmlns="http://hl7.org/fhir"></PatientLink>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->other) {
         $this->other->xmlSerialize(true, $sxe->addChild('other'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<PersonLink xmlns="http://hl7.org/fhir"></PersonLink>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->target) {
         $this->target->xmlSerialize(true, $sxe->addChild('target'));
     }
     if (null !== $this->assurance) {
         $this->assurance->xmlSerialize(true, $sxe->addChild('assurance'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<DiagnosticReportImage xmlns="http://hl7.org/fhir"></DiagnosticReportImage>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->comment) {
         $this->comment->xmlSerialize(true, $sxe->addChild('comment'));
     }
     if (null !== $this->link) {
         $this->link->xmlSerialize(true, $sxe->addChild('link'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<DocumentManifestRelated xmlns="http://hl7.org/fhir"></DocumentManifestRelated>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->identifier) {
         $this->identifier->xmlSerialize(true, $sxe->addChild('identifier'));
     }
     if (null !== $this->ref) {
         $this->ref->xmlSerialize(true, $sxe->addChild('ref'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<CarePlanParticipant xmlns="http://hl7.org/fhir"></CarePlanParticipant>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->role) {
         $this->role->xmlSerialize(true, $sxe->addChild('role'));
     }
     if (null !== $this->member) {
         $this->member->xmlSerialize(true, $sxe->addChild('member'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ImplementationGuideGlobal xmlns="http://hl7.org/fhir"></ImplementationGuideGlobal>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->profile) {
         $this->profile->xmlSerialize(true, $sxe->addChild('profile'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }