コード例 #1
0
 /**
  * @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();
 }
コード例 #2
0
 /**
  * @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();
 }
コード例 #3
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ConformanceEvent xmlns="http://hl7.org/fhir"></ConformanceEvent>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->category) {
         $this->category->xmlSerialize(true, $sxe->addChild('category'));
     }
     if (null !== $this->mode) {
         $this->mode->xmlSerialize(true, $sxe->addChild('mode'));
     }
     if (null !== $this->focus) {
         $this->focus->xmlSerialize(true, $sxe->addChild('focus'));
     }
     if (null !== $this->request) {
         $this->request->xmlSerialize(true, $sxe->addChild('request'));
     }
     if (null !== $this->response) {
         $this->response->xmlSerialize(true, $sxe->addChild('response'));
     }
     if (null !== $this->documentation) {
         $this->documentation->xmlSerialize(true, $sxe->addChild('documentation'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #4
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<PaymentReconciliationDetail xmlns="http://hl7.org/fhir"></PaymentReconciliationDetail>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->request) {
         $this->request->xmlSerialize(true, $sxe->addChild('request'));
     }
     if (null !== $this->responce) {
         $this->responce->xmlSerialize(true, $sxe->addChild('responce'));
     }
     if (null !== $this->submitter) {
         $this->submitter->xmlSerialize(true, $sxe->addChild('submitter'));
     }
     if (null !== $this->payee) {
         $this->payee->xmlSerialize(true, $sxe->addChild('payee'));
     }
     if (null !== $this->date) {
         $this->date->xmlSerialize(true, $sxe->addChild('date'));
     }
     if (null !== $this->amount) {
         $this->amount->xmlSerialize(true, $sxe->addChild('amount'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #5
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<EligibilityRequest xmlns="http://hl7.org/fhir"></EligibilityRequest>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->ruleset) {
         $this->ruleset->xmlSerialize(true, $sxe->addChild('ruleset'));
     }
     if (null !== $this->originalRuleset) {
         $this->originalRuleset->xmlSerialize(true, $sxe->addChild('originalRuleset'));
     }
     if (null !== $this->created) {
         $this->created->xmlSerialize(true, $sxe->addChild('created'));
     }
     if (null !== $this->target) {
         $this->target->xmlSerialize(true, $sxe->addChild('target'));
     }
     if (null !== $this->provider) {
         $this->provider->xmlSerialize(true, $sxe->addChild('provider'));
     }
     if (null !== $this->organization) {
         $this->organization->xmlSerialize(true, $sxe->addChild('organization'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #6
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<VisionPrescriptionDispense xmlns="http://hl7.org/fhir"></VisionPrescriptionDispense>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->product) {
         $this->product->xmlSerialize(true, $sxe->addChild('product'));
     }
     if (null !== $this->eye) {
         $this->eye->xmlSerialize(true, $sxe->addChild('eye'));
     }
     if (null !== $this->sphere) {
         $this->sphere->xmlSerialize(true, $sxe->addChild('sphere'));
     }
     if (null !== $this->cylinder) {
         $this->cylinder->xmlSerialize(true, $sxe->addChild('cylinder'));
     }
     if (null !== $this->axis) {
         $this->axis->xmlSerialize(true, $sxe->addChild('axis'));
     }
     if (null !== $this->prism) {
         $this->prism->xmlSerialize(true, $sxe->addChild('prism'));
     }
     if (null !== $this->base) {
         $this->base->xmlSerialize(true, $sxe->addChild('base'));
     }
     if (null !== $this->add) {
         $this->add->xmlSerialize(true, $sxe->addChild('add'));
     }
     if (null !== $this->power) {
         $this->power->xmlSerialize(true, $sxe->addChild('power'));
     }
     if (null !== $this->backCurve) {
         $this->backCurve->xmlSerialize(true, $sxe->addChild('backCurve'));
     }
     if (null !== $this->diameter) {
         $this->diameter->xmlSerialize(true, $sxe->addChild('diameter'));
     }
     if (null !== $this->duration) {
         $this->duration->xmlSerialize(true, $sxe->addChild('duration'));
     }
     if (null !== $this->color) {
         $this->color->xmlSerialize(true, $sxe->addChild('color'));
     }
     if (null !== $this->brand) {
         $this->brand->xmlSerialize(true, $sxe->addChild('brand'));
     }
     if (null !== $this->notes) {
         $this->notes->xmlSerialize(true, $sxe->addChild('notes'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #7
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<TestScriptOperation xmlns="http://hl7.org/fhir"></TestScriptOperation>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->resource) {
         $this->resource->xmlSerialize(true, $sxe->addChild('resource'));
     }
     if (null !== $this->label) {
         $this->label->xmlSerialize(true, $sxe->addChild('label'));
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (null !== $this->accept) {
         $this->accept->xmlSerialize(true, $sxe->addChild('accept'));
     }
     if (null !== $this->contentType) {
         $this->contentType->xmlSerialize(true, $sxe->addChild('contentType'));
     }
     if (null !== $this->destination) {
         $this->destination->xmlSerialize(true, $sxe->addChild('destination'));
     }
     if (null !== $this->encodeRequestUrl) {
         $this->encodeRequestUrl->xmlSerialize(true, $sxe->addChild('encodeRequestUrl'));
     }
     if (null !== $this->params) {
         $this->params->xmlSerialize(true, $sxe->addChild('params'));
     }
     if (0 < count($this->requestHeader)) {
         foreach ($this->requestHeader as $requestHeader) {
             $requestHeader->xmlSerialize(true, $sxe->addChild('requestHeader'));
         }
     }
     if (null !== $this->responseId) {
         $this->responseId->xmlSerialize(true, $sxe->addChild('responseId'));
     }
     if (null !== $this->sourceId) {
         $this->sourceId->xmlSerialize(true, $sxe->addChild('sourceId'));
     }
     if (null !== $this->targetId) {
         $this->targetId->xmlSerialize(true, $sxe->addChild('targetId'));
     }
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #8
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<MessageHeader xmlns="http://hl7.org/fhir"></MessageHeader>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->timestamp) {
         $this->timestamp->xmlSerialize(true, $sxe->addChild('timestamp'));
     }
     if (null !== $this->event) {
         $this->event->xmlSerialize(true, $sxe->addChild('event'));
     }
     if (null !== $this->response) {
         $this->response->xmlSerialize(true, $sxe->addChild('response'));
     }
     if (null !== $this->source) {
         $this->source->xmlSerialize(true, $sxe->addChild('source'));
     }
     if (0 < count($this->destination)) {
         foreach ($this->destination as $destination) {
             $destination->xmlSerialize(true, $sxe->addChild('destination'));
         }
     }
     if (null !== $this->enterer) {
         $this->enterer->xmlSerialize(true, $sxe->addChild('enterer'));
     }
     if (null !== $this->author) {
         $this->author->xmlSerialize(true, $sxe->addChild('author'));
     }
     if (null !== $this->receiver) {
         $this->receiver->xmlSerialize(true, $sxe->addChild('receiver'));
     }
     if (null !== $this->responsible) {
         $this->responsible->xmlSerialize(true, $sxe->addChild('responsible'));
     }
     if (null !== $this->reason) {
         $this->reason->xmlSerialize(true, $sxe->addChild('reason'));
     }
     if (0 < count($this->data)) {
         foreach ($this->data as $data) {
             $data->xmlSerialize(true, $sxe->addChild('data'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #9
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ProcessResponseNotes xmlns="http://hl7.org/fhir"></ProcessResponseNotes>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->text) {
         $this->text->xmlSerialize(true, $sxe->addChild('text'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #10
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimDiagnosis xmlns="http://hl7.org/fhir"></ClaimDiagnosis>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->sequence) {
         $this->sequence->xmlSerialize(true, $sxe->addChild('sequence'));
     }
     if (null !== $this->diagnosis) {
         $this->diagnosis->xmlSerialize(true, $sxe->addChild('diagnosis'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #11
0
 /**
  * @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();
 }
コード例 #12
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimMissingTeeth xmlns="http://hl7.org/fhir"></ClaimMissingTeeth>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->tooth) {
         $this->tooth->xmlSerialize(true, $sxe->addChild('tooth'));
     }
     if (null !== $this->reason) {
         $this->reason->xmlSerialize(true, $sxe->addChild('reason'));
     }
     if (null !== $this->extractionDate) {
         $this->extractionDate->xmlSerialize(true, $sxe->addChild('extractionDate'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #13
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimProsthesis xmlns="http://hl7.org/fhir"></ClaimProsthesis>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->initial) {
         $this->initial->xmlSerialize(true, $sxe->addChild('initial'));
     }
     if (null !== $this->priorDate) {
         $this->priorDate->xmlSerialize(true, $sxe->addChild('priorDate'));
     }
     if (null !== $this->priorMaterial) {
         $this->priorMaterial->xmlSerialize(true, $sxe->addChild('priorMaterial'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #14
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ContractSigner xmlns="http://hl7.org/fhir"></ContractSigner>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->party) {
         $this->party->xmlSerialize(true, $sxe->addChild('party'));
     }
     if (null !== $this->signature) {
         $this->signature->xmlSerialize(true, $sxe->addChild('signature'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #15
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ValueSetDesignation xmlns="http://hl7.org/fhir"></ValueSetDesignation>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->language) {
         $this->language->xmlSerialize(true, $sxe->addChild('language'));
     }
     if (null !== $this->use) {
         $this->use->xmlSerialize(true, $sxe->addChild('use'));
     }
     if (null !== $this->value) {
         $this->value->xmlSerialize(true, $sxe->addChild('value'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #16
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimResponseAdjudication3 xmlns="http://hl7.org/fhir"></ClaimResponseAdjudication3>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->amount) {
         $this->amount->xmlSerialize(true, $sxe->addChild('amount'));
     }
     if (null !== $this->value) {
         $this->value->xmlSerialize(true, $sxe->addChild('value'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #17
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimResponseDetail1 xmlns="http://hl7.org/fhir"></ClaimResponseDetail1>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->service) {
         $this->service->xmlSerialize(true, $sxe->addChild('service'));
     }
     if (null !== $this->fee) {
         $this->fee->xmlSerialize(true, $sxe->addChild('fee'));
     }
     if (0 < count($this->adjudication)) {
         foreach ($this->adjudication as $adjudication) {
             $adjudication->xmlSerialize(true, $sxe->addChild('adjudication'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #18
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimPayee xmlns="http://hl7.org/fhir"></ClaimPayee>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->provider) {
         $this->provider->xmlSerialize(true, $sxe->addChild('provider'));
     }
     if (null !== $this->organization) {
         $this->organization->xmlSerialize(true, $sxe->addChild('organization'));
     }
     if (null !== $this->person) {
         $this->person->xmlSerialize(true, $sxe->addChild('person'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #19
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<AuditEventEvent xmlns="http://hl7.org/fhir"></AuditEventEvent>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (0 < count($this->subtype)) {
         foreach ($this->subtype as $subtype) {
             $subtype->xmlSerialize(true, $sxe->addChild('subtype'));
         }
     }
     if (null !== $this->action) {
         $this->action->xmlSerialize(true, $sxe->addChild('action'));
     }
     if (null !== $this->dateTime) {
         $this->dateTime->xmlSerialize(true, $sxe->addChild('dateTime'));
     }
     if (null !== $this->outcome) {
         $this->outcome->xmlSerialize(true, $sxe->addChild('outcome'));
     }
     if (null !== $this->outcomeDesc) {
         $this->outcomeDesc->xmlSerialize(true, $sxe->addChild('outcomeDesc'));
     }
     if (0 < count($this->purposeOfEvent)) {
         foreach ($this->purposeOfEvent as $purposeOfEvent) {
             $purposeOfEvent->xmlSerialize(true, $sxe->addChild('purposeOfEvent'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #20
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Coverage xmlns="http://hl7.org/fhir"></Coverage>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->issuer) {
         $this->issuer->xmlSerialize(true, $sxe->addChild('issuer'));
     }
     if (null !== $this->bin) {
         $this->bin->xmlSerialize(true, $sxe->addChild('bin'));
     }
     if (null !== $this->period) {
         $this->period->xmlSerialize(true, $sxe->addChild('period'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->subscriberId) {
         $this->subscriberId->xmlSerialize(true, $sxe->addChild('subscriberId'));
     }
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->group) {
         $this->group->xmlSerialize(true, $sxe->addChild('group'));
     }
     if (null !== $this->plan) {
         $this->plan->xmlSerialize(true, $sxe->addChild('plan'));
     }
     if (null !== $this->subPlan) {
         $this->subPlan->xmlSerialize(true, $sxe->addChild('subPlan'));
     }
     if (null !== $this->dependent) {
         $this->dependent->xmlSerialize(true, $sxe->addChild('dependent'));
     }
     if (null !== $this->sequence) {
         $this->sequence->xmlSerialize(true, $sxe->addChild('sequence'));
     }
     if (null !== $this->subscriber) {
         $this->subscriber->xmlSerialize(true, $sxe->addChild('subscriber'));
     }
     if (null !== $this->network) {
         $this->network->xmlSerialize(true, $sxe->addChild('network'));
     }
     if (0 < count($this->contract)) {
         foreach ($this->contract as $contract) {
             $contract->xmlSerialize(true, $sxe->addChild('contract'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #21
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<QuestionnaireAnswersAnswer xmlns="http://hl7.org/fhir"></QuestionnaireAnswersAnswer>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->valueBoolean) {
         $this->valueBoolean->xmlSerialize(true, $sxe->addChild('valueBoolean'));
     }
     if (null !== $this->valueDecimal) {
         $this->valueDecimal->xmlSerialize(true, $sxe->addChild('valueDecimal'));
     }
     if (null !== $this->valueInteger) {
         $this->valueInteger->xmlSerialize(true, $sxe->addChild('valueInteger'));
     }
     if (null !== $this->valueDate) {
         $this->valueDate->xmlSerialize(true, $sxe->addChild('valueDate'));
     }
     if (null !== $this->valueDateTime) {
         $this->valueDateTime->xmlSerialize(true, $sxe->addChild('valueDateTime'));
     }
     if (null !== $this->valueInstant) {
         $this->valueInstant->xmlSerialize(true, $sxe->addChild('valueInstant'));
     }
     if (null !== $this->valueTime) {
         $this->valueTime->xmlSerialize(true, $sxe->addChild('valueTime'));
     }
     if (null !== $this->valueString) {
         $this->valueString->xmlSerialize(true, $sxe->addChild('valueString'));
     }
     if (null !== $this->valueUri) {
         $this->valueUri->xmlSerialize(true, $sxe->addChild('valueUri'));
     }
     if (null !== $this->valueAttachment) {
         $this->valueAttachment->xmlSerialize(true, $sxe->addChild('valueAttachment'));
     }
     if (null !== $this->valueCoding) {
         $this->valueCoding->xmlSerialize(true, $sxe->addChild('valueCoding'));
     }
     if (null !== $this->valueMeasuredQuantity) {
         $this->valueMeasuredQuantity->xmlSerialize(true, $sxe->addChild('valueMeasuredQuantity'));
     }
     if (null !== $this->valueReference) {
         $this->valueReference->xmlSerialize(true, $sxe->addChild('valueReference'));
     }
     if (0 < count($this->group)) {
         foreach ($this->group as $group) {
             $group->xmlSerialize(true, $sxe->addChild('group'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #22
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimResponseError xmlns="http://hl7.org/fhir"></ClaimResponseError>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->sequenceLinkId) {
         $this->sequenceLinkId->xmlSerialize(true, $sxe->addChild('sequenceLinkId'));
     }
     if (null !== $this->detailSequenceLinkId) {
         $this->detailSequenceLinkId->xmlSerialize(true, $sxe->addChild('detailSequenceLinkId'));
     }
     if (null !== $this->subdetailSequenceLinkId) {
         $this->subdetailSequenceLinkId->xmlSerialize(true, $sxe->addChild('subdetailSequenceLinkId'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #23
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<PaymentReconciliation xmlns="http://hl7.org/fhir"></PaymentReconciliation>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->request) {
         $this->request->xmlSerialize(true, $sxe->addChild('request'));
     }
     if (null !== $this->outcome) {
         $this->outcome->xmlSerialize(true, $sxe->addChild('outcome'));
     }
     if (null !== $this->disposition) {
         $this->disposition->xmlSerialize(true, $sxe->addChild('disposition'));
     }
     if (null !== $this->ruleset) {
         $this->ruleset->xmlSerialize(true, $sxe->addChild('ruleset'));
     }
     if (null !== $this->originalRuleset) {
         $this->originalRuleset->xmlSerialize(true, $sxe->addChild('originalRuleset'));
     }
     if (null !== $this->created) {
         $this->created->xmlSerialize(true, $sxe->addChild('created'));
     }
     if (null !== $this->period) {
         $this->period->xmlSerialize(true, $sxe->addChild('period'));
     }
     if (null !== $this->organization) {
         $this->organization->xmlSerialize(true, $sxe->addChild('organization'));
     }
     if (null !== $this->requestProvider) {
         $this->requestProvider->xmlSerialize(true, $sxe->addChild('requestProvider'));
     }
     if (null !== $this->requestOrganization) {
         $this->requestOrganization->xmlSerialize(true, $sxe->addChild('requestOrganization'));
     }
     if (0 < count($this->detail)) {
         foreach ($this->detail as $detail) {
             $detail->xmlSerialize(true, $sxe->addChild('detail'));
         }
     }
     if (null !== $this->form) {
         $this->form->xmlSerialize(true, $sxe->addChild('form'));
     }
     if (null !== $this->total) {
         $this->total->xmlSerialize(true, $sxe->addChild('total'));
     }
     if (0 < count($this->note)) {
         foreach ($this->note as $note) {
             $note->xmlSerialize(true, $sxe->addChild('note'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #24
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimResponseCoverage xmlns="http://hl7.org/fhir"></ClaimResponseCoverage>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->sequence) {
         $this->sequence->xmlSerialize(true, $sxe->addChild('sequence'));
     }
     if (null !== $this->focal) {
         $this->focal->xmlSerialize(true, $sxe->addChild('focal'));
     }
     if (null !== $this->coverage) {
         $this->coverage->xmlSerialize(true, $sxe->addChild('coverage'));
     }
     if (null !== $this->businessArrangement) {
         $this->businessArrangement->xmlSerialize(true, $sxe->addChild('businessArrangement'));
     }
     if (null !== $this->relationship) {
         $this->relationship->xmlSerialize(true, $sxe->addChild('relationship'));
     }
     if (0 < count($this->preAuthRef)) {
         foreach ($this->preAuthRef as $preAuthRef) {
             $preAuthRef->xmlSerialize(true, $sxe->addChild('preAuthRef'));
         }
     }
     if (null !== $this->claimResponse) {
         $this->claimResponse->xmlSerialize(true, $sxe->addChild('claimResponse'));
     }
     if (null !== $this->originalRuleset) {
         $this->originalRuleset->xmlSerialize(true, $sxe->addChild('originalRuleset'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #25
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ExplanationOfBenefit xmlns="http://hl7.org/fhir"></ExplanationOfBenefit>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->request) {
         $this->request->xmlSerialize(true, $sxe->addChild('request'));
     }
     if (null !== $this->outcome) {
         $this->outcome->xmlSerialize(true, $sxe->addChild('outcome'));
     }
     if (null !== $this->disposition) {
         $this->disposition->xmlSerialize(true, $sxe->addChild('disposition'));
     }
     if (null !== $this->ruleset) {
         $this->ruleset->xmlSerialize(true, $sxe->addChild('ruleset'));
     }
     if (null !== $this->originalRuleset) {
         $this->originalRuleset->xmlSerialize(true, $sxe->addChild('originalRuleset'));
     }
     if (null !== $this->created) {
         $this->created->xmlSerialize(true, $sxe->addChild('created'));
     }
     if (null !== $this->organization) {
         $this->organization->xmlSerialize(true, $sxe->addChild('organization'));
     }
     if (null !== $this->requestProvider) {
         $this->requestProvider->xmlSerialize(true, $sxe->addChild('requestProvider'));
     }
     if (null !== $this->requestOrganization) {
         $this->requestOrganization->xmlSerialize(true, $sxe->addChild('requestOrganization'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #26
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimResponse xmlns="http://hl7.org/fhir"></ClaimResponse>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->request) {
         $this->request->xmlSerialize(true, $sxe->addChild('request'));
     }
     if (null !== $this->ruleset) {
         $this->ruleset->xmlSerialize(true, $sxe->addChild('ruleset'));
     }
     if (null !== $this->originalRuleset) {
         $this->originalRuleset->xmlSerialize(true, $sxe->addChild('originalRuleset'));
     }
     if (null !== $this->created) {
         $this->created->xmlSerialize(true, $sxe->addChild('created'));
     }
     if (null !== $this->organization) {
         $this->organization->xmlSerialize(true, $sxe->addChild('organization'));
     }
     if (null !== $this->requestProvider) {
         $this->requestProvider->xmlSerialize(true, $sxe->addChild('requestProvider'));
     }
     if (null !== $this->requestOrganization) {
         $this->requestOrganization->xmlSerialize(true, $sxe->addChild('requestOrganization'));
     }
     if (null !== $this->outcome) {
         $this->outcome->xmlSerialize(true, $sxe->addChild('outcome'));
     }
     if (null !== $this->disposition) {
         $this->disposition->xmlSerialize(true, $sxe->addChild('disposition'));
     }
     if (null !== $this->payeeType) {
         $this->payeeType->xmlSerialize(true, $sxe->addChild('payeeType'));
     }
     if (0 < count($this->item)) {
         foreach ($this->item as $item) {
             $item->xmlSerialize(true, $sxe->addChild('item'));
         }
     }
     if (0 < count($this->addItem)) {
         foreach ($this->addItem as $addItem) {
             $addItem->xmlSerialize(true, $sxe->addChild('addItem'));
         }
     }
     if (0 < count($this->error)) {
         foreach ($this->error as $error) {
             $error->xmlSerialize(true, $sxe->addChild('error'));
         }
     }
     if (null !== $this->totalCost) {
         $this->totalCost->xmlSerialize(true, $sxe->addChild('totalCost'));
     }
     if (null !== $this->unallocDeductable) {
         $this->unallocDeductable->xmlSerialize(true, $sxe->addChild('unallocDeductable'));
     }
     if (null !== $this->totalBenefit) {
         $this->totalBenefit->xmlSerialize(true, $sxe->addChild('totalBenefit'));
     }
     if (null !== $this->paymentAdjustment) {
         $this->paymentAdjustment->xmlSerialize(true, $sxe->addChild('paymentAdjustment'));
     }
     if (null !== $this->paymentAdjustmentReason) {
         $this->paymentAdjustmentReason->xmlSerialize(true, $sxe->addChild('paymentAdjustmentReason'));
     }
     if (null !== $this->paymentDate) {
         $this->paymentDate->xmlSerialize(true, $sxe->addChild('paymentDate'));
     }
     if (null !== $this->paymentAmount) {
         $this->paymentAmount->xmlSerialize(true, $sxe->addChild('paymentAmount'));
     }
     if (null !== $this->paymentRef) {
         $this->paymentRef->xmlSerialize(true, $sxe->addChild('paymentRef'));
     }
     if (null !== $this->reserved) {
         $this->reserved->xmlSerialize(true, $sxe->addChild('reserved'));
     }
     if (null !== $this->form) {
         $this->form->xmlSerialize(true, $sxe->addChild('form'));
     }
     if (0 < count($this->note)) {
         foreach ($this->note as $note) {
             $note->xmlSerialize(true, $sxe->addChild('note'));
         }
     }
     if (0 < count($this->coverage)) {
         foreach ($this->coverage as $coverage) {
             $coverage->xmlSerialize(true, $sxe->addChild('coverage'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #27
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimSubDetail xmlns="http://hl7.org/fhir"></ClaimSubDetail>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->sequence) {
         $this->sequence->xmlSerialize(true, $sxe->addChild('sequence'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->service) {
         $this->service->xmlSerialize(true, $sxe->addChild('service'));
     }
     if (null !== $this->quantity) {
         $this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
     }
     if (null !== $this->unitPrice) {
         $this->unitPrice->xmlSerialize(true, $sxe->addChild('unitPrice'));
     }
     if (null !== $this->factor) {
         $this->factor->xmlSerialize(true, $sxe->addChild('factor'));
     }
     if (null !== $this->points) {
         $this->points->xmlSerialize(true, $sxe->addChild('points'));
     }
     if (null !== $this->net) {
         $this->net->xmlSerialize(true, $sxe->addChild('net'));
     }
     if (null !== $this->udi) {
         $this->udi->xmlSerialize(true, $sxe->addChild('udi'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #28
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ClaimItem xmlns="http://hl7.org/fhir"></ClaimItem>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->sequence) {
         $this->sequence->xmlSerialize(true, $sxe->addChild('sequence'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->provider) {
         $this->provider->xmlSerialize(true, $sxe->addChild('provider'));
     }
     if (0 < count($this->diagnosisLinkId)) {
         foreach ($this->diagnosisLinkId as $diagnosisLinkId) {
             $diagnosisLinkId->xmlSerialize(true, $sxe->addChild('diagnosisLinkId'));
         }
     }
     if (null !== $this->service) {
         $this->service->xmlSerialize(true, $sxe->addChild('service'));
     }
     if (null !== $this->serviceDate) {
         $this->serviceDate->xmlSerialize(true, $sxe->addChild('serviceDate'));
     }
     if (null !== $this->quantity) {
         $this->quantity->xmlSerialize(true, $sxe->addChild('quantity'));
     }
     if (null !== $this->unitPrice) {
         $this->unitPrice->xmlSerialize(true, $sxe->addChild('unitPrice'));
     }
     if (null !== $this->factor) {
         $this->factor->xmlSerialize(true, $sxe->addChild('factor'));
     }
     if (null !== $this->points) {
         $this->points->xmlSerialize(true, $sxe->addChild('points'));
     }
     if (null !== $this->net) {
         $this->net->xmlSerialize(true, $sxe->addChild('net'));
     }
     if (null !== $this->udi) {
         $this->udi->xmlSerialize(true, $sxe->addChild('udi'));
     }
     if (null !== $this->bodySite) {
         $this->bodySite->xmlSerialize(true, $sxe->addChild('bodySite'));
     }
     if (0 < count($this->subSite)) {
         foreach ($this->subSite as $subSite) {
             $subSite->xmlSerialize(true, $sxe->addChild('subSite'));
         }
     }
     if (0 < count($this->modifier)) {
         foreach ($this->modifier as $modifier) {
             $modifier->xmlSerialize(true, $sxe->addChild('modifier'));
         }
     }
     if (0 < count($this->detail)) {
         foreach ($this->detail as $detail) {
             $detail->xmlSerialize(true, $sxe->addChild('detail'));
         }
     }
     if (null !== $this->prosthesis) {
         $this->prosthesis->xmlSerialize(true, $sxe->addChild('prosthesis'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #29
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Claim xmlns="http://hl7.org/fhir"></Claim>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->ruleset) {
         $this->ruleset->xmlSerialize(true, $sxe->addChild('ruleset'));
     }
     if (null !== $this->originalRuleset) {
         $this->originalRuleset->xmlSerialize(true, $sxe->addChild('originalRuleset'));
     }
     if (null !== $this->created) {
         $this->created->xmlSerialize(true, $sxe->addChild('created'));
     }
     if (null !== $this->target) {
         $this->target->xmlSerialize(true, $sxe->addChild('target'));
     }
     if (null !== $this->provider) {
         $this->provider->xmlSerialize(true, $sxe->addChild('provider'));
     }
     if (null !== $this->organization) {
         $this->organization->xmlSerialize(true, $sxe->addChild('organization'));
     }
     if (null !== $this->use) {
         $this->use->xmlSerialize(true, $sxe->addChild('use'));
     }
     if (null !== $this->priority) {
         $this->priority->xmlSerialize(true, $sxe->addChild('priority'));
     }
     if (null !== $this->fundsReserve) {
         $this->fundsReserve->xmlSerialize(true, $sxe->addChild('fundsReserve'));
     }
     if (null !== $this->enterer) {
         $this->enterer->xmlSerialize(true, $sxe->addChild('enterer'));
     }
     if (null !== $this->facility) {
         $this->facility->xmlSerialize(true, $sxe->addChild('facility'));
     }
     if (null !== $this->prescription) {
         $this->prescription->xmlSerialize(true, $sxe->addChild('prescription'));
     }
     if (null !== $this->originalPrescription) {
         $this->originalPrescription->xmlSerialize(true, $sxe->addChild('originalPrescription'));
     }
     if (null !== $this->payee) {
         $this->payee->xmlSerialize(true, $sxe->addChild('payee'));
     }
     if (null !== $this->referral) {
         $this->referral->xmlSerialize(true, $sxe->addChild('referral'));
     }
     if (0 < count($this->diagnosis)) {
         foreach ($this->diagnosis as $diagnosis) {
             $diagnosis->xmlSerialize(true, $sxe->addChild('diagnosis'));
         }
     }
     if (0 < count($this->condition)) {
         foreach ($this->condition as $condition) {
             $condition->xmlSerialize(true, $sxe->addChild('condition'));
         }
     }
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (0 < count($this->coverage)) {
         foreach ($this->coverage as $coverage) {
             $coverage->xmlSerialize(true, $sxe->addChild('coverage'));
         }
     }
     if (0 < count($this->exception)) {
         foreach ($this->exception as $exception) {
             $exception->xmlSerialize(true, $sxe->addChild('exception'));
         }
     }
     if (null !== $this->school) {
         $this->school->xmlSerialize(true, $sxe->addChild('school'));
     }
     if (null !== $this->accident) {
         $this->accident->xmlSerialize(true, $sxe->addChild('accident'));
     }
     if (null !== $this->accidentType) {
         $this->accidentType->xmlSerialize(true, $sxe->addChild('accidentType'));
     }
     if (0 < count($this->interventionException)) {
         foreach ($this->interventionException as $interventionException) {
             $interventionException->xmlSerialize(true, $sxe->addChild('interventionException'));
         }
     }
     if (0 < count($this->item)) {
         foreach ($this->item as $item) {
             $item->xmlSerialize(true, $sxe->addChild('item'));
         }
     }
     if (0 < count($this->additionalMaterials)) {
         foreach ($this->additionalMaterials as $additionalMaterials) {
             $additionalMaterials->xmlSerialize(true, $sxe->addChild('additionalMaterials'));
         }
     }
     if (0 < count($this->missingTeeth)) {
         foreach ($this->missingTeeth as $missingTeeth) {
             $missingTeeth->xmlSerialize(true, $sxe->addChild('missingTeeth'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
コード例 #30
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<AuditEventParticipant xmlns="http://hl7.org/fhir"></AuditEventParticipant>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->role)) {
         foreach ($this->role as $role) {
             $role->xmlSerialize(true, $sxe->addChild('role'));
         }
     }
     if (null !== $this->reference) {
         $this->reference->xmlSerialize(true, $sxe->addChild('reference'));
     }
     if (null !== $this->userId) {
         $this->userId->xmlSerialize(true, $sxe->addChild('userId'));
     }
     if (null !== $this->altId) {
         $this->altId->xmlSerialize(true, $sxe->addChild('altId'));
     }
     if (null !== $this->name) {
         $this->name->xmlSerialize(true, $sxe->addChild('name'));
     }
     if (null !== $this->requestor) {
         $this->requestor->xmlSerialize(true, $sxe->addChild('requestor'));
     }
     if (null !== $this->location) {
         $this->location->xmlSerialize(true, $sxe->addChild('location'));
     }
     if (0 < count($this->policy)) {
         foreach ($this->policy as $policy) {
             $policy->xmlSerialize(true, $sxe->addChild('policy'));
         }
     }
     if (null !== $this->media) {
         $this->media->xmlSerialize(true, $sxe->addChild('media'));
     }
     if (null !== $this->network) {
         $this->network->xmlSerialize(true, $sxe->addChild('network'));
     }
     if (0 < count($this->purposeOfUse)) {
         foreach ($this->purposeOfUse as $purposeOfUse) {
             $purposeOfUse->xmlSerialize(true, $sxe->addChild('purposeOfUse'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }