/**
  * @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();
 }
 /**
  * @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();
 }
Exemplo n.º 3
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();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<ImmunizationRecommendation xmlns="http://hl7.org/fhir"></ImmunizationRecommendation>');
     }
     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 (0 < count($this->recommendation)) {
         foreach ($this->recommendation as $recommendation) {
             $recommendation->xmlSerialize(true, $sxe->addChild('recommendation'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
Exemplo n.º 5
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Goal xmlns="http://hl7.org/fhir"></Goal>');
     }
     parent::xmlSerialize(true, $sxe);
     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 (null !== $this->startDate) {
         $this->startDate->xmlSerialize(true, $sxe->addChild('startDate'));
     }
     if (null !== $this->startCodeableConcept) {
         $this->startCodeableConcept->xmlSerialize(true, $sxe->addChild('startCodeableConcept'));
     }
     if (null !== $this->targetDate) {
         $this->targetDate->xmlSerialize(true, $sxe->addChild('targetDate'));
     }
     if (null !== $this->targetQuantity) {
         $this->targetQuantity->xmlSerialize(true, $sxe->addChild('targetQuantity'));
     }
     if (0 < count($this->category)) {
         foreach ($this->category as $category) {
             $category->xmlSerialize(true, $sxe->addChild('category'));
         }
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->statusDate) {
         $this->statusDate->xmlSerialize(true, $sxe->addChild('statusDate'));
     }
     if (null !== $this->statusReason) {
         $this->statusReason->xmlSerialize(true, $sxe->addChild('statusReason'));
     }
     if (null !== $this->author) {
         $this->author->xmlSerialize(true, $sxe->addChild('author'));
     }
     if (null !== $this->priority) {
         $this->priority->xmlSerialize(true, $sxe->addChild('priority'));
     }
     if (0 < count($this->addresses)) {
         foreach ($this->addresses as $addresses) {
             $addresses->xmlSerialize(true, $sxe->addChild('addresses'));
         }
     }
     if (0 < count($this->note)) {
         foreach ($this->note as $note) {
             $note->xmlSerialize(true, $sxe->addChild('note'));
         }
     }
     if (0 < count($this->outcome)) {
         foreach ($this->outcome as $outcome) {
             $outcome->xmlSerialize(true, $sxe->addChild('outcome'));
         }
     }
     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('<AuditEvent xmlns="http://hl7.org/fhir"></AuditEvent>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->event) {
         $this->event->xmlSerialize(true, $sxe->addChild('event'));
     }
     if (0 < count($this->participant)) {
         foreach ($this->participant as $participant) {
             $participant->xmlSerialize(true, $sxe->addChild('participant'));
         }
     }
     if (null !== $this->source) {
         $this->source->xmlSerialize(true, $sxe->addChild('source'));
     }
     if (0 < count($this->object)) {
         foreach ($this->object as $object) {
             $object->xmlSerialize(true, $sxe->addChild('object'));
         }
     }
     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('<Organization xmlns="http://hl7.org/fhir"></Organization>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->active) {
         $this->active->xmlSerialize(true, $sxe->addChild('active'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     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 (0 < count($this->address)) {
         foreach ($this->address as $address) {
             $address->xmlSerialize(true, $sxe->addChild('address'));
         }
     }
     if (null !== $this->partOf) {
         $this->partOf->xmlSerialize(true, $sxe->addChild('partOf'));
     }
     if (0 < count($this->contact)) {
         foreach ($this->contact as $contact) {
             $contact->xmlSerialize(true, $sxe->addChild('contact'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
Exemplo n.º 8
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Supply xmlns="http://hl7.org/fhir"></Supply>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->kind) {
         $this->kind->xmlSerialize(true, $sxe->addChild('kind'));
     }
     if (null !== $this->identifier) {
         $this->identifier->xmlSerialize(true, $sxe->addChild('identifier'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->orderedItem) {
         $this->orderedItem->xmlSerialize(true, $sxe->addChild('orderedItem'));
     }
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (0 < count($this->dispense)) {
         foreach ($this->dispense as $dispense) {
             $dispense->xmlSerialize(true, $sxe->addChild('dispense'));
         }
     }
     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('<Observation xmlns="http://hl7.org/fhir"></Observation>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->category) {
         $this->category->xmlSerialize(true, $sxe->addChild('category'));
     }
     if (null !== $this->code) {
         $this->code->xmlSerialize(true, $sxe->addChild('code'));
     }
     if (null !== $this->subject) {
         $this->subject->xmlSerialize(true, $sxe->addChild('subject'));
     }
     if (null !== $this->encounter) {
         $this->encounter->xmlSerialize(true, $sxe->addChild('encounter'));
     }
     if (null !== $this->effectiveDateTime) {
         $this->effectiveDateTime->xmlSerialize(true, $sxe->addChild('effectiveDateTime'));
     }
     if (null !== $this->effectivePeriod) {
         $this->effectivePeriod->xmlSerialize(true, $sxe->addChild('effectivePeriod'));
     }
     if (null !== $this->issued) {
         $this->issued->xmlSerialize(true, $sxe->addChild('issued'));
     }
     if (0 < count($this->performer)) {
         foreach ($this->performer as $performer) {
             $performer->xmlSerialize(true, $sxe->addChild('performer'));
         }
     }
     if (null !== $this->valueQuantity) {
         $this->valueQuantity->xmlSerialize(true, $sxe->addChild('valueQuantity'));
     }
     if (null !== $this->valueCodeableConcept) {
         $this->valueCodeableConcept->xmlSerialize(true, $sxe->addChild('valueCodeableConcept'));
     }
     if (null !== $this->valueString) {
         $this->valueString->xmlSerialize(true, $sxe->addChild('valueString'));
     }
     if (null !== $this->valueRange) {
         $this->valueRange->xmlSerialize(true, $sxe->addChild('valueRange'));
     }
     if (null !== $this->valueRatio) {
         $this->valueRatio->xmlSerialize(true, $sxe->addChild('valueRatio'));
     }
     if (null !== $this->valueSampledData) {
         $this->valueSampledData->xmlSerialize(true, $sxe->addChild('valueSampledData'));
     }
     if (null !== $this->valueAttachment) {
         $this->valueAttachment->xmlSerialize(true, $sxe->addChild('valueAttachment'));
     }
     if (null !== $this->valueTime) {
         $this->valueTime->xmlSerialize(true, $sxe->addChild('valueTime'));
     }
     if (null !== $this->valueDateTime) {
         $this->valueDateTime->xmlSerialize(true, $sxe->addChild('valueDateTime'));
     }
     if (null !== $this->valuePeriod) {
         $this->valuePeriod->xmlSerialize(true, $sxe->addChild('valuePeriod'));
     }
     if (null !== $this->dataAbsentReason) {
         $this->dataAbsentReason->xmlSerialize(true, $sxe->addChild('dataAbsentReason'));
     }
     if (null !== $this->interpretation) {
         $this->interpretation->xmlSerialize(true, $sxe->addChild('interpretation'));
     }
     if (null !== $this->comments) {
         $this->comments->xmlSerialize(true, $sxe->addChild('comments'));
     }
     if (null !== $this->bodySite) {
         $this->bodySite->xmlSerialize(true, $sxe->addChild('bodySite'));
     }
     if (null !== $this->method) {
         $this->method->xmlSerialize(true, $sxe->addChild('method'));
     }
     if (null !== $this->specimen) {
         $this->specimen->xmlSerialize(true, $sxe->addChild('specimen'));
     }
     if (null !== $this->device) {
         $this->device->xmlSerialize(true, $sxe->addChild('device'));
     }
     if (0 < count($this->referenceRange)) {
         foreach ($this->referenceRange as $referenceRange) {
             $referenceRange->xmlSerialize(true, $sxe->addChild('referenceRange'));
         }
     }
     if (0 < count($this->related)) {
         foreach ($this->related as $related) {
             $related->xmlSerialize(true, $sxe->addChild('related'));
         }
     }
     if (0 < count($this->component)) {
         foreach ($this->component as $component) {
             $component->xmlSerialize(true, $sxe->addChild('component'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
Exemplo n.º 10
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Patient xmlns="http://hl7.org/fhir"></Patient>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->active) {
         $this->active->xmlSerialize(true, $sxe->addChild('active'));
     }
     if (0 < count($this->name)) {
         foreach ($this->name as $name) {
             $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 (null !== $this->deceasedBoolean) {
         $this->deceasedBoolean->xmlSerialize(true, $sxe->addChild('deceasedBoolean'));
     }
     if (null !== $this->deceasedDateTime) {
         $this->deceasedDateTime->xmlSerialize(true, $sxe->addChild('deceasedDateTime'));
     }
     if (0 < count($this->address)) {
         foreach ($this->address as $address) {
             $address->xmlSerialize(true, $sxe->addChild('address'));
         }
     }
     if (null !== $this->maritalStatus) {
         $this->maritalStatus->xmlSerialize(true, $sxe->addChild('maritalStatus'));
     }
     if (null !== $this->multipleBirthBoolean) {
         $this->multipleBirthBoolean->xmlSerialize(true, $sxe->addChild('multipleBirthBoolean'));
     }
     if (null !== $this->multipleBirthInteger) {
         $this->multipleBirthInteger->xmlSerialize(true, $sxe->addChild('multipleBirthInteger'));
     }
     if (0 < count($this->photo)) {
         foreach ($this->photo as $photo) {
             $photo->xmlSerialize(true, $sxe->addChild('photo'));
         }
     }
     if (0 < count($this->contact)) {
         foreach ($this->contact as $contact) {
             $contact->xmlSerialize(true, $sxe->addChild('contact'));
         }
     }
     if (null !== $this->animal) {
         $this->animal->xmlSerialize(true, $sxe->addChild('animal'));
     }
     if (0 < count($this->communication)) {
         foreach ($this->communication as $communication) {
             $communication->xmlSerialize(true, $sxe->addChild('communication'));
         }
     }
     if (0 < count($this->careProvider)) {
         foreach ($this->careProvider as $careProvider) {
             $careProvider->xmlSerialize(true, $sxe->addChild('careProvider'));
         }
     }
     if (null !== $this->managingOrganization) {
         $this->managingOrganization->xmlSerialize(true, $sxe->addChild('managingOrganization'));
     }
     if (0 < count($this->link)) {
         foreach ($this->link as $link) {
             $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('<ImagingStudy xmlns="http://hl7.org/fhir"></ImagingStudy>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->started) {
         $this->started->xmlSerialize(true, $sxe->addChild('started'));
     }
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (null !== $this->uid) {
         $this->uid->xmlSerialize(true, $sxe->addChild('uid'));
     }
     if (null !== $this->accession) {
         $this->accession->xmlSerialize(true, $sxe->addChild('accession'));
     }
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (0 < count($this->order)) {
         foreach ($this->order as $order) {
             $order->xmlSerialize(true, $sxe->addChild('order'));
         }
     }
     if (0 < count($this->modalityList)) {
         foreach ($this->modalityList as $modalityList) {
             $modalityList->xmlSerialize(true, $sxe->addChild('modalityList'));
         }
     }
     if (null !== $this->referrer) {
         $this->referrer->xmlSerialize(true, $sxe->addChild('referrer'));
     }
     if (null !== $this->availability) {
         $this->availability->xmlSerialize(true, $sxe->addChild('availability'));
     }
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     if (null !== $this->numberOfSeries) {
         $this->numberOfSeries->xmlSerialize(true, $sxe->addChild('numberOfSeries'));
     }
     if (null !== $this->numberOfInstances) {
         $this->numberOfInstances->xmlSerialize(true, $sxe->addChild('numberOfInstances'));
     }
     if (0 < count($this->procedure)) {
         foreach ($this->procedure as $procedure) {
             $procedure->xmlSerialize(true, $sxe->addChild('procedure'));
         }
     }
     if (null !== $this->interpreter) {
         $this->interpreter->xmlSerialize(true, $sxe->addChild('interpreter'));
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (0 < count($this->series)) {
         foreach ($this->series as $series) {
             $series->xmlSerialize(true, $sxe->addChild('series'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
Exemplo n.º 12
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Encounter xmlns="http://hl7.org/fhir"></Encounter>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (0 < count($this->statusHistory)) {
         foreach ($this->statusHistory as $statusHistory) {
             $statusHistory->xmlSerialize(true, $sxe->addChild('statusHistory'));
         }
     }
     if (null !== $this->class) {
         $this->class->xmlSerialize(true, $sxe->addChild('class'));
     }
     if (0 < count($this->type)) {
         foreach ($this->type as $type) {
             $type->xmlSerialize(true, $sxe->addChild('type'));
         }
     }
     if (null !== $this->priority) {
         $this->priority->xmlSerialize(true, $sxe->addChild('priority'));
     }
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (0 < count($this->episodeOfCare)) {
         foreach ($this->episodeOfCare as $episodeOfCare) {
             $episodeOfCare->xmlSerialize(true, $sxe->addChild('episodeOfCare'));
         }
     }
     if (0 < count($this->incomingReferral)) {
         foreach ($this->incomingReferral as $incomingReferral) {
             $incomingReferral->xmlSerialize(true, $sxe->addChild('incomingReferral'));
         }
     }
     if (0 < count($this->participant)) {
         foreach ($this->participant as $participant) {
             $participant->xmlSerialize(true, $sxe->addChild('participant'));
         }
     }
     if (null !== $this->appointment) {
         $this->appointment->xmlSerialize(true, $sxe->addChild('appointment'));
     }
     if (null !== $this->period) {
         $this->period->xmlSerialize(true, $sxe->addChild('period'));
     }
     if (null !== $this->length) {
         $this->length->xmlSerialize(true, $sxe->addChild('length'));
     }
     if (0 < count($this->reason)) {
         foreach ($this->reason as $reason) {
             $reason->xmlSerialize(true, $sxe->addChild('reason'));
         }
     }
     if (0 < count($this->indication)) {
         foreach ($this->indication as $indication) {
             $indication->xmlSerialize(true, $sxe->addChild('indication'));
         }
     }
     if (null !== $this->hospitalization) {
         $this->hospitalization->xmlSerialize(true, $sxe->addChild('hospitalization'));
     }
     if (0 < count($this->location)) {
         foreach ($this->location as $location) {
             $location->xmlSerialize(true, $sxe->addChild('location'));
         }
     }
     if (null !== $this->serviceProvider) {
         $this->serviceProvider->xmlSerialize(true, $sxe->addChild('serviceProvider'));
     }
     if (null !== $this->partOf) {
         $this->partOf->xmlSerialize(true, $sxe->addChild('partOf'));
     }
     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('<Communication xmlns="http://hl7.org/fhir"></Communication>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->category) {
         $this->category->xmlSerialize(true, $sxe->addChild('category'));
     }
     if (null !== $this->sender) {
         $this->sender->xmlSerialize(true, $sxe->addChild('sender'));
     }
     if (0 < count($this->recipient)) {
         foreach ($this->recipient as $recipient) {
             $recipient->xmlSerialize(true, $sxe->addChild('recipient'));
         }
     }
     if (0 < count($this->payload)) {
         foreach ($this->payload as $payload) {
             $payload->xmlSerialize(true, $sxe->addChild('payload'));
         }
     }
     if (0 < count($this->medium)) {
         foreach ($this->medium as $medium) {
             $medium->xmlSerialize(true, $sxe->addChild('medium'));
         }
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->encounter) {
         $this->encounter->xmlSerialize(true, $sxe->addChild('encounter'));
     }
     if (null !== $this->sent) {
         $this->sent->xmlSerialize(true, $sxe->addChild('sent'));
     }
     if (null !== $this->received) {
         $this->received->xmlSerialize(true, $sxe->addChild('received'));
     }
     if (0 < count($this->reason)) {
         foreach ($this->reason as $reason) {
             $reason->xmlSerialize(true, $sxe->addChild('reason'));
         }
     }
     if (null !== $this->subject) {
         $this->subject->xmlSerialize(true, $sxe->addChild('subject'));
     }
     if (null !== $this->requestDetail) {
         $this->requestDetail->xmlSerialize(true, $sxe->addChild('requestDetail'));
     }
     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('<ConditionDefinition xmlns="http://hl7.org/fhir"></ConditionDefinition>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     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->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 (0 < count($this->useContext)) {
         foreach ($this->useContext as $useContext) {
             $useContext->xmlSerialize(true, $sxe->addChild('useContext'));
         }
     }
     if (null !== $this->copyright) {
         $this->copyright->xmlSerialize(true, $sxe->addChild('copyright'));
     }
     if (null !== $this->severity) {
         $this->severity->xmlSerialize(true, $sxe->addChild('severity'));
     }
     if (0 < count($this->occurance)) {
         foreach ($this->occurance as $occurance) {
             $occurance->xmlSerialize(true, $sxe->addChild('occurance'));
         }
     }
     if (0 < count($this->findingSite)) {
         foreach ($this->findingSite as $findingSite) {
             $findingSite->xmlSerialize(true, $sxe->addChild('findingSite'));
         }
     }
     if (0 < count($this->morphology)) {
         foreach ($this->morphology as $morphology) {
             $morphology->xmlSerialize(true, $sxe->addChild('morphology'));
         }
     }
     if (0 < count($this->causedBy)) {
         foreach ($this->causedBy as $causedBy) {
             $causedBy->xmlSerialize(true, $sxe->addChild('causedBy'));
         }
     }
     if (0 < count($this->associated)) {
         foreach ($this->associated as $associated) {
             $associated->xmlSerialize(true, $sxe->addChild('associated'));
         }
     }
     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('<AppointmentResponse xmlns="http://hl7.org/fhir"></AppointmentResponse>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->appointment) {
         $this->appointment->xmlSerialize(true, $sxe->addChild('appointment'));
     }
     if (null !== $this->start) {
         $this->start->xmlSerialize(true, $sxe->addChild('start'));
     }
     if (null !== $this->end) {
         $this->end->xmlSerialize(true, $sxe->addChild('end'));
     }
     if (0 < count($this->participantType)) {
         foreach ($this->participantType as $participantType) {
             $participantType->xmlSerialize(true, $sxe->addChild('participantType'));
         }
     }
     if (null !== $this->actor) {
         $this->actor->xmlSerialize(true, $sxe->addChild('actor'));
     }
     if (null !== $this->participantStatus) {
         $this->participantStatus->xmlSerialize(true, $sxe->addChild('participantStatus'));
     }
     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('<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();
 }
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<DeviceUseRequest xmlns="http://hl7.org/fhir"></DeviceUseRequest>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->bodySiteCodeableConcept) {
         $this->bodySiteCodeableConcept->xmlSerialize(true, $sxe->addChild('bodySiteCodeableConcept'));
     }
     if (null !== $this->bodySiteReference) {
         $this->bodySiteReference->xmlSerialize(true, $sxe->addChild('bodySiteReference'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->device) {
         $this->device->xmlSerialize(true, $sxe->addChild('device'));
     }
     if (null !== $this->encounter) {
         $this->encounter->xmlSerialize(true, $sxe->addChild('encounter'));
     }
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (0 < count($this->indication)) {
         foreach ($this->indication as $indication) {
             $indication->xmlSerialize(true, $sxe->addChild('indication'));
         }
     }
     if (0 < count($this->notes)) {
         foreach ($this->notes as $notes) {
             $notes->xmlSerialize(true, $sxe->addChild('notes'));
         }
     }
     if (0 < count($this->prnReason)) {
         foreach ($this->prnReason as $prnReason) {
             $prnReason->xmlSerialize(true, $sxe->addChild('prnReason'));
         }
     }
     if (null !== $this->orderedOn) {
         $this->orderedOn->xmlSerialize(true, $sxe->addChild('orderedOn'));
     }
     if (null !== $this->recordedOn) {
         $this->recordedOn->xmlSerialize(true, $sxe->addChild('recordedOn'));
     }
     if (null !== $this->subject) {
         $this->subject->xmlSerialize(true, $sxe->addChild('subject'));
     }
     if (null !== $this->timingTiming) {
         $this->timingTiming->xmlSerialize(true, $sxe->addChild('timingTiming'));
     }
     if (null !== $this->timingPeriod) {
         $this->timingPeriod->xmlSerialize(true, $sxe->addChild('timingPeriod'));
     }
     if (null !== $this->timingDateTime) {
         $this->timingDateTime->xmlSerialize(true, $sxe->addChild('timingDateTime'));
     }
     if (null !== $this->priority) {
         $this->priority->xmlSerialize(true, $sxe->addChild('priority'));
     }
     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('<OperationOutcome xmlns="http://hl7.org/fhir"></OperationOutcome>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->issue)) {
         foreach ($this->issue as $issue) {
             $issue->xmlSerialize(true, $sxe->addChild('issue'));
         }
     }
     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('<QuestionnaireAnswers xmlns="http://hl7.org/fhir"></QuestionnaireAnswers>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->identifier) {
         $this->identifier->xmlSerialize(true, $sxe->addChild('identifier'));
     }
     if (null !== $this->questionnaire) {
         $this->questionnaire->xmlSerialize(true, $sxe->addChild('questionnaire'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->subject) {
         $this->subject->xmlSerialize(true, $sxe->addChild('subject'));
     }
     if (null !== $this->author) {
         $this->author->xmlSerialize(true, $sxe->addChild('author'));
     }
     if (null !== $this->authored) {
         $this->authored->xmlSerialize(true, $sxe->addChild('authored'));
     }
     if (null !== $this->source) {
         $this->source->xmlSerialize(true, $sxe->addChild('source'));
     }
     if (null !== $this->encounter) {
         $this->encounter->xmlSerialize(true, $sxe->addChild('encounter'));
     }
     if (null !== $this->group) {
         $this->group->xmlSerialize(true, $sxe->addChild('group'));
     }
     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('<EpisodeOfCare xmlns="http://hl7.org/fhir"></EpisodeOfCare>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (0 < count($this->statusHistory)) {
         foreach ($this->statusHistory as $statusHistory) {
             $statusHistory->xmlSerialize(true, $sxe->addChild('statusHistory'));
         }
     }
     if (0 < count($this->type)) {
         foreach ($this->type as $type) {
             $type->xmlSerialize(true, $sxe->addChild('type'));
         }
     }
     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 (null !== $this->managingOrganization) {
         $this->managingOrganization->xmlSerialize(true, $sxe->addChild('managingOrganization'));
     }
     if (null !== $this->period) {
         $this->period->xmlSerialize(true, $sxe->addChild('period'));
     }
     if (0 < count($this->referralRequest)) {
         foreach ($this->referralRequest as $referralRequest) {
             $referralRequest->xmlSerialize(true, $sxe->addChild('referralRequest'));
         }
     }
     if (null !== $this->careManager) {
         $this->careManager->xmlSerialize(true, $sxe->addChild('careManager'));
     }
     if (0 < count($this->careTeam)) {
         foreach ($this->careTeam as $careTeam) {
             $careTeam->xmlSerialize(true, $sxe->addChild('careTeam'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
Exemplo n.º 21
0
 /**
  * @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();
 }
Exemplo n.º 22
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Device xmlns="http://hl7.org/fhir"></Device>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (0 < count($this->note)) {
         foreach ($this->note as $note) {
             $note->xmlSerialize(true, $sxe->addChild('note'));
         }
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->manufacturer) {
         $this->manufacturer->xmlSerialize(true, $sxe->addChild('manufacturer'));
     }
     if (null !== $this->model) {
         $this->model->xmlSerialize(true, $sxe->addChild('model'));
     }
     if (null !== $this->version) {
         $this->version->xmlSerialize(true, $sxe->addChild('version'));
     }
     if (null !== $this->manufactureDate) {
         $this->manufactureDate->xmlSerialize(true, $sxe->addChild('manufactureDate'));
     }
     if (null !== $this->expiry) {
         $this->expiry->xmlSerialize(true, $sxe->addChild('expiry'));
     }
     if (null !== $this->udi) {
         $this->udi->xmlSerialize(true, $sxe->addChild('udi'));
     }
     if (null !== $this->lotNumber) {
         $this->lotNumber->xmlSerialize(true, $sxe->addChild('lotNumber'));
     }
     if (null !== $this->owner) {
         $this->owner->xmlSerialize(true, $sxe->addChild('owner'));
     }
     if (null !== $this->location) {
         $this->location->xmlSerialize(true, $sxe->addChild('location'));
     }
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (0 < count($this->contact)) {
         foreach ($this->contact as $contact) {
             $contact->xmlSerialize(true, $sxe->addChild('contact'));
         }
     }
     if (null !== $this->url) {
         $this->url->xmlSerialize(true, $sxe->addChild('url'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
Exemplo n.º 23
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Appointment xmlns="http://hl7.org/fhir"></Appointment>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->type) {
         $this->type->xmlSerialize(true, $sxe->addChild('type'));
     }
     if (null !== $this->reason) {
         $this->reason->xmlSerialize(true, $sxe->addChild('reason'));
     }
     if (null !== $this->priority) {
         $this->priority->xmlSerialize(true, $sxe->addChild('priority'));
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (null !== $this->start) {
         $this->start->xmlSerialize(true, $sxe->addChild('start'));
     }
     if (null !== $this->end) {
         $this->end->xmlSerialize(true, $sxe->addChild('end'));
     }
     if (null !== $this->minutesDuration) {
         $this->minutesDuration->xmlSerialize(true, $sxe->addChild('minutesDuration'));
     }
     if (0 < count($this->slot)) {
         foreach ($this->slot as $slot) {
             $slot->xmlSerialize(true, $sxe->addChild('slot'));
         }
     }
     if (null !== $this->comment) {
         $this->comment->xmlSerialize(true, $sxe->addChild('comment'));
     }
     if (0 < count($this->participant)) {
         foreach ($this->participant as $participant) {
             $participant->xmlSerialize(true, $sxe->addChild('participant'));
         }
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
Exemplo n.º 24
0
 /**
  * @param boolean $returnSXE
  * @param \SimpleXMLElement $sxe
  * @return string|\SimpleXMLElement
  */
 public function xmlSerialize($returnSXE = false, $sxe = null)
 {
     if (null === $sxe) {
         $sxe = new \SimpleXMLElement('<Basic xmlns="http://hl7.org/fhir"></Basic>');
     }
     parent::xmlSerialize(true, $sxe);
     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 (null !== $this->subject) {
         $this->subject->xmlSerialize(true, $sxe->addChild('subject'));
     }
     if (null !== $this->author) {
         $this->author->xmlSerialize(true, $sxe->addChild('author'));
     }
     if (null !== $this->created) {
         $this->created->xmlSerialize(true, $sxe->addChild('created'));
     }
     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('<Practitioner xmlns="http://hl7.org/fhir"></Practitioner>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->active) {
         $this->active->xmlSerialize(true, $sxe->addChild('active'));
     }
     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 (0 < count($this->address)) {
         foreach ($this->address as $address) {
             $address->xmlSerialize(true, $sxe->addChild('address'));
         }
     }
     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->photo)) {
         foreach ($this->photo as $photo) {
             $photo->xmlSerialize(true, $sxe->addChild('photo'));
         }
     }
     if (0 < count($this->practitionerRole)) {
         foreach ($this->practitionerRole as $practitionerRole) {
             $practitionerRole->xmlSerialize(true, $sxe->addChild('practitionerRole'));
         }
     }
     if (0 < count($this->qualification)) {
         foreach ($this->qualification as $qualification) {
             $qualification->xmlSerialize(true, $sxe->addChild('qualification'));
         }
     }
     if (0 < count($this->communication)) {
         foreach ($this->communication as $communication) {
             $communication->xmlSerialize(true, $sxe->addChild('communication'));
         }
     }
     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('<ImagingObjectSelection xmlns="http://hl7.org/fhir"></ImagingObjectSelection>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->uid) {
         $this->uid->xmlSerialize(true, $sxe->addChild('uid'));
     }
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (null !== $this->title) {
         $this->title->xmlSerialize(true, $sxe->addChild('title'));
     }
     if (null !== $this->description) {
         $this->description->xmlSerialize(true, $sxe->addChild('description'));
     }
     if (null !== $this->author) {
         $this->author->xmlSerialize(true, $sxe->addChild('author'));
     }
     if (null !== $this->authoringTime) {
         $this->authoringTime->xmlSerialize(true, $sxe->addChild('authoringTime'));
     }
     if (0 < count($this->study)) {
         foreach ($this->study as $study) {
             $study->xmlSerialize(true, $sxe->addChild('study'));
         }
     }
     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('<PaymentNotice xmlns="http://hl7.org/fhir"></PaymentNotice>');
     }
     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 (null !== $this->request) {
         $this->request->xmlSerialize(true, $sxe->addChild('request'));
     }
     if (null !== $this->response) {
         $this->response->xmlSerialize(true, $sxe->addChild('response'));
     }
     if (null !== $this->paymentStatus) {
         $this->paymentStatus->xmlSerialize(true, $sxe->addChild('paymentStatus'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }
Exemplo n.º 28
0
 /**
  * @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('<MedicationAdministration xmlns="http://hl7.org/fhir"></MedicationAdministration>');
     }
     parent::xmlSerialize(true, $sxe);
     if (0 < count($this->identifier)) {
         foreach ($this->identifier as $identifier) {
             $identifier->xmlSerialize(true, $sxe->addChild('identifier'));
         }
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (null !== $this->practitioner) {
         $this->practitioner->xmlSerialize(true, $sxe->addChild('practitioner'));
     }
     if (null !== $this->encounter) {
         $this->encounter->xmlSerialize(true, $sxe->addChild('encounter'));
     }
     if (null !== $this->prescription) {
         $this->prescription->xmlSerialize(true, $sxe->addChild('prescription'));
     }
     if (null !== $this->wasNotGiven) {
         $this->wasNotGiven->xmlSerialize(true, $sxe->addChild('wasNotGiven'));
     }
     if (0 < count($this->reasonNotGiven)) {
         foreach ($this->reasonNotGiven as $reasonNotGiven) {
             $reasonNotGiven->xmlSerialize(true, $sxe->addChild('reasonNotGiven'));
         }
     }
     if (0 < count($this->reasonGiven)) {
         foreach ($this->reasonGiven as $reasonGiven) {
             $reasonGiven->xmlSerialize(true, $sxe->addChild('reasonGiven'));
         }
     }
     if (null !== $this->effectiveTimeDateTime) {
         $this->effectiveTimeDateTime->xmlSerialize(true, $sxe->addChild('effectiveTimeDateTime'));
     }
     if (null !== $this->effectiveTimePeriod) {
         $this->effectiveTimePeriod->xmlSerialize(true, $sxe->addChild('effectiveTimePeriod'));
     }
     if (null !== $this->medicationCodeableConcept) {
         $this->medicationCodeableConcept->xmlSerialize(true, $sxe->addChild('medicationCodeableConcept'));
     }
     if (null !== $this->medicationReference) {
         $this->medicationReference->xmlSerialize(true, $sxe->addChild('medicationReference'));
     }
     if (0 < count($this->device)) {
         foreach ($this->device as $device) {
             $device->xmlSerialize(true, $sxe->addChild('device'));
         }
     }
     if (null !== $this->note) {
         $this->note->xmlSerialize(true, $sxe->addChild('note'));
     }
     if (null !== $this->dosage) {
         $this->dosage->xmlSerialize(true, $sxe->addChild('dosage'));
     }
     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('<SupplyRequest xmlns="http://hl7.org/fhir"></SupplyRequest>');
     }
     parent::xmlSerialize(true, $sxe);
     if (null !== $this->patient) {
         $this->patient->xmlSerialize(true, $sxe->addChild('patient'));
     }
     if (null !== $this->source) {
         $this->source->xmlSerialize(true, $sxe->addChild('source'));
     }
     if (null !== $this->date) {
         $this->date->xmlSerialize(true, $sxe->addChild('date'));
     }
     if (null !== $this->identifier) {
         $this->identifier->xmlSerialize(true, $sxe->addChild('identifier'));
     }
     if (null !== $this->status) {
         $this->status->xmlSerialize(true, $sxe->addChild('status'));
     }
     if (null !== $this->kind) {
         $this->kind->xmlSerialize(true, $sxe->addChild('kind'));
     }
     if (null !== $this->orderedItem) {
         $this->orderedItem->xmlSerialize(true, $sxe->addChild('orderedItem'));
     }
     if (0 < count($this->supplier)) {
         foreach ($this->supplier as $supplier) {
             $supplier->xmlSerialize(true, $sxe->addChild('supplier'));
         }
     }
     if (null !== $this->reasonCodeableConcept) {
         $this->reasonCodeableConcept->xmlSerialize(true, $sxe->addChild('reasonCodeableConcept'));
     }
     if (null !== $this->reasonReference) {
         $this->reasonReference->xmlSerialize(true, $sxe->addChild('reasonReference'));
     }
     if (null !== $this->when) {
         $this->when->xmlSerialize(true, $sxe->addChild('when'));
     }
     if ($returnSXE) {
         return $sxe;
     }
     return $sxe->saveXML();
 }