/**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ConceptMapTarget xmlns="http://hl7.org/fhir"></ConceptMapTarget>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->codeSystem) {
         $this->codeSystem->xmlSerialize(true, $sxe->addChild('codeSystem'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->equivalence) {
         $this->equivalence->xmlSerialize(true, $sxe->addChild('equivalence'));
     }
     if (null !== $this->comments) {
         $this->comments->xmlSerialize(true, $sxe->addChild('comments'));
     }
     if (0 < count($this->dependsOn)) {
         foreach ($this->dependsOn as $dependsOn) {
             $dependsOn->xmlSerialize(true, $sxe->addChild('dependsOn'));
         }
     }
     if (0 < count($this->product)) {
         foreach ($this->product as $product) {
             $product->xmlSerialize(true, $sxe->addChild('product'));
         }
     }
     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('<ValueSetExpansion xmlns="http://hl7.org/fhir"></ValueSetExpansion>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->identifier) {
         $this->identifier->xmlSerialize(true, $sxe->addChild('identifier'));
     }
     if (null !== $this->timestamp) {
         $this->timestamp->xmlSerialize(true, $sxe->addChild('timestamp'));
     }
     if (null !== $this->total) {
         $this->total->xmlSerialize(true, $sxe->addChild('total'));
     }
     if (null !== $this->offset) {
         $this->offset->xmlSerialize(true, $sxe->addChild('offset'));
     }
     if (0 < count($this->parameter)) {
         foreach ($this->parameter as $parameter) {
             $parameter->xmlSerialize(true, $sxe->addChild('parameter'));
         }
     }
     if (0 < count($this->contains)) {
         foreach ($this->contains as $contains) {
             $contains->xmlSerialize(true, $sxe->addChild('contains'));
         }
     }
     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('<BundleEntry xmlns="http://hl7.org/fhir"></BundleEntry>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->link)) {
         foreach ($this->link as $link) {
             $link->xmlSerialize(true, $sxe->addChild('link'));
         }
     }
     if (null !== $this->fullUrl) {
         $this->fullUrl->xmlSerialize(true, $sxe->addChild('fullUrl'));
     }
     if (null !== $this->resource) {
         $this->resource->xmlSerialize(true, $sxe->addChild('resource'));
     }
     if (null !== $this->search) {
         $this->search->xmlSerialize(true, $sxe->addChild('search'));
     }
     if (null !== $this->request) {
         $this->request->xmlSerialize(true, $sxe->addChild('request'));
     }
     if (null !== $this->response) {
         $this->response->xmlSerialize(true, $sxe->addChild('response'));
     }
     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('<Identifier xmlns="http://hl7.org/fhir"></Identifier>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->use) {
         $this->use->xmlSerialize(true, $sxe->addChild('use'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->system) {
         $this->system->xmlSerialize(true, $sxe->addChild('system'));
     }
     if (null !== $this->value) {
         $this->value->xmlSerialize(true, $sxe->addChild('value'));
     }
     if (null !== $this->period) {
         $this->period->xmlSerialize(true, $sxe->addChild('period'));
     }
     if (null !== $this->assigner) {
         $this->assigner->xmlSerialize(true, $sxe->addChild('assigner'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
Example #5
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Money xmlns="http://hl7.org/fhir"></Money>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->value) {
         $this->value->xmlSerialize(true, $sxe->addChild('value'));
     }
     if (null !== $this->comparator) {
         $this->comparator->xmlSerialize(true, $sxe->addChild('comparator'));
     }
     if (null !== $this->units) {
         $this->units->xmlSerialize(true, $sxe->addChild('units'));
     }
     if (null !== $this->system) {
         $this->system->xmlSerialize(true, $sxe->addChild('system'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->id) {
         $idElement = $sxe->addChild('id');
         $idElement->addAttribute('value', (string) $this->id);
     }
     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('<BundleRequest xmlns="http://hl7.org/fhir"></BundleRequest>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->method) {
         $this->method->xmlSerialize(true, $sxe->addChild('method'));
     }
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     if (null !== $this->ifNoneMatch) {
         $this->ifNoneMatch->xmlSerialize(true, $sxe->addChild('ifNoneMatch'));
     }
     if (null !== $this->ifModifiedSince) {
         $this->ifModifiedSince->xmlSerialize(true, $sxe->addChild('ifModifiedSince'));
     }
     if (null !== $this->ifMatch) {
         $this->ifMatch->xmlSerialize(true, $sxe->addChild('ifMatch'));
     }
     if (null !== $this->ifNoneExist) {
         $this->ifNoneExist->xmlSerialize(true, $sxe->addChild('ifNoneExist'));
     }
     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('<Coding xmlns="http://hl7.org/fhir"></Coding>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->system) {
         $this->system->xmlSerialize(true, $sxe->addChild('system'));
     }
     if (null !== $this->version) {
         $this->version->xmlSerialize(true, $sxe->addChild('version'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->display) {
         $this->display->xmlSerialize(true, $sxe->addChild('display'));
     }
     if (null !== $this->userSelected) {
         $this->userSelected->xmlSerialize(true, $sxe->addChild('userSelected'));
     }
     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('<Signature xmlns="http://hl7.org/fhir"></Signature>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->type)) {
         foreach ($this->type as $type) {
             $type->xmlSerialize(true, $sxe->addChild('type'));
         }
     }
     if (null !== $this->when) {
         $this->when->xmlSerialize(true, $sxe->addChild('when'));
     }
     if (null !== $this->whoUri) {
         $this->whoUri->xmlSerialize(true, $sxe->addChild('whoUri'));
     }
     if (null !== $this->whoReference) {
         $this->whoReference->xmlSerialize(true, $sxe->addChild('whoReference'));
     }
     if (null !== $this->contentType) {
         $this->contentType->xmlSerialize(true, $sxe->addChild('contentType'));
     }
     if (null !== $this->blob) {
         $this->blob->xmlSerialize(true, $sxe->addChild('blob'));
     }
     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('<ProvenanceEntity xmlns="http://hl7.org/fhir"></ProvenanceEntity>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->role) {
         $this->role->xmlSerialize(true, $sxe->addChild('role'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->reference) {
         $this->reference->xmlSerialize(true, $sxe->addChild('reference'));
     }
     if (null !== $this->display) {
         $this->display->xmlSerialize(true, $sxe->addChild('display'));
     }
     if (null !== $this->agent) {
         $this->agent->xmlSerialize(true, $sxe->addChild('agent'));
     }
     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('<SearchParameter xmlns="http://hl7.org/fhir"></SearchParameter>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     if (null !== $this->name) {
         $this->name->xmlSerialize(true, $sxe->addChild('name'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->experimental) {
         $this->experimental->xmlSerialize(true, $sxe->addChild('experimental'));
     }
     if (null !== $this->publisher) {
         $this->publisher->xmlSerialize(true, $sxe->addChild('publisher'));
     }
     if (0 < count($this->contact)) {
         foreach ($this->contact as $contact) {
             $contact->xmlSerialize(true, $sxe->addChild('contact'));
         }
     }
     if (null !== $this->date) {
         $this->date->xmlSerialize(true, $sxe->addChild('date'));
     }
     if (null !== $this->requirements) {
         $this->requirements->xmlSerialize(true, $sxe->addChild('requirements'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->base) {
         $this->base->xmlSerialize(true, $sxe->addChild('base'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (null !== $this->xpath) {
         $this->xpath->xmlSerialize(true, $sxe->addChild('xpath'));
     }
     if (null !== $this->xpathUsage) {
         $this->xpathUsage->xmlSerialize(true, $sxe->addChild('xpathUsage'));
     }
     if (0 < count($this->target)) {
         foreach ($this->target as $target) {
             $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('<ImagingObjectSelectionInstance xmlns="http://hl7.org/fhir"></ImagingObjectSelectionInstance>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->sopClass) {
         $this->sopClass->xmlSerialize(true, $sxe->addChild('sopClass'));
     }
     if (null !== $this->uid) {
         $this->uid->xmlSerialize(true, $sxe->addChild('uid'));
     }
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     if (0 < count($this->frames)) {
         foreach ($this->frames as $frames) {
             $frames->xmlSerialize(true, $sxe->addChild('frames'));
         }
     }
     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('<ValueSetContains xmlns="http://hl7.org/fhir"></ValueSetContains>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->system) {
         $this->system->xmlSerialize(true, $sxe->addChild('system'));
     }
     if (null !== $this->abstract) {
         $this->abstract->xmlSerialize(true, $sxe->addChild('abstract'));
     }
     if (null !== $this->version) {
         $this->version->xmlSerialize(true, $sxe->addChild('version'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->display) {
         $this->display->xmlSerialize(true, $sxe->addChild('display'));
     }
     if (0 < count($this->contains)) {
         foreach ($this->contains as $contains) {
             $contains->xmlSerialize(true, $sxe->addChild('contains'));
         }
     }
     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('<ValueSetInclude xmlns="http://hl7.org/fhir"></ValueSetInclude>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->system) {
         $this->system->xmlSerialize(true, $sxe->addChild('system'));
     }
     if (null !== $this->version) {
         $this->version->xmlSerialize(true, $sxe->addChild('version'));
     }
     if (0 < count($this->concept)) {
         foreach ($this->concept as $concept) {
             $concept->xmlSerialize(true, $sxe->addChild('concept'));
         }
     }
     if (0 < count($this->filter)) {
         foreach ($this->filter as $filter) {
             $filter->xmlSerialize(true, $sxe->addChild('filter'));
         }
     }
     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('<ConformanceImplementation xmlns="http://hl7.org/fhir"></ConformanceImplementation>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     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('<ConformanceEndpoint xmlns="http://hl7.org/fhir"></ConformanceEndpoint>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->protocol) {
         $this->protocol->xmlSerialize(true, $sxe->addChild('protocol'));
     }
     if (null !== $this->address) {
         $this->address->xmlSerialize(true, $sxe->addChild('address'));
     }
     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('<ImplementationGuideDependency xmlns="http://hl7.org/fhir"></ImplementationGuideDependency>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->uri) {
         $this->uri->xmlSerialize(true, $sxe->addChild('uri'));
     }
     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('<ProvenanceRelatedAgent xmlns="http://hl7.org/fhir"></ProvenanceRelatedAgent>');
     }
     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('<BundleLink xmlns="http://hl7.org/fhir"></BundleLink>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->relation) {
         $this->relation->xmlSerialize(true, $sxe->addChild('relation'));
     }
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     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('<OperationDefinitionBinding xmlns="http://hl7.org/fhir"></OperationDefinitionBinding>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->strength) {
         $this->strength->xmlSerialize(true, $sxe->addChild('strength'));
     }
     if (null !== $this->valueSetUri) {
         $this->valueSetUri->xmlSerialize(true, $sxe->addChild('valueSetUri'));
     }
     if (null !== $this->valueSetReference) {
         $this->valueSetReference->xmlSerialize(true, $sxe->addChild('valueSetReference'));
     }
     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('<ConceptMapDependsOn xmlns="http://hl7.org/fhir"></ConceptMapDependsOn>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->element) {
         $this->element->xmlSerialize(true, $sxe->addChild('element'));
     }
     if (null !== $this->codeSystem) {
         $this->codeSystem->xmlSerialize(true, $sxe->addChild('codeSystem'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     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('<MessageHeaderDestination xmlns="http://hl7.org/fhir"></MessageHeaderDestination>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->name) {
         $this->name->xmlSerialize(true, $sxe->addChild('name'));
     }
     if (null !== $this->target) {
         $this->target->xmlSerialize(true, $sxe->addChild('target'));
     }
     if (null !== $this->endpoint) {
         $this->endpoint->xmlSerialize(true, $sxe->addChild('endpoint'));
     }
     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('<ConceptMapElement xmlns="http://hl7.org/fhir"></ConceptMapElement>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->codeSystem) {
         $this->codeSystem->xmlSerialize(true, $sxe->addChild('codeSystem'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (0 < count($this->target)) {
         foreach ($this->target as $target) {
             $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('<Resource xmlns="http://hl7.org/fhir"></Resource>');
     }
     if (null !== $this->id) {
         $this->id->xmlSerialize(true, $sxe->addChild('id'));
     }
     if (null !== $this->meta) {
         $this->meta->xmlSerialize(true, $sxe->addChild('meta'));
     }
     if (null !== $this->implicitRules) {
         $this->implicitRules->xmlSerialize(true, $sxe->addChild('implicitRules'));
     }
     if (null !== $this->language) {
         $this->language->xmlSerialize(true, $sxe->addChild('language'));
     }
     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('<ImplementationGuidePage xmlns="http://hl7.org/fhir"></ImplementationGuidePage>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->source) {
         $this->source->xmlSerialize(true, $sxe->addChild('source'));
     }
     if (null !== $this->name) {
         $this->name->xmlSerialize(true, $sxe->addChild('name'));
     }
     if (null !== $this->kind) {
         $this->kind->xmlSerialize(true, $sxe->addChild('kind'));
     }
     if (0 < count($this->type)) {
         foreach ($this->type as $type) {
             $type->xmlSerialize(true, $sxe->addChild('type'));
         }
     }
     if (0 < count($this->package)) {
         foreach ($this->package as $package) {
             $package->xmlSerialize(true, $sxe->addChild('package'));
         }
     }
     if (null !== $this->format) {
         $this->format->xmlSerialize(true, $sxe->addChild('format'));
     }
     if (0 < count($this->page)) {
         foreach ($this->page as $page) {
             $page->xmlSerialize(true, $sxe->addChild('page'));
         }
     }
     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('<ConformanceSearchParam xmlns="http://hl7.org/fhir"></ConformanceSearchParam>');
     }
     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 (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->documentation) {
         $this->documentation->xmlSerialize(true, $sxe->addChild('documentation'));
     }
     if (0 < count($this->target)) {
         foreach ($this->target as $target) {
             $target->xmlSerialize(true, $sxe->addChild('target'));
         }
     }
     if (0 < count($this->modifier)) {
         foreach ($this->modifier as $modifier) {
             $modifier->xmlSerialize(true, $sxe->addChild('modifier'));
         }
     }
     if (0 < count($this->chain)) {
         foreach ($this->chain as $chain) {
             $chain->xmlSerialize(true, $sxe->addChild('chain'));
         }
     }
     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('<BundleResponse xmlns="http://hl7.org/fhir"></BundleResponse>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->location) {
         $this->location->xmlSerialize(true, $sxe->addChild('location'));
     }
     if (null !== $this->etag) {
         $this->etag->xmlSerialize(true, $sxe->addChild('etag'));
     }
     if (null !== $this->lastModified) {
         $this->lastModified->xmlSerialize(true, $sxe->addChild('lastModified'));
     }
     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('<SubscriptionChannel xmlns="http://hl7.org/fhir"></SubscriptionChannel>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->endpoint) {
         $this->endpoint->xmlSerialize(true, $sxe->addChild('endpoint'));
     }
     if (null !== $this->payload) {
         $this->payload->xmlSerialize(true, $sxe->addChild('payload'));
     }
     if (null !== $this->header) {
         $this->header->xmlSerialize(true, $sxe->addChild('header'));
     }
     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('<StructureDefinitionMapping xmlns="http://hl7.org/fhir"></StructureDefinitionMapping>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->identity) {
         $this->identity->xmlSerialize(true, $sxe->addChild('identity'));
     }
     if (null !== $this->uri) {
         $this->uri->xmlSerialize(true, $sxe->addChild('uri'));
     }
     if (null !== $this->name) {
         $this->name->xmlSerialize(true, $sxe->addChild('name'));
     }
     if (null !== $this->comments) {
         $this->comments->xmlSerialize(true, $sxe->addChild('comments'));
     }
     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('<ClinicalImpression xmlns="http://hl7.org/fhir"></ClinicalImpression>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (null !== $this->assessor) {
         $this->assessor->xmlSerialize(true, $sxe->addChild('assessor'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->date) {
         $this->date->xmlSerialize(true, $sxe->addChild('date'));
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (null !== $this->previous) {
         $this->previous->xmlSerialize(true, $sxe->addChild('previous'));
     }
     if (0 < count($this->problem)) {
         foreach ($this->problem as $problem) {
             $problem->xmlSerialize(true, $sxe->addChild('problem'));
         }
     }
     if (null !== $this->triggerCodeableConcept) {
         $this->triggerCodeableConcept->xmlSerialize(true, $sxe->addChild('triggerCodeableConcept'));
     }
     if (null !== $this->triggerReference) {
         $this->triggerReference->xmlSerialize(true, $sxe->addChild('triggerReference'));
     }
     if (0 < count($this->investigations)) {
         foreach ($this->investigations as $investigations) {
             $investigations->xmlSerialize(true, $sxe->addChild('investigations'));
         }
     }
     if (null !== $this->protocol) {
         $this->protocol->xmlSerialize(true, $sxe->addChild('protocol'));
     }
     if (null !== $this->summary) {
         $this->summary->xmlSerialize(true, $sxe->addChild('summary'));
     }
     if (0 < count($this->finding)) {
         foreach ($this->finding as $finding) {
             $finding->xmlSerialize(true, $sxe->addChild('finding'));
         }
     }
     if (0 < count($this->resolved)) {
         foreach ($this->resolved as $resolved) {
             $resolved->xmlSerialize(true, $sxe->addChild('resolved'));
         }
     }
     if (0 < count($this->ruledOut)) {
         foreach ($this->ruledOut as $ruledOut) {
             $ruledOut->xmlSerialize(true, $sxe->addChild('ruledOut'));
         }
     }
     if (null !== $this->prognosis) {
         $this->prognosis->xmlSerialize(true, $sxe->addChild('prognosis'));
     }
     if (0 < count($this->plan)) {
         foreach ($this->plan as $plan) {
             $plan->xmlSerialize(true, $sxe->addChild('plan'));
         }
     }
     if (0 < count($this->action)) {
         foreach ($this->action as $action) {
             $action->xmlSerialize(true, $sxe->addChild('action'));
         }
     }
     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('<TestScript xmlns="http://hl7.org/fhir"></TestScript>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     if (null !== $this->version) {
         $this->version->xmlSerialize(true, $sxe->addChild('version'));
     }
     if (null !== $this->name) {
         $this->name->xmlSerialize(true, $sxe->addChild('name'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->identifier) {
         $this->identifier->xmlSerialize(true, $sxe->addChild('identifier'));
     }
     if (null !== $this->experimental) {
         $this->experimental->xmlSerialize(true, $sxe->addChild('experimental'));
     }
     if (null !== $this->publisher) {
         $this->publisher->xmlSerialize(true, $sxe->addChild('publisher'));
     }
     if (0 < count($this->contact)) {
         foreach ($this->contact as $contact) {
             $contact->xmlSerialize(true, $sxe->addChild('contact'));
         }
     }
     if (null !== $this->date) {
         $this->date->xmlSerialize(true, $sxe->addChild('date'));
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (0 < count($this->useContext)) {
         foreach ($this->useContext as $useContext) {
             $useContext->xmlSerialize(true, $sxe->addChild('useContext'));
         }
     }
     if (null !== $this->requirements) {
         $this->requirements->xmlSerialize(true, $sxe->addChild('requirements'));
     }
     if (null !== $this->copyright) {
         $this->copyright->xmlSerialize(true, $sxe->addChild('copyright'));
     }
     if (null !== $this->metadata) {
         $this->metadata->xmlSerialize(true, $sxe->addChild('metadata'));
     }
     if (null !== $this->multiserver) {
         $this->multiserver->xmlSerialize(true, $sxe->addChild('multiserver'));
     }
     if (0 < count($this->fixture)) {
         foreach ($this->fixture as $fixture) {
             $fixture->xmlSerialize(true, $sxe->addChild('fixture'));
         }
     }
     if (0 < count($this->profile)) {
         foreach ($this->profile as $profile) {
             $profile->xmlSerialize(true, $sxe->addChild('profile'));
         }
     }
     if (0 < count($this->variable)) {
         foreach ($this->variable as $variable) {
             $variable->xmlSerialize(true, $sxe->addChild('variable'));
         }
     }
     if (null !== $this->setup) {
         $this->setup->xmlSerialize(true, $sxe->addChild('setup'));
     }
     if (0 < count($this->test)) {
         foreach ($this->test as $test) {
             $test->xmlSerialize(true, $sxe->addChild('test'));
         }
     }
     if (null !== $this->teardown) {
         $this->teardown->xmlSerialize(true, $sxe->addChild('teardown'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }